/* ===== CSS Variables ===== */
:root {
    /* Light Theme Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #E8E8E8;
    --text-primary: #191920;
    --text-secondary: #23255D;
    --accent-light: #85BAFF;
    --accent-primary: #57B8FF;
    --accent-dark: #504A97;
    --accent-darker: #23255D;
    --accent-red: #E6213A;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] {
    /* Dark Theme Colors */
    --bg-primary: #191920;
    --bg-secondary: #23255D;
    --text-primary: #FFFFFF;
    --text-secondary: #E8E8E8;
    --accent-light: #85BAFF;
    --accent-primary: #57B8FF;
    --accent-dark: #504A97;
    --accent-darker: #23255D;
    --accent-red: #E6213A;
    --shadow: rgba(255, 255, 255, 0.05);
    --shadow-hover: rgba(255, 255, 255, 0.1);
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== Theme Toggle Button ===== */
.theme-toggle {
    position: fixed;
    top: 90px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    color: white;
}

.theme-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: block;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-container {
    position: relative;
    width: 40px;
    height: 40px;
}

.logo-img {
    width: 40px;
    height: 40px;
    display: block;
}

.logo-pupil {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: transform 0.1s ease-out;
    z-index: 10;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.logo-text sup {
    font-size: 0.6em;
    color: var(--accent-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/BanniaireKopoJour.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.7) 0%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0.7) 100%);
}

[data-theme="dark"] .hero-background {
    background-image: url('assets/BanniaireKopoNuit.png');
}

[data-theme="dark"] .hero-background::before {
    background: linear-gradient(180deg, 
        rgba(25, 25, 32, 0.75) 0%,
        rgba(25, 25, 32, 0.55) 50%,
        rgba(25, 25, 32, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 3rem 2rem;
    margin: 0 auto;
    text-align: center;
}

.hero-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

.hero-logo img {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(87, 184, 255, 0.3);
}

[data-theme="dark"] .hero-title {
    text-shadow: 0 2px 30px rgba(87, 184, 255, 0.5);
}

.gradient-text {
    color: var(--accent-primary);
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-light) 50%, var(--accent-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .hero-subtitle {
    color: var(--text-primary);
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .hero-description {
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-light));
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(87, 184, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .btn-secondary {
    background: rgba(25, 25, 32, 0.9);
    color: var(--accent-light);
    border-color: var(--accent-light);
}

.btn-secondary:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(87, 184, 255, 0.3);
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid var(--accent-primary);
    border-radius: 20px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        top: 10px;
        opacity: 1;
    }
    100% {
        top: 30px;
        opacity: 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ===== Sections ===== */
.section {
    padding: 4rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-title sup {
    font-size: 0.6em;
    color: var(--accent-primary);
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-light));
    margin: 0 auto 1rem;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: bold;
}

/* ===== About Section ===== */
.about {
    background: transparent;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-light));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon svg {
    color: white;
}

.about-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== Services Section ===== */
.services {
    background: transparent;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon svg {
    color: white;
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Infrastructure Section ===== */
.infrastructure {
    background: transparent;
    position: relative;
}

.infrastructure .container {
    max-width: 90%;
    margin: 0 auto;
}

.infrastructure .infra-content {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 4px 15px var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.infrastructure .section-header {
    text-align: center;
    margin-bottom: 1rem;
}

.infra-content-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.infra-text h3 {
    font-size: 1.8rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.infra-text h3:first-child {
    margin-top: 0;
}

.infra-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 0;
    width: 100%;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-primary); /* Fallback color */
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.infra-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.cable-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.server-animation {
    position: relative;
    height: 400px;
    width: 60%;
    z-index: 1;
}

.server-box {
    position: absolute;
    width: 200px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-darker), var(--accent-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.5rem;
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform 0.3s ease;
}

.server-box:hover {
    transform: scale(1.05);
}

.server-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-red);
    animation: blink 2s infinite;
}

.server-light:nth-child(2) {
    animation-delay: 0.3s;
    background: var(--accent-light);
}

.server-light:nth-child(3) {
    animation-delay: 0.6s;
    background: var(--accent-primary);
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 10px currentColor;
    }
    50% {
        opacity: 0.3;
    }
}

/* ===== Kosmos Section ===== */
.kosmos {
    background: transparent;
}

.kosmos .container {
    max-width: 90%;
}

.kosmos-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: start;
}

.kosmos-description {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px var(--shadow);
}

.kosmos-intro {
    margin-bottom: 2.5rem;
}

.kosmos-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-light));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.kosmos-badge svg {
    width: 20px;
    height: 20px;
}

.kosmos-intro p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.kosmos-features h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px var(--shadow);
}

.feature-icon svg {
    color: white;
}

.feature-text h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.feature-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.kosmos-cta {
    display: flex;
    align-items: center;
}

