/* =============================================
   XEO TECH — Premium MSP & Cloud Solutions
   Responsive Styling
   ============================================= */

/* Global Styles and Variables remain the same */
:root {
    --primary-cyan: #00A398;
    --primary-dark: #FFFFFF;
    --secondary-dark: #F8F9FA;
    --surface: #FFFFFF;
    --text-primary: #1a1a1a;
    --text-secondary: #495057;
    --text-muted: #6c757d;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 163, 152, 0.3);
    --card-bg: #FFFFFF;
    --card-bg-hover: rgba(10, 22, 40, 0.03);
    --hover-cyan: #00D8C6;
    --error-red: #e74c3c;
    --success-green: #2ecc71;

    /* UI & Layout */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 80px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--primary-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

::selection {
    background: rgba(0, 163, 152, 0.25);
    color: #fff;
}

.nav-logo,
.footer-logo,
.hero-icon,
.value-logo {
    mix-blend-mode: multiply;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter: brightness(100%) contrast(100%);
}

/* -- Navigation -------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem; /* Fluid padding */
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.nav-logo {
    height: 36px;
    width: auto;
    transition: var(--transition);
}

.navbar.scrolled .nav-logo {
    height: 30px;
}

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

.nav-link {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--primary-cyan);
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-cta {
    padding: 10px 24px;
    background: var(--primary-cyan);
    color: var(--primary-dark);
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.nav-cta:hover {
    background: var(--hover-cyan);
    color: var(--primary-dark);
    transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
    display: none; /* Hidden by default, shown on mobile */
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    display: none; /* Control visibility with JS */
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-link {
    color: var(--text-secondary);
    font-size: 1.25rem;
    font-weight: 500;
    transition: var(--transition);
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-link:hover {
    color: var(--primary-cyan);
    padding-left: 0.5rem;
}

.mobile-cta {
    padding: 14px 28px;
    background: var(--primary-cyan);
    color: var(--primary-dark);
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    margin-top: 2rem;
    transition: var(--transition);
}

.mobile-cta:hover {
    background: var(--hover-cyan);
    color: var(--primary-dark);
}

/* -- Section Label ----------------------- */
.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-cyan);
    margin-bottom: 1rem;
}

/* -- Hero Section ------------------------ */
.hero {
    min-height: 60vh; /* instead of 100vh */
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    padding-bottom: 2rem;
    position: relative;
    overflow: hidden;
}
/* On very small screens, further reduce height and ensure content is central */
@media (max-width: 575.98px) {
    .hero {
        min-height: 50vh; /* Even less height on smallest screens */
        padding-bottom: 2rem;
    }

    .hero-content .hero-text {
        order: 1; /* Text first on mobile */
    }
    .hero-content .hero-visual {
        order: 2; /* Visual second */
        margin-top: 2rem; /* Space between text and visual */
    }
}

/* For larger screens, can retain or adjust hero height */
@media (min-width: 1200px) { /* Example for larger screens, adjust as needed */
    .hero {
        min-height: 80vh;
    }
}


/* -- Disable/Reduce Heavy Animations on Mobile Viewports -- */

/* Hide the large network canvas on small screens to save resources */
#network-canvas {
    display: block; /* Ensure it's displayed by default */
}
@media (max-width: 767.98px) { /* Apply below tablet screen size */
    #network-canvas {
        display: none;
    }
}

/* Disable heavy visual animations on mobile devices */
.hero-glow,
.hero-icon {
    animation: none; /* Remove animations */
    width: auto; /* Ensure it scales naturally */
    height: auto;
    max-width: 100%; /* Ensure it doesn't overflow */
}
/* If you only want to disable animation for specific elements */
@media (max-width: 767.98px) {
    .hero-glow { display: none; } /* Can also hide the glow if it's too much */
    .hero-icon { animation: none; } /* Ensure icon animation is off */
}


/* -- Tweak On-Scroll Animations for Mobile -- */
/* Make them feel more immediate and less resource-intensive by removing transform */
/* The opacity fade is usually fine and doesn't tax performance heavily */
[data-animate] {
    opacity: 0;
    transform: translateY(15px); /* Slightly reduced transform */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out; /* Slightly faster transition */
}

