/* ========================================
   VARIABLES & THEMING
   ======================================== */
:root {
    /* Colors */
    --bg-main: #0a0a1a;
    --bg-surface: #111126;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #FFFFFF;
    --text-secondary: #B8B8C5;
    
    /* Accents */
    --accent-primary: #4F8CFF;
    --accent-secondary: #6A5CFF;
    --gradient-main: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    
    /* Spacing & Layout */
    --max-width: 1440px;
    --content-width: 1280px;
    --radius-lg: 32px;
    --radius-md: 20px;
    --radius-sm: 12px;
    
    /* Animation */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: auto;
}

.container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 5%;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
.hero-title { font-size: clamp(2.5rem, 5vw, 5rem); letter-spacing: -0.02em; }
.section-title { font-size: clamp(2rem, 3vw, 3.5rem); text-align: center; margin-bottom: 3rem; }
.section-subtitle { text-align: center; color: var(--text-secondary); max-width: 600px; margin: -2rem auto 4rem; }

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p { color: var(--text-secondary); font-weight: 300; font-size: 1.125rem; margin-bottom: 1.5rem; }

/* ========================================
   CUSTOM CURSOR
   ======================================== */
/* .cursor-dot, .cursor-outline {
    position: fixed;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}
.cursor-dot { width: 8px; height: 8px; background-color: var(--accent-primary); }
.cursor-outline {
    width: 40px; height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
} */

/* ========================================
   LOADING SCREEN
   ======================================== */
.loader-container {
    position: fixed; inset: 0;
    background-color: var(--bg-main);
    z-index: 10000;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}
.loader-content { text-align: center; width: 200px; }
.loader-logo { margin-bottom: 2rem; animation: pulse 2s infinite; }
.progress-bar { width: 100%; height: 4px; background: var(--card-bg); border-radius: 4px; overflow: hidden; }
.progress { width: 0%; height: 100%; background: var(--gradient-main); transition: width 1s ease; }

/* ========================================
   GLASSMORPHISM & CARDS
   ======================================== */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative; overflow: hidden;
}

.glass-card::before {
    content: ''; position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: 0.5s; z-index: 1; pointer-events: none;
}
.glass-card:hover::before { left: 100%; }
.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 20px 40px rgba(79, 140, 255, 0.1);
}

/* NEW: Services Card with Image Header */
.service-card {
    padding: 0; /* Remove padding to let image bleed to edges */
    display: flex;
    flex-direction: column;
}
.card-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover .card-image img {
    transform: scale(1.05); /* Smooth zoom effect on hover */
}
.card-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-block; padding: 1rem 2.5rem; border-radius: 50px;
    font-weight: 500; cursor: pointer; transition: var(--transition-fast);
    text-align: center; border: none; position: relative; overflow: hidden;
}
.btn-primary { background: var(--gradient-main); color: #fff; box-shadow: 0 4px 15px rgba(79, 140, 255, 0.3); }
.btn-primary:hover { box-shadow: 0 8px 25px rgba(79, 140, 255, 0.5); transform: scale(1.05); }
.btn-secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--border-color); backdrop-filter: blur(10px); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }
.w-100 { width: 100%; }

/* ========================================
   NAVIGATION
   ======================================== */
.glass-nav {
    position: fixed; top: 0; left: 0; right: 0;
    padding: 1.5rem 0; z-index: 1000; transition: var(--transition-smooth);
}
.glass-nav.scrolled {
    padding: 1rem 0; background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}
.nav-container { max-width: var(--max-width); margin: 0 auto; padding: 0 5%; display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 58px; }
.nav-links { display: flex; gap: 2.5rem; }
.nav-link { font-size: 0.95rem; font-weight: 400; position: relative; }
.nav-link::after {
    content: ''; position: absolute; bottom: -5px; left: 0;
    width: 0%; height: 2px; background: var(--gradient-main); transition: var(--transition-fast);
}
.nav-link:hover::after { width: 100%; }
.nav-mobile-cta {
    display: none; /* Hidden on desktop */
}
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100; /* Above mobile overlay */
    width: 32px;
    height: 32px;
    position: relative;
    padding: 0;
}
.mobile-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    position: absolute;
    left: 3px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 0.2s ease, 
                top 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-toggle span:nth-child(1) { top: 7px; }
.mobile-toggle span:nth-child(2) { top: 15px; }
.mobile-toggle span:nth-child(3) { top: 23px; }

/* Perfectly Centered Symmetrical 'X' */
.mobile-toggle.active span:nth-child(1) {
    top: 15px;
    transform: rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-toggle.active span:nth-child(3) {
    top: 15px;
    transform: rotate(-45deg);
}


/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh; display: flex; align-items: center; position: relative;
    padding-top: 100px; overflow: hidden;
}

/* NEW: Hero Image Background Styles */
.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.6; /* Keeps the text highly readable */
    transform: scale(1.05); /* Slight scale to prevent edge bleed on animation */
    animation: slowZoom 30s infinite alternate ease-in-out;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 26, 0.3) 0%, rgba(10, 10, 26, 0.95) 100%);
}

