/* Site-specific styles - Homepage and Authentication pages only */

/* Enhanced Box View Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Modern Header with Glass Morphism */
.main-header {
    background: rgba(102, 126, 234, 0.95);
    backdrop-filter: blur(20px);
    color: white;
    padding: 1.2rem 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 2.2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.nav-menu {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.7rem 1.4rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.3);
}

/* Enhanced Hero Section with Animated Background */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    min-height: 100vh;
    padding-left: 40px;    /* Add left padding */
    padding-right: 60px;   /* Add right padding */
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #4361ee 0%, #7209b7 50%, #f72585 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0,0,0,0.1);
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    color: var(--gray);
    font-weight: 300;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 2rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4361ee, #7209b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray);
    margin-top: 5px;
    font-weight: 500;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    animation: fadeInRight 1s ease-out;
}

/* Enhanced 3D Timetable Image */
.image-container {
    position: relative;
    perspective: 1000px;
}

.timetable-image-3d {
    position: relative;
    transform-style: preserve-3d;
    animation: float3d 6s ease-in-out infinite;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes float3d {
    0%, 100% { 
        transform: translateY(0px) rotateX(5deg) rotateY(-5deg); 
    }
    50% { 
        transform: translateY(-20px) rotateX(7deg) rotateY(-7deg); 
    }
}

.timetable-img {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.25),
        0 15px 35px rgba(0,0,0,0.15),
        0 0 0 1px rgba(255,255,255,0.1);
    transform: rotateX(5deg) rotateY(-5deg) translateZ(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.timetable-image-3d:hover .timetable-img {
    transform: rotateX(8deg) rotateY(-8deg) translateZ(30px) scale(1.05);
    box-shadow: 
        0 35px 70px rgba(0,0,0,0.35),
        0 25px 50px rgba(0,0,0,0.25),
        0 0 0 1px rgba(255,255,255,0.2);
}

.3d-shadow {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) rotateX(90deg);
    width: 80%;
    height: 40px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.4) 0%, transparent 70%);
    filter: blur(15px);
    z-index: 1;
    animation: shadowPulse 6s ease-in-out infinite;
}

@keyframes shadowPulse {
    0%, 100% { 
        opacity: 0.6;
        transform: translateX(-50%) rotateX(90deg) scale(0.95);
    }
    50% { 
        opacity: 0.8;
        transform: translateX(-50%) rotateX(90deg) scale(1.05);
    }
}

.3d-reflection {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        transparent 0%,
        rgba(255,255,255,0.1) 50%,
        transparent 100%);
    border-radius: 20px;
    opacity: 0.5;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 3;
}

.image-badge {
    position: absolute;
    top: 20px;
    right: -20px;
    background: linear-gradient(135deg, #4361ee, #7209b7);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 4;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.image-badge::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #4361ee, #7209b7, #f72585);
    border-radius: 27px;
    z-index: -1;
    opacity: 0.7;
    filter: blur(5px);
}

/* Enhanced Features Section */
.features {
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4361ee, transparent);
}

