/* ============================================
   Responsive Styles - Enhanced Professional Design
   ============================================ */

/* Tablet Styles (768px - 1023px) */
@media screen and (max-width: 1023px) {
    .container {
        padding: 0 20px;
    }

    .about-content,
    .mission-vision,
    .join-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 500px;
    }

    .portfolio-categories {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }

    .category-title {
        font-size: 1.25rem;
        padding: 0 1.25rem;
        padding-top: 1.25rem;
        margin-bottom: 0.875rem;
    }

    .category-title::after {
        left: 1.25rem;
    }

    .category-card:hover .category-title::after {
        width: 50px;
    }

    .category-image-wrapper {
        height: 200px;
        min-height: 200px;
    }

    .category-description {
        width: 85%;
        padding: 0.75rem;
    }

    .category-description p {
        font-size: 0.9375rem;
    }

    .category-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .hero-title {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }

    .hero-subtitle {
        font-size: clamp(1rem, 2.5vw, 1.375rem);
    }

    section {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .stat-item {
        padding: 1.5rem 1rem;
    }

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

    .category-image {
        height: 240px;
    }

    .join-form-wrapper,
    .contact-form-wrapper {
        padding: 2.5rem;
    }
}

/* Mobile Styles (max-width: 767px) */
@media screen and (max-width: 767px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 0;
        border-top: 1px solid var(--medium-grey);
    }

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

    .nav-menu li {
        width: 100%;
        padding: 1rem 0;
    }

    .nav-link {
        display: block;
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }

    .hamburger {
        display: flex;
    }

    /* Hero Section */
    .hero {
        height: 60vh;
        max-height: 60vh;
        min-height: 400px;
        padding-top: 80px;
    }

    .hero-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .hero-dots {
        bottom: 20px;
    }

    .hero-dot {
        width: 10px;
        height: 10px;
    }

    .hero-dot.active {
        width: 24px;
    }

    .hero-title {
        font-size: clamp(2rem, 6vw, 2.75rem);
        margin-bottom: 1.25rem;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.25rem);
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 16px 32px;
    }

    .scroll-indicator {
        bottom: 30px;
    }

    /* Sections */
    section {
        padding: 3.5rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-title {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
    }

    .section-subtitle {
        font-size: 1rem;
        margin-top: 1.5rem;
    }

    /* About Section */
    .about-content {
        gap: 2.5rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        margin-top: 2rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

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

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

    .mission-vision {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 3rem;
    }

    .mission-item {
        padding: 2rem;
    }

    .mission-item h3 {
        font-size: 1.375rem;
    }

    /* Portfolio Section */
    .portfolio-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .category-title {
        font-size: 1.125rem;
        padding: 0 1.25rem;
        padding-top: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .category-title::after {
        left: 1.25rem;
    }

    .category-card:hover .category-title::after {
        width: 40px;
    }

    .category-image-wrapper {
        height: 180px;
        min-height: 180px;
    }

    .category-description {
        width: 85%;
        padding: 0.75rem;
    }

    .category-description p {
        font-size: 0.875rem;
    }

    .category-features {
        grid-template-columns: repeat(2, 1fr);
        padding: 1rem 1.25rem;
        gap: 0.5rem;
    }

    .category-features li {
        font-size: 0.875rem;
        padding: 0.375rem 0;
        padding-left: 28px;
        line-height: 1.6;
    }

    .category-features li::before {
        left: 2px;
        width: 18px;
        height: 18px;
    }

    /* Media/Gallery Section */
    .gallery-filters {
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }

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

    .gallery-item {
        aspect-ratio: 16/9;
    }

    /* Join Us Section */
    .join-content {
        gap: 3rem;
    }

    .join-text h3 {
        font-size: 1.5rem;
        margin-top: 1.5rem;
    }

    .join-text h3:first-child {
        margin-top: 0;
    }

    .benefits-list li {
        padding: 0.75rem 0;
        padding-left: 32px;
        font-size: 0.9375rem;
    }

    .join-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .file-label input[type="file"] {
        padding: 10px 14px;
        font-size: 0.875rem;
    }

    .file-label input[type="file"]::file-selector-button {
        padding: 6px 12px;
        font-size: 0.8125rem;
    }

    .join-form h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    /* Contact Section */
    .contact-content {
        gap: 3rem;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 1rem;
    }

    .info-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .info-text {
        text-align: center;
    }

    .info-text h4 {
        font-size: 1.125rem;
    }

    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }

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

    .footer-section {
        text-align: center;
    }

    .footer-logo {
        display: flex;
        justify-content: center;
    }

    .footer-logo img {
        height: 50px;
    }

    .footer-social {
        justify-content: center;
    }

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

    /* Lightbox */
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }

    .lightbox-nav {
        padding: 0 20px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .lightbox img {
        max-width: 95%;
        max-height: 85%;
    }
}

/* Small Mobile Styles (max-width: 480px) */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    section {
        padding: 3rem 0;
    }

    .hero {
        height: 60vh;
        max-height: 60vh;
        min-height: 350px;
    }

    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .hero-subtitle {
        font-size: clamp(0.9375rem, 3vw, 1.125rem);
    }

    .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

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

    .btn {
        padding: 12px 24px;
        font-size: 0.9375rem;
    }

    .about-text h3 {
        font-size: 1.5rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .stat-item {
        padding: 1.25rem;
    }

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

    .category-content {
        padding: 1.125rem;
    }

    .category-content h3 {
        font-size: 1.0625rem;
    }

    .category-content p {
        font-size: 0.9375rem;
    }

    .category-image {
        height: 200px;
    }

    .join-form-wrapper,
    .contact-form-wrapper {
        padding: 1.75rem 1.25rem;
    }

    .join-form h3 {
        font-size: 1.375rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 16px;
        font-size: 0.9375rem;
    }

    .gallery-item {
        aspect-ratio: 16/10;
    }

    .info-icon {
        width: 55px;
        height: 55px;
        font-size: 1.75rem;
    }

    .info-text h4 {
        font-size: 1.0625rem;
    }

    .info-text p {
        font-size: 0.9375rem;
    }

    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        gap: 2rem;
    }

    .footer-section h4 {
        font-size: 0.9375rem;
        margin-bottom: 1.25rem;
    }

    .footer-links a {
        font-size: 0.875rem;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.8125rem;
    }
}

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

    .hero-title {
        font-size: clamp(3.5rem, 6vw, 5rem);
    }

    .hero-subtitle {
        font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    }

    section {
        padding: 5rem 0;
    }

    .portfolio-categories {
        grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
        gap: 3rem;
    }

    .category-title {
        font-size: 1.375rem;
        padding: 0 1.5rem;
        padding-top: 1.5rem;
        margin-bottom: 1rem;
    }

    .category-card:hover .category-title::after {
        width: 70px;
    }

    .category-image-wrapper {
        height: 240px;
        min-height: 240px;
    }

    .category-description p {
        font-size: 1.0625rem;
    }

    .category-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 2.5rem;
    }

    .about-content {
        gap: 6rem;
    }

    .join-content,
    .contact-content {
        gap: 5rem;
    }

    .footer-content {
        gap: 4rem;
    }
}

