/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #000000 0%, #1a0000 100%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Intro Page Styles */
.intro-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #000000 0%, #1a0000 50%, #000000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: introFadeOut 1s ease-in-out 9s forwards;
}

.intro-content {
    text-align: center;
    max-width: 600px;
    padding: 20px;
}

.intro-logo {
    margin-bottom: 1.5rem;
    animation: logoFloat 3s ease-in-out infinite, logoRotate 6s linear infinite;
}

.intro-logo svg {
    filter: drop-shadow(0 0 20px rgba(230, 0, 0, 0.5));
}

.intro-title {
    font-size: 3.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #e60000, #ffffff, #e60000);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    animation: titleGlow 2s ease-in-out infinite alternate,
               titleScale 3s ease-in-out infinite;
}

.quotes-container {
    height: 80px;
    margin: 2rem 0;
    position: relative;
}

.quote {
    position: absolute;
    width: 100%;
    opacity: 0;
    animation: quoteAnimation 3s ease-in-out;
}

.quote.active {
    opacity: 1;
}

.quote:nth-child(1) {
    animation-delay: 0s;
}

.quote:nth-child(2) {
    animation-delay: 3s;
}

.quote:nth-child(3) {
    animation-delay: 6s;
}

.quote p {
    font-size: 1.2rem;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(230, 0, 0, 0.5);
}

.loading-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 3rem;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #e60000, #ffffff, #e60000);
    background-size: 200% 100%;
    border-radius: 3px;
    animation: loadingBar 10s linear forwards,
               loadingGlow 2s ease-in-out infinite alternate;
}

/* Main Page Styles */
.main-page {
    min-height: 100vh;
    padding-bottom: 80px; opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
opacity: 0;
}

.main-page.hidden {
    display: none;
}

.main-page.visible {
    opacity: 1;
    visibility: visible;
}
/* Header Styles */
.header {
    background: linear-gradient(135deg, #000000 0%, #e60000 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(230, 0, 0, 0.3);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo svg {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.main-title {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(45deg, #bc0d0d, #d6c5c5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titlePulse 3s ease-in-out infinite;
}

.wave-text {
    animation: waveText 2s ease-in-out infinite;
}

.wave-text::before {
    content: '🌊';
    position: absolute;
    left: -30px;
    animation: waveFloat 2s ease-in-out infinite;
}

.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    padding: 5px;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger-menu:hover span {
    background: #000000;
}

/* Navigation Menu Styles */
.nav-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, #000000 0%, #e60000 100%);
    z-index: 200;
    transition: left 0.3s ease-in-out;
    padding: 2rem 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

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

.nav-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

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

.nav-list {
    list-style: none;
    padding: 0;
    margin-top: 3rem;
}

.nav-list li {
    margin: 0;
}

.nav-list a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.nav-list a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #ffffff;
    transform: translateX(10px);
}

/* Main Content Styles */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.hero-section {
    text-align: center;
    padding: 3rem 0;
}

.hero-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #744646, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

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

