/* ============================================================
   PASCAL KOOMSON MINISTRY - RESPONSIVE STYLESHEET
   ============================================================ */

/* ========== GLOBAL MOBILE FIXES ========== */
*,
*::before,
*::after {
    -webkit-tap-highlight-color: transparent;
}

html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent horizontal overflow from Bootstrap containers */
.container,
.container-fluid {
    overflow: hidden;
}

/* ========== LARGE SCREENS (1200px+) ========== */
@media (min-width: 1200px) {
    .hero-title-line {
        font-size: 9rem;
    }
}

/* ========== MEDIUM SCREENS (992px - 1199px) ========== */
@media (max-width: 1199px) {
    .hero-title-line {
        font-size: 6.5rem;
    }

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

    .page-hero-content h1 {
        font-size: 3.5rem;
    }
}

/* ========== TABLETS (768px - 991px) ========== */
@media (max-width: 991px) {
    /* Navbar */
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 1.5rem;
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        margin-top: 0.5rem;
        border: 1px solid var(--glass-border);
        border-top: none;
        max-height: 80vh;
        overflow-y: auto;
    }

    .navbar-nav {
        text-align: center;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        font-size: 1rem;
    }

    .nav-social-icons {
        justify-content: center;
        margin-left: 0;
        margin-top: 1rem;
    }

    /* Hero */
    .hero-section {
        min-height: 600px;
    }

    .hero-title-line {
        font-size: 5rem;
        letter-spacing: 0.15em;
    }

    .hero-slogan {
        font-size: 1.2rem;
    }

    .hero-content {
        padding: 0 1.5rem;
    }

    /* Section */
    .section-padding {
        padding: 4rem 0;
    }

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

    .page-hero-content h1 {
        font-size: 3rem;
    }

    /* Event Card */
    .event-card {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }

    .event-card .btn {
        width: 100%;
    }

    /* Timeline */
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px !important;
        padding-right: 1rem !important;
        text-align: left !important;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 12px;
        right: auto;
    }

    /* Footer */
    .footer-brand,
    .footer-title {
        text-align: center;
    }

    .footer-desc {
        max-width: 100%;
    }

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

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

    .footer-contact {
        align-items: center;
    }

    .footer-copyright {
        text-align: center !important;
    }
}