.kosmos-cta-card {
    background: linear-gradient(135deg, var(--accent-darker), var(--accent-dark));
    padding: 3rem 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px var(--shadow-hover);
    width: 100%;
}

.kosmos-icon-large {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kosmos-icon-large svg {
    color: white;
}

.kosmos-cta-card h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.kosmos-cta-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.btn-kosmos {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--accent-darker);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-kosmos:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.btn-kosmos svg {
    width: 20px;
    height: 20px;
}

/* ===== CMZ Section ===== */
.cmz {
    background: transparent;
}

.cmz .container {
    max-width: 90%;
}

.cmz-banner {
    background: linear-gradient(135deg, var(--accent-darker), var(--accent-dark));
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.cmz-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.cmz-logo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cmz-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.cmz-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.btn-join {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-join:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ===== Presence Section ===== */
.presence {
    background: transparent;
}

.presence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.presence-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.presence-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.presence-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.presence-icon svg {
    width: 3rem;
    height: 3rem;
    stroke: var(--accent-primary);
    stroke-width: 2;
}

.presence-card h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.presence-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Footer ===== */
.footer {
    background: var(--accent-darker);
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-light);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-light);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 40px;
    height: 40px;
}

.footer-logo sup {
    font-size: 0.6em;
    color: var(--accent-primary);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== Responsive Design ===== */
/* Tablet and medium screens */
@media (max-width: 1024px) {
    .infrastructure .infra-content {
        padding: 2.5rem 3rem;
    }
    
    .infra-content-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 4px 10px var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-content {
        margin: 0 auto;
        text-align: center;
        padding: 2rem 1rem;
    }

    .hero-logo img {
        width: 120px;
        height: 120px;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-left: auto;
        margin-right: auto;
    }

    .section-title {
        font-size: 1.75rem;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }

    .infrastructure .infra-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .infra-visual {
        min-height: 200px;
        order: -1; /* Move visual above text on mobile */
    }

    .server-animation {
        height: 200px;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        padding: 0.5rem 0;
    }

    .server-box {
        position: relative !important;
        width: 90%;
        max-width: 140px;
        height: 35px;
        padding: 0 0.75rem;
        gap: 0.5rem;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        margin: 0.25rem 0;
    }

    .server-light {
        width: 8px;
        height: 8px;
    }

    /* Hide canvas and hub on mobile */
    .cable-canvas {
        display: none !important;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.25rem;
    }
    
    .about-card, .service-card, .presence-card {
        padding: 1.5rem;
    }

    .kosmos-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .kosmos-description {
        padding: 2rem;
    }

    .kosmos-features h3 {
        font-size: 1.3rem;
    }

    .feature-item {
        flex-direction: row;
        align-items: start;
    }

    .kosmos-cta-card {
        padding: 2.5rem 2rem;
    }

    .kosmos-icon-large {
        width: 80px;
        height: 80px;
    }

    .kosmos-icon-large svg {
        width: 48px;
        height: 48px;
    }

    .cmz-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .cmz-banner {
        padding: 2rem 1.5rem;
    }
    
    .cmz-logo {
        width: 100px;
        height: 100px;
    }
    
    .cmz-text h3 {
        font-size: 1.5rem;
    }
    
    .cmz-text p {
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-logo img {
        width: 120px;
        height: 120px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
    }

    .hero-content {
        padding: 2rem 1.5rem;
    }

    .nav-container {
        padding: 1rem;
    }

    .section {
        padding: 2.5rem 1rem;
    }
    
    .infrastructure .infra-content {
        padding: 2rem 1rem;
    }
    
    .infra-text h3 {
        font-size: 1.4rem;
        margin-top: 1.5rem;
    }
    
    .infra-text h3:first-child {
        margin-top: 0;
    }
    
    .infra-text p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .btn {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
    }
    
    /* Horizontal scroll for services on very small screens */
    .services-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .services-grid::-webkit-scrollbar {
        height: 8px;
    }
    
    .services-grid::-webkit-scrollbar-track {
        background: var(--bg-secondary);
        border-radius: 10px;
    }
    
    .services-grid::-webkit-scrollbar-thumb {
        background: var(--accent-primary);
        border-radius: 10px;
    }
    
    .service-card {
        min-width: 280px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }
    
    /* Horizontal scroll for presence cards on very small screens */
    .presence-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .presence-grid::-webkit-scrollbar {
        height: 8px;
    }
    
    .presence-grid::-webkit-scrollbar-track {
        background: var(--bg-secondary);
        border-radius: 10px;
    }
    
    .presence-grid::-webkit-scrollbar-thumb {
        background: var(--accent-primary);
        border-radius: 10px;
    }
    
    .presence-card {
        min-width: 250px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Fade-in Animation Classes ===== */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}
