/* Independence Day Theme - August 15, 2025 */
/* Indian Flag Colors: Saffron (#FF9933), White (#FFFFFF), Green (#138808), Navy Blue (#000080) */

/* Independence Day Banner */
.independence-day-banner {
    background: linear-gradient(90deg, #FF9933 0%, #FFFFFF 33%, #138808 66%, #000080 100%);
    color: #000080;
    text-align: center;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: flagWave 3s ease-in-out infinite;
}

.independence-day-banner .flag-emoji {
    font-size: 20px;
    margin: 0 10px;
    animation: wave 2s ease-in-out infinite;
}

.independence-day-banner .celebration-text {
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
    font-family: 'Poppins', sans-serif;
}

/* Flag Wave Animation */
@keyframes flagWave {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* Navigation Independence Day Theme */
.nav-section-title.independence-theme {
    background: linear-gradient(45deg, #FF9933, #FFFFFF, #138808);
    background-size: 300% 300%;
    animation: gradientShift 4s ease infinite;
    color: #000080;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Hero Section Independence Day Enhancement with Video */
.hero-section.independence-theme {
    position: relative;
    overflow: hidden;
}

.hero-section.independence-theme::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255,153,51,0.2) 0%, 
        rgba(255,255,255,0.1) 33%, 
        rgba(19,136,8,0.2) 66%, 
        rgba(0,0,128,0.1) 100%);
    pointer-events: none;
    z-index: 3;
}

/* Indian Flag Video Background */
.indian-flag-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 1;
    filter: blur(1px);
}

/* Flag Video Overlay Container */
.flag-video-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 200px;
    height: 120px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 3px solid #FFD100;
    z-index: 5;
    animation: flagVideoFloat 4s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.flag-video-overlay:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.flag-video-overlay video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes flagVideoFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(1deg);
    }
}

.hero-content.independence-theme {
    position: relative;
    z-index: 2;
}

.hero-title.independence-theme {
    color: #000080;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.8);
}

.hero-subtitle.independence-theme {
    color: #138808;
    font-weight: 600;
}

/* Independence Day Decorative Elements */
.independence-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(90deg, #FF9933 33.33%, #FFFFFF 33.33%, #FFFFFF 66.66%, #138808 66.66%);
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Floating Indian Flag Elements */
.floating-flag {
    position: fixed;
    font-size: 24px;
    z-index: 999;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

.floating-flag:nth-child(1) {
    top: 20%;
    right: 5%;
    animation-delay: 0s;
}

.floating-flag:nth-child(2) {
    top: 60%;
    left: 3%;
    animation-delay: 2s;
}

.floating-flag:nth-child(3) {
    top: 40%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 1;
    }
}

/* Independence Day Button Styles */
.btn-independence {
    background: linear-gradient(45deg, #FF9933, #138808);
    color: white;
    border: 2px solid #000080;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,153,51,0.3);
}

.btn-independence:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,153,51,0.4);
    background: linear-gradient(45deg, #138808, #FF9933);
}

/* Independence Day Course Cards */
.course-card.independence-theme {
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(45deg, #FF9933, #FFFFFF, #138808) border-box;
    position: relative;
}

.course-card.independence-theme::before {
    content: '🇮🇳';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Special Independence Day Message Box */
.independence-message {
    background: linear-gradient(135deg, #FF9933 0%, #FFFFFF 50%, #138808 100%);
    color: #000080;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border: 2px solid #000080;
}

.independence-message h3 {
    color: #000080;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.independence-message p {
    color: #000080;
    font-weight: 600;
    margin: 0;
}

/* Tricolor Accent Lines */
.tricolor-line {
    height: 4px;
    background: linear-gradient(90deg, #FF9933 33.33%, #FFFFFF 33.33%, #FFFFFF 66.66%, #138808 66.66%);
    margin: 15px 0;
    border-radius: 2px;
}

/* Contact Section Independence Theme */
.contact-section.independence-theme {
    background: linear-gradient(135deg, 
        rgba(255,153,51,0.05) 0%, 
        rgba(255,255,255,0.1) 50%, 
        rgba(19,136,8,0.05) 100%);
}

/* Footer Independence Theme */
.site-footer.independence-theme {
    border-top: 5px solid;
    border-image: linear-gradient(90deg, #FF9933 33.33%, #FFFFFF 33.33%, #FFFFFF 66.66%, #138808 66.66%) 1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .independence-day-banner {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .independence-day-banner .flag-emoji {
        font-size: 16px;
        margin: 0 5px;
    }
    
    .floating-flag {
        font-size: 18px;
    }
    
    .independence-message {
        padding: 15px;
        margin: 15px 0;
    }
    
    .flag-video-overlay {
        width: 150px;
        height: 90px;
        top: 15px;
        right: 15px;
    }
    
    .video-modal-content {
        max-width: 95%;
        max-height: 90%;
        margin: 10px;
    }
    
    .video-modal video {
        max-height: 40vh;
    }
    
    .video-play-overlay {
        width: 40px;
        height: 40px;
    }
    
    .video-play-overlay::before {
        font-size: 16px;
    }
    
    .independence-video-banner {
        padding: 15px;
        margin: 15px 0;
    }
    
    .watch-video-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .independence-day-banner,
    .floating-flag,
    .nav-section-title.independence-theme,
    .course-card.independence-theme::before {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .independence-day-banner,
    .floating-flag,
    .independence-decoration,
    .flag-video-overlay,
    .video-modal {
        display: none;
    }
}

/* Indian Flag Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    max-width: 80%;
    max-height: 80%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    border: 5px solid;
    border-image: linear-gradient(45deg, #FF9933, #FFFFFF, #138808) 1;
}

.video-modal-header {
    background: linear-gradient(90deg, #FF9933 33.33%, #FFFFFF 33.33%, #FFFFFF 66.66%, #138808 66.66%);
    padding: 15px 20px;
    text-align: center;
    position: relative;
}

.video-modal-title {
    color: #000080;
    font-weight: 700;
    margin: 0;
    font-size: 18px;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.video-modal-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #000080;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.video-modal-close:hover {
    background: #FF9933;
    transform: translateY(-50%) scale(1.1);
}

.video-modal video {
    width: 100%;
    height: auto;
    max-height: 60vh;
    display: block;
}

/* Video Play Button Overlay */
.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,153,51,0.9);
    border: 3px solid #000080;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 6;
}

.video-play-overlay:hover {
    background: rgba(19,136,8,0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-overlay::before {
    content: '▶';
    color: white;
    font-size: 24px;
    margin-left: 3px;
}

/* Independence Day Video Banner */
.independence-video-banner {
    background: linear-gradient(90deg, #FF9933 0%, #FFFFFF 33%, #138808 66%, #000080 100%);
    padding: 20px;
    margin: 20px 0;
    border-radius: 15px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.independence-video-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.video-banner-content h3 {
    color: #000080;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}

.video-banner-content p {
    color: #000080;
    margin-bottom: 15px;
    font-weight: 600;
}

.watch-video-btn {
    background: #000080;
    color: white;
    border: 2px solid #FF9933;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,128,0.3);
}

.watch-video-btn:hover {
    background: #FF9933;
    color: #000080;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,153,51,0.4);
}

.watch-video-btn i {
    font-size: 16px;
}
