/* ============================================
   FIRE & POWER - RESPONSIVE STYLES
   Full Mobile Responsive Design
   ============================================ */

/* Global Responsive Fixes */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw;
}

* {
    box-sizing: border-box;
}

/* Container Responsive */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
}

@media (min-width: 1200px) {
    .container {
        padding: 0 60px;
    }
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    section {
        padding: 4rem 0;
    }

    .hero {
        min-height: 90vh;
        padding: 100px 0 60px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        order: -1;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .programs-grid {
        gap: 2rem;
    }

    .features-grid {
        gap: 2rem;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* Navigation Mobile */
    .hamburger {
        display: flex !important;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 0 0 50px rgba(255, 215, 0, 0.3);
        border-right: 3px solid #FFD700;
        overflow-y: auto;
        gap: 0;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
        margin-bottom: 2rem;
    }

    .nav-link {
        width: 100%;
        padding: 1.25rem;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255, 215, 0, 0.2);
        border-radius: 0;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .nav-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Hero Mobile */
    .hero {
        min-height: 85vh;
        padding: 90px 0 50px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-subtitle {
        font-size: clamp(1.1rem, 3vw, 1.5rem);
    }

    .hero-description {
        font-size: clamp(0.95rem, 2vw, 1.1rem);
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }

    .stat-icon {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .scroll-indicator {
        display: none;
    }

    /* Sections Mobile */
    section {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-badge {
        font-size: 0.8rem;
        padding: 6px 18px;
    }

    .section-title {
        font-size: clamp(2rem, 6vw, 3rem);
        margin-bottom: 1rem;
    }

    .section-description {
        font-size: clamp(0.95rem, 2vw, 1.1rem);
    }

    /* About Mobile */
    .about-content {
        gap: 2rem;
    }

    .about-text h3 {
        font-size: 1.5rem;
        margin-top: 1.5rem;
    }

    .about-features {
        gap: 0.75rem;
    }

    .feature-item {
        padding: 0.75rem;
    }

    .feature-item i {
        font-size: 1.1rem;
    }

    .image-wrapper {
        border-radius: 16px;
        border-width: 2px;
    }

    .image-badge {
        bottom: 20px;
        right: 20px;
        padding: 1rem;
    }

    .image-badge i {
        font-size: 1.5rem;
    }

    .image-badge span {
        font-size: 0.95rem;
    }

    /* Programs Mobile */
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .program-card {
        padding: 2rem;
    }

    .program-badge {
        top: 15px;
        right: 15px;
        font-size: 0.75rem;
        padding: 6px 16px;
    }

    .program-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        border-radius: 14px;
    }

    .program-title {
        font-size: 1.3rem;
    }

    .program-description {
        font-size: 0.95rem;
    }

    .program-features {
        margin-bottom: 1.5rem;
    }

    .program-features li {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }

    /* Features Grid Mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }

    .feature-title {
        font-size: 1.25rem;
    }

    .feature-description {
        font-size: 0.95rem;
    }

    /* Gallery Mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-overlay h4 {
        font-size: 1.1rem;
    }

    .gallery-overlay p {
        font-size: 0.9rem;
    }

    .gallery-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    /* Forms Mobile */
    .registration-form,
    .contact-form {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .form-subtitle {
        font-size: 1.3rem;
        margin: 2rem 0 1rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 16px;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .btn-submit {
        padding: 14px 32px;
        font-size: 1rem;
    }

    /* Contact Mobile */
    .contact-content {
        gap: 2rem;
    }

    .contact-info {
        order: 2;
    }

    .contact-form-wrapper {
        order: 1;
    }

    .info-card {
        padding: 1.5rem;
        gap: 1.25rem;
    }

    .info-icon {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
        border-radius: 10px;
    }

    .info-content h4 {
        font-size: 1rem;
    }

    .info-content p {
        font-size: 0.9rem;
    }

    .social-links {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    /* Footer Mobile */
    .footer {
        padding: 3rem 0 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-col h4 {
        font-size: 1.2rem;
    }

    .footer-logo h3 {
        font-size: 1.6rem;
    }

    .footer-col ul {
        align-items: center;
    }

    .footer-col ul li a {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom p {
        font-size: 0.9rem;
    }

    /* Back to Top Mobile */
    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 1.3rem;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 80px 0 40px;
        min-height: 80vh;
    }

    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.25rem);
        margin-bottom: 0.75rem;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        gap: 1rem;
    }

    .btn-hero-primary,
    .btn-hero-outline {
        padding: 14px 32px;
        font-size: 1rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-item {
        padding: 1.25rem;
    }

    .stat-icon {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    section {
        padding: 2.5rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-badge {
        font-size: 0.75rem;
        padding: 6px 16px;
    }

    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        margin-bottom: 0.75rem;
    }

    .section-description {
        font-size: 0.95rem;
    }

    .about-text h3 {
        font-size: 1.3rem;
        margin-top: 1.25rem;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .program-card,
    .feature-card {
        padding: 1.5rem;
    }

    .program-icon,
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .program-title,
    .feature-title {
        font-size: 1.2rem;
    }

    .program-description,
    .feature-description {
        font-size: 0.9rem;
    }

    .registration-form,
    .contact-form {
        padding: 1.5rem 1rem;
    }

    .form-subtitle {
        font-size: 1.2rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 11px 14px;
        font-size: 0.9rem;
    }

    .btn-submit {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .info-card {
        padding: 1.25rem;
        flex-direction: column;
        text-align: center;
    }

    .info-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin: 0 auto;
    }

    .info-content {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer {
        padding: 2.5rem 0 1.5rem;
    }

    .footer-content {
        gap: 2rem;
    }

    .footer-col h4 {
        font-size: 1.1rem;
    }

    .footer-logo h3 {
        font-size: 1.4rem;
    }

    .footer-logo p,
    .footer-col ul li,
    .footer-bottom p {
        font-size: 0.85rem;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 1.2rem;
    }
}

/* Extra Small Mobile (max-width: 360px) */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn-hero-primary,
    .btn-hero-outline {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .btn-submit {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .program-icon,
    .feature-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }
}

/* Landscape Phone */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0 40px;
    }

    .nav-menu {
        overflow-y: auto;
    }

    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

/* Prevent horizontal scroll */
body {
    position: relative;
}

/* Touch improvements */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-link,
    .feature-card,
    .program-card,
    .gallery-item,
    .info-card {
        -webkit-tap-highlight-color: transparent;
    }

    .btn:active {
        transform: scale(0.95);
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero,
    .back-to-top,
    .hamburger,
    .scroll-indicator {
        display: none !important;
    }

    section {
        padding: 20px 0;
        page-break-inside: avoid;
    }

    .footer {
        page-break-before: always;
    }

    body {
        background: white;
        color: black;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid #FFD700;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .navbar {
        border-bottom-width: 3px;
    }

    .btn {
        border-width: 3px;
    }

    .card,
    .program-card,
    .feature-card,
    .info-card {
        border-width: 3px;
    }
}