[data-animate].in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Optional: For users who prefer reduced motion, disable animations entirely */
@media (prefers-reduced-motion: reduce) {
  .badge-pulse,
  .hero-glow,
  .hero-icon,
  .hero-title,
  .hero-description,
  .hero-visual, /* Target the whole visual container if needed */
  [data-animate] {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  #network-canvas { display: none; } /* Explicitly hide heavy elements */
}


/* -- Hero Title Sizing Adjustment -- */
/* Ensure title font size doesn't push content too far down on small screens */
@media (max-width: 767.98px) {
  .hero-title {
      font-size: clamp(1.8rem, 6vw, 2.75rem); /* Adjusted clamp for better mobile fit */
  }
  .hero-description {
      font-size: 1rem;
      line-height: 1.7;
  }
}

/* -- Navigation adjustments on mobile -- */
/* These are critical for mobile UX and ensure the hamburger/menu works */
/* Ensure your .hamburger, .mobile-menu, .mobile-overlay styles are correctly set up in your main CSS */

/* Hamburger button display */
@media (max-width: 991.98px) { /* Or your breakpoint for showing hamburger */
    .hamburger { display: flex; }
    .nav-center { display: none; } /* Hide desktop nav links */
}

/* Mobile menu layout */
.mobile-menu-content {
    padding: 2rem 1rem; /* Reduced padding for mobile menu */
    gap: 1rem;
}
.mobile-link {
    padding: 1rem 0;
    font-size: 1.1rem;
}
.mobile-cta {
    margin-top: 1.5rem;
    font-size: 1rem;
}


/* Ensure layout stacks correctly in sections on smaller screens */
@media (max-width: 991.98px) {
    .hero-content,
    .services-grid,
    .value-container,
    .about-grid,
    .contact-content {
        grid-template-columns: 1fr; /* Stack columns */
        gap: 2.5rem; /* Adjust gap for stacked layout */
        text-align: left;
    }

    .hero-content { /* Ensure text comes first and visual has spacing */
        .hero-text { order: 1; }
        .hero-visual { order: 2; margin-top: 2rem; }
    }

    /* Adjust section padding if they feel too large on mobile */
    .services, .value-section, .about, .contact {
        padding: 5rem 0; /* Reduced padding */
    }
}

@media (max-width: 767.98px) {
    /* Further refinements for smaller screens */
    .nav-wrapper { padding: 0 1rem; }
    .hero {
        min-height: 50vh; /* Even less for smallest */
        padding-bottom: 1.5rem;
    }
    .hero-content {
        gap: 2rem;
        padding-top: 60px; /* Account for sticky nav */
    }
    .hero-cta-group { flex-direction: column; gap: 1rem; width: 100%; }
    .btn-primary, .btn-secondary { width: 100%; }
    .hero-icon { max-width: 250px; }

    .carousel-card {
        flex: 0 0 85%; /* Ensure carousel scrolls nicely */
        padding: 1.5rem;
        min-height: auto;
    }
    .carousel-track { gap: 1rem; }

    .section-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
    .section-subtitle, .lead-text { font-size: 0.95rem; }

    .services { padding: 4rem 0; }
    .services-grid, .value-container, .about-grid, .contact-content { gap: 2rem; }
    .value-metrics { grid-template-columns: 1fr; text-align: center; border-left: none; }
    .metric { border-left: none; padding-left: 0; margin-bottom: 2rem; }
    .metric-value { font-size: 2rem; }

    .contact-form { padding: 1.5rem; }
    .form-row { grid-template-columns: 1fr; gap: 1rem; }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-bottom: 2rem;
    }
    .footer-links { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 350px) {
    .hero-title { font-size: 2rem; } /* Even smaller on very small screens */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at top right, rgba(0, 163, 152, 0.05), transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem; /* Fluid padding */
    display: grid;
    grid-template-columns: 1fr 1fr; /* Default to 2 columns */
    gap: 6rem;
    align-items: center;
    width: 100%;
}

.hero-text {
    animation: fadeInUp 0.8s ease-out 0.1s forwards;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 163, 152, 0.06);
    border: 1px solid rgba(0, 163, 152, 0.15);
    border-radius: 50px;
    padding: 0.4rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-cyan);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    background: var(--primary-cyan);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 163, 152, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0, 163, 152, 0); }
}

