/* Responsive Styles for STEMverse */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-headline {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Desktop (992px to 1199px) */
@media (max-width: 1199px) {
    .hero-headline {
        font-size: 3rem;
    }
    
    .verticals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) {
    /* Navigation */
    .nav-links {
        gap: 1.5rem;
    }
    
    .nav-links .nav-link {
        font-size: 0.9rem;
    }
    
    /* Hero Section */
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .hero-subtext {
        font-size: 1.125rem;
    }
    
    .hero-features {
        gap: 1rem;
    }
    
    .hero-ctas {
        gap: 0.75rem;
    }
    
    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* LMS Access */
    .lms-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .lms-stats {
        gap: 2rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Mobile Large (576px to 767px) */
@media (max-width: 767px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Container */
    .container {
        padding: 0 1.5rem;
    }
    
    /* Navigation */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid var(--gray-200);
        box-shadow: var(--shadow-lg);
        padding: 1rem 0;
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-link {
        padding: 1rem;
        border-bottom: 1px solid var(--gray-100);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--gray-50);
        margin-left: 1rem;
    }
    
    /* Hero Section */
    .hero-banner {
        min-height: 80vh;
        text-align: center;
    }
    
    .hero-headline {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-subtext {
        font-size: 1rem;
    }
    
    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-ctas .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    /* About Section */
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .metric-item {
        padding: 1rem;
    }
    
    .metric-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .counter {
        font-size: 1.5rem;
    }
    
    /* Verticals */
    .verticals-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card-header {
        padding: 1.5rem;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    /* LMS Access */
    .login-buttons {
        gap: 0.75rem;
    }
    
    .btn-student,
    .btn-teacher,
    .btn-admin {
        padding: 1rem;
    }
    
    .btn-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .btn-title {
        font-size: 1rem;
    }
    
    .btn-subtitle {
        font-size: 0.8rem;
    }
    
    .lms-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        margin: 0 1rem;
    }
    
    .testimonial-content {
        padding: 1.5rem;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
    
    .author-image {
        width: 50px;
        height: 50px;
    }
    
    /* Video Section */
    .video-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .video-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Blog Section */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .blog-footer {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Notice Board */
    .notice-board {
        margin: 0 -1rem;
    }
    
    .notice-header {
        padding: 1rem 1.5rem;
    }
    
    .notice-content {
        padding: 0 1.5rem;
    }
    
    .notice-item {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .notice-date {
        font-size: 0.8rem;
    }
    
    /* Team Section */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .member-info {
        padding: 1rem;
    }
    
    .member-full-bio {
        padding: 1rem;
    }
    
    /* Contact Section */
    .contact-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .contact-items {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .contact-form-container {
        padding: 0;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* Fixed Actions */
    .fixed-actions {
        bottom: 1rem;
        right: 1rem;
    }
    
    .action-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    /* Contact Panel */
    .contact-panel {
        width: 100%;
        right: -100%;
    }
    
    .contact-panel.active {
        right: 0;
    }
}

/* Mobile Small (up to 575px) */
@media (max-width: 575px) {
    /* Container */
    .container {
        padding: 0 1rem;
    }
    
    /* Typography */
    .hero-headline {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Hero */
    .hero-features {
        gap: 0.5rem;
    }
    
    .feature-item {
        font-size: 0.9rem;
    }
    
    /* Cards */
    .vertical-card {
        margin: 0 0.5rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .card-footer {
        padding: 0 1rem 1rem;
    }
    
    /* LMS Access */
    .btn-student,
    .btn-teacher,
    .btn-admin {
        padding: 0.875rem;
        gap: 0.75rem;
    }
    
    .btn-icon {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
    
    /* Stats */
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Testimonials */
    .testimonial-card {
        margin: 0 0.5rem;
    }
    
    .testimonial-content {
        padding: 1rem;
    }
    
    .testimonial-text {
        font-size: 0.9rem;
    }
    
    /* Forms */
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        padding: 0.625rem;
        font-size: 0.9rem;
    }
    
    .quick-inquiry-form input,
    .quick-inquiry-form textarea {
        padding: 0.625rem;
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer-newsletter {
        padding: 2rem 0;
    }
    
    .footer-main {
        padding: 2rem 0;
    }
    
    .footer-bottom {
        padding: 1rem 0;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Animation Classes */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .slide-in-left {
        opacity: 0;
        transform: translateX(-50px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .slide-in-left.visible {
        opacity: 1;
        transform: translateX(0);
    }
    
    .slide-in-right {
        opacity: 0;
        transform: translateX(50px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .slide-in-right.visible {
        opacity: 1;
        transform: translateX(0);
    }
    
    .scale-in {
        opacity: 0;
        transform: scale(0.8);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .scale-in.visible {
        opacity: 1;
        transform: scale(1);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --secondary-color: #8b5cf6;
        --success-color: #00ff00;
        --error-color: #ff0000;
        --gray-300: #999999;
        --gray-600: #333333;
        --gray-800: #000000;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .vertical-card,
    .testimonial-card,
    .blog-card {
        border: 2px solid var(--gray-300);
    }
}

/* Print Styles */
@media print {
    .main-header,
    .fixed-actions,
    .contact-panel,
    .video-lightbox,
    .hero-banner,
    .footer-newsletter {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .section-title {
        font-size: 18pt;
        font-weight: bold;
        margin-bottom: 0.5rem;
    }
    
    .btn {
        display: none;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 10pt;
        color: #666;
    }
}
