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

:root {
    --primary-yellow: #FFD700;
    --dark-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --accent-green: #4ade80;
    --accent-red: #ef4444;
    --gradient-start: #FFD700;
    --gradient-end: #FFA500;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
}

.animated-bg::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-25%, -25%) scale(1); }
    50% { transform: translate(-25%, -25%) scale(1.1); }
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.login-btn {
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    color: var(--dark-bg);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 5%;
    position: relative;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, var(--primary-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    max-width: 700px;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.cta-primary, .cta-secondary {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.cta-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--dark-bg);
    border: none;
}

.cta-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4);
}

.cta-secondary {
    background: transparent;
    color: var(--primary-yellow);
    border: 2px solid var(--primary-yellow);
}

.cta-secondary:hover {
    background: var(--primary-yellow);
    color: var(--dark-bg);
}

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

/* Features Section */
.features {
    padding: 5rem 5%;
    background: rgba(26, 26, 26, 0.5);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, var(--primary-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.2rem;
    margin-bottom: 4rem;
}

/* Feature Row Layout */
.features-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem; /* Add gap between rows */
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.feature-row:nth-child(even) .feature-card {
    order: 2;
}

.feature-row:nth-child(even) .desktop-carousel {
    order: 1;
}

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.5);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.4s ease-out;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border-color: rgb(255, 217, 0);
}

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

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-yellow);
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.8;
}

/* Desktop Carousel */
.desktop-carousel {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid rgba(255, 215, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.desktop-carousel-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
}

.desktop-carousel-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.desktop-carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    height: 100%;
}

.desktop-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.311);
    color: var(--dark-bg);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 0.545);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}

.desktop-carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.desktop-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.desktop-carousel-dot.active {
    background: var(--primary-yellow);
    transform: scale(1.3);
}

/* Mobile Carousel Section */
.mobile-showcase {
    padding: 5rem 5%;
    text-align: center;
}

.mobile-carousel-container {
    position: relative;
    max-width: 380px;
    margin: 3rem auto;
    perspective: 1000px;
}

.phone-mockup {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 45px;
    padding: 12px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6),
                0 0 0 1px rgba(255, 215, 0, 0.1);
    border: 3px solid #333;
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: #444;
    border-radius: 10px;
    z-index: 10;
}

.phone-mockup::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 5px;
    background: #444;
    border-radius: 10px;
    z-index: 10;
}

.screen {
    border-radius: 35px;
    overflow: hidden;
    background: #000;
    position: relative;
    height: 720px;
}

.mobile-carousel-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.mobile-carousel-slides {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease-out;
    touch-action: pan-y;
}

.mobile-carousel-slide {
    width: 100%; /* Changed to 100% */
    flex-shrink: 0;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.mobile-carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.mobile-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.mobile-carousel-dot:hover {
    background: rgba(255, 215, 0, 0.6);
    transform: scale(1.2);
}

.mobile-carousel-dot.active {
    background: var(--primary-yellow);
    transform: scale(1.3);
    border-color: var(--primary-yellow);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* Gamification Section */
.gamification {
    padding: 5rem 5%;
    background: rgba(26, 26, 26, 0.8);
}

.game-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.game-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(255, 165, 0, 0.05));
    border-radius: 20px;
    border: 2px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s;
}

.game-card:hover {
    transform: scale(1.05);
    border-color: var(--primary-yellow);
}

.game-stat {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-yellow);
    margin: 1rem 0;
}

.game-label {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Statistics Section */
.stats-section {
    padding: 4rem 5%;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.stat-box {
    padding: 1rem;
}

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

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

/* CTA Section */
.final-cta {
    padding: 8rem 5%;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.1));
}

.final-cta h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.final-cta p {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    padding: 2rem 5%;
    text-align: center;
    background: var(--card-bg);
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

footer p {
    color: var(--text-gray);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .feature-row {
        grid-template-columns: 1fr;
    }
    
    .feature-row:nth-child(even) {
        grid-template-columns: 1fr;
    }
    .feature-row:nth-child(even) .feature-card,
    .feature-row:nth-child(even) .desktop-carousel {
        order: unset;
    }
    .desktop-carousel{
        margin-top: -30px;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    .cta-buttons { flex-direction: column; width: 100%; }
    .cta-primary, .cta-secondary { width: 100%; }
    .section-title { font-size: 2rem; }
    .features-wrapper {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        display: flex;
        gap: 1.5rem;
        padding-bottom: 1rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .desktop-carousel{
        margin-top: -30px;
        margin-bottom: 20px;
    }
    .features-wrapper::-webkit-scrollbar { display: none; }
    .feature-row {
        flex-shrink: 0;
        scroll-snap-align: center;
        width: 90%;
        max-width: 350px;
        grid-template-columns: 1fr;
    }
    .game-features {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        padding-bottom: 1rem;
        gap: 1.5rem;
    }
    .game-card {
        flex-shrink: 0;
        scroll-snap-align: center;
        width: 280px;
    }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .final-cta h2 { font-size: 2.5rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .login-btn { padding: 0.6rem 1.5rem; font-size: 0.9rem; }
    .logo { font-size: 1.5rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .desktop-carousel{
        margin-top: -30px;
        margin-bottom: 20px;
    }
}