.section-heading {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #4361ee, #7209b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    position: relative;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4361ee, #7209b7);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--gray);
    margin-bottom: 4rem;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 50px 35px;
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4361ee, #7209b7, #f72585);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.1) 0%, transparent 70%);
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.feature-card:hover::after {
    width: 300px;
    height: 300px;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 70px rgba(0,0,0,0.2);
}

.feature-card i {
    font-size: 4rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #4361ee, #7209b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    transition: transform 0.3s ease;
}

.feature-card:hover i {
    transform: scale(1.2) rotate(5deg);
}

.feature-card h3 {
    margin-bottom: 1.2rem;
    font-size: 1.7rem;
    color: var(--dark);
    font-weight: 700;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Enhanced Auth Pages */
.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.auth-container {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 2;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 50px;
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(20px);
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4361ee, #7209b7, #f72585);
}

.auth-header {
    text-align: center;
    margin-bottom: 3rem;
}

.auth-header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #4361ee, #7209b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header p {
    color: var(--gray);
    font-size: 1.2rem;
    font-weight: 300;
}

.auth-footer {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(233, 236, 239, 0.8);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.auth-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.auth-footer a:hover::after {
    width: 100%;
}

/* Enhanced Teacher Showcase */
.teacher-showcase {
    padding: 120px 60px 80px 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.teacher-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.teacher-showcase h2 {
    color: white;
    margin-bottom: 20px;
    font-size: 3.2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.teacher-showcase h2::after {
    background: white;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    border-radius: 2px;
}

.teacher-showcase p {
    color: white;
}

.teacher-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.teacher-feature {
    background: rgba(255, 255, 255, 0.15);
    padding: 50px 35px;
    border-radius: 24px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.teacher-feature::before {
    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.6s ease;
}

.teacher-feature:hover::before {
    left: 100%;
}

.teacher-feature:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.teacher-feature i {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.teacher-feature:hover i {
    transform: scale(1.2);
}

.teacher-feature h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.6rem;
    font-weight: 600;
}

.teacher-feature p {
    opacity: 0.95;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Testimonials Section */
.testimonials {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    text-align: center;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(255,255,255,0.3);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 4rem;
    color: #4361ee;
    opacity: 0.2;
    font-family: serif;
}

.testimonial-content {
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--dark);
    font-style: italic;
}

.testimonial-author {
    text-align: left;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 20px;
}

.author-name {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}

.author-school {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Enhanced CTA Section */
.cta-section {
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(135deg, #2b2d42 0%, #1a1b2e 100%);
    color: white;
    position: relative;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    margin-bottom: 25px;
    font-size: 3.5rem;
    background: linear-gradient(135deg, #fff, #a8b2d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 50px;
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-large:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.cta-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
}

.cta-guarantee i {
    color: #4361ee;
}

/* Enhanced Footer */
footer {
    background: linear-gradient(135deg, #1a1b2e 0%, #0d0e1c 100%);
    color: white;
    padding: 80px 0 0;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-weight: 700;
}

.footer-section p {
    line-height: 1.7;
    opacity: 0.9;
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #4361ee;
    transform: translateY(-3px);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 5px 0;
    position: relative;
}

.footer-section ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
    padding-left: 10px;
}

.footer-section ul li a:hover::before {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding: 30px;
    margin-top: 70px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1rem;
    opacity: 0.8;
    background: rgba(0,0,0,0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced Responsive Design */
@media (max-width: 1400px) {
    .container {
        max-width: 1200px;
    }
}

@media (max-width: 1200px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
        padding: 80px 0;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 40px;
    }
    
    .teacher-features {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 40px;
    }
    
    .testimonial-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .features h2,
    .teacher-showcase h2,
    .cta-content h2 {
        font-size: 2.8rem;
    }
    
    .feature-card,
    .teacher-feature {
        padding: 40px 30px;
    }
    
    .timetable-img {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .nav-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 60px 0;
        gap: 50px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .timetable-image-3d {
        animation: float3d-mobile 6s ease-in-out infinite;
    }
    
    @keyframes float3d-mobile {
        0%, 100% { 
            transform: translateY(0px) rotateX(3deg) rotateY(-3deg); 
        }
        50% { 
            transform: translateY(-15px) rotateX(5deg) rotateY(-5deg); 
        }
    }
    
    .image-badge {
        position: relative;
        right: auto;
        top: auto;
        margin-top: 20px;
        justify-content: center;
    }
    
    .feature-grid,
    .teacher-features,
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .features,
    .teacher-showcase,
    .cta-section,
    .testimonials {
        padding: 80px 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
        padding: 16px 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .auth-card {
        padding: 40px 30px;
    }
    
    .auth-header h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .features h2,
    .teacher-showcase h2,
    .cta-content h2 {
        font-size: 2.2rem;
    }
    
    .feature-card,
    .teacher-feature {
        padding: 30px 20px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 25px 15px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* High-resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-icon {
        filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
    }
    
    .timetable-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .features, .testimonials {
        background: linear-gradient(135deg, #1a1b2e 0%, #2b2d42 100%);
    }
    
    .feature-card, .testimonial-card {
        background: rgba(43, 45, 66, 0.95);
        color: white;
    }
    
    .feature-card h3, .testimonial-content {
        color: white;
    }
    
    .feature-card p {
        color: rgba(255,255,255,0.8);
    }
}

/* Print styles */
@media print {
    .main-header,
    .cta-buttons,
    footer {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 40px 0;
    }
    
    .features,
    .teacher-showcase,
    .cta-section,
    .testimonials {
        padding: 40px 0;
    }
}