.hero-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 560px;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Work Sans', sans-serif;
    border-radius: 6px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-cyan);
    color: var(--primary-dark);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before { left: 100%; }
.btn-primary:hover {
    background: var(--hover-cyan);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 163, 152, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-cyan);
    border: 1px solid var(--primary-cyan);
}

.btn-secondary:hover {
    border-color: var(--hover-cyan);
    color: var(--hover-cyan);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-glow {
    position: absolute;
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, rgba(0, 163, 152, 0.15), transparent 60%);
    filter: blur(60px);
    animation: glowPulse 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.08); }
}

.hero-icon-wrapper {
    position: relative;
    z-index: 1;
}

.hero-icon {
    max-width: 400px;
    width: 100%;
    height: auto;
    animation: heroFloat 6s ease-in-out infinite;
}

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

/* -- Insights Carousel ------------------- */
.insights-carousel {
    padding: 5rem 0;
    background: var(--secondary-dark);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.carousel-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem; /* Fluid padding */
}

.carousel-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.carousel-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    color: var(--text-primary);
}

.carousel-controls {
    display: flex;
    gap: 0.75rem;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar */
}

.carousel-track::-webkit-scrollbar { display: none; }

.insight-card {
    flex: 0 0 calc(33.333% - 1.334rem); /* Default to 3 columns */
    scroll-snap-align: start;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 2.5rem;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.insight-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    background: var(--card-bg-hover);
}

.insight-card.featured {
    border-color: rgba(0, 163, 152, 0.25);
    background: rgba(0, 163, 152, 0.04);
}

.insight-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-cyan);
    margin-bottom: 1.25rem;
}

.insight-card h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 400;
    color: var(--text-primary);
}

.insight-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.insight-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-cyan);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.insight-link:hover {
    color: var(--hover-cyan);
    gap: 0.75rem;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    background: rgba(0, 163, 152, 0.05);
}

.carousel-btn:active { transform: scale(0.95); }

/* -- Services Section -------------------- */
.services {
    padding: 8rem 0;
    background: var(--surface);
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem; /* Fluid padding */
}

.section-intro {
    margin-bottom: 5rem;
}

.section-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Default to 2 columns */
    gap: 3rem;
}

.service-item {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
}

.service-item::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-cyan);
    transition: width 0.5s ease;
}

.service-item:hover::before { width: 100%; }

.service-number {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-cyan);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    font-family: 'Work Sans', sans-serif;
}

.service-name {
    font-family: 'DM Serif Display', serif;
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-capabilities {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-capabilities li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    color: var(--text-muted);
    font-size: 14px;
    position: relative;
    transition: color 0.3s ease;
}

.service-capabilities li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 1px;
    background: var(--primary-cyan);
}

.service-item:hover .service-capabilities li { color: var(--text-secondary); }

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-cyan);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--hover-cyan);
    gap: 0.75rem;
}

/* -- Value Section ----------------------- */
.value-section {
    padding: 8rem 0;
    background: var(--secondary-dark);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.value-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem; /* Fluid padding */
    display: grid;
    grid-template-columns: 1fr 1fr; /* Default to 2 columns */
    gap: 6rem;
    align-items: center;
}

.value-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.value-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.value-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.metric {
    border-left: 2px solid var(--primary-cyan);
    padding-left: 1.5rem;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.metric-label {
    font-size: 14px;
    color: var(--text-muted);
}

.value-image-container {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(0, 163, 152, 0.12), transparent 70%);
    filter: blur(80px);
    pointer-events: none;
}

.value-logo {
    position: relative;
    z-index: 1;
    max-width: 280px;
    width: 100%;
    animation: heroFloat 8s ease-in-out infinite;
    opacity: 0.8;
}

/* -- About Section ----------------------- */
.about {
    padding: 8rem 0;
    background: var(--surface);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Default to 2 columns */
    gap: 6rem;
}