/* Extra Large Desktop Styles (min-width: 1600px) */
@media screen and (min-width: 1600px) {
    .container {
        max-width: 1520px;
    }

    section {
        padding: 6rem 0;
    }

    .section-header {
        margin-bottom: 5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hamburger,
    .scroll-indicator,
    .hero-buttons,
    .gallery-filters,
    .join-form-wrapper,
    .contact-form-wrapper,
    .footer,
    .btn {
        display: none;
    }

    .hero {
        height: auto;
        padding: 3rem 0;
        background: var(--white);
        color: var(--text-dark);
    }

    .hero-title,
    .hero-subtitle {
        color: var(--text-dark);
    }

    section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }

    .about-image,
    .category-image,
    .gallery-item {
        break-inside: avoid;
    }
}

/* High DPI Displays */
@media screen and (-webkit-min-device-pixel-ratio: 2),
       screen and (min-resolution: 192dpi) {
    .logo img,
    .footer-logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape Orientation on Mobile */
@media screen and (max-width: 767px) and (orientation: landscape) {
    .hero {
        height: 60vh;
        max-height: 60vh;
        min-height: 400px;
    }

    .hero-title {
        font-size: clamp(1.75rem, 4vw, 2.25rem);
    }

    section {
        padding: 2.5rem 0;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-content,
    .hero-title,
    .hero-subtitle,
    .hero-buttons {
        animation: none;
    }

    .scroll-indicator {
        animation: none;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Keep light theme as default, but can be customized */
    /* This is a placeholder for future dark mode implementation */
}