.hero-content { max-width: 900px; text-align: center; margin: 0 auto; z-index: 10; position: relative; }
.hero-subtitle { font-size: 1.25rem; margin: 2rem 0 3rem; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero-cta { display: flex; gap: 1.5rem; justify-content: center; }
.scroll-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 10; }
.mouse { width: 30px; height: 50px; border: 2px solid var(--text-secondary); border-radius: 20px; position: relative; }
.mouse::before {
    content: ''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 8px; background: var(--text-primary); border-radius: 2px; animation: scroll 2s infinite;
}

/* ========================================
   SECTIONS & GRIDS
   ======================================== */
.section { padding: 8rem 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.card-icon { font-size: 2.5rem; font-weight: 800; color: var(--accent-primary); opacity: 0.5; margin-bottom: 1rem; }

/* Timeline */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; top: 0; left: 20px; height: 100%; width: 2px; background: var(--border-color); }
.timeline-item { position: relative; padding-left: 60px; margin-bottom: 3rem; }
.timeline-dot {
    position: absolute; left: 11px; top: 0; width: 20px; height: 20px;
    border-radius: 50%; background: var(--gradient-main); box-shadow: 0 0 15px rgba(79, 140, 255, 0.5);
}

/* Forms */
.cta-box { max-width: 800px; margin: 0 auto; text-align: center; padding: 4rem; }
.contact-form { margin-top: 3rem; display: flex; flex-direction: column; gap: 1.5rem; }
/* ========================================
   FORM INPUTS & TEXTAREA
   ======================================== */
.form-group {
    position: relative;
}

/* Shared input & textarea styling */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

/* Focus states */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Base floating label */
.form-group label {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    transition: var(--transition-fast);
    pointer-events: none;
}

/* Keep label aligned to the top line inside textarea instead of the center */
.form-group textarea ~ label {
    top: 1.25rem;
    transform: none;
}

/* Floating label trigger when active or filled */
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 10px;
    transform: none;
    font-size: 0.8rem;
    background: var(--bg-surface);
    padding: 0 0.5rem;
    color: var(--accent-primary);
}

/* ========================================
   FOOTER
   ======================================== */
footer { border-top: 1px solid var(--border-color); padding-top: 4rem; background: var(--bg-surface); }
.footer-content { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-logo { height: 40px; margin-bottom: 1.5rem; }
.backed-by { color: var(--accent-primary); font-weight: 600; }
.footer-links { display: flex; gap: 4rem; }
.link-column h4 { margin-bottom: 1.5rem; }
.link-column a { display: block; color: var(--text-secondary); margin-bottom: 0.75rem; transition: var(--transition-fast); }
.link-column a:hover { color: var(--text-primary); transform: translateX(5px); }
.footer-bottom { border-top: 1px solid var(--border-color); padding: 2rem 0; text-align: center; }

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}
@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

.fade-up { opacity: 0; transform: translateY(40px); transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-left { opacity: 0; transform: translateX(40px); transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-right { opacity: 0; transform: translateX(-40px); transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-up.visible, .fade-left.visible, .fade-right.visible { opacity: 1; transform: translate(0); }
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* ========================================
   MEDIA QUERIES (RESPONSIVE)
   ======================================== */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    
    .logo {
        z-index: 1100; /* Keeps brand logo visible above the menu overlay */
    }
    
    .nav-desktop-cta {
        display: none; /* Hide top-bar CTA button on small screens */
    }
    
    .mobile-toggle {
        display: block;
    }
    
    /* Full-Screen Glassmorphic Menu with Smooth Slide */
    .nav-links {
        position: fixed;
        inset: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(10, 10, 26, 0.96);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        z-index: 1050;
        
        /* Smooth Slide & Blur Transition */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                    visibility 0.35s;
    }
    
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-link {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-primary);
        letter-spacing: -0.01em;
        transition: color 0.2s ease, transform 0.2s ease;
    }
    
    .nav-link:hover,
    .nav-link:active {
        color: var(--accent-primary);
        transform: scale(1.05);
    }
    
    .nav-link::after {
        display: none; /* Disable desktop underline bar on mobile */
    }

    .nav-mobile-cta {
        display: inline-block;
        margin-top: 1rem;
        padding: 0.9rem 2.2rem;
        font-size: 1rem;
    }
    
    .hero-title { font-size: 2.5rem; }
    .hero-cta { flex-direction: column; }
    .cursor-dot, .cursor-outline { display: none; }
    body { cursor: auto; }
}
@media (max-width: 576px) {
    .section { padding: 5rem 0; }
    .glass-card { padding: 1.5rem; }
    .card-content { padding: 1.5rem; } /* Adjusted padding for mobile screens */
    .cta-box { padding: 2rem; }
    .timeline::before { left: 10px; }
    .timeline-dot { left: 1px; }
    .timeline-item { padding-left: 40px; }
}