:root {
    --bg-color: #050505;
    --text-color: #f0f0f0;
    --text-muted: #a0a0a0;
    --primary: #6d28d9;
    --primary-glow: rgba(109, 40, 217, 0.5);
    --secondary: #2dd4bf;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.08);
    --modal-bg: #111;
    --nav-bg: rgba(5, 5, 5, 0.95);
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

[data-theme="light"] {
    --bg-color: #f8fafc;
    --text-color: #0f172a;
    --text-muted: #64748b;
    --primary: #7c3aed;
    --primary-glow: rgba(124, 58, 237, 0.2);
    --secondary: #0d9488;
    --surface: rgba(0, 0, 0, 0.05);
    --surface-hover: rgba(0, 0, 0, 0.1);
    --border: rgba(0, 0, 0, 0.1);
    --modal-bg: #ffffff;
    --nav-bg: rgba(248, 250, 252, 0.95);
}

[data-theme="light"] .news-ticker {
    background: linear-gradient(90deg, #7c3aed, #ec4899);
}

[data-theme="light"] .game-area {
    background: radial-gradient(circle at 50% 100%, rgba(124, 58, 237, 0.1), #f8fafc);
}

[data-theme="light"] .side-marquee {
    background: #7c3aed;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Blobs */
.blob-bg {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
    border-radius: 50%;
    animation: float 10s infinite ease-in-out alternate;
}

.blob-1 {
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: var(--primary-glow);
}

.blob-2 {
    bottom: 20%;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(45, 212, 191, 0.3);
    animation-delay: -5s;
}

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

/* Floating Putkey Background */
.putkey-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.putkey-float {
    position: absolute;
    top: -50px;
    opacity: 0.07;
    animation: putkey-fall linear infinite;
}

@keyframes putkey-fall {
    0% {
        transform: translateY(-50px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.07;
    }
    90% {
        opacity: 0.07;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.putkey-float:nth-child(odd) { animation-duration: 12s; }
.putkey-float:nth-child(even) { animation-duration: 16s; }
.putkey-float:nth-child(3n) { animation-duration: 20s; }

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 1.6rem;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 5%;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: -1px;
}

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-color);
}

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

.nav-btn {
    background: var(--surface);
    color: var(--text-color);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.nav-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.theme-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.theme-btn:hover {
    background: var(--surface-hover);
    border-color: var(--primary);
    transform: scale(1.1);
}

.sun-icon { display: none; }
.moon-icon { display: block; }

[data-theme="light"] .sun-icon { display: block; }
[data-theme="light"] .moon-icon { display: none; }

[data-theme="light"] .header.scrolled {
    background: rgba(248, 250, 252, 0.8);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-main);
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
    background: #5b21b6;
    transform: translateY(-2px);
    box-shadow: 0 5px 25px var(--primary-glow);
}

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

.btn-secondary:hover {
    background: var(--surface-hover);
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Sections */
.section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(to right, #fff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 100vh;
    padding-top: 8rem;
}

.greeting {
    color: var(--secondary);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.glitch-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    object-fit: cover;
    aspect-ratio: 4/5;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-item {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: var(--surface-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.skill-card:hover {
    transform: translateY(-5px);
    background: var(--surface-hover);
}

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

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

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.skill-card p {
    color: var(--text-muted);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.project-card {
    background: var(--surface);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
}

.project-img {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Courses Section */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.course-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(109, 40, 217, 0.15);
}

.course-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.course-badge.hot {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.course-badge.bestseller {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.course-badge.new {
    background: rgba(45, 212, 191, 0.2);
    color: var(--secondary);
    border: 1px solid rgba(45, 212, 191, 0.3);
}

.course-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.course-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.course-instructor {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem !important;
}

.course-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.course-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.course-meta span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.course-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 1.5rem 0 1rem;
    text-align: center;
}

.course-card .btn {
    width: 100%;
}

.project-info p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.project-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--text-color);
    transform: translateX(5px);
}

/* Contact Section */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--surface);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    text-align: center;
}

.contact-container p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(109, 40, 217, 0.2);
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(109, 40, 217, 0.2);
}

.pricing-card.featured {
    background: linear-gradient(145deg, rgba(109, 40, 217, 0.1), rgba(45, 212, 191, 0.05));
    border-color: var(--primary);
    padding: 4rem 2rem;
}

.pricing-card .badge {
    position: absolute;
    top: 1rem;
    right: -2rem;
    background: var(--primary);
    color: white;
    padding: 0.5rem 3rem;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 2rem;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-card ul li {
    margin-bottom: 1rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.5rem;
}

.pricing-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
}

.package-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.price-period {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.stars {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.review-card p {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.reviewer {
    color: var(--secondary);
    font-weight: 600;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 4rem 5% 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    border: 1px solid var(--border);
    font-weight: 500;
}

.social-links a:hover {
    color: var(--text-color);
    border-color: var(--primary);
    background: var(--surface-hover);
    transform: translateY(-3px);
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-joke {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* News Ticker */
.news-ticker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, var(--primary), #dc2626);
    color: white;
    padding: 0.4rem 0;
    z-index: 1001;
    overflow: hidden;
    font-size: 0.85rem;
    font-weight: 500;
}

.ticker-content {
    display: flex;
    gap: 4rem;
    white-space: nowrap;
    animation: ticker-scroll 30s linear infinite;
}

.ticker-content span {
    flex-shrink: 0;
}

@keyframes ticker-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-200%); }
}

/* Daily Routine Timeline */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.45rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

.timeline-time {
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.timeline-card:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.timeline-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

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

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.faq-question {
    color: var(--secondary);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.faq-answer {
    color: var(--text-muted);
    line-height: 1.8;
}

/* Warning Banner */
.warning-banner {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem 3rem;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(220, 38, 38, 0.05));
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 15px;
    text-align: center;
}

.warning-banner h3 {
    color: #ef4444;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.warning-banner p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* Zubair Pase Game */
.game-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
}

.game-header {
    display: flex;
    justify-content: space-around;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border);
}

.game-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.game-value {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.2rem;
}

.game-area {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    cursor: crosshair;
    background: radial-gradient(circle at 50% 100%, rgba(109, 40, 217, 0.1), transparent);
}

.game-start-screen,
.game-over-screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.game-start-emoji,
.game-over-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.game-start-screen h3,
.game-over-screen h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.game-start-screen p,
.game-over-screen p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.game-final-score {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.game-putkey {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    animation: putkey-game-shake 0.5s ease-in-out infinite;
    z-index: 5;
}

@keyframes putkey-game-shake {
    0%, 100% { transform: translateX(-50%) rotate(0deg); }
    25% { transform: translateX(-50%) rotate(-5deg); }
    75% { transform: translateX(-50%) rotate(5deg); }
}

.pasa {
    position: absolute;
    font-size: 2rem;
    cursor: pointer;
    z-index: 6;
    transition: none;
    user-select: none;
    animation: pasa-wobble 0.4s ease-in-out infinite alternate;
}

.pasa:hover {
    transform: scale(1.3);
}

.pasa.caught {
    animation: pasa-caught 0.3s ease forwards;
}

@keyframes pasa-wobble {
    0% { transform: rotate(-10deg); }
    100% { transform: rotate(10deg); }
}

@keyframes pasa-caught {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(0); opacity: 0; }
}

/* Zubair Run Game - Pixel Arcade Style */
.run-game-area {
    position: relative;
    width: 100%;
    height: 300px;
    background: #000;
    background-image: 
        radial-gradient(circle at 2px 2px, rgba(255,255,255,0.05) 1px, transparent 0);
    background-size: 20px 20px;
    overflow: hidden;
    border-bottom: 8px solid #4a5568;
}

.ground {
    position: absolute;
    bottom: 0;
    width: 200%;
    height: 20px;
    background: #2d3748;
    background-image: linear-gradient(90deg, #1a202c 50%, transparent 50%);
    background-size: 40px 100%;
    animation: ground-scroll 0.5s linear infinite;
}

@keyframes ground-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-40px); }
}

.runner {
    position: absolute;
    bottom: 20px;
    left: 100px;
    font-size: 3.5rem;
    z-index: 5;
    filter: drop-shadow(0 0 10px var(--primary));
    transform-origin: bottom center;
}

.runner.jumping {
    animation: pixel-jump 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pixel-jump {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-160px) scale(1.1); }
    100% { transform: translateY(0) scale(1); }
}

.chaser {
    position: absolute;
    bottom: 20px;
    left: 10px;
    font-size: 3rem;
    z-index: 4;
    animation: chaser-scary 0.4s steps(2) infinite;
}

@keyframes chaser-scary {
    from { transform: translateX(0) scaleX(1); }
    to { transform: translateX(5px) scaleX(1.05); }
}

.obstacle {
    position: absolute;
    bottom: 20px;
    right: -50px;
    font-size: 2.5rem;
    z-index: 3;
    animation: obstacle-spin 1s linear infinite;
}

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


.run-start-screen, .run-over-screen {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    text-align: center;
    padding: 2rem;
}

.run-start-emoji, .run-over-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.run-final-score {
    font-size: 2rem;
    color: var(--secondary);
    margin: 1rem 0;
}

.fart-cloud {
    position: absolute;
    font-size: 2.5rem;
    pointer-events: none;
    z-index: 6;
    animation: fart-dissipate 1s ease-out forwards;
}

@keyframes fart-dissipate {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2) translateY(-50px); opacity: 0; }
}


.catch-text {
    position: absolute;
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    pointer-events: none;
    z-index: 7;
    animation: catch-text-float 0.8s ease forwards;
}

@keyframes catch-text-float {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-40px); opacity: 0; }
}