.feature {
    background: linear-gradient(135deg, rgba(230, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(230, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(230, 0, 0, 0.2);
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #e60000;
}

/* Latest Materials Section */
.latest-materials-section {
    max-width: 1200px;
    margin: 4rem auto 0;
    padding: 0 1rem;
}

.latest-materials-section h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #e60000;
    text-align: center;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.material-card {
    background: linear-gradient(135deg, rgba(230, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(230, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.material-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(230, 0, 0, 0.2);
    border-color: #e60000;
}

.material-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #e60000;
}

.material-card p {
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* Page Header Styles */
.page-header {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 2px solid rgba(230, 0, 0, 0.3);
    margin-bottom: 3rem;
}

.page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #e60000, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Subjects Section Styles */
.subjects-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.subjects-section h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #e60000;
    text-align: center;
}

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

.subject-card {
    background: linear-gradient(135deg, rgba(230, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(230, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

.subject-card.hidden {
    display: none;
}

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(230, 0, 0, 0.2);
    border-color: #e60000;
}

.subject-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #e60000;
}

.subject-card p {
    margin-bottom: 1rem;
    opacity: 0.8;
}

.download-btn {
    background: linear-gradient(45deg, #e60000, #ff3333);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
}

.download-btn:hover {
    background: linear-gradient(45deg, #ff3333, #e60000);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 0, 0, 0.3);
}

.view-more-btn {
    background: none;
    border: 2px solid #e60000;
    color: #e60000;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
    margin: 2rem auto;
}

.view-more-btn:hover {
    background: #e60000;
    color: #ffffff;
    transform: scale(1.05);
}

/* Bottom Navigation Styles */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #000000 0%, #e60000 100%);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    box-shadow: 0 -2px 10px rgba(230, 0, 0, 0.3);
    z-index: 100;
}

.nav-btn {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.nav-btn.active {
    opacity: 1;
    color: #ffffff;
}

.nav-btn:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.nav-btn span:first-child {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #000000 0%, #e60000 100%);
    color: #ffffff;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-section p {
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

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

.footer-section ul li a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
}

/* Download Notification Styles */
.download-notification {
    position: fixed;
    top: 50%;
    right: -300px;
    transform: translateY(-50%);
    background: linear-gradient(45deg, #e60000, #ff3333);
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(230, 0, 0, 0.3);
    z-index: 200;
    transition: right 0.5s ease-in-out;
}

.download-notification.show {
    right: 20px;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-icon {
    font-size: 1.2rem;
}

.notification-text {
    font-weight: 500;
}

/* WhatsApp Float Styles */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 150;
}

.whatsapp-icon {
    width: 60px;
    height: 60px;
    background: #25d366;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    animation: whatsappPulse 2s ease-in-out infinite;
}

.whatsapp-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-message {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 280px;
    background: #ffffff;
    color: #000000;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: none;
    animation: messageSlideIn 0.3s ease-out;
}

.whatsapp-message.show {
    display: block;
}

.whatsapp-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: #666;
    padding: 0.25rem;
}

.whatsapp-message p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.whatsapp-btn {
    background: #25d366;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    width: 100%;
    transition: background 0.3s ease;
}

.whatsapp-btn:hover {
    background: #20b954;
}

/* Animations */
@keyframes introFadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes titleGlow {
    0% {
        text-shadow: 0 0 20px rgba(230, 0, 0, 0.5);
    }
    100% {
        text-shadow: 0 0 30px rgba(230, 0, 0, 0.8), 0 0 40px rgba(255, 255, 255, 0.3);
    }
}

@keyframes titleScale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes quoteAnimation {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    20% {
        opacity: 1;
        transform: translateY(0);
    }
    80% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

@keyframes loadingBar {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

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

@keyframes titlePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes whatsappPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes messageSlideIn {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes logoRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes waveText {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-2px);
    }
    50% {
        transform: translateY(0);
    }
    75% {
        transform: translateY(-1px);
    }
}

@keyframes waveFloat {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(-2px) translateY(-1px);
    }
    50% {
        transform: translateX(0) translateY(-2px);
    }
    75% {
        transform: translateX(2px) translateY(-1px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .intro-title {
        font-size: 2.5rem;
    }
    
    .main-title {
        font-size: 1.5rem;
    }
    
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .page-header h2 {
        font-size: 2rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .subjects-grid {
        grid-template-columns: 1fr;
    }
    
    .whatsapp-message {
        width: 250px;
        right: -10px;
    }
    
    .nav-menu {
        width: 280px;
        left: -280px;
    }
}

@media (max-width: 480px) {
    .intro-title {
        font-size: 2rem;
    }
    
    .main-title {
        font-size: 1.3rem;
    }
    
    .hero-section h2 {
        font-size: 1.8rem;
    }
    
    .page-header h2 {
        font-size: 1.8rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .whatsapp-message {
        width: 220px;
        right: -20px;
    }
    
    .nav-menu {
        width: 250px;
        left: -250px;
    }
}

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

.visible {
    display: block !important;
}

/* Overlay for mobile menu */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
    display: none;
}

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