/* =============================================
   W-IX Landing Page Styles
   ============================================= */

/* CSS Variables */
:root {
    --color-primary: #0099B2;
    --color-primary-dark: #007A8F;
    --color-primary-darker: #005A6B;
    --color-secondary: #5C6B77;
    --color-accent: #C43E4C;
    --color-accent-hover: #D45563;
    
    --bg-dark: #0a1628;
    --bg-dark-secondary: #132238;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    
    --text-primary: #E8EDF2;
    --text-secondary: #A0AEC0;
    --text-muted: #6B7A8A;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 153, 178, 0.3);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --container-width: 1400px;
    --section-padding: 100px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-dark);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.35rem); }
h4 { font-size: 1rem; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--text-primary);
}

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

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 48px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-medium);
    text-decoration: none;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
    box-shadow: 0 4px 24px rgba(196, 62, 76, 0.3);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(196, 62, 76, 0.4);
}

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

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* =============================================
   Header
   ============================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-medium);
}

.header.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 48px;
    height: 48px;
}

.logo-img {
    height: 64px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1;
}

.logo-tagline {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: lowercase;
}

/* Navigation */
.nav {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-medium);
}

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

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

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

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

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 153, 178, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(0, 90, 107, 0.1), transparent),
        linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-secondary) 100%);
}

/* Grid pattern overlay */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 153, 178, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 153, 178, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
}

.hero-content {
    position: relative;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 24px;
    animation: fadeInUp 1s ease-out;
}

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

.hero-title {
    margin-bottom: 32px;
    color: var(--text-primary);
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Row - Two Column Layout */
.hero-row {
    display: flex;
    align-items: center;
    gap: 60px;
    width: 100%;
}

/* Hero Map */
.hero-map {
    flex: 0 0 auto;
    width: 55%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 
        0 0 60px rgba(0, 153, 178, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.4);
}

.hero-map::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--border-glow);
    border-radius: 16px;
    pointer-events: none;
}

.hero-map img {
    width: 100%;
    height: auto;
    display: block;
}

/* Hero Text Block - Right Side */
.hero-text-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 40px;
}

.hero-text-title {
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    color: var(--text-primary);
    line-height: 1.3;
}

.hero-text-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 400px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    animation: fadeIn 1s ease-out 0.5s backwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 2px;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}

/* =============================================
   Section Styles
   ============================================= */
section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-title {
    color: var(--text-primary);
    margin-bottom: 16px;
}

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

/* =============================================
   About Section
   ============================================= */
.about {
    background: var(--bg-dark-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 80px;
    align-items: center;
}

.about-text .lead {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.about-text strong {
    color: var(--color-primary);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stat-item {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all var(--transition-medium);
}

.stat-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-4px);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 8px;
}

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

/* =============================================
   Services Section
   ============================================= */
.services {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-secondary) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 36px;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-medium);
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-8px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card.featured {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, rgba(0, 153, 178, 0.1), transparent);
}

.service-card.featured::before {
    transform: scaleX(1);
}

.service-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
    color: var(--color-primary);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-title {
    color: var(--text-primary);
    margin-bottom: 12px;
}

.service-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
}

.service-features li {
    position: relative;
    padding-left: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

/* =============================================
   Network Section
   ============================================= */
.network {
    background: var(--bg-dark);
}

.network-map {
    margin: 48px 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 
        0 0 60px rgba(0, 153, 178, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.3);
}

.network-map img {
    width: 100%;
    height: auto;
    display: block;
}

.network-cities {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    max-width: 800px;
    margin: 0 auto;
}

.city-group h4 {
    color: var(--color-primary);
    margin-bottom: 16px;
    font-weight: 500;
}

.city-group ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.city-group li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    padding-left: 16px;
}

.city-group li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
}

/* =============================================
   Contact Section
   ============================================= */
.contact {
    background: linear-gradient(180deg, var(--bg-dark-secondary) 0%, var(--bg-dark) 100%);
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.contact-item {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all var(--transition-medium);
}

.contact-item:hover {
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 153, 178, 0.1);
    border-radius: 12px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-details h4 {
    color: var(--text-primary);
    margin-bottom: 4px;
    font-weight: 500;
}

.contact-details p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-details a {
    color: var(--text-secondary);
}

.contact-details a:hover {
    color: var(--color-primary);
}

.contact-cta {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.contact-cta p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =============================================
   Footer
   ============================================= */
.footer {
    background: var(--bg-dark);
    padding: 48px 0 32px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.footer-brand .logo-img {
    height: 36px;
    width: auto;
}

.footer-nav {
    display: flex;
    gap: 32px;
}

.footer-nav a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-nav a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

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

/* =============================================
   Responsive Design
   ============================================= */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 64px;
    }
    
    .container {
        padding: 0 24px;
    }
    
    /* Mobile Navigation */
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-dark-secondary);
        flex-direction: column;
        gap: 0;
        padding: 100px 32px 32px;
        transition: right var(--transition-medium);
        border-left: 1px solid var(--border-color);
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-link {
        padding: 16px 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 1.1rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact */
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 24px;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px 24px;
    }
    
    /* Hero */
    .hero-row {
        flex-direction: column;
        gap: 32px;
    }
    
    .hero-map {
        width: 100%;
        border-radius: 12px;
    }
    
    .hero-text-block {
        align-items: center;
        text-align: center;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
    }
    
    .stat-number {
        font-size: 2rem;
        margin-bottom: 0;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 auto;
    }
}

/* =============================================
   Animation on Scroll (CSS-only fallback)
   ============================================= */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .stat-item,
    .contact-item {
        animation: fadeInUp 0.6s ease-out backwards;
    }
    
    .service-card:nth-child(1) { animation-delay: 0.1s; }
    .service-card:nth-child(2) { animation-delay: 0.2s; }
    .service-card:nth-child(3) { animation-delay: 0.3s; }
    .service-card:nth-child(4) { animation-delay: 0.4s; }
    .service-card:nth-child(5) { animation-delay: 0.5s; }
    .service-card:nth-child(6) { animation-delay: 0.6s; }
    
    .stat-item:nth-child(1) { animation-delay: 0.2s; }
    .stat-item:nth-child(2) { animation-delay: 0.3s; }
    .stat-item:nth-child(3) { animation-delay: 0.4s; }
}