.lead-text {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

.about-features {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.feature-card {
    border-left: 2px solid var(--primary-cyan);
    padding-left: 2rem;
    transition: var(--transition);
}

.feature-card:hover { padding-left: 2.5rem; }

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(0, 163, 152, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary-cyan);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: rgba(0, 163, 152, 0.12);
    box-shadow: 0 0 20px rgba(0, 163, 152, 0.1);
}

.feature-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* -- Contact Section --------------------- */
.contact {
    padding: 8rem 0;
    background: var(--secondary-dark);
    border-top: 1px solid var(--border-color);
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem; /* Fluid padding */
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.1fr; /* Default to 2 columns */
    gap: 6rem;
}

.contact-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.contact-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    padding: 1rem;
    border-radius: 10px;
    transition: var(--transition);
    cursor: pointer;
}

.info-item:hover {
    background: rgba(0, 163, 152, 0.03);
    transform: translateX(4px);
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(0, 163, 152, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-cyan);
    flex-shrink: 0;
}

.info-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.15rem;
    font-weight: 500;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.social-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 48px;
    height: 48px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-link:hover {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    background: rgba(0, 163, 152, 0.05);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form-wrapper {
    position: relative;
}

.contact-form {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.required { color: var(--primary-cyan); }

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236c757d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-group select option {
    background: var(--surface);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-cyan);
    background: var(--surface);
    box-shadow: 0 0 0 3px rgba(0, 163, 152, 0.08);
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--error-red);
}

