/* Homepage Specific Styles */

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    align-items: center;
}

@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.welcome-section {
    text-align: left;
}

.welcome-section h2 {
    color: #333;
    font-size: 2.2em;
    margin-bottom: 15px;
}

.welcome-section p {
    color: #666;
    font-size: 1.1em;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    display: flex;
    justify-content: center;
}

.cta-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    max-width: 350px;
    width: 100%;
}

.cta-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transform: translateY(0);
    transition: all 0.3s ease;
    cursor: pointer;
    animation: ctaPulse 3s ease-in-out infinite;
}

/* CTA Animation - Pulse, Jump and Vibrate */
@keyframes ctaPulse {
    0% { 
        transform: translateY(0) scale(1);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    }
    25% { 
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
    }
    30% { 
        transform: translateY(-3px) scale(1.02) rotateZ(1deg);
    }
    35% { 
        transform: translateY(-3px) scale(1.02) rotateZ(-1deg);
    }
    40% { 
        transform: translateY(-3px) scale(1.02) rotateZ(1deg);
    }
    45% { 
        transform: translateY(-3px) scale(1.02) rotateZ(0deg);
    }
    50% { 
        transform: translateY(-8px) scale(1.05);
        box-shadow: 0 20px 40px rgba(102, 126, 234, 0.5);
    }
    75% { 
        transform: translateY(0) scale(1.02);
        box-shadow: 0 12px 32px rgba(102, 126, 234, 0.35);
    }
    100% { 
        transform: translateY(0) scale(1);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    }
}

/* Pause animation on hover to let user interact */
.cta-card-link:hover .cta-card {
    animation-play-state: paused;
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.cta-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.cta-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: white;
}

.cta-card p {
    margin-bottom: 25px;
    opacity: 0.9;
    line-height: 1.5;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.cta-card-link:hover .cta-button {
    background: #f8f9ff;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-feature {
    font-size: 0.85em;
    opacity: 0.9;
    background: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .cta-features {
        flex-direction: column;
        gap: 8px;
    }
}

/* Subject Cards */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.subject-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.subject-card.math {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.subject-card.english {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.subject-card.science {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.subject-card.geography {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.subject-card .icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.subject-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.subject-card p {
    opacity: 0.9;
    line-height: 1.5;
}

/* Features Section */
.feature {
    text-align: center;
    padding: 20px;
}

.feature .icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #4ecdc4;
}

.feature h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.feature p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.4;
}

/* Info Section */
.info-section {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
}

.info-section h3 {
    color: #333;
    margin-bottom: 15px;
}

.info-section p {
    color: #666;
    margin-bottom: 20px;
}

.tag-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tag {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
}

.tag.primary {
    background: #e3f2fd;
    color: #1976d2;
}

.tag.success {
    background: #e8f5e8;
    color: #388e3c;
}

.tag.warning {
    background: #fff3e0;
    color: #f57c00;
}

/* Video Showcase Section */
.video-showcase-section {
    text-align: center;
    margin: 50px 0;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.video-showcase-section h2 {
    color: #333;
    font-size: 2em;
    margin-bottom: 10px;
    font-weight: 600;
}

.video-showcase-section p {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Mobile responsive for video */
@media (max-width: 768px) {
    .video-showcase-section {
        margin: 30px 0;
        padding: 30px 15px;
    }
    
    .video-showcase-section h2 {
        font-size: 1.6em;
    }
    
    .video-showcase-section p {
        font-size: 1em;
        margin-bottom: 20px;
    }
    
    .video-container {
        max-width: 100%;
        border-radius: 8px;
    }
}
