html {
    scroll-behavior: smooth;
}

:root {
    --bg-dark: #07070a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-1: #4F46E5; /* Indigo */
    --accent-2: #a855f7; /* Purple */
    --accent-3: #0ea5e9; /* Light Blue */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Background Effects */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-1), transparent 70%);
}

.orb-2 {
    bottom: 20%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-2), transparent 70%);
    animation-delay: -5s;
}

.orb-3 {
    top: 40%;
    left: 20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-3), transparent 70%);
    opacity: 0.2;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 50px) scale(1.1); }
    100% { transform: translate(-50px, -50px) scale(0.9); }
}

/* Typography & Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-3), var(--accent-2), var(--accent-1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.py-6 { padding-top: 5rem; padding-bottom: 5rem; }
.max-w-lg { max-width: 800px; }

/* Navbar */
.navbar {
    transition: all 0.4s ease;
    padding: 1.5rem 0;
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(7, 7, 10, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--accent-3), var(--accent-2));
    transition: width 0.3s ease;
}

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

/* Buttons */
.btn-gradient {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-gradient:hover::before { opacity: 1; }
.btn-gradient:hover { color: white; transform: translateY(-2px); }

.shadow-glow {
    box-shadow: 0 10px 25px -5px rgba(168, 85, 247, 0.4);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-2px);
}

.badge-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Glass Cards & Panels */
.glass-card, .glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 1rem;
    transition: all 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(79, 70, 229, 0.2);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(168, 85, 247, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.glass-card:hover .icon-box {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    transform: scale(1.1) rotate(5deg);
}

/* Forms */
.glass-input {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--text-primary) !important;
    padding: 0.9rem 1.3rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.glass-input:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: var(--accent-3) !important;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.25) !important;
}

.glass-input::placeholder { color: rgba(255, 255, 255, 0.35); }

/* Footer */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent-1);
    border-color: var(--accent-1);
    transform: translateY(-3px);
}

.footer-link:hover { color: var(--text-primary) !important; padding-left: 5px; transition: all 0.2s ease;}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   V2 IMPROVEMENTS 
========================================= */

/* 1. Custom Scrollbar & Selection */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-1);
}

::selection {
    background: rgba(168, 85, 247, 0.3); /* Purple translucent */
    color: white;
}

/* 2. Magnetic Buttons (JS Utility) */
.magnetic {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 3. Trusted By Marquee */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 2rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}
.marquee-content:hover {
    animation-play-state: paused;
}
.partner-logo {
    display: inline-block;
    margin: 0 3rem;
    opacity: 0.9;
    transition: all 0.3s ease;
    filter: grayscale(10%);
    height: 40px;
}
.partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%) brightness(1.2);
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Assumes content is duplicated */
}

/* 4. Testimonials */
.testimonial-card {
    border-left: 4px solid var(--accent-1);
}
.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

/* 5. FAQ Accordion (Bootstrap Overrides) */
.accordion-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1rem;
}
.accordion-button {
    background: transparent;
    color: var(--text-primary);
    box-shadow: none !important;
    padding: 1.5rem 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}
.accordion-button:not(.collapsed) {
    background: transparent;
    color: var(--accent-1);
    box-shadow: none;
}
.accordion-button::after {
    filter: invert(1); /* Make the chevron white */
}
.accordion-button:not(.collapsed)::after {
    filter: invert(0.5) sepia(1) saturate(5) hue-rotate(200deg); /* Approximate accent-1 */
}
.accordion-body {
    color: var(--text-secondary);
    padding: 0 1rem 1.5rem 1rem;
}

/* 6. Modals (Glassmorphism) */
.modal-content {
    background: rgba(7, 7, 10, 0.85);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    color: var(--text-primary);
}
.modal-header {
    border-bottom: 1px solid var(--glass-border);
}
.modal-footer {
    border-top: 1px solid var(--glass-border);
}
.btn-close {
    filter: invert(1);
}

/* 7. Modal Backdrop Blur */
.modal-backdrop.show {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-color: rgba(0, 0, 0, 0.6) !important;
    opacity: 1 !important;
}

/* 8. Scroll Down Mouse Indicator */
.scroll-down-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.scroll-down-link {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.scroll-down-link:hover {
    opacity: 0.8;
}

.mouse-icon-container {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    position: relative;
    margin: 0 auto;
}

.mouse-icon-wheel {
    width: 4px;
    height: 8px;
    background: linear-gradient(135deg, var(--accent-3), var(--accent-2));
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.8s infinite ease-in-out;
}

@keyframes scroll-wheel {
    0% {
        top: 6px;
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    90% {
        top: 20px;
        opacity: 0;
    }
    100% {
        top: 6px;
        opacity: 0;
    }
}