.form-group input.error:focus,
.form-group textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.form-error {
    display: block;
    font-size: 0.75rem;
    color: var(--error-red);
    margin-top: 0.35rem;
    min-height: 1rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.btn-submit {
    width: 100%;
    padding: 14px 32px;
    background: var(--primary-cyan);
    color: var(--primary-dark);
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Work Sans', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-submit:hover::before { left: 100%; }

.btn-submit:hover {
    background: var(--hover-cyan);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 163, 152, 0.3);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Form Success */
.form-success {
    display: none;
    text-align: center;
    padding: 3rem;
    background: var(--card-bg);
    border: 1px solid rgba(0, 163, 152, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-success.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.success-icon {
    color: var(--primary-cyan);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.form-success h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.form-success p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* -- Footer ------------------------------ */
.footer {
    background: var(--secondary-dark);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem; /* Fluid padding */
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 3fr; /* Default to 2 columns */
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-logo {
    height: 32px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--primary-cyan);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.footer-description {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    max-width: 320px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Default to 3 columns */
    gap: 3rem;
}

.footer-column h5 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
}

.footer-column a {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--primary-cyan);
    transform: translateX(3px);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--text-muted);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-social a:hover {
    color: var(--primary-cyan);
    transform: translateY(-2px);
}

/* -- Back to Top ------------------------- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--primary-cyan);
    border: none;
    border-radius: 50%;
    color: var(--primary-dark);
    cursor: pointer;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 163, 152, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(0, 163, 152, 0.5);
    background: var(--hover-cyan);
}

/* -- Scroll Animations ------------------- */
[data-animate] {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].in-view {
    opacity: 1;
    transform: translateY(0);
}

/* -- Media Queries for Responsiveness --- */

/* Extra Large Devices, Large Desktops (1200px and up) */
@media (min-width: 1200px) {
    .nav-wrapper { padding: 0 3rem; }
    .carousel-track { overflow-x: visible; scroll-snap-type: none; } /* Allow normal scrolling on large screens */
}

/* Large Devices, Desktops (992px and up) */
@media (max-width: 1199.98px) {
    .nav-wrapper { padding: 0 2rem; }
    .hero-content { gap: 4rem; }
    .services-grid, .value-container, .about-grid, .contact-content { gap: 4rem; }
    .insight-card { flex: 0 0 calc(50% - 1rem); } /* 2 columns on medium screens */
}

/* Medium Devices, Tablets (768px and up) */
@media (max-width: 991.98px) {
    :root { --nav-height: 70px; } /* Slightly smaller nav */
    .navbar { height: var(--nav-height); }
    .nav-wrapper { padding: 0 1.5rem; }

    .nav-center { display: none; } /* Hide desktop nav links */
    .hamburger { display: flex; } /* Show hamburger */

    .hero-content {
        grid-template-columns: 1fr; /* Stack content */
        gap: 3rem;
        text-align: center;
        padding-top: 60px; /* Space for sticky nav */
    }

    .hero-badge { margin-right: auto; margin-left: auto; }
    .hero-description { margin-right: auto; margin-left: auto; }
    .hero-visual { margin-top: 3rem; }
    .hero-icon { max-width: 300px; }

    .carousel-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    .carousel-track {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }
    .insight-card { flex: 0 0 85%; } /* Smaller cards, carousel effect */

    .services { padding: 6rem 0; }
    .services-grid { grid-template-columns: 1fr; } /* Single column */

    .value-section { padding: 6rem 0; }
    .value-container { grid-template-columns: 1fr; gap: 3rem; }
    .value-metrics { grid-template-columns: repeat(3, 1fr); } /* Keep metrics in 3 columns if space allows */

    .about { padding: 6rem 0; }
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }

    .contact { padding: 6rem 0; }
    .contact-content { grid-template-columns: 1fr; gap: 3rem; }
    .contact-form { padding: 2rem; }
}

/* Small Devices, Phones (576px and up) */
@media (max-width: 767.98px) {
    :root { --nav-height: 60px; }
    .navbar { height: var(--nav-height); }

    /* Adjust padding for very small screens */
    .nav-wrapper, .carousel-container, .section-container, .contact-container {
        padding: 0 1rem;
    }

    .hero-content { padding-top: 50px; }
    .hero-title { font-size: clamp(2rem, 8vw, 3.5rem); }
    .hero-description { font-size: 1rem; }
    .hero-cta-group { width: 100%; justify-content: center; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
    .hero-icon { max-width: 250px; }

    .carousel-track { gap: 1rem; }
    .insight-card {
        flex: 0 0 85%;
        padding: 1.5rem;
        min-height: 300px;
    }
    .insight-card h3 { font-size: 1.3rem; }

    .section-title { font-size: clamp(1.75rem, 6vw, 2.75rem); }
    .section-subtitle { font-size: 1rem; }

    .services { padding: 4rem 0; }
    .services-grid, .value-container, .about-grid, .contact-content { gap: 2rem; }
    .service-item { padding: 1.5rem 0; }
    .service-name { font-size: 1.5rem; }

    .value-section { padding: 4rem 0; }
    .value-metrics { grid-template-columns: 1fr; text-align: center; border-left: none; }
    .metric { border-left: none; padding-left: 0; margin-bottom: 2rem; }
    .metric-value { font-size: 2rem; }

    .about { padding: 4rem 0; }
    .lead-text { font-size: 1.1rem; }

    .contact { padding: 4rem 0; }
    .contact-title { font-size: clamp(1.5rem, 6vw, 2.25rem); }
    .contact-description { font-size: 1rem; }
    .contact-info { margin-bottom: 2rem; }
    .info-item { padding: 0.75rem; }
    .info-icon { width: 40px; height: 40px; }
    .info-value { font-size: 1rem; }

    .contact-form { padding: 1.5rem; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-group { margin-bottom: 1rem; }
    .form-group select { padding-right: 2rem; } /* Adjust for smaller screens */

    .footer { padding: 2rem 0 0; }
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-bottom: 2rem;
    }
    .footer-links { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
    .footer-logo { margin-right: auto; margin-left: auto; }

    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 44px;
        height: 44px;
    }
}

/* Very Small Devices, Phones (e.g., 320px width) */
@media (max-width: 350px) {
    /* Further refinements if needed for extreme small screens */
    .nav-logo { height: 30px; }
    .hero-title { font-size: 2.2rem; }
    .hero-cta-group { flex-direction: column; gap: 0.75rem; }
    .btn-primary, .btn-secondary { width: 100%; }
}

/* =============================================
   XEO TECH — Premium MSP & Cloud Solutions
   Refined Icon Styling for Insights Article
   ============================================= */

/* --- Base Article Styles (ensure these are present from previous steps) --- */
.article-content {
    padding: 3rem 0;
    background: var(--surface);
}

.article-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.article-section {
    margin-bottom: 2.5rem;
}

.article-section h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.article-section p,
.article-list li div, /* Target the div containing the text next to the icon */
.article-list p { /* Ensure paragraphs within lists get styled if any */
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}
.article-section p:last-child,
.article-list li div:last-child {
    margin-bottom: 0; /* Remove margin from last paragraph in a section */
}

/* --- Reworked List Styling with CSS Background Icons --- */
.article-list {
    list-style: none; /* Remove default bullets */
    padding-left: 2.5rem; /* Give space for the custom bullet */
    margin-top: 1.5rem;
}

.article-list-item {
    margin-bottom: 1.5rem;
    position: relative; /* Needed for ::before positioning */
    padding-left: 2.5rem; /* Space for the custom icon bullet */
}
.article-list-item:last-child { margin-bottom: 0; }

.article-list-item::before {
    content: ''; /* Essential for pseudo-elements */
    position: absolute;
    left: 0;
    top: 0.3rem; /* Adjust vertical alignment */
    width: 24px; /* Icon width */
    height: 24px; /* Icon height */
    background-size: contain; /* Ensure icon scales correctly */
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/* Assigning specific icons based on data-icon-type attribute */
.article-list-item[data-icon-type="lock"]::before {
    background-image: url('../icon/lock.png'); /* Adjust '..' path if needed */
}
.article-list-item[data-icon-type="pipeline"]::before {
    background-image: url('../icon/pipeline.png');
}
.article-list-item[data-icon-type="clock"]::before {
    background-image: url('../icon/clock.png');
}
.article-list-item[data-icon-type="loops"]::before {
    background-image: url('../icon/loops.png');
}

/* --- Responsive Adjustments for List Items --- */
@media (max-width: 991.98px) { /* Tablets and smaller */
    .article-list {
        padding-left: 1.5rem; /* Reduced padding for smaller screens */
    }
    .article-list-item {
        padding-left: 2rem; /* Reduced internal padding for icon space */
        margin-bottom: 1.25rem;
    }
    .article-list-item::before {
        width: 20px; /* Smaller icon on tablets */
        height: 20px;
        top: 0.1rem; /* Adjust vertical alignment */
    }
    .article-section p,
    .article-list li div {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media (max-width: 767.98px) { /* Phones */
    .article-list {
        padding-left: 1rem;
    }
    .article-list-item {
        padding-left: 1.75rem;
        margin-bottom: 1rem;
    }
    .article-list-item::before {
        width: 18px; /* Even smaller icon on phones */
        height: 18px;
        top: 0.1rem;
    }
    .article-section p,
    .article-list li div {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/* --- Hero Section Icon Styling --- */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 180px; /* Slightly larger visual area */
    height: 180px;
}
.hero-icon-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-insight-icon {
    width: 120px; /* Adjust size for hero */
    height: 120px;
    object-fit: contain;
    max-width: 100%; /* Ensure it doesn't overflow container */
    max-height: 100%;
}
.hero-glow { position: absolute; z-index: 0; }

/* --- Call to Action Button Styling --- */
.article-cta {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-top: 3rem;
}
.article-cta p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 0;
}
.article-cta .btn-primary {
    margin-top: 1.5rem;
    font-size: 1rem;
    padding: 12px 30px;
}
@media (max-width: 767.98px) {
    .article-cta { padding: 2.5rem 0; margin-top: 2rem; }
    .article-cta p { font-size: 1.1rem; }
    .article-cta .btn-primary { font-size: 0.95rem; padding: 10px 24px; }
}

/* --- Article Navigation Styling --- */
.article-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}
.nav-previous, .nav-next { font-weight: 500; color: var(--primary-cyan); }
.nav-previous a, .nav-next a { padding: 0.5rem 1rem; border-radius: 6px; transition: var(--transition); }
.nav-previous a:hover, .nav-next a:hover { background: rgba(0, 163, 152, 0.05); color: var(--hover-cyan); }

@media (max-width: 767.98px) { /* Phones */
    .article-navigation {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
    .nav-previous, .nav-next { width: 100%; text-align: center; }
    .nav-previous a, .nav-next a { display: block; width: 100%; }
}