@import url('./main.css');

/* Responsive helpers */
.hide-mobile {
    display: block;
}

@media (max-width: 700px) {
    .hide-mobile {
        display: none !important;
    }

    .show-mobile {
        display: block !important;
    }
}

.show-mobile {
    display: none;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero-title {
        font-size: 4.5rem;
    }

    .section-title {
        font-size: 3.5rem;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .nav-menu {
        gap: 25px;
    }

    .hero-container {
        gap: 40px;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
        padding: 0 20px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    /* Enhanced Mobile Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 100px;
        flex-direction: column;
        background: rgb(255 255 255);
        /* was rgba(10, 10, 10, 0.98) */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 30px rgba(135, 206, 235, 0.15);
        /* sky blue shadow */
        padding: 40px 20px;
        gap: 20px;
        overflow-y: auto;
        z-index: 999;
    }

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

    .nav-menu .nav-link {
        font-size: 25px;
        padding: 15px 20px;
        border-radius: 10px;
        transition: all 0.3s ease;
        position: relative;
        display: block;
        margin: 5px 0;
    }

    .nav-menu .nav-link:hover {
        background: rgba(0, 161, 255, 0.1);
        transform: translateX(10px);
    }

    .nav-menu .nav-link::after {
        display: none;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        padding: 5px;
        z-index: 1001;
    }

    .bar {
        width: 52px;
        height: 7px;
        background: var(--text-primary);
        margin: 5px 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 2px;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background: var(--primary-color);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background: var(--primary-color);
    }

    /* Hero Section Mobile */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        padding: 20px;
    }

    .hero-content {
        text-align: center;
        order: 1;
    }

    .hero-visual {
        order: 2;
        height: 300px;
    }

    .hero-buttons {
        justify-content: center;
    }

    /* About Section Mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    /* Events Grid Mobile */
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    /* Gallery Grid Mobile */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    /* Team Grid Mobile */
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    /* Contact Mobile */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
        height: 60px;
    }

    .nav-logo img {
        height: 40px;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }

    /* Stats Mobile */
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-card {
        padding: 20px 15px;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Events Mobile */
    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .event-card {
        margin-bottom: 20px;
    }

    .event-content {
        padding: 20px;
    }

    .event-meta {
        flex-direction: column;
        gap: 8px;
    }

    .event-actions {
        flex-direction: column;
        gap: 10px;
    }

    .event-actions .btn {
        width: 100%;
        text-align: center;
    }

    /* Gallery Mobile */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Team Mobile */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* Hero Buttons Mobile */
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 20px;
    }

    /* Section Padding Mobile */
    section {
        padding: 60px 0;
    }

    .hero-section {
        padding: 80px 0 60px 0;
        min-height: 90vh;
    }
}

@media (max-width: 768px) {

    .container,
    section,
    .home-section {
        max-width: 98vw !important;
        width: 90% !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        box-sizing: border-box !important;
    }
}