/* Payment Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* bKash QR Code */
.bkash-qr-container {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 15px;
    max-width: 280px;
    margin: 0 auto;
}

.bkash-qr-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--modal-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: #ef4444;
}

.modal h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.modal-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.hidden {
    display: none !important;
}

/* Payment Method Buttons */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.payment-method-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    font-family: var(--font-main);
}

.payment-method-btn:hover {
    border-color: var(--primary);
    background: var(--surface-hover);
    transform: translateX(5px);
}

.payment-method-btn.latthi-btn {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
}

.payment-method-btn.latthi-btn:hover {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.pm-icon {
    font-size: 2rem;
    min-width: 40px;
    text-align: center;
}

.pm-name {
    font-weight: 600;
    display: block;
}

.pm-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

/* Payment Forms */
.payment-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.payment-form label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    display: block;
}

.payment-form input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.payment-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(109, 40, 217, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.back-btn {
    margin-top: 0.5rem;
}

/* Latthi Section */
.latthi-animation {
    text-align: center;
    font-size: 4rem;
    margin-bottom: 1rem;
    position: relative;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.latthi-emoji {
    animation: putkey-shake 0.5s ease-in-out infinite;
}

.latthi-stick {
    transition: transform 0.2s ease;
}

.latthi-stick.hit {
    animation: latthi-swing 0.3s ease;
}

@keyframes putkey-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

@keyframes latthi-swing {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(-45deg) translateX(-20px); }
    100% { transform: rotate(0deg); }
}

.latthi-counter {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 1rem 0;
}

.latthi-progress {
    width: 100%;
    height: 10px;
    background: var(--surface);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.latthi-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), #ef4444);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.latthi-hit-btn {
    font-size: 1.2rem;
    padding: 1rem;
    animation: pulse-btn 1s ease-in-out infinite;
}

