* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Modal Popup Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 35px;
    border-radius: 25px;
    max-width: 650px;
    width: 95%;
    position: relative;
    animation: slideIn 0.4s ease;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.4);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content.ios-modal {
    max-width: 700px;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 40px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.close-btn:hover {
    color: #ff4444;
    transform: rotate(90deg);
}

.modal-content h2 {
    color: #6C5CE7;
    margin-bottom: 25px;
    text-align: center;
    font-size: 2em;
}

.ios-icon {
    font-size: 5em;
    text-align: center;
    margin-bottom: 20px;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.popup-text {
    margin: 25px 0;
    text-align: left;
}

.hindi-text {
    font-size: 17px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 20px;
}

.english-text {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

.popup-text hr {
    margin: 25px 0;
    border: none;
    border-top: 2px solid #e0e0e0;
}

/* iOS Steps */
.ios-steps {
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
}

.step {
    display: flex;
    align-items: start;
    margin: 15px 0;
    padding: 12px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-right: 15px;
    flex-shrink: 0;
}

.step p {
    color: #333;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.popup-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-download {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px 35px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.ios-icon-small {
    font-size: 1.3em;
    margin-right: 8px;
}

.btn-close {
    background: #f0f0f0;
    color: #555;
    padding: 14px 35px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-close:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 20px 80px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    animation: gradientShift 15s ease infinite;
    background-size: 200% 200%;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes float {
    0%, 100% { transform: translate(-25%, -25%) rotate(0deg); }
    50% { transform: translate(-25%, -35%) rotate(180deg); }
}

.hero-content {
    animation: fadeInUp 1s ease;
    position: relative;
    z-index: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-logo {
    width: 130px;
    height: 130px;
    margin-bottom: 20px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

.app-name {
    font-size: 4em;
    font-weight: 900;
    margin-bottom: 15px;
    text-shadow: 3px 3px 15px rgba(0, 0, 0, 0.3);
    animation: pulse 3s ease infinite;
    letter-spacing: 2px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.tagline {
    font-size: 1.4em;
    margin: 15px 0;
    font-weight: 300;
    opacity: 0.95;
}

.tagline.hindi {
    font-size: 1.5em;
    font-weight: 500;
}

.download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #667eea;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.android-btn {
    background: linear-gradient(135deg, #3DDC84 0%, #07C160 100%);
    color: white;
}

.ios-btn-main {
    background: linear-gradient(135deg, #555 0%, #000 100%);
    color: white;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1em;
    opacity: 0.9;
}

/* Features Section */
.features {
    padding: 100px 20px;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 3em;
    margin-bottom: 60px;
    color: #333;
}

.section-title .english {
    display: block;
    font-weight: 800;
}

.section-title .hindi {
    display: block;
    font-size: 0.75em;
    color: #666;
    font-weight: 400;
    margin-top: 12px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    padding: 40px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s;
    animation: fadeInUp 0.6s ease;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 4em;
    margin-bottom: 20px;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.feature-card h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #667eea;
    font-weight: 700;
}

.feature-card p {
    color: #666;
    font-size: 1em;
    margin: 8px 0;
    line-height: 1.6;
}

/* App Preview Section */
.app-preview {
    padding: 100px 20px;
    background: white;
}

.screenshots {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.phone-frame {
    width: 280px;
    height: 560px;
    border: 14px solid #333;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    background: #000;
    transition: all 0.4s;
}

.phone-frame:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 6px;
    background: #555;
    border-radius: 10px;
    z-index: 10;
}

.screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Download Section */
.download-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.download-section .section-title {
    color: white;
}

.download-buttons-main {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 40px 0;
}

.btn-download-big {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #667eea;
    padding: 22px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.4em;
    font-weight: 700;
    transition: all 0.4s;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    border: none;
    cursor: pointer;
}

.btn-download-big:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
}

.btn-download-big.android {
    background: linear-gradient(135deg, #3DDC84 0%, #07C160 100%);
    color: white;
}

.btn-download-big.ios {
    background: linear-gradient(135deg, #555 0%, #000 100%);
    color: white;
}

.btn-download-big svg {
    margin-right: 12px;
}

.download-info {
    font-size: 1.2em;
    margin: 15px 0;
    opacity: 0.95;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 35px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 18px 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease;
    transition: all 0.3s;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-5px);
}

.badge-icon {
    font-size: 1.8em;
    margin-right: 10px;
}

.badge-text {
    font-weight: 600;
    font-size: 1.1em;
}

/* Other App Promotion Section */
.other-app-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.other-app-card {
    background: white;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 1000px;
    margin: 0 auto;
}

.app-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9em;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(245, 87, 108, 0.3);
}

.app-promo-title {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.app-promo-title .english {
    display: block;
    font-weight: 800;
}

.app-promo-title .hindi {
    display: block;
    font-size: 0.8em;
    color: #666;
    font-weight: 500;
    margin-top: 12px;
}

.app-description {
    margin: 30px 0;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-item {
    display: flex;
    align-items: start;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    transition: all 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-emoji {
    font-size: 2.5em;
    margin-right: 15px;
    flex-shrink: 0;
}

.feature-item strong {
    display: block;
    color: #333;
    font-size: 1.2em;
    margin-bottom: 5px;
}

.feature-item p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0;
}

.btn-playstore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3DDC84 0%, #07C160 100%);
    color: white;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.3em;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(61, 220, 132, 0.3);
    margin: 30px 0;
}

.btn-playstore:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(61, 220, 132, 0.5);
}

.btn-playstore svg {
    margin-right: 12px;
}

.app-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
    flex-wrap: wrap;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2.5em;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1em;
    color: #666;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 50px 20px;
    text-align: center;
}

.copyright {
    margin-bottom: 20px;
    font-size: 1.1em;
}

.developer {
    font-size: 1em;
    opacity: 0.9;
    margin-bottom: 25px;
}

.developer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    display: inline-block;
    margin-top: 10px;
}

.developer a:hover {
    color: #764ba2;
    transform: scale(1.05);
}

.social-links {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.social-links p {
    margin-bottom: 15px;
    font-size: 1em;
}

.social-icon {
    display: inline-block;
    color: white;
    text-decoration: none;
    margin: 0 15px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    transition: all 0.3s;
    font-size: 0.95em;
}

.social-icon:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .app-name {
        font-size: 2.8em;
    }
    
    .tagline {
        font-size: 1.2em;
    }
    
    .section-title {
        font-size: 2.2em;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshots {
        flex-direction: column;
        align-items: center;
    }
    
    .phone-frame {
        width: 240px;
        height: 480px;
    }
    
    .trust-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary {
        width: 90%;
        max-width: 350px;
    }
    
    .modal-content {
        padding: 25px;
        width: 95%;
    }
    
    .popup-buttons {
        flex-direction: column;
    }
    
    .btn-download, .btn-close {
        width: 100%;
    }
    
    .other-app-card {
        padding: 30px 20px;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .download-buttons-main {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-download-big {
        width: 90%;
        max-width: 400px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}
/* iOS Modal Specific Styles */
.ios-modal {
    max-width: 800px !important;
}

.info-box {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    padding: 25px;
    border-radius: 15px;
    margin: 20px 0;
    border-left: 5px solid #667eea;
}

.icon-demo {
    background: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 1.5em;
    margin-top: 12px;
    border: 2px dashed #667eea;
}

.step-content {
    flex: 1;
}

.step-content strong {
    display: block;
    color: #667eea;
    font-size: 1.2em;
    margin-bottom: 8px;
}

.step-content p {
    color: #555;
    line-height: 1.8;
}

.success-box {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-top: 15px;
    font-size: 1.1em;
    border: 2px solid #667eea;
}

.tips-box {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    padding: 25px;
    border-radius: 15px;
    margin-top: 30px;
}

.tips-box h4 {
    color: #333;
    font-size: 1.4em;
    margin-bottom: 15px;
}

.tips-box ul {
    list-style: none;
    padding: 0;
}

.tips-box li {
    color: #555;
    font-size: 1em;
    line-height: 2;
    padding: 8px 0;
}

.ios-btn-popup {
    font-size: 1.3em !important;
    padding: 18px 45px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* English Quiz Promotion Enhancements */
.promo-tagline {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 20px;
    margin: 25px 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.promo-tagline .hindi-text {
    color: white;
    font-size: 19px;
    line-height: 1.9;
}

.promo-tagline em {
    font-size: 1.2em;
    display: block;
    margin-top: 10px;
    font-style: italic;
}

.highlight-box {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    padding: 30px;
    border-radius: 20px;
    margin: 30px 0;
    border-left: 6px solid #667eea;
}

.highlight-box h3 {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 15px;
}

.highlight-box .hindi-text {
    color: #333;
    font-size: 17px;
    line-height: 2;
}

.testimonial-box {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
    padding: 35px;
    border-radius: 20px;
    margin: 40px 0;
}

.testimonial-box h3 {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 25px;
    text-align: center;
}

.testimonial {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin: 15px 0;
    border-left: 4px solid #667eea;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial p {
    color: #555;
    font-size: 1.05em;
    line-height: 1.8;
    margin-bottom: 10px;
}

.testimonial span {
    color: #667eea;
    font-weight: 600;
    font-size: 0.95em;
}

.btn-playstore {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.4em !important;
    padding: 20px 50px !important;
}

/* Mobile Responsive Updates */
@media (max-width: 768px) {
    .ios-modal {
        padding: 20px;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin-bottom: 15px;
    }
    
    .promo-tagline .hindi-text {
        font-size: 16px;
    }
    
    .highlight-box, .testimonial-box {
        padding: 20px;
    }
    
    .btn-playstore {
        font-size: 1.1em !important;
        padding: 16px 30px !important;
    }
}
/* Location Badge */
.location-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    margin: 30px auto;
    display: inline-block;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulse 2s ease infinite;
}

@media (max-width: 768px) {
    .location-badge {
        font-size: 0.9em;
        padding: 12px 20px;
    }
}
