/* === ROOT VARIABLES === */
:root {
    --primary-900: #0a0f1c;        /* Deep navy background */
    --primary-800: #1a2332;        /* Main background - navy blue */
    --primary-300: #cbd5e1;        /* Primary text */
    --primary-100: #f8fafc;        /* Brightest text */
    --accent-primary: #4f7df3;      /* Bright blue for buttons */
    --accent-primary-light: #6b8bf5; /* Lighter blue for highlights */
    --accent-primary-dark: #1d4ed8; /* Darker blue for depth */
    --accent-secondary: #7c3aed;    /* Purple accent */
    --accent-tertiary: #0ea5e9;     /* Sky blue */
    --surface-overlay: rgba(26, 35, 50, 0.98);
    --border-subtle: rgba(79, 125, 243, 0.1);
    --border-default: rgba(79, 125, 243, 0.2);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.25);
    --shadow-xl: 0 15px 40px rgba(0, 0, 0, 0.35);
    --gradient-primary: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-primary-dark) 100%);
}

/* === RESET AND BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--primary-900);
    color: var(--primary-300);
    overflow-x: hidden;
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === BACKGROUND ANIMATIONS === */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
}

.network-circuit {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 80px 80px;
    animation: circuitFlow 60s linear infinite;
}

@keyframes circuitFlow {
    0% { background-position: 0 0; }
    100% { background-position: 80px 80px; }
}

/* Network icon animations */
.network-icons {
    position: absolute;
    width: 100%;
    height: 100%;
}

.network-icon {
    position: absolute;
    font-size: 1.5rem;
    color: rgba(59, 130, 246, 0.4);
    animation: networkIconFloat 20s linear infinite;
}

.network-icon:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; }
.network-icon:nth-child(2) { top: 15%; right: 10%; animation-delay: 3s; }
.network-icon:nth-child(3) { top: 25%; left: 15%; animation-delay: 6s; }
.network-icon:nth-child(4) { top: 35%; right: 20%; animation-delay: 9s; }
.network-icon:nth-child(5) { top: 45%; left: 8%; animation-delay: 12s; }
.network-icon:nth-child(6) { top: 55%; right: 15%; animation-delay: 15s; }
.network-icon:nth-child(7) { top: 65%; left: 25%; animation-delay: 18s; }
.network-icon:nth-child(8) { top: 75%; right: 8%; animation-delay: 21s; }
.network-icon:nth-child(9) { top: 85%; left: 12%; animation-delay: 24s; }
.network-icon:nth-child(10) { top: 20%; left: 50%; animation-delay: 27s; }
.network-icon:nth-child(11) { top: 40%; right: 45%; animation-delay: 30s; }
.network-icon:nth-child(12) { top: 60%; left: 60%; animation-delay: 33s; }
.network-icon:nth-child(13) { top: 80%; right: 55%; animation-delay: 36s; }
.network-icon:nth-child(14) { top: 30%; left: 70%; animation-delay: 39s; }
.network-icon:nth-child(15) { top: 70%; right: 70%; animation-delay: 42s; }

/* Different colors for variety */
.network-icon:nth-child(3n) { color: rgba(6, 182, 212, 0.4); }
.network-icon:nth-child(5n) { color: rgba(139, 92, 246, 0.4); }

@keyframes networkIconFloat {
    0% { 
        transform: translateY(100vh) scale(0.8); 
        opacity: 0; 
    }
    10% { 
        opacity: 1; 
    }
    90% { 
        opacity: 1; 
    }
    100% { 
        transform: translateY(-100px) scale(1.2); 
        opacity: 0; 
    }
}

/* Simplified pulse animations */
.network-pulses {
    position: absolute;
    width: 100%;
    height: 100%;
}

.pulse-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(59, 130, 246, 0.6);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(2); }
}

/* === HEADER === */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--surface-overlay);
    backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    background: var(--surface-overlay);
    border-bottom-color: var(--border-default);
    box-shadow: var(--shadow-lg);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 170px;
    height: 50px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 30px rgba(79, 125, 243, 0.4);
    transition: box-shadow 0.3s ease;
}

.logo-icon:hover {
    box-shadow: 0 0 40px rgba(79, 125, 243, 0.6);
}

.logo-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary), var(--accent-primary));
    border-radius: 18px;
    z-index: -1;
    animation: logoGlow 4s linear infinite;
    background-size: 300% 300%;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    filter: brightness(1.1) contrast(1.05);
}

@keyframes logoGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: var(--primary-300);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-size: 0.95rem;
}

.nav-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    border-radius: 12px;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-links a:hover {
    color: var(--primary-100);
    transform: translateY(-1px);
}

