/* 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;
}

@media (max-width: 768px) {
    .urdu-text {
        display: block;
        margin-left: 0;
        margin-top: 0.25rem;
    }
}

/* 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);
}

.activity-card.premium-locked {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border: 2px solid #ffd700;
    position: relative;
    overflow: hidden;
}

.activity-card.premium-locked::before {
    content: '👑';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

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

/* 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;
}

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

.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-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;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .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;
    }
}
/* 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); }
}

/* Responsive 3D Effects */
@media (max-width: 768px) {
    .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);
    }
}