/* Mobile Small */
@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }

    .nav-container {
        padding: 0 10px;
        height: 55px;
    }

    .nav-logo img {
        height: 61px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2.8rem;
    }

    .section-subtitle {
        font-size: 1.95rem;
    }

    /* Stats Small Mobile */
    .about-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 15px 10px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* Gallery Small Mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Team Small Mobile */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Event Cards Small Mobile */
    .event-content {
        padding: 15px;
    }

    .event-content h3 {
        font-size: 1.2rem;
    }

    .event-content p {
        font-size: 0.9rem;
    }

    /* Contact Small Mobile */
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .contact-icon {
        margin: 0 auto;
    }

    /* Form Elements Small Mobile */
    .form-group input,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    /* Button Small Mobile */
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .btn-sm {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .nav-container {
        height: 50px;
    }

    .nav-logo img {
        height: 30px;
    }

    .container {
        padding: 0 8px;
    }

    .hero-container {
        padding: 10px;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .section {
        padding: 40px 0;
    }

    .nav-menu {
        height: calc(100vh - 60px);
        top: 60px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .nav-logo img,
    .footer-logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {

    .navbar,
    .nav-toggle,
    .back-to-top,
    .loading-screen {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .hero-section,
    .about-section,
    .events-section,
    .gallery-section,
    .team-section,
    .contact-section {
        page-break-inside: avoid;
    }

    .btn {
        border: 1px solid black !important;
        background: white !important;
        color: black !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: rgba(30, 35, 126, 0.10);
        --bg-secondary: #1a1a1a;
        --text-primary: #000000;
        --text-secondary: #000000;
    }
}

/* Focus styles for better accessibility */
.nav-link:focus,
.btn:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Touch target improvements */
.nav-link,
.btn,
.nav-toggle {
    /* min-height: 94px; */
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 993px) {
    .nav-toggle {
        display: none !important;
    }
}

@media (max-width: 992px) {
    .nav-toggle {
        display: flex !important;
    }
}

@media (max-width: 768px) {

    /* About Page */
    .about-hero-section {
        min-height: 180px !important;
        padding: 0 !important;
        flex-direction: column !important;
        text-align: center !important;
    }

    .about-hero-section .hero-container {
        padding: 0 10px !important;
        min-height: 100px !important;
    }

    .about-hero-section .hero-title {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .about-hero-section .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .about-hero-section .hero-description {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }

    .about-content {
        padding: 0.7rem !important;
        margin: 0.7rem 0 !important;
        border-radius: 7px !important;
        box-shadow: 0 1px 4px rgba(30, 60, 120, 0.08) !important;
    }

    /* Team Page */
    .team-hero-section {
        min-height: 180px !important;
        padding: 0 !important;
        flex-direction: column !important;
        text-align: center !important;
    }

    .team-hero-section .hero-container {
        padding: 0 10px !important;
        min-height: 100px !important;
    }

    .team-hero-section .hero-title {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .team-hero-section .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .team-hero-section .hero-description {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }

    .team-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .team-card {
        width: 100% !important;
        padding: 1rem !important;
    }

    /* Events Page */
    .hero-section {
        min-height: 180px !important;
        padding: 0 !important;
        flex-direction: column !important;
        text-align: center !important;
    }

    .hero-section .hero-container {
        padding: 0 10px !important;
        min-height: 100px !important;
    }

    .hero-section .hero-title {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .hero-section .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .hero-section .hero-description {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }

    .events-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .event-card {
        height: 1050px;
        width: 100% !important;
        padding: 1rem !important;
    }

    /* Gallery Page */
    .gallery-hero-section {
        min-height: 180px !important;
        padding: 0 !important;
        flex-direction: column !important;
        text-align: center !important;
    }

    .gallery-hero-section .hero-container {
        padding: 0 10px !important;
        min-height: 100px !important;
    }

    .gallery-hero-section .hero-title {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .gallery-hero-section .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .gallery-hero-section .hero-description {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }

    .gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .gallery-item {
        width: 100% !important;
        padding: 0.5rem !important;
        /* min-height: 90px; */
    }

    /* Contact Page */
    .hero-section {
        min-height: 640px !important;
        /* min-width: 200%; */
        padding: 0 !important;
        flex-direction: column !important;
        text-align: center !important;
        min-width: 768px;
    }

    .hero-section .hero-container {
        padding: 0 10px !important;
        min-height: 100px !important;
    }

    .hero-section .hero-title {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .hero-section .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .hero-section .hero-description {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }

    .contact-content {
        padding: 1rem !important;
        margin: 1rem 0 !important;
        border-radius: 8px !important;
        box-shadow: 0 1px 4px rgba(30, 60, 120, 0.08) !important;
    }

    /* Home Page */
    .hero {
        padding: 2rem 0.5rem;
        border-radius: 0 0 18px 18px;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .container {
        max-width: 100% !important;
        display: flex;
        padding: 0 -12px !important;
        flex-direction: column;
        flex-wrap: wrap;
    }

    .home-section {
        max-width: 98vw !important;
        margin: 1rem auto !important;
        padding: 1.2rem !important;
    }

    .events-section {
        /* padding: 30px 0; */
        /* padding: 1rem 0.5rem !important; */
        margin: 0.5 0 !important;
        border-radius: 8px !important;
        /* background: #f7fbff !important; */
        min-width: 768px;
    }

    .events-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        max-width: 100%;
    }

    .event-card {
        padding: 1rem !important;
        border-radius: 10px;
    }

    .event-image {
        height: 600px;
        border-radius: 10px 10px 0 0;
    }

    .event-content {
        padding: 16px 10px 12px 10px;
    }

    .event-content h3 {
        font-size: 2.1rem;
    }

    .event-content p {
        font-size: 1.95rem;
    }

    .event-meta {
        flex-direction: column;
        gap: 6px;
        font-size: 1.3rem;
        padding: 0px 0px 0px 20px;
    }

    .event-actions {
        display: flex;
        flex-direction: row;
        gap: 28px;
        padding: 0px 0px 0px 30px;
    }

    .event-actions .btn {
        width: 100%;
        text-align: center;
        padding: 23px 0;
        font-size: 22px;
        width: 250px;
    }
}

@media (max-width: 768px) {

    /* Card Components */
    .card {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
        border-radius: 8px !important;
    }

    .card-title {
        font-size: 1rem !important;
    }

    .card-content {
        font-size: 0.95rem !important;
    }

    /* Stats & About */
    .about-stats {
        grid-template-columns: 1fr !important;
        gap: 35px !important;
        margin-right: 50%;
        margin-left: 25%;
    }

    .stat-card {
        width: 340px;
        display: flex;
        padding: 2rem !important;
        border-radius: 8px !important;
        font-size: 1.95rem !important;
        justify-content: space-between;
        /* align-content: space-around; */
        align-items: center;
        /* align-content: center; */
        flex-direction: column;
    }

    .stat-number {
        font-size: 2.rem !important;
    }

    .stat-label {
        font-size: 1.4rem !important;
    }

    /* Modals */
    .modal {
        padding: 1rem !important;
        max-width: 95vw !important;
        border-radius: 10px !important;
    }

    /* Forms */
    .contact-form,
    .form-group,
    .register-section,
    .form-card {
        padding: 1rem !important;
        margin: 1rem auto !important;
        border-radius: 8px !important;
        max-width: 98vw !important;
    }

    .contact-form input,
    .contact-form textarea,
    .form-group input,
    .form-group textarea {
        font-size: 1rem !important;
        padding: 0.7rem !important;
    }

    .contact-form button,
    .form-card button {
        font-size: 1rem !important;
        padding: 0.7rem 1.2rem !important;
    }

    /* Overlays & Popups */
    .gallery-overlay,
    .event-overlay {
        padding: 10px 8px !important;
        font-size: 0.95rem !important;
    }

    .gallery-overlay h4,
    .event-overlay h4 {
        font-size: 1rem !important;
    }

    .gallery-overlay p,
    .event-overlay p {
        font-size: 0.85rem !important;
    }

    /* Team Cards */
    .team-card {
        width: 100% !important;
        padding: 1rem !important;
        border-radius: 8px !important;
    }

    .team-photo {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 0.5rem !important;
    }

    .team-name {
        font-size: 1rem !important;
    }

    .team-role {
        font-size: 0.9rem !important;
    }

    /* Footer */
    .footer-content {
        gap: 15px !important;
        padding: 0 8px !important;
    }

    .footer-section {
        margin-bottom: 10px !important;
    }

    .footer-section h4 {
        font-size: 1rem !important;
    }

    .footer-section p {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 1rem 0.5rem !important;
        margin: 0.5rem 0 !important;
        border-radius: 8px !important;
        background: #f7fbff !important;
        min-width: 768px;
    }

    .about-section h2,
    .about-section h3 {
        font-size: 3.2rem !important;
        margin-bottom: 1.5rem !important;
    }

    .about-section p {
        font-size: 25px !important;
        margin-bottom: 0.7rem !important;
    }
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 1rem 0.5rem !important;
        margin: 0.5rem 0 !important;
        border-radius: 8px !important;
        background: #f7fbff !important;
        min-width: 768px;
    }

    .gallery-section h2,
    .gallery-section h3 {
        font-size: 3rem !important;
        margin-bottom: 0.7rem !important;
    }

    .gallery-section p {
        font-size: 1.8rem !important;
        margin-bottom: 0.7rem !important;
    }

    .gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin: 0.5rem 0 !important;
    }

    .gallery-item {
        border-radius: 8px !important;
        padding: 0.5rem !important;
        width: 100% !important;
        margin: 0px auto !important;
        /* min-height: 450px; */
    }

    .gallery-item img {
        width: 650px !important;
        height: 380px !important;
        border-radius: 8px !important;
        object-fit: cover;
    }

    .gallery-overlay {
        padding: 10px 8px !important;
        font-size: 1rem !important;
        border-radius: 8px !important;
    }

    .gallery-overlay h4 {
        font-size: 1.1rem !important;
        margin-bottom: 0.4rem !important;
    }

    .gallery-overlay p {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 1rem 0.5rem !important;
        margin: 0.5rem 0 !important;
        border-radius: 8px !important;
        background: #fff !important;
        min-width: 90vw;
    }

    .contact-section h2,
    .contact-section h3 {
        font-size: 2rem !important;
        margin-bottom: 0.7rem !important;
    }

    .contact-section p {
        font-size: 1.1rem !important;
        margin-bottom: 0.7rem !important;
    }

    .contact-content {
        flex-direction: column !important;
        gap: 1.2rem !important;
        padding: 0.5rem !important;
    }

    .contact-form {
        padding: 1rem !important;
        border-radius: 8px !important;
        max-width: 98vw !important;
        margin: 0.5rem auto !important;
    }

    .contact-info {
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 0.5rem !important;
        align-items: stretch !important;
    }

    .contact-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        min-width: 0 !important;
        gap: 0.7rem !important;
        padding: 0.5rem 0 !important;
    }

    .contact-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.1rem !important;
        margin-bottom: 0.3rem !important;
    }
}

@media (max-width: 768px) {
    .footer-section {
        margin-bottom: 10px !important;
        padding: 0.5rem 0 !important;
        text-align: center !important;
    }

    .footer-section h4 {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .footer-section p {
        font-size: 1.4rem !important;
        margin-bottom: 0.5rem !important;
    }

    .footer-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        padding: 0 8px !important;
        text-align: center !important;
    }

    .footer-logo img {
        height: 92px !important;
        margin-bottom: 0.5rem !important;
    }

    .social-links {
        gap: 20px !important;
        margin-bottom: 0.5rem !important;
        padding: 10px 260px 10px 260px;
    }

    .social-links a {
        width: 32px !important;
        height: 32px !important;
        font-size: 1.2rem !important;
    }

    .footer-bottom {
        font-size: 0.9rem !important;
        padding-top: 10px !important;
    }
}

@media (max-width: 768px) {
    .navbar {
        width: 768px !important;
        height: 102px !important;
        min-width: 768px !important;
        max-width: 768px !important;
        margin: 0 auto !important;
        left: 0 !important;
        top: 1px;
        right: 0 !important;
    }

    .nav-container {
        width: 768px !important;
        /* top: 90px; */
        height: 109px !important;
        min-width: 638px !important;
        max-width: 0px !important;
        padding: 0 !important;
        margin: 0 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
}