/* General Styles */
body, html {
    overflow-x: hidden;
}
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    background-color: #f3f3f3;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Header */
header {
    background-color: white;
    padding: 1rem 2rem;
    border-bottom: 1px solid #e0e0e0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo a {
    font-size: 2rem;
    font-weight: 800;
    color: #46178f;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav ul li a {
    font-weight: 700;
}

.auth-buttons a {
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 700;
}

.auth-buttons .login-btn {
    margin-right: 1rem;
}

.auth-buttons .signup-btn {
    background-color: #26890c;
    color: white;
}

/* Main Content */
main {
    padding: 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
}

.hero-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-buttons a {
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 700;
    margin: 0 0.5rem;
}

.hero-buttons .buy-btn {
    background-color: #46178f;
    color: white;
}

.hero-buttons .signup-btn-secondary {
    background-color: #e0e0e0;
}

/* Features Section */
.features {
    text-align: center;
    padding: 4rem 0;
}

.features h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card img {
    max-width: 100%;
    border-radius: 10px;
}

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

/* Unlock Features Section */
.unlock-features {
    background-color: #46178f;
    color: white;
    padding: 4rem 2rem;
    text-align: center;
}

.unlock-features h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.unlock-features ul {
    display: inline-block;
    text-align: left;
}

.unlock-features ul li {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* How to Kickstart Section */
.how-to-kickstart {
    padding: 4rem 2rem;
    text-align: center;
}

.how-to-kickstart h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.how-to-kickstart ol {
    display: inline-block;
    text-align: left;
    max-width: 600px;
}

.how-to-kickstart ol li {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.app-buttons a {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 700;
    margin: 1rem 0.5rem;
    background-color: #333;
    color: white;
}

/* Pricing Plans Section */
.pricing-plans {
    padding: 4rem 2rem;
    text-align: center;
}

.pricing-plans h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

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

.pricing-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.pricing-card.popular {
    border: 3px solid #46178f;
}

.pricing-card h3 {
    font-size: 1.5rem;
}

.price {
    font-size: 2rem;
    font-weight: 800;
    margin: 1rem 0;
}

.buy-now-btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 700;
    background-color: #26890c;
    color: white;
    margin-bottom: 1rem;
}

.pricing-card ul {
    text-align: left;
}

.pricing-card ul li {
    margin-bottom: 0.5rem;
}

/* FAQ Section */
.faq {
    padding: 4rem 2rem;
    text-align: center;
}

.faq h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.faq ul li {
    margin-bottom: 1rem;
}

.faq ul li a {
    font-weight: 700;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 4rem 2rem;
}

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

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.social-media {
    text-align: center;
    margin-bottom: 2rem;
}

.social-media ul {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.copyright {
    text-align: center;
}

.app-badges {
    margin-top: 1rem;
}

.app-badges img {
    height: 40px;
    margin: 0 0.5rem;
}

/* Urdu Text Styling */
.urdu-text {
    font-family: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;
    font-size: 1.2em;
    color: #333;
    margin-left: 0.5rem;
    font-weight: 700;
    direction: rtl;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.title-line {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.star-left, .star-right {
    font-size: 1em;
}

.title-text {
    font-size: 1em;
}

.hero-title .urdu-text {
    display: block;
    font-size: 1.2em;
    color: white;
    font-weight: 700;
    text-align: center;
}

/* Basic Reset and Layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 2rem;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #333;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-primary, .btn-secondary, .btn-danger {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #4CAF50;
    color: white;
}

.btn-secondary {
    background: #2196F3;
    color: white;
}

.btn-danger {
    background: #f44336;
    color: white;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding: 2rem 0;
    text-align: center;
    color: white;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

/* Learning Levels */
.learning-levels {
    margin: 3rem 0;
}

.learning-levels h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.level-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.level-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    color: #333;
}

.level-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

.level-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.level-progress {
    margin-top: 1rem;
}

.progress-bar {
    background: #f0f0f0;
    border-radius: 10px;
    height: 8px;
    margin-bottom: 0.5rem;
}

.progress-fill {
    background: linear-gradient(90deg, #4CAF50, #45a049);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Activities Grid */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.activity-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #333;
}

.activity-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}



/* Custom styles for the activities section */
.activities-section {
    padding: 4rem 2rem;
    text-align: center;
    background-color: #f7f9fc;
    min-height: 300px; /* Ensure section is visible */
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.activities-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #46178f;
}

.activities-section .activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
    margin-top: 2rem;
    justify-content: center;
}

.activities-section .activity-card {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 20px;
    padding: 1.8rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    color: #333;
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 180px;
    border: none;
    position: relative;
    overflow: hidden;
}

.activities-section .activity-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    background: linear-gradient(145deg, #f0f0f0, #eaeaea);
}

.activities-section .activity-card span {
    position: relative;
    z-index: 1;
}

.activities-section .activity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-20deg);
    transition: all 0.7s ease;
}

    left: 100%;
}