@keyframes pulse-btn {
    0%, 100% { box-shadow: 0 0 20px var(--primary-glow); }
    50% { box-shadow: 0 0 40px var(--primary-glow); }
}

/* Success Screen */
.success-animation {
    text-align: center;
    margin-bottom: 1rem;
}

.success-icon {
    font-size: 5rem;
    animation: success-bounce 0.6s ease;
}

@keyframes success-bounce {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.success-msg {
    color: var(--text-muted);
    text-align: center;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.success-details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.success-details p {
    margin-bottom: 0.3rem;
}

/* Footer Credits */
.footer-credits {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid var(--border);
    display: inline-block;
}

.footer-credits p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-color);
}

.footer-credits b {
    color: var(--secondary);
    font-weight: 600;
}

/* Side Marquee */
.side-marquee {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left bottom;
    background: var(--primary);
    color: white;
    white-space: nowrap;
    padding: 0.5rem 0;
    z-index: 1002;
    width: 100vh;
    overflow: hidden;
}

.marquee-inner {
    display: flex;
    animation: side-marquee-scroll 20s linear infinite;
}

.marquee-inner span {
    padding: 0 2rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

@keyframes side-marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Responsive adjustments for marquee */
@media (max-width: 1200px) {
    .side-marquee {
        display: none; /* Hide on smaller screens to prevent overlap */
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Responsive Design */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-color);
}

@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 7rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: var(--nav-bg);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-item {
        margin: 1rem 0;
    }

    .nav-link {
        display: block;
        padding: 1rem;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .glitch-title {
        font-size: 3rem;
    }

    .section {
        padding: 4rem 5%;
    }
}