/* ========== SMALL TABLETS & LARGE PHONES (576px - 767px) ========== */
@media (max-width: 767px) {
    /* Hero */
    .hero-section {
        min-height: 500px;
    }

    .hero-title-line {
        font-size: 3.5rem;
        letter-spacing: 0.1em;
    }

    .hero-slogan {
        font-size: 1rem;
        letter-spacing: 0.05em;
    }

    .hero-buttons .btn {
        padding: 0.75rem 1.75rem;
        font-size: 0.8rem;
    }

    .hero-buttons .me-3 {
        margin-right: 0 !important;
        margin-bottom: 1rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-content {
        padding: 0 1rem;
    }

    /* Section */
    .section-padding {
        padding: 3rem 0;
    }

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

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

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

    /* About Section */
    .about-home-section .section-title {
        font-size: 1.5rem;
    }

    .about-home-section p {
        font-size: 0.88rem;
    }

    /* Page Hero */
    .page-hero {
        height: 50vh;
        min-height: 280px;
    }

    .page-hero-content h1 {
        font-size: 2.2rem;
        letter-spacing: 0.08em;
    }

    .page-hero-content p {
        font-size: 0.95rem;
    }

    /* Newsletter */
    .newsletter-wrapper {
        padding: 2rem 1.25rem;
    }

    .newsletter-title {
        font-size: 1.4rem;
        text-align: center;
    }

    .newsletter-text {
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .newsletter-form .input-group {
        flex-direction: column;
    }

    .newsletter-form .form-control {
        border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
    }

    .newsletter-form .btn {
        border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
        width: 100%;
    }

    /* Gallery */
    .gallery-section .col-lg-3,
    .gallery-section .col-lg-4,
    .gallery-section .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Testimonial */
    .testimonial-card {
        padding: 2rem 1.25rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    /* Countdown */
    .countdown-wrapper {
        gap: 0.75rem;
    }

    .countdown-box {
        min-width: 70px;
        padding: 0.875rem 1rem;
    }

    .countdown-number {
        font-size: 1.75rem;
    }

    .countdown-label {
        font-size: 0.7rem;
    }

    /* Contact Form */
    .contact-form-wrapper {
        padding: 2rem 1.25rem;
    }

    /* Footer */
    .site-footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-divider {
        margin: 2rem 0 1rem;
    }

    /* Platform Links */
    .platform-link {
        font-size: 0.78rem !important;
        padding: 0.4rem 0.8rem !important;
    }

    /* Contact Section */
    .contact-section .row {
        gap: 2rem 0;
    }
}

/* ========== PHONES (max-width: 575px) ========== */
@media (max-width: 575px) {
    /* Hero */
    .hero-section {
        min-height: 450px;
    }

    .hero-title-line {
        font-size: 2.5rem;
        letter-spacing: 0.08em;
    }

    .hero-slogan {
        font-size: 0.85rem;
        letter-spacing: 0.03em;
    }

    .scroll-indicator {
        bottom: 1rem;
    }

    .scroll-indicator a {
        width: 32px;
        height: 45px;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.6rem;
    }

    .page-hero-content h1 {
        font-size: 1.8rem;
        letter-spacing: 0.05em;
    }

    /* Album Cards - 2 in a row */
    .album-info {
        padding: 0.875rem;
    }

    .album-title {
        font-size: 0.95rem;
    }

    .album-genre {
        font-size: 0.8rem;
    }

    /* Event Cards */
    .event-card {
        padding: 1rem;
        gap: 0.75rem;
        flex-direction: column;
        text-align: center;
    }

    .event-date-box {
        min-width: 55px;
    }

    .event-day {
        font-size: 1.3rem;
    }

    .event-venue {
        font-size: 0.95rem;
    }

    .event-details {
        width: 100%;
    }

    /* Event Card Full */
    .event-card-body {
        padding: 1rem;
    }

    .event-card-body h5 {
        font-size: 1rem;
    }

    /* Gallery - 2 in a row */
    .gallery-section .col-lg-3,
    .gallery-section .col-lg-4,
    .gallery-section .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .gallery-item {
        aspect-ratio: 1;
    }

    /* Events - 2 in a row */
    .events-preview-section .col-lg-4,
    .events-preview-section .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Filter Buttons */
    .filter-buttons {
        gap: 0.4rem;
        flex-wrap: wrap;
    }

    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    /* Tabs */
    .nav-tabs-custom {
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    .nav-tabs-custom .nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }

    /* Contact Info */
    .contact-info-card {
        padding: 1.25rem;
    }

    .contact-info-card h5 {
        font-size: 0.95rem;
    }

    .contact-info-card p {
        font-size: 0.85rem;
    }

    /* Stat Cards */
    .stat-card {
        padding: 1.25rem;
    }

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

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

    /* Member Cards */
    .member-info {
        padding: 1rem;
    }

    .member-name {
        font-size: 0.95rem;
    }

    .member-role {
        font-size: 0.78rem;
    }

    /* Accordion */
    .faq-accordion .accordion-button {
        font-size: 0.85rem;
        padding: 0.875rem 1rem;
    }

    .faq-accordion .accordion-body {
        font-size: 0.82rem;
        padding: 0 1rem 0.875rem;
    }

    /* Footer */
    .footer-logo {
        font-size: 1.5rem;
    }

    .footer-desc {
        font-size: 0.85rem;
    }

    .footer-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .footer-links li {
        margin-bottom: 0.5rem;
    }

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

    .footer-contact li {
        font-size: 0.85rem;
    }

    .footer-copyright {
        font-size: 0.78rem;
    }

    /* Video Card */
    .video-card-info {
        padding: 0.75rem 0;
    }

    .video-card-title {
        font-size: 0.9rem;
    }

    .play-circle {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    /* Testimonials */
    .testimonial-quote {
        font-size: 2rem;
    }

    .testimonial-author {
        flex-direction: column;
    }

    /* Contact Section */
    .contact-section .col-lg-5,
    .contact-section .col-lg-7 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Back to top */
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    /* Platform buttons - wrap on mobile */
    .d-flex.flex-wrap {
        justify-content: center !important;
    }

    /* Footer - 2 columns per row */
    .site-footer .col-lg-2,
    .site-footer .col-lg-3,
    .site-footer .col-lg-4,
    .site-footer .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 1.5rem;
    }
}

/* ========== VERY SMALL PHONES (max-width: 375px) ========== */
@media (max-width: 375px) {
    .hero-title-line {
        font-size: 2rem;
        letter-spacing: 0.05em;
    }

    .hero-slogan {
        font-size: 0.8rem;
    }

    .hero-buttons .btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.7rem;
        width: 100%;
    }

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

    .page-hero-content h1 {
        font-size: 1.6rem;
    }

    .newsletter-wrapper {
        padding: 1.25rem 1rem;
    }

    .newsletter-title {
        font-size: 1.25rem;
    }

    .contact-form-wrapper {
        padding: 1.25rem 1rem;
    }

    .countdown-wrapper {
        gap: 0.5rem;
    }

    .countdown-box {
        min-width: 60px;
        padding: 0.6rem 0.75rem;
    }

    .countdown-number {
        font-size: 1.5rem;
    }

    .countdown-label {
        font-size: 0.65rem;
    }

    /* About Section */
    .about-home-section .section-title {
        font-size: 1.3rem;
    }

    .about-home-section p {
        font-size: 0.8rem;
        line-height: 1.6;
    }

    .about-home-section img {
        max-height: 200px;
    }

    .loader-logo {
        font-size: 2.5rem;
    }

    .loader-text {
        font-size: 0.75rem;
    }

    /* Album info smaller padding */
    .album-info {
        padding: 0.6rem;
    }

    .album-title {
        font-size: 0.85rem;
    }

    .album-genre {
        font-size: 0.72rem;
    }
}

/* ========== LANDSCAPE MODE ========== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
    }

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

    .hero-slogan {
        margin-bottom: 1rem;
    }

    .scroll-indicator {
        display: none;
    }

    .hero-buttons .btn {
        padding: 0.6rem 1.5rem;
    }
}

/* ========== ACCESSIBILITY: 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;
    }

    .hero-bg img {
        animation: none;
    }

    .scroll-indicator {
        animation: none;
    }

    .play-circle {
        animation: none;
    }
}

/* ========== HIGH CONTRAST MODE ========== */
@media (prefers-contrast: high) {
    .album-card,
    .event-card,
    .glass-card,
    .stat-card,
    .member-card,
    .contact-info-card,
    .newsletter-wrapper,
    .contact-form-wrapper {
        border-width: 2px;
        border-color: var(--text);
    }

    .btn-primary-custom,
    .btn-outline-custom {
        border-width: 3px;
    }

    .nav-link {
        font-weight: 600;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .loading-screen,
    .scroll-progress,
    #main-navbar,
    .back-to-top,
    .scroll-indicator,
    .newsletter-section,
    .site-footer {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .hero-section {
        height: auto;
        min-height: auto;
        padding: 2rem;
    }

    .hero-bg,
    .hero-overlay {
        display: none;
    }

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

    .section-title {
        color: black;
    }

    .album-card,
    .event-card,
    .glass-card {
        border: 1px solid #ccc;
        background: white;
    }

    a {
        color: black;
    }
}
