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

:root {
    --bg-primary: #0a0a0f;
    --bg-card: rgba(255,255,255,0.03);
    --bg-footer: #0d0d14;
    --accent-cyan: #00d4ff;
    --accent-blue: #4169ff;
    --accent-red: #ff2d55;
    --text-primary: #ffffff;
    --text-secondary: #b0b8c8;
    --border-glow: rgba(0,212,255,0.2);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

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

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,212,255,0.05);
    transition: background 0.3s ease;
}

.header.scrolled {
    background: rgba(10,10,15,0.95);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    flex-shrink: 0;
}

.logo-accent {
    color: var(--accent-cyan);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-cyan);
}

/* Button base */
.btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(0,212,255,0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0,212,255,0.5);
    transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

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

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

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

/* Mobile menu CTA - hidden on desktop */
.nav-links-cta {
    display: none;
}

@media (max-width: 768px) {
    .nav-cta {
        display: none;
    }

    .nav-links-cta {
        display: block;
        margin-top: 0.5rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background: rgba(10,10,15,0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 6rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border-glow);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    /* Overlay backdrop */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }

    .nav-overlay.show {
        display: block;
    }
}

/* ========== HERO SLIDER ========== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

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

/* Slide 1: Grid/matrix pattern */
.slide-bg-1 {
    background:
        linear-gradient(135deg, rgba(0,212,255,0.05) 0%, transparent 50%),
        linear-gradient(225deg, rgba(65,105,255,0.05) 0%, transparent 50%),
        repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(0,212,255,0.03) 50px, rgba(0,212,255,0.03) 51px),
        repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(0,212,255,0.03) 50px, rgba(0,212,255,0.03) 51px);
    background-color: var(--bg-primary);
}

/* Slide 2: Radar sweep / concentric circles */
.slide-bg-2 {
    background:
        radial-gradient(circle at 50% 50%, rgba(0,212,255,0.08) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, transparent 20%, rgba(0,212,255,0.03) 20.5%, transparent 21%),
        radial-gradient(circle at 50% 50%, transparent 35%, rgba(0,212,255,0.03) 35.5%, transparent 36%),
        radial-gradient(circle at 50% 50%, transparent 50%, rgba(0,212,255,0.03) 50.5%, transparent 51%);
    background-color: var(--bg-primary);
}

/* Slide 3: Shield pattern */
.slide-bg-3 {
    background:
        radial-gradient(ellipse at 50% 40%, rgba(65,105,255,0.08) 0%, transparent 50%),
        linear-gradient(180deg, rgba(0,212,255,0.03) 0%, transparent 40%);
    background-color: var(--bg-primary);
}

.slide-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.slide-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.slide-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-lg {
    padding: 0.85rem 2.25rem;
    font-size: 1.05rem;
}

/* Slider arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glow);
    color: var(--text-primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.hero:hover .slider-arrow {
    opacity: 1;
}

.slider-arrow:hover {
    background: rgba(0,212,255,0.15);
    border-color: var(--accent-cyan);
}

.slider-prev { left: 1.5rem; }
.slider-next { right: 1.5rem; }

/* Slider dots */
.slider-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.75rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0,212,255,0.5);
}

@media (max-width: 768px) {
    .slider-arrow {
        opacity: 1;
        width: 40px;
        height: 40px;
    }

    .slider-prev { left: 0.75rem; }
    .slider-next { right: 0.75rem; }
}

/* ========== SECTIONS (shared) ========== */
.section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 3.5rem;
    position: relative;
}

.title-underline {
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-cyan);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

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

.service-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glow);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,212,255,0.4);
    box-shadow: 0 8px 32px rgba(0,212,255,0.1);
}

.service-icon {
    margin-bottom: 1.5rem;
}

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

.service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid .service-card:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        justify-self: center;
    }
}

/* ========== HOW IT WORKS ========== */
.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 12.5%;
    width: 75%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue), var(--accent-cyan));
    opacity: 0.3;
}

.timeline-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-cyan);
    background: var(--bg-primary);
}

.step-icon {
    margin-bottom: 1rem;
}

.timeline-step h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-step p {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 220px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .timeline {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 320px;
        margin: 0 auto;
    }

    .timeline::before {
        top: 0;
        left: 23px;
        width: 2px;
        height: 100%;
        background: linear-gradient(180deg, var(--accent-cyan), var(--accent-blue), var(--accent-cyan));
    }

    .timeline-step {
        text-align: left;
        padding-left: 4rem;
    }

    .step-number {
        position: absolute;
        left: 0;
        top: 0;
        margin: 0;
    }
}

/* ========== STATS ========== */
.stats {
    background: linear-gradient(180deg, rgba(0,212,255,0.02) 0%, var(--bg-primary) 100%);
    border-top: 1px solid rgba(0,212,255,0.05);
    border-bottom: 1px solid rgba(0,212,255,0.05);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
}

.stat-number {
    display: block;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

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

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========== CONTACT ========== */
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-top: -2.5rem;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-benefits ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 1rem;
}

.contact-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.contact-benefits svg {
    flex-shrink: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(176,184,200,0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 2px rgba(0,212,255,0.1);
}

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

.btn-full {
    width: 100%;
    text-align: center;
}

.form-success {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(0,212,255,0.05);
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 8px;
}

.form-success.show {
    display: flex;
}

.form-success p {
    color: var(--accent-cyan);
    font-weight: 500;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ========== FOOTER ========== */
.footer {
    background: var(--bg-footer);
    padding: 4rem 0 0;
}

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

.footer-brand .logo {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.footer-brand p {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    max-width: 280px;
}

.footer h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a,
.footer-contact a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--accent-cyan);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-glow);
    text-align: center;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ========== SCROLL ANIMATIONS ========== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