.active-activity {
    border: 2px solid #4CAF50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.7);
}

/* Quick Access Section */
.quick-access-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    color: #333;
    text-align: center;
}

.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.quick-card {
    background: white;
    border-radius: 15px;
    padding: 2rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.quick-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: #667eea;
}

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

.quick-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #667eea;
}

.quick-card p {
    color: #666;
    font-size: 0.9rem;
}

.menu-hint {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.menu-hint p {
    margin: 0;
    font-size: 1rem;
}

.activity-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.activity-icon.gold {
    color: #ffd700;
}

.stars {
    margin-top: 0.5rem;
    font-size: 1.2rem;
}

/* Level Content */
.level-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    color: #333;
}

.level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.back-btn {
    background: #666;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 15px 15px 0 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

/* Fullscreen Modal */
.modal:fullscreen {
    background: rgba(0, 0, 0, 1);
}

.modal:fullscreen .modal-content {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
}

.modal:fullscreen .modal-header {
    display: none;
}

.modal:fullscreen #gameContent {
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

/* Game Content Styles */
#gameContent {
    padding: 2rem;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.header-left h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    color: #333;
}

.header-left p {
    margin: 0;
    color: #666;
}

.header-right {
    display: flex;
    gap: 1rem;
}

.fullscreen-btn, .exit-fullscreen-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.fullscreen-btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

.exit-fullscreen-btn {
    background: #f44336;
}

.exit-fullscreen-btn:hover {
    background: #d32f2f;
    transform: translateY(-2px);
}

/* Progress Dashboard */
.progress-dashboard {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    color: #333;
}

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

.progress-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.progress-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.progress-number {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    margin: 0.5rem 0;
}

/* Auth Modal Styles */
.auth-form {
    padding: 2rem;
}

.input-field {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
}

.input-field:focus {
    outline: none;
    border-color: #667eea;
}

.full-width {
    width: 100%;
}

.divider {
    text-align: center;
    margin: 1rem 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    background: white;
    padding: 0 1rem;
    color: #666;
}

