@import './glass.css';
@import './fixes.css';
/* @tailwind base; */
/* @tailwind components; */
/* @tailwind utilities; */

@layer base {
    :root {
        --color-brand-gold: #FFD700;
        --color-brand-black: #1A1A1A;
    }

    /* Smooth scrolling for the whole page */
    html {
        scroll-behavior: smooth;
    }

    /* Enhanced text selection */
    ::selection {
        background: rgba(255, 215, 0, 0.3);
        color: var(--color-brand-black);
    }

    /* Font optimization */
    @font-face {
        font-family: 'Inter';
        font-style: normal;
        font-weight: 400;
        font-display: swap;
        src: url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
    }

    /* Ensure text remains visible during webfont load */
    .font-sans {
        font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    }
}

/* Base styles */
@layer base {
    body {
        font-feature-settings: "kern";
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.7); }
    100% { box-shadow: 0 0 5px rgba(255, 215, 0, 0.5); }
}

@keyframes bounce-subtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Component styles */
@layer components {
    /* Enhanced Button Styles */
    .btn-primary {
        background-color: var(--color-brand-gold);
        color: var(--color-brand-black);
        padding: 0.75rem 1.5rem;
        border-radius: 9999px;
        font-weight: 600;
        position: relative;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background-image: linear-gradient(45deg, var(--color-brand-gold), #fce303);
    }

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
        background-image: linear-gradient(45deg, #fce303, var(--color-brand-gold));
    }

    .btn-primary:active {
        transform: translateY(1px);
    }

    .btn-primary:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.4);
    }

    /* Enhanced Navigation Links */
    .nav-link {
        position: relative;
        padding: 0.5rem 0;
        transition: color 0.3s ease;
    }

    .nav-link::before {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--color-brand-gold);
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.3s ease;
    }

    .nav-link:hover::before {
        transform: scaleX(1);
        transform-origin: left;
    }

    /* Enhanced Form Inputs */
    .form-input {
        width: 100%;
        padding: 1rem;
        border-radius: 0.5rem;
        border: 2px solid transparent;
        background-color: #f8f8f8;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .form-input:focus {
        border-color: var(--color-brand-gold);
        background-color: white;
        box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.15);
        transform: translateY(-1px);
    }

    /* Enhanced Service Cards */
    .service-card {
        background-color: white;
        padding: 2rem;
        border-radius: 0.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform, box-shadow;
        background: linear-gradient(145deg, #ffffff, #f3f4f6);
    }

    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }

    .service-card::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 0.5rem;
        padding: 2px;
        background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.3), transparent);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .service-card:hover::after {
        opacity: 1;
    }

    .service-card.reveal-visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger delays for service cards */
    .service-card:nth-child(1) { transition-delay: 0.1s; }
    .service-card:nth-child(2) { transition-delay: 0.2s; }
    .service-card:nth-child(3) { transition-delay: 0.3s; }
    .service-card:nth-child(4) { transition-delay: 0.4s; }

    /* Ensure no layout shift on mobile */
    .service-card {
        min-height: 300px;
        height: 100%;
        visibility: hidden;
    }

    .service-card.reveal-visible {
        visibility: visible;
    }

    /* Content Loading Animation */
    .animate-fade-in {
        opacity: 0;
        animation: fadeIn 0.8s ease-out forwards;
    }

    /* Icon Hover Animation */
    .icon-hover {
        transition: all 0.3s ease;
    }

    .icon-hover:hover {
        animation: bounce-subtle 1s infinite;
        color: var(--color-brand-gold);
    }

    /* Enhanced Header Animations */
    .nav-sticky {
        transition: all 0.3s ease;
    }

    .nav-sticky.scrolled {
        background-color: var(--color-brand-black);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    /* Enhanced Header Styles */
    .nav-sticky {
        transform: translateY(0);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform, background-color, box-shadow;
    }

    .nav-sticky.scrolled {
        background-color: rgba(26, 26, 26, 0.95);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    }

    .nav-sticky.nav-hidden {
        transform: translateY(-100%);
    }

    /* Mobile Menu */
    .mobile-menu-toggle {
        display: block;
        padding: 0.5rem;
        border-radius: 0.5rem;
        transition: background-color 0.2s ease;
        z-index: 60;
    }

    @media (min-width: 768px) {
        .mobile-menu-toggle {
            display: none;
        }
    }

    .mobile-menu-toggle:hover {
        background-color: rgba(255, 215, 0, 0.15);
        color: var(--color-brand-gold);
        transform: scale(1.1);
    }

    .mobile-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-brand-black);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 5rem 2rem;
        z-index: 40;
    }

    .mobile-nav.active {
        right: 0;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    }

    .mobile-nav-link {
        display: block;
        padding: 1rem;
        color: white;
        font-size: 1.125rem;
        transition: all 0.3s ease;
        opacity: 0;
        transform: translateX(20px);
    }

    .mobile-nav.active .mobile-nav-link {
        opacity: 1;
        transform: translateX(0);
    }

    .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
    .mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
    .mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
    .mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }
    .mobile-nav-link:nth-child(5) { transition-delay: 0.3s; }

    .mobile-nav-link:hover {
        color: var(--color-brand-gold);
        padding-left: 1.5rem;
    }

    /* Mobile Header Logo */
    @media (max-width: 768px) {
        .nav-sticky img {
            height: 32px;
        }
    }

    /* Enhanced Scroll Animations */
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.8s ease;
    }

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 {
        transition-delay: 0.1s;
    }

    .reveal-delay-2 {
        transition-delay: 0.2s;
    }

    .reveal-delay-3 {
        transition-delay: 0.3s;
    }

    /* About page animations */
    .about-bullet {
        opacity: 0;
        transform: translateX(-20px);
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform, opacity;
    }

    .about-bullet.reveal-visible {
        opacity: 1;
        transform: translateX(0);
    }

    .about-bullet:nth-child(1) { transition-delay: 0.1s; }
    .about-bullet:nth-child(2) { transition-delay: 0.2s; }
    .about-bullet:nth-child(3) { transition-delay: 0.3s; }
    .about-bullet:nth-child(4) { transition-delay: 0.4s; }
    .about-bullet:nth-child(5) { transition-delay: 0.5s; }

    .founder-image {
        opacity: 0;
        will-change: transform, opacity;
    }

    .founder-image.reveal-visible {
        animation: zoomIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    /* Modal Styles */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.75);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(5px);
        z-index: 100;
    }

    .modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .modal-content {
        background: white;
        padding: 2rem;
        border-radius: 1rem;
        max-width: 500px;
        width: 90%;
        position: relative;
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .modal-overlay.active .modal-content {
        transform: translateY(0);
        opacity: 1;
    }

    /* Form Validation Styles */
    .form-input.error {
        border-color: #ef4444;
        background-color: #fef2f2;
    }

    .form-input.success {
        border-color: #22c55e;
        background-color: #f0fdf4;
    }

    .error-message {
        color: #ef4444;
        font-size: 0.875rem;
        margin-top: 0.5rem;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.2s ease;
    }

    .error-message.visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Success Animation */
    @keyframes checkmark {
        0% { transform: scale(0); }
        50% { transform: scale(1.2); }
        100% { transform: scale(1); }
    }

    .success-checkmark {
        color: #22c55e;
        font-size: 4rem;
        animation: checkmark 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    /* Testimonial Card Animations */
    .testimonial-card {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform, opacity;
    }

    .testimonial-card.reveal-visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Enhanced Testimonial Cards */
    .testimonial-card {
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .testimonial-card:hover {
        transform: translateY(-5px) scale(1.02);
        background: rgba(255, 255, 255, 0.1);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

    .testimonial-card .quote-icon {
        color: var(--color-brand-gold);
        opacity: 0.3;
        transition: all 0.4s ease;
    }

    .testimonial-card:hover .quote-icon {
        transform: scale(1.2) rotate(10deg);
        opacity: 0.5;
    }

    .testimonial-card .rating {
        display: flex;
        gap: 4px;
    }

    .testimonial-card .star {
        color: var(--color-brand-gold);
        transition: all 0.3s ease;
    }

    .testimonial-card:hover .star {
        transform: scale(1.2);
    }

    .testimonial-card:hover .star:nth-child(1) { transition-delay: 0s; }
    .testimonial-card:hover .star:nth-child(2) { transition-delay: 0.1s; }
    .testimonial-card:hover .star:nth-child(3) { transition-delay: 0.2s; }
    .testimonial-card:hover .star:nth-child(4) { transition-delay: 0.3s; }
    .testimonial-card:hover .star:nth-child(5) { transition-delay: 0.4s; }

    /* Mobile Swipe Container */
    @media (max-width: 768px) {
        .testimonial-slider {
            display: flex;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* IE/Edge */
            gap: 1rem;
            padding: 1rem;
            margin: -1rem;
        }

        .testimonial-slider::-webkit-scrollbar {
            display: none;
        }

        .testimonial-slider > div {
            scroll-snap-align: center;
            flex: 0 0 85%;
            max-width: 85%;
        }
    }

    /* Star Rating Animation */
    @keyframes starPulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.2); }
        100% { transform: scale(1); }
    }

    .testimonial-card .fa-star {
        transition: all 0.3s ease;
    }

    .testimonial-card:hover .fa-star {
        animation: starPulse 0.5s ease forwards;
    }

    .testimonial-card:hover .fa-star:nth-child(1) { animation-delay: 0s; }
    .testimonial-card:hover .fa-star:nth-child(2) { animation-delay: 0.1s; }
    .testimonial-card:hover .fa-star:nth-child(3) { animation-delay: 0.2s; }
    .testimonial-card:hover .fa-star:nth-child(4) { animation-delay: 0.3s; }
    .testimonial-card:hover .fa-star:nth-child(5) { animation-delay: 0.4s; }

    /* Quote Icon Animation */
    @keyframes quoteFloat {
        0% { transform: translateY(0) rotate(0deg); }
        50% { transform: translateY(-5px) rotate(5deg); }
        100% { transform: translateY(0) rotate(0deg); }
    }

    .testimonial-card .fa-quote-left {
        transition: all 0.3s ease;
    }

    .testimonial-card:hover .fa-quote-left {
        animation: quoteFloat 2s ease infinite;
        color: var(--color-brand-gold);
        opacity: 0.4;
    }

    /* Floating Book Call Button */
    .book-call-btn {
        position: fixed;
        bottom: 2rem;
        right: 2rem;
        z-index: 50;
        transform: translateY(100px);
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: none;
    }

    @media (max-width: 768px) {
        .book-call-btn {
            display: flex;
        }
    }

    .book-call-btn.visible {
        transform: translateY(0);
        opacity: 1;
    }

    /* Calendly Modal */
    .calendly-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.75);
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .calendly-modal.active {
        opacity: 1;
        visibility: visible;
    }

    .calendly-frame {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 680px;
        height: 80vh;
        background: white;
        border-radius: 1rem;
        overflow: hidden;
    }

    /* Case Study Card Styles */
    .case-study-card {
        background: white;
        padding: 2rem;
        border-radius: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .case-study-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    }

    /* Before/After Slider */
    .before-after-slider {
        position: relative;
        overflow: hidden;
        height: 300px;
    }

    .before-after-slider img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .after-image-container {
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        width: 50%;
        overflow: hidden;
    }

    .slider-handle {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 4px;
        background: var(--color-brand-gold);
        cursor: ew-resize;
        transform: translateX(-50%);
    }

    .slider-handle::before {
        content: '';
        position: absolute;
        left: 50%;
        top: 50%;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--color-brand-gold);
        transform: translate(-50%, -50%);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .slider-handle::after {
        content: '↔';
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        color: var(--color-brand-black);
        font-size: 20px;
        font-weight: bold;
    }

    /* Process Step Animation */
    .process-step {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .process-step.reveal-visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stat Counter Animation */
    .stat-counter {
        position: relative;
        overflow: hidden;
    }

    .stat-counter::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--color-brand-gold), transparent);
        animation: statShine 3s linear infinite;
    }

    @keyframes statShine {
        0% { left: -100%; }
        100% { left: 100%; }
    }

    /* Enhanced Button Animations */
    .btn-primary, .cta-button {
        position: relative;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
    }

    .btn-primary:hover, .cta-button:hover {
        transform: scale(1.05);
    }

    .btn-primary::after, .cta-button::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 215, 0, 0.2), transparent 50%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .btn-primary:hover::after, .cta-button:hover::after {
        opacity: 1;
    }

    /* Cursor Glow Effect */
    .btn-primary, .cta-button {
        cursor: none;
    }

    /* Custom cursor */
    .custom-cursor {
        width: 20px;
        height: 20px;
        background: rgba(255, 215, 0, 0.3);
        border-radius: 50%;
        position: fixed;
        pointer-events: none;
        mix-blend-mode: difference;
        transition: transform 0.2s ease;
        z-index: 9999;
    }

    .custom-cursor.expanded {
        transform: scale(2);
        background: rgba(255, 215, 0, 0.2);
        mix-blend-mode: normal;
    }

    /* Icon Animations */
    .icon {
        transition: transform 0.3s ease, color 0.3s ease;
    }

    .icon:hover {
        transform: translateY(-2px);
        color: var(--color-brand-gold);
    }

    /* Feature Icons Animation */
    .feature-icon {
        transition: all 0.3s ease;
    }

    .feature-icon:hover {
        transform: scale(1.1) rotate(5deg);
        color: var(--color-brand-gold);
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.3));
    }

    /* Social Icons Animation */
    .social-icon {
        transition: all 0.3s ease;
    }

    .social-icon:hover {
        transform: scale(1.15);
        color: var(--color-brand-gold);
        filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.4));
    }

    /* Parallax Effects */
    .parallax-hero {
        position: relative;
        overflow: hidden;
        z-index: 1;
    }

    .parallax-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url('/public/images/hero-bg.jpg');
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        transform: translateZ(0);
        will-change: transform;
        z-index: -1;
    }

    .parallax-testimonials {
        position: relative;
        overflow: hidden;
        z-index: 1;
    }

    .parallax-testimonials::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, var(--color-brand-black), rgba(26, 26, 26, 0.9));
        transform: translateZ(0);
        will-change: transform;
        z-index: -1;
    }
}