.nav-links a:hover::before {
    opacity: 0.1;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--surface-overlay);
    backdrop-filter: blur(20px) saturate(1.5);
    border: 1px solid var(--border-default);
    border-radius: 16px;
    padding: 1rem 0;
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: var(--shadow-xl);
}

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

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--primary-400);
    border-radius: 0;
    background: none;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: rgba(79, 125, 243, 0.08);
    color: var(--accent-primary-light);
    transform: translateX(4px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background: none;
    border: none;
    color: var(--primary-300);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu:hover {
    background: rgba(79, 125, 243, 0.1);
    color: var(--accent-primary);
}

/* === HERO SECTION === */
.service-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    background: linear-gradient(135deg, #000000 0%, #111827 50%, #1f2937 100%);
    position: relative;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
}

.service-hero-content {
    max-width: 900px;
    z-index: 1;
    position: relative;
}

.breadcrumb {
    margin-bottom: 1.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #3b82f6;
    text-decoration: none;
}

.service-icon-large {
    font-size: 5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.6));
}

.service-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #f9fafb;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, #f9fafb, #3b82f6, #06b6d4);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #9ca3af;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.service-hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* === BUTTONS === */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    color: #f9fafb;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, #1e40af, #3b82f6);
}

.btn-secondary {
    display: inline-block;
    background: rgba(75, 85, 99, 0.3);
    color: #3b82f6;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid #3b82f6;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(75, 85, 99, 0.5);
    color: #f9fafb;
    border-color: #3b82f6;
    transform: translateY(-2px);
}

/* === CONTAINER === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === SECTIONS === */
section {
    padding: 4rem 0;
}

.section-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.section-title {
    font-size: 2.5rem;
    color: #f9fafb;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-description {
    color: #9ca3af;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* === SERVICE OVERVIEW === */
.service-overview {
    background: #111827;
}

.overview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.overview-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #f9fafb;
    font-weight: 700;
}

.overview-text p {
    color: #9ca3af;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.benefit-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(75, 85, 99, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(75, 85, 99, 0.4);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
    background: rgba(59, 130, 246, 0.1);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.5));
}

.benefit-item h3 {
    color: #f9fafb;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.benefit-item p {
    color: #9ca3af;
    font-size: 0.9rem;
}

.overview-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.network-animation {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border-radius: 20px;
    padding: 2rem;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(75, 85, 99, 0.4);
}

.network-topology {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 300px;
}

.network-device {
    background: rgba(59, 130, 246, 0.15);
    border: 2px solid rgba(59, 130, 246, 0.4);
    padding: 1rem;
    border-radius: 8px;
    color: #3b82f6;
    font-weight: 600;
    text-align: center;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.network-device:hover {
    background: rgba(59, 130, 246, 0.25);
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.3);
}

/* === FEATURES GRID === */
.service-features {
    background: #1f2937;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(75, 85, 99, 0.4);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.6));
}

.feature-card h3 {
    color: #f9fafb;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.feature-card p {
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.feature-card ul {
    list-style: none;
    padding: 0;
}

.feature-card li {
    color: #d1d5db;
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    border-bottom: 1px solid rgba(75, 85, 99, 0.3);
}

.feature-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3b82f6;
}

/* === STATS SECTION === */
.stats-section {
    background: linear-gradient(135deg, #000000 0%, #111827 50%, #1f2937 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(75, 85, 99, 0.4);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: bold;
    color: #3b82f6;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #d1d5db;
    font-size: 1rem;
}

/* === CTA SECTION === */
.service-cta {
    background: #000000;
    text-align: center;
}

.cta-content h2 {
    color: #f9fafb;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-content p {
    color: #9ca3af;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* === FOOTER === */
footer {
    background: linear-gradient(135deg, #000000 0%, #111827 100%);
    color: #d1d5db;
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(75, 85, 99, 0.4);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: #f9fafb;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-brand p {
    color: #9ca3af;
}

.footer-links h4 {
    color: #f9fafb;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.25rem 0;
    display: block;
}

.footer-links a:hover {
    color: #3b82f6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(75, 85, 99, 0.3);
    color: #6b7280;
}

/* === ACCESSIBILITY === */
*:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* === LOADING OPTIMIZATION === */
.lazy-load {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.lazy-load.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--surface-overlay);
        backdrop-filter: blur(20px) saturate(1.5);
        flex-direction: column;
        padding: 2rem;
        border-top: 1px solid var(--border-default);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(79, 125, 243, 0.1);
        margin-top: 0.5rem;
    }

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

@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }

    .service-hero h1 {
        font-size: 2.8rem;
    }
    
    .service-hero p {
        font-size: 1.1rem;
    }
    
    .service-hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .service-icon-large {
        font-size: 4rem;
    }

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

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

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .service-hero {
        padding: 6rem 1rem 2rem;
    }

    .service-hero h1 {
        font-size: 2.2rem;
    }
}

/* === ACCESSIBILITY AND MOTION PREFERENCES === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    :root {
        --primary-300: #ffffff;
        --border-subtle: rgba(79, 125, 243, 0.3);
        --border-default: rgba(79, 125, 243, 0.5);
    }
}