.google-btn {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.google-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.auth-switch {
    text-align: center;
    padding: 1rem;
}

.auth-switch a {
    color: #667eea;
    text-decoration: none;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 90%;
    max-width: 320px;
    height: 100vh;
    background: white;
    z-index: 99999;
    transition: left 0.3s ease;
    padding: 0;
    box-shadow: 2px 0 20px rgba(0,0,0,0.5);
    overflow-y: auto;
}

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

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.mobile-nav-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.mobile-nav-close {
    background: rgba(255,255,255,0.2);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-close:hover {
    background: rgba(255,255,255,0.4);
}

.mobile-nav-items {
    padding: 1rem 0;
}

.mobile-nav-item {
    display: block;
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 1px solid #eee;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
    width: 100%;
    transition: all 0.3s ease;
}

.mobile-nav-item:hover {
    background: #f8f9ff;
    color: #667eea;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99998;
}

.mobile-overlay.active {
    display: block;
}

/* 3D Effects and Attractive Animations */

/* 3D Floating Background Elements */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(118, 75, 162, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
    animation: floatingBg 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatingBg {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

/* 3D Level Cards */
.level-card {
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.level-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
    opacity: 0;
}

.level-card:hover::before {
    animation: shimmer 1.5s ease-in-out;
    opacity: 1;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.level-card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.1),
        0 0 0 1px rgba(255,255,255,0.1),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

/* 3D Level Icons */
.level-icon {
    font-size: 3rem;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.level-card:hover .level-icon {
    transform: rotateY(360deg) scale(1.2);
    text-shadow: 
        0 0 20px rgba(255,255,255,0.5),
        0 0 40px rgba(102, 126, 234, 0.3);
}

/* 3D Quick Cards */
.quick-card {
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.quick-card::after {
    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;
}

.quick-card:hover::after {
    left: 100%;
}

.quick-card:hover {
    transform: translateY(-8px) rotateX(10deg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* 3D Quick Icons */
.quick-icon {
    font-size: 2.5rem;
    transform-style: preserve-3d;
    transition: all 0.4s ease;
    display: inline-block;
}

.quick-card:hover .quick-icon {
    transform: rotateY(180deg) scale(1.1);
    filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.5));
}

/* 3D Progress Cards */
.progress-card {
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    opacity: 0;
    transition: opacity 0.3s;
}

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

.progress-card:hover {
    transform: translateY(-5px) rotateX(5deg);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.progress-icon {
    font-size: 2rem;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    display: inline-block;
}

.progress-card:hover .progress-icon {
    transform: rotateZ(360deg) scale(1.2);
    filter: drop-shadow(0 0 8px rgba(102, 126, 234, 0.4));
}

/* 3D Hero Title */
.hero-title {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.title-text {
    display: inline-block;
    transform-style: preserve-3d;
    animation: titleFloat 6s ease-in-out infinite;
    text-shadow: 
        0 1px 0 #ccc,
        0 2px 0 #c9c9c9,
        0 3px 0 #bbb,
        0 4px 0 #b9b9b9,
        0 5px 0 #aaa,
        0 6px 1px rgba(0,0,0,.1),
        0 0 5px rgba(0,0,0,.1),
        0 1px 3px rgba(0,0,0,.3),
        0 3px 5px rgba(0,0,0,.2),
        0 5px 10px rgba(0,0,0,.25);
}

@keyframes titleFloat {
    0%, 100% { transform: translateY(0px) rotateX(0deg); }
    50% { transform: translateY(-10px) rotateX(5deg); }
}

/* 3D Stars Animation */
.star-left, .star-right {
    display: inline-block;
    animation: starRotate 4s linear infinite;
    transform-style: preserve-3d;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
}

.star-right {
    animation-direction: reverse;
}

@keyframes starRotate {
    0% { transform: rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateY(360deg) rotateZ(360deg); }
}

/* 3D Feature Items */
.feature-item {
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.feature-item:hover::before {
    left: 100%;
}

.feature-item:hover {
    transform: translateY(-3px) rotateX(10deg);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* 3D Mobile Nav Items */
.mobile-nav-item {
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-nav-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.4s;
}

.mobile-nav-item:hover::after {
    left: 100%;
}

.mobile-nav-item:hover {
    transform: translateX(10px) rotateY(5deg);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 3D Buttons */
.btn-primary, .btn-secondary, .btn-danger {
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-primary::before, .btn-secondary::before, .btn-danger::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;
}

.btn-primary:hover::before, .btn-secondary:hover::before, .btn-danger:hover::before {
    left: 100%;
}

.btn-primary:hover, .btn-secondary:hover, .btn-danger:hover {
    transform: translateY(-2px) rotateX(10deg);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* 3D Floating Particles */
.hero-section::after {
    content: '✨ 🌟 ⭐ 💫 🎨 📚 🎯 🏆';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    font-size: 1.5rem;
    opacity: 0.1;
    animation: floatingParticles 25s linear infinite;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
}

@keyframes floatingParticles {
    0% { transform: translateX(-100%) translateY(0px); }
    100% { transform: translateX(100%) translateY(-50px); }
}

/* 3D Progress Bars */
.progress-bar {
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 3D Menu Toggle */
.menu-toggle {
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    transform: rotateY(180deg) scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 3D Logo */
.logo {
    display: inline-block;
    animation: logoFloat 3s ease-in-out infinite;
    transform-style: preserve-3d;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px) rotateZ(0deg); }
    50% { transform: translateY(-5px) rotateZ(5deg); }
}

/* Hide fullscreen popup message */
*:fullscreen::backdrop {
    background: transparent !important;
}

/* Hide browser fullscreen notification */
:fullscreen {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Prevent fullscreen popup */
*::-webkit-full-screen-ancestor {
    display: none !important;
}

*::-webkit-full-screen {
    background: transparent !important;
}

/* Hide fullscreen controls */
video::-webkit-media-controls-fullscreen-button {
    display: none !important;
}

/* Additional fullscreen fixes */
#gameModal:fullscreen,
#gameModal:-webkit-full-screen,
#gameModal:-moz-full-screen,
#gameModal:-ms-fullscreen {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    width: 100vw !important;
    height: 100vh !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 999999 !important;
}

/* Better element positioning in fullscreen */
#gameModal:fullscreen .abc-learning-game,
#gameModal:-webkit-full-screen .abc-learning-game,
#gameModal:-moz-full-screen .abc-learning-game {
    padding-top: 60px !important;
    height: 100vh !important;
    width: 100vw !important;
}

#gameModal:fullscreen .alphabet-grid,
#gameModal:-webkit-full-screen .alphabet-grid,
#gameModal:-moz-full-screen .alphabet-grid {
    padding-top: 20px !important;
}

/* Fullscreen for all learning activities */
#gameModal:fullscreen .abc-center,
#gameModal:fullscreen .colors-learning,
#gameModal:fullscreen .shapes-learning,
#gameModal:-webkit-full-screen .abc-center,
#gameModal:-webkit-full-screen .colors-learning,
#gameModal:-webkit-full-screen .shapes-learning {
    height: 100vh !important;
    width: 100vw !important;
    padding: 40px !important;
}

/* Subtle fullscreen improvements */
#gameModal:fullscreen .letter-card {
    min-height: 120px !important;
    padding: 12px 8px !important;
}

#gameModal:fullscreen .letter-large {
    font-size: 2.2rem !important;
}

#gameModal:fullscreen .letter-small {
    font-size: 1.6rem !important;
}

#gameModal:fullscreen .letter-emoji {
    font-size: 1.8rem !important;
}

#gameModal:fullscreen .letter-word {
    font-size: 1rem !important;
}

#gameModal:fullscreen .letter-sound {
    font-size: 0.8rem !important;
}

#gameModal:fullscreen .alphabet-grid {
    gap: 15px !important;
    padding: 25px !important;
}

/* Fallback fullscreen styles */
.fallback-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.fallback-fullscreen .abc-learning-game,
.fallback-fullscreen .abc-center,
.fallback-fullscreen .colors-learning,
.fallback-fullscreen .shapes-learning {
    height: 100vh !important;
    width: 100vw !important;
    padding: 40px !important;
}

/* Header Button and User Icon Fixes */

/* Small Button Styles */
.btn-small {
    padding: 8px 16px !important;
    font-size: 0.9rem !important;
    border-radius: 6px !important;
    margin: 0 5px !important;
}

/* Small User Photo */
.user-photo-small {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    margin-right: 8px !important;
    border: 2px solid #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

/* Small User Name */
.user-name-small {
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    margin-right: 10px !important;
}

/* User Section Alignment */
.user-section {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.user-info {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Auth Section Alignment */
.auth-section {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Moving Banner Styles */
.moving-banner {
    background: linear-gradient(90deg, #667eea, #764ba2, #ff6b6b, #4ecdc4, #45b7d1);
    background-size: 500% 100%;
    animation: gradientMove 10s ease infinite;
    color: white;
    padding: 8px 0;
    overflow: hidden;
    position: relative;
    z-index: 100;
}

.banner-content {
    white-space: nowrap;
    animation: scrollBanner 40s linear infinite;
    font-weight: 600;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

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

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 2rem;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    header, main, .unlock-features, .how-to-kickstart, .pricing-plans, .faq, footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: white;
    }

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

    .hamburger {
        display: block;
    }

    nav {
        flex-wrap: wrap;
    }

    .auth-section {
        gap: 8px;
    }
    
    .user-section {
        gap: 10px;
    }
    
    .user-name-small {
        font-size: 0.8rem;
    }
    
    .user-photo-small {
        width: 28px;
        height: 28px;
    }
    
    .btn-small {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .urdu-text {
        display: block;
        margin-left: 0;
        margin-top: 0.25rem;
    }

    .menu-toggle {
        display: block;
        font-size: 1.8rem;
        background: none;
        border: none;
        cursor: pointer;
        color: #333;
        padding: 8px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .menu-toggle:hover {
        background: rgba(102, 126, 234, 0.1);
        color: #667eea;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-title .title-text {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .level-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .level-card {
        padding: 1.5rem;
    }
    
    .activities-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .activity-card {
        padding: 1.2rem;
    }
    
    .activity-card h3 {
        font-size: 1.2rem;
    }
    
    .level-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .level-header h3 {
        font-size: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 90vh;
    }
    
    .game-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-right {
        width: 100%;
        justify-content: center;
    }
    
    #gameContent {
        padding: 1rem;
    }
    
    .progress-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .progress-card {
        padding: 1rem;
    }
    
    .progress-card h4 {
        font-size: 0.9rem;
    }
    
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .brand-name {
        font-size: 1.2rem;
    }
    
    .header {
        padding: 0.8rem 0;
    }

    .level-card:hover {
        transform: translateY(-5px) rotateX(3deg) rotateY(3deg);
    }
    
    .quick-card:hover {
        transform: translateY(-5px) rotateX(5deg);
    }
    
    .title-text {
        text-shadow: 
            0 1px 0 #ccc,
            0 2px 0 #c9c9c9,
            0 3px 0 #bbb,
            0 0 5px rgba(0,0,0,.1);
    }

    #gameModal:fullscreen .letter-card,
    .fallback-fullscreen .letter-card {
        min-height: 80px !important;
        padding: 8px 4px !important;
    }
    
    #gameModal:fullscreen .letter-large,
    .fallback-fullscreen .letter-large {
        font-size: 1.4rem !important;
    }
    
    #gameModal:fullscreen .letter-small,
    .fallback-fullscreen .letter-small {
        font-size: 1rem !important;
    }
    
    #gameModal:fullscreen .letter-emoji,
    .fallback-fullscreen .letter-emoji {
        font-size: 1.1rem !important;
    }
    
    #gameModal:fullscreen .letter-word,
    .fallback-fullscreen .letter-word {
        font-size: 0.6rem !important;
    }
    
    #gameModal:fullscreen .letter-sound,
    .fallback-fullscreen .letter-sound {
        font-size: 0.5rem !important;
    }

    .feature-cards, .pricing-cards, .footer-links {
        grid-template-columns: 1fr;
    }
}