/* Custom Hero Gradient */
.hero-gradient {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(26, 26, 26, 0.9), rgba(26, 26, 26, 0.8));
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
    pointer-events: none;
    animation: glow 4s infinite;
}

/* Hero Section Gradient Overlay */
.hero-section {
    position: relative;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 26, 0.95) 0%,
        rgba(26, 26, 26, 0.8) 50%,
        rgba(26, 26, 26, 0.95) 100%
    );
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Mobile optimization for hero text */
@media (max-width: 768px) {
    .hero-section::before {
        background: linear-gradient(
            to bottom,
            rgba(26, 26, 26, 0.98) 0%,
            rgba(26, 26, 26, 0.9) 50%,
            rgba(26, 26, 26, 0.98) 100%
        );
    }
}

/* Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #FFD700 #1A1A1A;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background-color: #1A1A1A;
}

::-webkit-scrollbar-thumb {
    background-color: #FFD700;
    border-radius: 4px;
}

/* Enhanced Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Slide-in animations */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left.active,
.slide-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Fade-in animations */
.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.fade-in.active {
    opacity: 1;
}

/* Scale animations */
.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.active {
    opacity: 1;
    transform: scale(1);
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 9999px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 50;
    cursor: pointer;
    display: none;
}

@media (min-width: 768px) {
    .chat-widget {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
}

.chat-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.chat-widget::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 9999px;
    background: linear-gradient(45deg, var(--color-brand-gold), #ffd700);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.chat-widget:hover::before {
    opacity: 0.1;
}

.chat-widget i {
    color: var(--color-brand-gold);
    font-size: 1.25rem;
}

/* Chat Widget - Desktop Only */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 9999px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: none;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 40;
}

