/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Helvetica, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: #333;
    line-height: 1.6;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

/* Header Styles */
header {
    background: #1c1c1c;
    color: #fff;
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 1rem;
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li {
    margin: 0 0.625rem;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.25rem;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: #f04;
}

a.mail {
    text-decoration: none;
    color: #111;
    display: flex;
    align-content: center;
    transition: color 0.3s;
}

a.mail:hover {
    color: #f04;
}

/* Hero Section Styles */
.hero {
    background: url(./background.jpg) center center/cover;
    min-height: 31.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 2rem 1rem;
}

.hero h2 {
    font-size: 3rem;
    transition: transform 0.3s;
}

.hero .btn {
    padding: 0.625rem 1.25rem;
    background: #f04;
    color: #fff;
    border: none;
    border-radius: 0.625rem;
    cursor: pointer;
    text-decoration: none;
    font-size: 1.125rem;
    margin-top: 1rem;
    transition: background-color 0.3s, transform 0.3s;
    display: inline-block;
    line-height: normal;
    font-weight: 500;
}

/* About Section Styles */
.about, .services, .partners, .digital-twins, .contact {
    padding: 1.125rem 0;
}

.about h2, .services h2, .partners h2, .digital-twins h2, .contact h2, .post-quantum h2 {
    text-align: center;
    margin-bottom: 1.25rem;
    transition: transform 0.3s;
}

.about p {
    text-align: center;
    font-size: 1.125rem;
    transition: transform 0.3s;
}

/* Blockchain Section Styles */
.blockchain {
    position: relative;
    padding: 3.125rem 0;
    background: #f9f9f9;
    color: #333;
    text-align: center;
}

.blockchain h2 {
    margin-bottom: 1.25rem;
}

.blockchain p {
    text-align: center;
    font-size: 1.125rem;
    transition: transform 0.3s;
}

.blockchain-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.blockchain .container {
    position: relative;
    z-index: 1;
}

/* Services Section Styles */
.services .container {
    width: 80%;
    margin: auto;
    overflow: visible; /* Ensure the container doesn't overflow */
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 1.5rem;
    overflow: visible; /* Ensure grid doesn't overflow */
}

.service-item {
    background: #f9f9f9;
    padding: 1.25rem;
    border: 1px solid #ddd;
    border-radius: 0.625rem;
    text-align: center;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 15rem;
    transition: box-shadow 0.3s, transform 0.3s;
    box-sizing: border-box; /* Ensure padding and border are included in the width and height */
    overflow: visible; /* Ensure content doesn't overflow */
}

.service-item:hover {
    transform: scale(1.05); /* Scale up the item slightly on hover */
}

.service-item h3 {
    font-size: 1.25rem;
    margin: 0.625rem 0;
    color: #007bff;
}


.service-item:hover h3 {
    color: #FF8400;
}

.service-item p {
    font-size: 1rem;
    color: #555;
}

.service-item i {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 0.625rem;
}

.service-item:hover i {
    color: #FF8400;
}

/* Partner Capabilities Section Styles */
.partners {
    background: #eef2f3;
    padding: 3.125rem 0;
    text-align: center;
}

.partners .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.partners .partner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.partners .partner-item {
    background: #fff;
    border-radius: 0.625rem;
    padding: 1.25rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    text-align: center;
}

.partners .partner-item img {
    width: 100%;
    height: 150px; /* Set a fixed height for consistency */
    object-fit: contain;
    border-radius: 0.625rem;
}

.partners .partner-item h3 {
    font-size: 1.5rem;
    margin: 1rem 0 0rem 0;
    color: #333;
}

.partners .partner-item p {
    font-size: 1rem;
    color: #555;
    margin-top: 0rem; /* Add margin for spacing */
    flex-grow: 1; /* Ensures the paragraph takes up remaining space */
    display: flex;
    align-items: flex-start; /* Aligns text at the start */
}

.technology-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
}

.technology-item {
    background: #fff;
    border-radius: 0.625rem;
    padding: 1.25rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
    text-align: center; /* Center the text inside the boxes */
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-in-out forwards;
    transition: transform 0.3s ease-in-out; /* Smooth transition for hover and mouse off */
}

.technology-item:hover {
    transform: translateY(-10px);
}

.technology-icon {
    font-size: 2.5rem;
    color: #007bff;
    position: absolute;
    top: -10px;
    right: -10px;
    opacity: 0.1;
}

.technology-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.625rem;
    color: #333; /* Change title color to traditional black */
}

.technology-item p {
    font-size: 1rem;
    color: #555;
}

.technology-item a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.technology-item a:hover {
    text-decoration: underline;
}

/* Keyframes for animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments for Technologies */
@media (max-width: 768px) {
    .technology-grid {
        grid-template-columns: 1fr;
    }
}

/* Digital Twins Section Styles */
.digital-twins {
    background: #fff;
    padding: 3.125rem 0;
}

.digital-twins .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.digital-twins .digital-twins-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.digital-twins .digital-twin-image {
    width: 50%;
    border-radius: 0.625rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
}

.digital-twins .digital-twin-text {
    width: 50%;
}

.digital-twins .digital-twin-text p {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.digital-twins .digital-twin-text ul {
    list-style: none;
}

.digital-twins .digital-twin-text ul li {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.digital-twins .digital-twin-text ul li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: #007bff;
}

/* Post Quantum Section */
.post-quantum p {
    text-align: center;
    font-size: 1.125rem;
    transition: transform 0.3s;
}

.post-quantum {
    padding: 1.125rem;
}

/* Contact Section Styles */
.contact {
    padding: 3.125rem 0;
}

.contact h2 {
    text-align: center;
    margin-bottom: .5rem;
}

.contact .contact-info {
    margin-top: 0.625rem;
    font-size: 1.125rem;
    justify-content: center;
    text-align: center;
    display: flex;
}

/* Footer Styles */
footer {
    background: #1c1c1c;
    color: #fff;
    padding: 1.25rem 0;
    text-align: center;
}

footer .social-media {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-bottom: 0.625rem;
}

footer .social-media li {
    margin: 0 0.625rem;
}

footer .social-media li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

footer .social-media li a:hover {
    color: #f04;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 1.25rem;
    }

    .hero {
        height: auto;
        padding: 2rem 1rem;
        text-align: center;
    }

    .hero h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero .btn {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .partners .partner-grid {
        grid-template-columns: 1fr;
    }

    .digital-twins .digital-twins-content {
        flex-direction: column;
    }

    .digital-twins .digital-twin-image, .digital-twins .digital-twin-text {
        width: 100%;
    }

    .technology-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.5rem;
    }

    .hero .btn {
        font-size: 0.875rem;
        padding: 0.5rem;
    }

    header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    header .logo {
        margin-bottom: 1rem;
    }

    header nav ul {
        flex-direction: column;
        width: 100%;
    }

    header nav ul li {
        margin: 0.5rem 0;
    }

    header nav ul li a {
        font-size: 1rem;
    }
}

a {text-decoration: none; }

