/* TalkToCharts - Premium Futuristic Styles */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0a0a0f 100%);
    min-height: 100vh;
}

/* Hide Alpine.js elements until loaded */
[x-cloak] {
    display: none !important;
}

/* Animated Gradient Text */
.animated-gradient-text {
    background: linear-gradient(90deg, #00d4ff, #8b5cf6, #ec4899, #00d4ff);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

.animated-gradient-text-alt {
    background: linear-gradient(90deg, #ec4899, #8b5cf6, #00d4ff, #ec4899);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite reverse;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hero CTA Button - Solid and Visible */
.hero-cta-btn {
    display: inline-block;
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    background: #0891b2;
    background-image: linear-gradient(135deg, #0891b2 0%, #7c3aed 100%);
    border-radius: 9999px;
    box-shadow: 0 4px 20px rgba(8, 145, 178, 0.5), 0 0 40px rgba(124, 58, 237, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.hero-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(8, 145, 178, 0.7), 0 0 60px rgba(124, 58, 237, 0.5);
}

/* Navigation Links */
.nav-link {
    color: #9ca3af;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff, #8b5cf6);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #00d4ff;
}

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

.nav-link-mobile {
    color: #9ca3af;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    display: block;
}

.nav-link-mobile:hover {
    color: #00d4ff;
    padding-left: 0.5rem;
}

/* Header Scroll Effect */
#header {
    background: transparent;
    transition: all 0.3s ease;
}

#header.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Glass Card Effect */
.glass-card {
    background: rgba(26, 26, 46, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-card:hover {
    background: rgba(26, 26, 46, 0.8);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-5px);
}

/* Neon Border Effects */
.neon-border {
    position: relative;
}

.neon-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00d4ff, #8b5cf6, #00d4ff);
    border-radius: 1.1rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.neon-border:hover::before {
    opacity: 1;
    animation: neonPulse 2s ease-in-out infinite;
}

.neon-border-pink::before {
    background: linear-gradient(45deg, #ec4899, #8b5cf6, #ec4899);
}

@keyframes neonPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Glow Effects */
.neon-glow {
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3),
                0 0 60px rgba(139, 92, 246, 0.2),
                0 0 90px rgba(236, 72, 153, 0.1);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { 
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.3),
                    0 0 60px rgba(139, 92, 246, 0.2),
                    0 0 90px rgba(236, 72, 153, 0.1);
    }
    50% { 
        box-shadow: 0 0 50px rgba(0, 212, 255, 0.5),
                    0 0 80px rgba(139, 92, 246, 0.3),
                    0 0 120px rgba(236, 72, 153, 0.2);
    }
}

.glow-text {
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5),
                 0 0 40px rgba(0, 212, 255, 0.3),
                 0 0 60px rgba(0, 212, 255, 0.2);
}

/* Course Card Tilt Effect */
.course-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.course-card:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
}

/* Free Course Card Tilt */
.free-course-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.free-course-card:hover {
    transform: translateY(-10px) rotateX(3deg) rotateY(3deg) scale(1.02);
}

/* Price Tag Animation */
.price-tag-container {
    perspective: 1000px;
}

.price-tag {
    animation: floatTag 4s ease-in-out infinite;
}

@keyframes floatTag {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    25% { transform: translateY(-10px) rotateY(5deg); }
    50% { transform: translateY(-5px) rotateY(0deg); }
    75% { transform: translateY(-10px) rotateY(-5deg); }
}

/* Feature Pill Hover */
.feature-pill {
    transition: all 0.3s ease;
}

.feature-pill:hover {
    transform: scale(1.05);
    border-color: rgba(139, 92, 246, 0.5);
}

/* Stat Cards */
.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.05);
}

/* Scroll Indicator */
.scroll-indicator {
    animation: fadeInUp 1s ease 1s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Hero Section Animations - GSAP will handle from() animations */
.hero-title,
.hero-subtitle,
.hero-cta {
    will-change: opacity, transform;
}

/* Section Title */
.section-title {
    will-change: opacity, transform;
}

/* About Section Animations */
.about-image,
.about-text {
    will-change: opacity, transform;
}

/* Curtain Reveal Effect */
.curtain-reveal {
    will-change: opacity, transform;
}

/* Pre-book Button Special Effect */
.prebook-btn {
    position: relative;
    overflow: hidden;
}

.prebook-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.prebook-btn:hover::before {
    left: 100%;
}

/* Canvas Styles */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#automation-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.5;
}

/* tsParticles Container */
#tsparticles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .price-tag p.text-5xl {
        font-size: 3rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00d4ff, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8b5cf6, #ec4899);
}

/* Selection Color */
::selection {
    background: rgba(139, 92, 246, 0.5);
    color: white;
}

/* Loading Animation for Images */
img {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   TESTIMONIALS SECTION STYLES
   ============================================ */

/* Testimonials Wrapper */
.testimonials-wrapper {
    position: relative;
}

/* Custom scrollbar for testimonials - visible on PC */
.testimonials-scroll {
    scrollbar-width: thin;
    scrollbar-color: #8b5cf6 rgba(26, 26, 46, 0.6);
}

.testimonials-scroll::-webkit-scrollbar {
    height: 8px;
}

.testimonials-scroll::-webkit-scrollbar-track {
    background: rgba(26, 26, 46, 0.6);
    border-radius: 4px;
}

.testimonials-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #00d4ff, #8b5cf6, #ec4899);
    border-radius: 4px;
}

.testimonials-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #8b5cf6, #ec4899, #00d4ff);
}

/* Testimonial Card Styles */
.testimonial-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: grab;
}

.testimonial-card:active {
    cursor: grabbing;
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.15),
                0 0 30px rgba(139, 92, 246, 0.1);
}

/* Neon border effect on hover */
.testimonial-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00d4ff, #8b5cf6, #ec4899, #00d4ff);
    border-radius: 1.1rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    background-size: 300% 300%;
    animation: borderGlow 3s ease infinite;
}

.testimonial-card:hover::before {
    opacity: 1;
}

@keyframes borderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Flag Container Animation */
.flag-container {
    transition: transform 0.3s ease;
}

.testimonial-card:hover .flag-container {
    transform: scale(1.1);
}

.flag-container img {
    display: inline-block;
    transition: transform 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.testimonial-card:hover .flag-container img {
    transform: scale(1.15);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

/* Stars Animation */
.stars {
    transition: transform 0.3s ease;
}

.testimonial-card:hover .stars {
    transform: scale(1.1);
}

.stars span {
    display: inline-block;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

/* Custom Horizontal Scroll Progress Indicator */
.testimonials-scroll::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #8b5cf6, #ec4899);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Responsive adjustments for testimonials */
@media (max-width: 768px) {
    .testimonial-card {
        width: 280px !important;
    }
    
    .testimonials-wrapper > div:first-child,
    .testimonials-wrapper > div:nth-child(2) {
        width: 2rem;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        width: 260px !important;
    }
}

/* Scroll Arrow Buttons */
.scroll-arrow-btn {
    border: 1px solid rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.scroll-arrow-btn:hover {
    border-color: rgba(0, 212, 255, 0.8);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.scroll-arrow-btn:active {
    transform: scale(0.95);
}
