/* CSS Variables */
:root {
    --primary-color: #8B5CF6;
    --primary-light: #A78BFA;
    --primary-dark: #7C3AED;
    --secondary-color: #06B6D4;
    --background-dark: #0F0F1A;
    --background-card: #1A1A2E;
    --background-card-hover: #252542;
    --text-primary: #FFFFFF;
    --text-secondary: #C0C0D0;
    --gradient-start: #8B5CF6;
    --gradient-end: #06B6D4;
    --border-color: rgba(139, 92, 246, 0.2);
    --glass-bg: rgba(15, 15, 26, 0.95);
    --shadow-color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] {
    --background-dark: #F3F4F6;
    --background-card: #FFFFFF;
    --background-card-hover: #F9FAFB;
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --border-color: rgba(139, 92, 246, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --shadow-color: rgba(139, 92, 246, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    transition: background 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.btn-nav {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding: 10px 20px;
    border-radius: 25px;
    color: var(--text-primary) !important;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn img {
    width: 24px;
    height: 24px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--text-primary);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-mockup {
    position: relative;
    width: 300px;
}

.phone-mockup img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(6, 182, 212, 0.3));
    border-radius: 40px;
    z-index: -1;
    filter: blur(40px);
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Features Section */
.features {
    background: linear-gradient(180deg, var(--background-dark) 0%, var(--background-card) 50%, var(--background-dark) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: var(--background-card-hover);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Screenshots Section */
.screenshots {
    background: var(--background-dark);
}

.screenshots-slider {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.screenshot-item {
    text-align: center;
}

.screenshot-item img {
    width: 220px;
    height: auto;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.screenshot-item:hover img {
    transform: scale(1.05);
}

.screenshot-item p {
    margin-top: 15px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Categories Section */
.categories {
    background: linear-gradient(180deg, var(--background-dark) 0%, var(--background-card) 100%);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.category-card {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.15);
}

.category-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.category-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* How It Works Section */
.how-it-works {
    background: var(--background-card);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.step-card {
    text-align: center;
    padding: 20px;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 20px;
}

.step-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Download Section */
.download {
    background: linear-gradient(180deg, var(--background-card) 0%, var(--background-dark) 100%);
    text-align: center;
}

.download-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.download-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.download-badges {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.download-badges span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    background: var(--background-dark);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-tagline {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 2.8rem;
    }

    .features-grid,
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background-dark);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        margin: 0 auto 30px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .phone-mockup {
        width: 250px;
    }

    .features-grid,
    .categories-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .screenshots-slider {
        flex-direction: column;
        align-items: center;
    }

    .screenshot-item img {
        width: 200px;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }

    .download-badges {
        flex-direction: column;
        gap: 15px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-icon {
    width: 20px;
    height: 20px;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        text-align: center;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .features-grid, 
    .categories-grid,
    .testimonials-grid,
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Disable complex 3D transforms on mobile for performance */
    .tilt-card:hover,
    .interactive-card:hover {
        transform: translateY(-5px);
    }
    
    /* Adjust animations for mobile */
    .slide-in-left,
    .slide-in-right {
        transform: translateY(20px);
    }
    
    .slide-in-left.visible,
    .slide-in-right.visible {
        transform: translateY(0);
    }
    
    /* Increase touch targets */
    .nav-links a,
    .btn,
    .social-btn,
    .faq-question {
        min-height: 44px;
    }
    
    .feature-card, 
    .category-card, 
    .step-card {
        padding: 25px 20px;
    }
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgba(139, 92, 246, 0.1);
    transform: rotate(15deg);
}

.theme-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 400px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 25px;
    z-index: 2000;
    box-shadow: 0 10px 30px var(--shadow-color);
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.cookie-icon {
    font-size: 1.5rem;
}

.cookie-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.cookie-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.btn-accept {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: #fff;
}

.btn-accept:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-decline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-decline:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 9999;
    box-shadow: 0 0 10px var(--primary-color);
    transition: width 0.1s ease-out;
}

/* Ambient Background Shapes */
.ambient-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    animation: floatShape 20s infinite alternate;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-dark);
    top: -100px;
    left: -100px;
    animation-delay: -5s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    bottom: -50px;
    right: -50px;
    animation-delay: -2s;
}

@keyframes floatShape {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(100px, 50px) rotate(45deg);
    }
}

/* Glitch Effect */
.glitch-wrapper {
    position: relative;
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-dark);
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

[data-theme="light"] .glitch::before,
[data-theme="light"] .glitch::after {
    background: var(--background-dark); /* Use light theme bg */
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); transform: skew(0.85deg); }
    5% { clip: rect(70px, 9999px, 11px, 0); transform: skew(0.4deg); }
    10% { clip: rect(26px, 9999px, 83px, 0); transform: skew(0.03deg); }
    15% { clip: rect(6px, 9999px, 72px, 0); transform: skew(0.84deg); }
    20% { clip: rect(65px, 9999px, 4px, 0); transform: skew(0.28deg); }
    25% { clip: rect(14px, 9999px, 24px, 0); transform: skew(0.62deg); }
    30% { clip: rect(92px, 9999px, 53px, 0); transform: skew(0.16deg); }
    35% { clip: rect(22px, 9999px, 4px, 0); transform: skew(0.42deg); }
    40% { clip: rect(76px, 9999px, 18px, 0); transform: skew(0.08deg); }
    45% { clip: rect(38px, 9999px, 98px, 0); transform: skew(0.97deg); }
    50% { clip: rect(59px, 9999px, 64px, 0); transform: skew(0.06deg); }
    55% { clip: rect(19px, 9999px, 12px, 0); transform: skew(0.28deg); }
    60% { clip: rect(87px, 9999px, 5px, 0); transform: skew(0.04deg); }
    65% { clip: rect(60px, 9999px, 42px, 0); transform: skew(0.14deg); }
    70% { clip: rect(35px, 9999px, 81px, 0); transform: skew(0.82deg); }
    75% { clip: rect(53px, 9999px, 6px, 0); transform: skew(0.49deg); }
    80% { clip: rect(45px, 9999px, 30px, 0); transform: skew(0.02deg); }
    85% { clip: rect(13px, 9999px, 56px, 0); transform: skew(0.63deg); }
    90% { clip: rect(97px, 9999px, 28px, 0); transform: skew(0.43deg); }
    95% { clip: rect(5px, 9999px, 98px, 0); transform: skew(0.16deg); }
    100% { clip: rect(82px, 9999px, 6px, 0); transform: skew(0.73deg); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); transform: skew(0.89deg); }
    5% { clip: rect(52px, 9999px, 74px, 0); transform: skew(0.05deg); }
    10% { clip: rect(79px, 9999px, 85px, 0); transform: skew(0.89deg); }
    15% { clip: rect(75px, 9999px, 5px, 0); transform: skew(0.13deg); }
    20% { clip: rect(67px, 9999px, 61px, 0); transform: skew(0.96deg); }
    25% { clip: rect(14px, 9999px, 79px, 0); transform: skew(0.27deg); }
    30% { clip: rect(1px, 9999px, 66px, 0); transform: skew(0.74deg); }
    35% { clip: rect(86px, 9999px, 30px, 0); transform: skew(0.29deg); }
    40% { clip: rect(23px, 9999px, 98px, 0); transform: skew(0.09deg); }
    45% { clip: rect(34px, 9999px, 14px, 0); transform: skew(0.88deg); }
    50% { clip: rect(3px, 9999px, 46px, 0); transform: skew(0.64deg); }
    55% { clip: rect(4px, 9999px, 24px, 0); transform: skew(0.76deg); }
    60% { clip: rect(69px, 9999px, 67px, 0); transform: skew(0.97deg); }
    65% { clip: rect(54px, 9999px, 79px, 0); transform: skew(0.44deg); }
    70% { clip: rect(11px, 9999px, 13px, 0); transform: skew(0.62deg); }
    75% { clip: rect(70px, 9999px, 24px, 0); transform: skew(0.85deg); }
    80% { clip: rect(93px, 9999px, 9px, 0); transform: skew(0.29deg); }
    85% { clip: rect(8px, 9999px, 57px, 0); transform: skew(0.11deg); }
    90% { clip: rect(57px, 9999px, 50px, 0); transform: skew(0.33deg); }
    95% { clip: rect(37px, 9999px, 30px, 0); transform: skew(0.77deg); }
    100% { clip: rect(58px, 9999px, 93px, 0); transform: skew(0.66deg); }
}

/* Reveal Image Animation */
.reveal-image {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transition: all 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.reveal-image.visible {
    opacity: 1;
    clip-path: inset(0 0 0 0);
}

/* Large Screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(139, 92, 246, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-2px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(2px);
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(139, 92, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(139, 92, 246, 0.6), 0 0 30px rgba(6, 182, 212, 0.4);
    }
    100% {
        box-shadow: 0 0 5px rgba(139, 92, 246, 0.3);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes wave {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(-5px) rotate(-5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.hero-text,
.hero-image,
.feature-card,
.category-card,
.step-card {
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(2),
.category-card:nth-child(2),
.step-card:nth-child(2) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(3),
.category-card:nth-child(3),
.step-card:nth-child(3) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(4),
.category-card:nth-child(4),
.step-card:nth-child(4) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(5),
.category-card:nth-child(5) {
    animation-delay: 0.4s;
}

.feature-card:nth-child(6),
.category-card:nth-child(6) {
    animation-delay: 0.5s;
}

/* Scroll Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.zoom-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.zoom-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Enhanced Hover Effects */
.pulse-on-hover:hover {
    animation: pulse 1s ease-in-out;
}

.bounce-on-hover:hover {
    animation: bounce 0.6s ease-in-out;
}

.shake-on-hover:hover {
    animation: shake 0.5s ease-in-out;
}

.glow-on-hover:hover {
    animation: glow 2s ease-in-out infinite;
}

.rotate-on-hover:hover {
    animation: rotate 0.5s ease-in-out;
}

.wave-on-hover:hover {
    animation: wave 0.8s ease-in-out;
}

/* Interactive Elements */
.interactive-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.3);
}

.magnetic-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.magnetic-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.magnetic-button:hover::before {
    width: 300px;
    height: 300px;
}

.text-reveal {
    position: relative;
    overflow: hidden;
}

.text-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transform: translateX(-100%);
    animation: textReveal 1.5s ease-in-out infinite;
}

@keyframes textReveal {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* 3D Tilt Effect */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.tilt-card:hover {
    transform: perspective(1000px) rotateX(10deg) rotateY(10deg) scale(1.05);
}

/* Gradient Animation */
.gradient-animate {
    background: linear-gradient(-45deg, #8B5CF6, #06B6D4, #8B5CF6, #06B6D4);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
}

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

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Enhanced Feature Icons */
.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotateY(360deg);
    animation: bounce 0.6s ease;
}

/* Category Icons Animation */
.category-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.3) rotateZ(10deg);
    animation: pulse 0.8s ease;
}

/* Step Numbers Animation */
.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.step-card:hover .step-number {
    transform: scale(1.1) rotateZ(360deg);
    animation: glow 1s ease-in-out infinite alternate;
}

/* Enhanced Navigation Links */
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-links a:hover {
    color: var(--text-primary);
}

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

/* Testimonials Section */
.testimonials {
    background: var(--background-dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
}

.testimonial-stars {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 1rem;
}

.author-title {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* FAQ Section */
.faq {
    background: linear-gradient(180deg, var(--background-card) 0%, var(--background-dark) 100%);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
}

.faq-question {
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-light);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 30px 25px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.5);
}

/* Particles Container */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-100px) translateX(50px);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-50px) translateX(-30px);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-150px) translateX(20px);
        opacity: 0.5;
    }
}

/* Hamburger Menu Animation */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Counter Animation */
.stat-number {
    display: inline-block;
}

.stat-number.counting {
    animation: countPulse 0.5s ease;
}

@keyframes countPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Responsive Testimonials & FAQ */
@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-question {
        padding: 20px;
        font-size: 0.95rem;
    }
    
    .faq-answer p {
        padding: 0 20px 20px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}