@media (min-width: 1024px) {
    .chat-widget {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }

    .chat-widget:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    }

    .chat-widget i {
        color: var(--color-brand-gold);
        font-size: 1.5rem;
        transition: transform 0.3s ease;
    }

    .chat-widget:hover i {
        transform: scale(1.1);
    }
}

/* Testimonial Carousel */
.testimonial-carousel {
    position: relative;
    overflow: hidden;
}

.testimonial-slide {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.testimonial-slide.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.testimonial-slide.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 215, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background-color: rgba(255, 215, 0, 0.5);
}

.carousel-dot.active {
    background-color: var(--color-brand-gold);
    transform: scale(1.2);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-20px); }
}

/* Why Choose Section Styles */
.why-choose-section {
    position: relative;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 215, 0, 0.03) 50%,
        transparent
    );
    overflow: hidden;
}

.why-choose-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 215, 0, 0.1);
    padding: 2.5rem;
    border-radius: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.why-choose-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 215, 0, 0.05),
        transparent
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.why-choose-card:hover::before {
    opacity: 1;
}

.why-choose-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
}

.why-choose-card .icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-brand-gold), #fce303);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.why-choose-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px -10px rgba(255, 215, 0, 0.4);
}

/* Trusted By Section */
.trusted-logos {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 4rem;
    padding: 2rem 0;
    position: relative;
}

.trusted-logo {
    height: 2.5rem;
    width: auto;
    opacity: 0.7;
    filter: grayscale(1);
    transition: all 0.4s ease;
}

.trusted-logo:hover {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.05);
}
