@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    --primary-blue: #2b77a0;
    --secondary-purple: #4c1b69;
    --accent-cyan: #00c3e3;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --bg-light: #ffffff;
    --bg-alt: #f8fafc;
    --nav-bg: #0a0a0a;
    --nav-text: #ffffff;
    --nav-hover: #00c3e3;
    --border-light: #e5e7eb;
    
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
    --shadow-hover: 0 25px 50px -12px rgba(43, 119, 160, 0.15);
    --shadow-float: 0 30px 60px -12px rgba(0,0,0,0.1);
    
    --radius-md: 16px;
    --radius-lg: 32px;
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    width: 0%; height: 4px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--secondary-purple));
    z-index: 10000;
    transition: width 0.1s ease-out;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.15;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1rem;
}

h1 { font-size: 60px; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(2.5rem, 4.5vw, 3.5rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); letter-spacing: -0.01em; }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1.25rem; color: var(--text-muted); font-size: 1.125rem; font-weight: 300; }

/* Interactive Text Hover */
p, h1, h2, h3, h4, h5, h6, li, span {
    transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
}
.split-content p:hover, .split-content h1:hover, .split-content h2:hover, .interactive-card p:hover, .interactive-card h3:hover, .timeline-content p:hover, .timeline-content h3:hover, .cta-premium h2:hover, .cta-premium p:hover {
    color: var(--primary-blue);
    transform: translateX(4px);
}

/* Interactive Cursor Spotlight (Global) */
.spotlight {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9999;
    background: radial-gradient(circle 400px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 195, 227, 0.04), transparent 80%);
    mix-blend-mode: multiply;
}

/* Multi-speed Background Parallax Elements */
.bg-layer {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
}
.parallax-icon {
    position: absolute;
    color: rgba(43, 119, 160, 0.04);
    font-size: clamp(4rem, 10vw, 8rem);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1.05rem;
    cursor: pointer;
    transition: transform 0.2s linear, box-shadow 0.4s ease, background 0.4s ease;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    will-change: transform;
}
.btn i {
    margin-left: 10px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
    background: var(--nav-bg);
    color: #fff;
    box-shadow: 0 4px 15px rgba(10, 10, 10, 0.2);
}
.btn-primary:hover {
    background: var(--primary-blue);
    color: #fff;
    box-shadow: 0 10px 25px rgba(43, 119, 160, 0.3);
}
.btn-primary:hover i {
    transform: translateX(6px);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--border-light);
}
.btn-outline:hover {
    border-color: var(--nav-bg);
    color: var(--nav-bg);
}
.btn-outline:hover i {
    transform: translateX(6px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background-color: var(--nav-bg);
    padding: 24px 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

.navbar.scrolled {
    padding: 14px 0;
    background-color: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

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

.logo img {
    height: 52px;
    transition: var(--transition);
}
.navbar.scrolled .logo img { height: 42px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}
.nav-links > li > a {
    color: rgba(255,255,255,0.85);
    font-weight: 400;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 6px;
    letter-spacing: 0.5px;
}
.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background-color: var(--nav-hover);
    transition: var(--transition);
}
.nav-links > li > a:hover { color: #fff; }
.nav-links > li > a:hover::after, .nav-links > li > a.active::after { width: 100%; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%; left: 50%;
    transform: translateX(-50%) translateY(20px) scale(0.95);
    background: #fff;
    border-radius: var(--radius-md);
    padding: 20px 0;
    min-width: 320px;
    box-shadow: var(--shadow-float);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border-light);
    pointer-events: none;
    transform-origin: top center;
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(15px) scale(1);
    pointer-events: auto;
}
.dropdown-menu li a {
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 30px;
    font-weight: 500;
    font-size: 0.95rem;
}
.dropdown-menu li a i {
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-fast);
    color: var(--primary-blue);
}
.dropdown-menu li a:hover {
    background: var(--bg-alt);
    color: var(--primary-blue);
    padding-left: 36px;
}
.dropdown-menu li a:hover i {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    width: 30px; height: 24px;
    position: relative;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 100%; height: 2px;
    background-color: #fff;
    position: absolute; left: 0;
    transition: var(--transition);
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 22px; }
.hamburger.active span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 11px; transform: rotate(-45deg); }

/* Global Section Spacing */
section {
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}
.section-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(43, 119, 160, 0.08);
    color: var(--primary-blue);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    border: 1px solid rgba(43, 119, 160, 0.15);
}

/* Split Layouts (Image + Text) */
.split-section {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}
.split-section.reverse {
    grid-template-columns: 1fr 1.2fr;
}
.split-section.reverse .split-content {
    grid-column: 1; grid-row: 1;
}
.split-section.reverse .split-image {
    grid-column: 2; grid-row: 1;
}

.split-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-float);
    transform: perspective(1000px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.split-image:hover img {
    transform: scale(1.05);
}
.split-image-mask {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.1);
    pointer-events: none;
    transition: var(--transition);
}
.split-image:hover .split-image-mask {
    background: rgba(0,0,0,0);
}

.checklist {
    margin-top: 40px;
}
.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}
.checklist-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    background: var(--bg-alt);
    color: var(--primary-blue);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-top: 4px;
    transition: var(--transition);
}
.checklist li:hover .checklist-icon {
    background: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
    transform: scale(1.1);
}
.checklist-text h4 { margin-bottom: 6px; font-size: 1.2rem; }
.checklist-text p { font-size: 1rem; margin-bottom: 0; line-height: 1.5; }

/* Interactive Cards */
.interactive-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    position: relative;
    transform-style: preserve-3d;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
    will-change: transform;
}
.interactive-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: inherit;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(43, 119, 160, 0.04), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}
.interactive-card:hover::before { opacity: 1; }
.interactive-card:hover {
    border-color: rgba(43, 119, 160, 0.2);
    box-shadow: var(--shadow-hover);
}
.interactive-card > * {
    position: relative;
    z-index: 1;
    transform: translateZ(30px); /* 3D depth for inner content */
}

.service-icon {
    width: 72px; height: 72px;
    background: var(--bg-alt);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 30px;
    transition: var(--transition);
}
.interactive-card:hover .service-icon {
    background: var(--primary-blue);
    color: #fff;
    transform: scale(1.05) translateZ(40px);
}
.interactive-card h3 { font-size: 1.35rem; margin-bottom: 16px; }
.interactive-card p { font-size: 1rem; margin-bottom: 32px; line-height: 1.6; }
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary-blue);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.service-link i { transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.interactive-card:hover .service-link i { transform: translateX(8px); }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

/* Process Timeline Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0; left: 40px;
    width: 2px; height: 100%;
    background: var(--border-light);
    z-index: 0;
}
.timeline-item {
    position: relative;
    padding-left: 100px;
    margin-bottom: 60px;
    z-index: 1;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-marker {
    position: absolute;
    top: 0; left: 24px;
    width: 34px; height: 34px;
    background: #fff;
    border: 2px solid var(--border-light);
    border-radius: 50%;
    display: flex;
    align-items: center; justify-content: center;
    color: var(--text-muted);
    font-weight: 600;
    transition: var(--transition);
}
.timeline-item.active .timeline-marker {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #fff;
    box-shadow: 0 0 0 6px rgba(43, 119, 160, 0.1);
}
.timeline-content {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    opacity: 0.5;
    transform: translateX(20px);
}
.timeline-item.active .timeline-content {
    opacity: 1;
    transform: translateX(0);
    box-shadow: var(--shadow-soft);
    border-color: rgba(43, 119, 160, 0.2);
}
.timeline-content h3 { font-size: 1.4rem; margin-bottom: 12px; }
.timeline-content p { margin-bottom: 0; }

/* FAQ Accordion */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.faq-item {
    border-bottom: 1px solid var(--border-light);
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-main);
    transition: background 0.3s ease, color 0.3s ease;
}
.faq-question:hover { background: var(--bg-alt); color: var(--primary-blue); }
.faq-question i {
    width: 32px; height: 32px;
    background: var(--bg-alt);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
    color: var(--primary-blue);
}
.faq-item.active .faq-question { background: var(--bg-alt); color: var(--primary-blue); }
.faq-item.active .faq-question i {
    transform: rotate(180deg);
    background: var(--primary-blue);
    color: #fff;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--bg-alt);
}
.faq-answer-content { padding: 0 32px 32px; }

/* Premium CTA */
.cta-premium {
    background: var(--nav-bg);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 100px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 60px 24px;
    z-index: 1;
}
.cta-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 195, 227, 0.15), transparent 50%),
                radial-gradient(circle at bottom left, rgba(76, 27, 105, 0.15), transparent 50%);
    z-index: -1;
}
.cta-premium h2 { color: #fff; margin-bottom: 24px; }
.cta-premium p { color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto 40px; font-size: 1.2rem; }
.cta-btns { display: flex; justify-content: center; gap: 20px; }
.cta-btns .btn-primary { background: #fff; color: var(--nav-bg); box-shadow: none; }
.cta-btns .btn-primary:hover { background: var(--primary-blue); color: #fff; }

/* Animations & Utility */
.stagger-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.stagger-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    background: var(--nav-bg);
    color: #fff;
    padding: 100px 0 40px;
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}
.footer-logo { margin-bottom: 30px; }
.footer-logo img { height: 48px; }
.footer-col h4 {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 32px;
}
.footer-text {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 350px;
}
.footer-links li { margin-bottom: 16px; }
.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
}
.footer-links a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 8px;
    font-size: 0.8rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-fast);
    color: var(--accent-cyan);
}
.footer-links a:hover { color: #fff; }
.footer-links a:hover::before { opacity: 1; transform: translateX(0); }

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
}

/* Page Headers (Subpages) */
.page-header {
    padding: 200px 0 100px;
    background: var(--bg-alt);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
}
.page-header h1 { margin-bottom: 24px; }
.page-header p { font-size: 1.25rem; max-width: 700px; margin: 0 auto; color: var(--text-muted); }

/* Responsive adjustments */
@media (max-width: 1024px) {
    .split-section, .split-section.reverse { grid-template-columns: 1fr; gap: 50px; }
    .split-section.reverse .split-content, .split-section.reverse .split-image { grid-column: auto; grid-row: auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 50px; }
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 100%; height: 100vh;
        background: var(--nav-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        z-index: 1000;
    }
    .nav-links.active { right: 0; }
    .hamburger { display: block; }
    
    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        opacity: 1; visibility: visible;
        background: transparent; border: none;
        display: none; padding: 0;
        text-align: center;
    }
    .dropdown.active .dropdown-menu { display: block; }
    .dropdown-menu li a { color: rgba(255,255,255,0.6); justify-content: center; padding: 10px; }
    .dropdown-menu li a i { display: none; }
    .dropdown-menu li a:hover { padding-left: 10px; background: transparent; color: #fff; }
    
    .footer-grid { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .timeline::before { left: 24px; }
    .timeline-item { padding-left: 70px; }
    .timeline-marker { left: 7px; }
    .cta-premium { padding: 60px 30px; margin: 40px 0; border-radius: 0; }
    .cta-btns { flex-direction: column; }
}
