/* ===================================
   Responsive Styles
   Mobile-First Approach
   =================================== */

/* Tablet Styles (768px and below) */
@media (max-width: 768px) {
    /* Navigation */
    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        z-index: 999;
        border-left: 1px solid var(--glass-border);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        opacity: 0;
        transform: translateX(50px);
        animation: slideIn 0.3s ease forwards;
    }

    .nav-menu.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu.active li:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu.active li:nth-child(4) { animation-delay: 0.4s; }
    .nav-menu.active li:nth-child(5) { animation-delay: 0.5s; }
    .nav-menu.active li:nth-child(6) { animation-delay: 0.6s; }

    @keyframes slideIn {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .nav-menu a {
        font-size: 1.2rem;
        display: block;
        padding: 0.5rem 0;
    }

    /* Hero Section */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }

    /* Section Titles */
    .section-title {
        font-size: 2rem;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Mobile Styles (480px and below) */
@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Navigation */
    .nav-brand h1 {
        font-size: 1.2rem;
    }

    .brand-icon {
        font-size: 1.5rem;
    }

    .nav-menu {
        width: 80%;
    }

    /* Hero Section */
    .hero {
        height: 80vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Sections */
    .features,
    .statistics {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    /* Feature Cards */
    .feature-card {
        padding: 1.5rem;
    }

    .feature-card i {
        font-size: 2.5rem;
    }

    .feature-card h3 {
        font-size: 1.3rem;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Footer */
    .footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        gap: 2rem;
    }

    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
        height: 45px;
        border-radius: 25px;
    }
}

/* Large Desktop (1400px and above) */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 5rem;
    }

    .hero-subtitle {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 3.5rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 6rem 0 3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .nav-menu {
        padding: 4rem 2rem 2rem;
        overflow-y: auto;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hamburger,
    .mobile-menu-overlay,
    #loading-screen,
    .hero-buttons,
    .newsletter-form,
    .social-links {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .hero {
        height: auto;
        padding: 2rem 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;
    }

    html {
        scroll-behavior: auto;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --glass-bg: rgba(255, 255, 255, 0.1);
        --glass-border: rgba(255, 255, 255, 0.3);
    }

    .nav-menu a,
    .footer-links a {
        text-decoration: underline;
    }
}

/* ===================================
   Trainers Page Responsive Styles
   =================================== */

/* Tablet Styles (768px and below) */
@media (max-width: 768px) {
    /* Page Header */
    .page-header {
        padding: 6rem 0 3rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .page-subtitle {
        font-size: 1.1rem;
    }

    /* Trainers Grid - 2 columns on tablet */
    .trainers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Trainer Card */
    .trainer-photo {
        height: 250px;
    }

    .trainer-name {
        font-size: 1.3rem;
    }

    /* CTA Section */
    .cta-content {
        padding: 3rem 1.5rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Mobile Styles (480px and below) */
@media (max-width: 480px) {
    /* Page Header */
    .page-header {
        padding: 5rem 0 2rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* Trainers Section */
    .trainers-section {
        padding: 3rem 0;
    }

    /* Trainers Grid - 1 column on mobile */
    .trainers-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Trainer Card */
    .trainer-card {
        max-width: 400px;
        margin: 0 auto;
    }

    .trainer-photo {
        height: 300px;
    }

    .trainer-info {
        padding: 1.25rem;
    }

    .trainer-name {
        font-size: 1.4rem;
    }

    .trainer-specialization {
        font-size: 0.95rem;
    }

    .trainer-social a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    /* Loading/Error/Empty States */
    .loading-state,
    .error-state,
    .empty-state {
        padding: 3rem 1rem;
    }

    .loading-state p,
    .error-state p,
    .empty-state p {
        font-size: 1rem;
    }

    /* CTA Section */
    .cta-section {
        padding: 3rem 0;
    }

    .cta-content {
        padding: 2rem 1rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-content p {
        font-size: 1rem;
    }
}

/* Large Desktop (1400px and above) */
@media (min-width: 1400px) {
    /* Trainers Grid - Keep 4 columns but with larger container */
    .trainers-grid {
        gap: 2.5rem;
    }

    .trainer-photo {
        height: 350px;
    }

    .trainer-name {
        font-size: 1.6rem;
    }

    .page-title {
        font-size: 4rem;
    }

    .page-subtitle {
        font-size: 1.4rem;
    }
}

/* Medium Desktop (992px to 1199px) */
@media (min-width: 769px) and (max-width: 1199px) {
    /* Trainers Grid - 3 columns on medium desktop */
    .trainers-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .trainer-photo {
        height: 280px;
    }
}

/* Landscape Mobile for Trainers */
@media (max-height: 500px) and (orientation: landscape) {
    .page-header {
        padding: 5rem 0 2rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .trainers-section {
        padding: 3rem 0;
    }
}

/* ===================================
   Membership Page Responsive Styles
   =================================== */

/* Tablet Styles (768px and below) */
@media (max-width: 768px) {
    /* Membership Section */
    .membership-section {
        padding: 3rem 0;
    }

    /* Pricing Cards - 2 columns on tablet */
    .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Pricing Card */
    .pricing-card {
        padding: 2rem 1.5rem;
    }

    .pricing-card.popular {
        transform: scale(1.02);
    }

    .pricing-card.popular:hover {
        transform: translateY(-10px) scale(1.04);
    }

    /* Popular Badge */
    .popular-badge {
        font-size: 0.75rem;
        padding: 0.4rem 2.5rem;
        right: -2.8rem;
    }

    /* Plan Name */
    .plan-name {
        font-size: 1.75rem;
    }

    /* Plan Price */
    .price-amount {
        font-size: 3.5rem;
    }

    .price-currency {
        font-size: 1.3rem;
    }

    .price-period {
        font-size: 0.9rem;
    }

    /* Features List */
    .features-list {
        margin-bottom: 2rem;
    }

    .features-list li {
        font-size: 0.9rem;
        padding: 0.6rem 0;
    }

    .features-list i {
        font-size: 1rem;
    }

    /* Comparison Section */
    .comparison-section {
        padding: 3rem 0;
    }

    .comparison-table-container {
        padding: 1.5rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

/* Mobile Styles (480px and below) */
@media (max-width: 480px) {
    /* Membership Section */
    .membership-section {
        padding: 2rem 0;
    }

    /* Pricing Cards - 1 column on mobile */
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 400px;
        margin: 0 auto 3rem;
    }

    /* Pricing Card */
    .pricing-card {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .pricing-card:hover {
        transform: translateY(-10px) scale(1.02);
    }

    .pricing-card.popular:hover {
        transform: translateY(-10px) scale(1.02);
    }

    /* Popular Badge */
    .popular-badge {
        font-size: 0.7rem;
        padding: 0.35rem 2.5rem;
        right: -3rem;
        top: 1.2rem;
    }

    /* Plan Header */
    .plan-header {
        margin-bottom: 1.5rem;
    }

    .plan-name {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }

    .plan-description {
        font-size: 0.9rem;
    }

    /* Plan Price */
    .plan-price {
        margin-bottom: 1.5rem;
        padding: 1.25rem 0;
    }

    .price-amount {
        font-size: 3rem;
    }

    .price-currency {
        font-size: 1.2rem;
        margin-top: 0.4rem;
    }

    .price-period {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }

    /* Features List */
    .features-list {
        margin-bottom: 2rem;
    }

    .features-list li {
        font-size: 0.85rem;
        padding: 0.6rem 0;
        gap: 0.6rem;
    }

    .features-list i {
        font-size: 0.95rem;
    }

    /* Choose Plan Button */
    .choose-plan-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Comparison Section */
    .comparison-section {
        padding: 2rem 0;
    }

    .comparison-table-container {
        padding: 1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .comparison-table {
        min-width: 500px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }

    .comparison-table th {
        font-size: 0.8rem;
    }

    .comparison-table i {
        font-size: 1rem;
    }
}

/* Large Desktop (1400px and above) */
@media (min-width: 1400px) {
    /* Pricing Cards */
    .pricing-cards {
        gap: 3rem;
    }

    .pricing-card {
        padding: 3rem 2.5rem;
    }

    .plan-name {
        font-size: 2.2rem;
    }

    .price-amount {
        font-size: 4.5rem;
    }

    .features-list li {
        font-size: 1rem;
        padding: 0.85rem 0;
    }
}

/* Medium Desktop (992px to 1199px) */
@media (min-width: 769px) and (max-width: 1199px) {
    /* Pricing Cards - Keep 3 columns but adjust spacing */
    .pricing-cards {
        gap: 2rem;
    }

    .pricing-card {
        padding: 2rem 1.75rem;
    }

    .plan-name {
        font-size: 1.8rem;
    }

    .price-amount {
        font-size: 3.5rem;
    }

    .features-list li {
        font-size: 0.9rem;
    }
}

/* Landscape Mobile for Membership */
@media (max-height: 500px) and (orientation: landscape) {
    .membership-section {
        padding: 2rem 0;
    }

    .pricing-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .pricing-card {
        padding: 1.5rem 1.25rem;
    }

    .plan-name {
        font-size: 1.4rem;
    }

    .price-amount {
        font-size: 2.5rem;
    }

    .features-list {
        margin-bottom: 1.5rem;
    }

    .features-list li {
        padding: 0.5rem 0;
        font-size: 0.85rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Reduce hover effects on touch devices */
    .pricing-card:hover {
        transform: translateY(-5px) scale(1.01);
    }

    .pricing-card.popular:hover {
        transform: translateY(-5px) scale(1.03);
    }

    /* Make buttons more touch-friendly */
    .choose-plan-btn {
        min-height: 48px;
        padding: 1rem 2rem;
    }

    /* Disable hover animations that don't work well on touch */
    .features-list li:hover {
        padding-left: 0;
    }
}

/* High Contrast Mode for Pricing Cards */
@media (prefers-contrast: high) {
    .pricing-card {
        border: 2px solid var(--glass-border);
    }

    .pricing-card.popular {
        border: 3px solid var(--primary-cyan);
    }

    .features-list li {
        border-bottom: 2px solid var(--glass-border);
    }
}

/* Reduced Motion for Pricing Cards */
@media (prefers-reduced-motion: reduce) {
    .pricing-card,
    .pricing-card.popular,
    .plan-name,
    .price-amount,
    .features-list i,
    .choose-plan-btn {
        animation: none !important;
        transition: none !important;
    }

    .pricing-card:hover,
    .pricing-card.popular:hover {
        transform: none;
    }
}

/* ===================================
   Gallery Page Responsive Styles
   =================================== */

/* Tablet Styles (768px and below) */
@media (max-width: 768px) {
    /* Gallery Section */
    .gallery-section {
        padding: 3rem 0;
    }

    /* Gallery Grid - 3 columns on tablet */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    /* Adjust masonry spans for tablet */
    .gallery-item:nth-child(5n+1) {
        grid-row: span 1;
    }

    .gallery-item:nth-child(7n+3) {
        grid-column: span 1;
    }

    /* Lightbox adjustments */
    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
    }

    .lightbox-content {
        max-width: 95vw;
        max-height: 95vh;
    }

    .lightbox-image-container {
        max-width: 95vw;
        max-height: 60vh;
    }

    #lightbox-image {
        max-height: 60vh;
    }

    .lightbox-info {
        margin-top: 1.5rem;
    }

    #lightbox-title {
        font-size: 1.5rem;
    }

    #lightbox-description {
        font-size: 0.9rem;
    }

    /* Hide keyboard hint on tablet */
    .lightbox-modal::after {
        display: none;
    }
}

/* Mobile Styles (480px and below) */
@media (max-width: 480px) {
    /* Gallery Section */
    .gallery-section {
        padding: 2rem 0;
    }

    /* Gallery Grid - 2 columns on mobile */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    /* Remove all masonry spans on mobile for consistent layout */
    .gallery-item:nth-child(5n+1) {
        grid-row: span 1;
    }

    .gallery-item:nth-child(7n+3) {
        grid-column: span 1;
    }

    /* Gallery Item */
    .gallery-item {
        border-radius: 10px;
    }

    /* Gallery Overlay */
    .gallery-overlay {
        padding: 1rem;
    }

    .gallery-item-title {
        font-size: 1rem;
    }

    .gallery-item-description {
        font-size: 0.85rem;
    }

    /* Gallery Zoom Icon */
    .gallery-zoom-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    /* Lightbox Modal */
    .lightbox-content {
        max-width: 100vw;
        max-height: 100vh;
    }

    .lightbox-image-container {
        max-width: 100vw;
        max-height: 50vh;
        border-radius: 10px;
    }

    #lightbox-image {
        max-height: 50vh;
    }

    /* Lightbox Navigation - Smaller on mobile */
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }

    /* Lightbox Close Button */
    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        top: 5px;
        right: 5px;
    }

    /* Lightbox Info */
    .lightbox-info {
        margin-top: 1rem;
        padding: 0 0.5rem;
    }

    #lightbox-title {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }

    #lightbox-description {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .lightbox-counter {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
}

/* Small Mobile (360px and below) */
@media (max-width: 360px) {
    /* Gallery Grid - 1 column on very small screens */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* Gallery Item */
    .gallery-item {
        max-width: 100%;
    }
}

/* Large Desktop (1400px and above) */
@media (min-width: 1400px) {
    /* Gallery Grid - More columns on large screens */
    .gallery-grid {
        gap: 2rem;
    }

    /* Gallery Item */
    .gallery-item {
        border-radius: 20px;
    }

    /* Gallery Overlay */
    .gallery-overlay {
        padding: 2rem;
    }

    .gallery-item-title {
        font-size: 1.4rem;
    }

    .gallery-item-description {
        font-size: 1rem;
    }

    /* Gallery Zoom Icon */
    .gallery-zoom-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    /* Lightbox */
    .lightbox-prev {
        left: -80px;
    }

    .lightbox-next {
        right: -80px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .lightbox-close {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        top: -60px;
    }

    #lightbox-title {
        font-size: 2rem;
    }

    #lightbox-description {
        font-size: 1.1rem;
    }
}

/* Medium Desktop (992px to 1199px) */
@media (min-width: 769px) and (max-width: 1199px) {
    /* Gallery Grid - 3 columns on medium desktop */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    /* Adjust masonry for medium screens */
    .gallery-item:nth-child(5n+1) {
        grid-row: span 2;
    }

    .gallery-item:nth-child(7n+3) {
        grid-column: span 1;
    }
}

/* Landscape Mobile for Gallery */
@media (max-height: 500px) and (orientation: landscape) {
    .gallery-section {
        padding: 2rem 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }

    /* Remove masonry spans in landscape */
    .gallery-item:nth-child(5n+1) {
        grid-row: span 1;
    }

    .gallery-item:nth-child(7n+3) {
        grid-column: span 1;
    }

    /* Lightbox adjustments for landscape */
    .lightbox-image-container {
        max-height: 80vh;
    }

    #lightbox-image {
        max-height: 80vh;
    }

    .lightbox-info {
        margin-top: 1rem;
    }

    #lightbox-title {
        font-size: 1.3rem;
    }

    #lightbox-description {
        font-size: 0.85rem;
    }
}

/* Touch Device Optimizations for Gallery */
@media (hover: none) and (pointer: coarse) {
    /* Always show overlay on touch devices */
    .gallery-overlay {
        opacity: 0.9;
    }

    /* Disable hover-only effects */
    .gallery-item:hover .gallery-image {
        transform: scale(1);
    }

    /* Make touch targets larger */
    .lightbox-prev,
    .lightbox-next,
    .lightbox-close {
        min-width: 48px;
        min-height: 48px;
    }

    /* Remove hover animations */
    .gallery-zoom-icon {
        display: none;
    }
}

/* High Contrast Mode for Gallery */
@media (prefers-contrast: high) {
    .gallery-item {
        border: 2px solid var(--glass-border);
    }

    .lightbox-image-container {
        border: 3px solid var(--primary-cyan);
    }

    .lightbox-prev,
    .lightbox-next,
    .lightbox-close {
        border: 3px solid var(--glass-border);
    }
}

/* Reduced Motion for Gallery */
@media (prefers-reduced-motion: reduce) {
    .gallery-item,
    .gallery-image,
    .gallery-overlay,
    .gallery-item-title,
    .gallery-item-description,
    .gallery-zoom-icon,
    .lightbox-modal,
    .lightbox-content,
    .lightbox-prev,
    .lightbox-next,
    .lightbox-close,
    #lightbox-image {
        animation: none !important;
        transition: none !important;
    }

    .gallery-item:hover {
        transform: none;
    }

    .gallery-item:hover .gallery-image {
        transform: none;
    }

    .lightbox-content {
        animation: none;
    }
}

/* Print Styles for Gallery */
@media print {
    .gallery-section {
        padding: 2rem 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .gallery-overlay,
    .gallery-zoom-icon,
    .lightbox-modal {
        display: none !important;
    }

    .gallery-item {
        break-inside: avoid;
    }
}

/* ===================================
   About Page Responsive Styles
   =================================== */

/* Tablet Styles (768px and below) */
@media (max-width: 768px) {
    /* About Hero */
    .about-hero {
        padding: 100px 0 60px;
    }

    .about-hero .page-title {
        font-size: 2rem;
    }

    .story-content {
        padding: 2rem;
    }

    .story-intro {
        font-size: 1.1rem;
    }

    .story-content p {
        font-size: 1rem;
    }

    /* Mission and Vision */
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mission-card,
    .vision-card {
        padding: 2rem;
    }

    /* Facilities */
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Testimonials Slider */
    .testimonials-section {
        padding: 60px 0;
    }

    .testimonial-card {
        padding: 2rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    /* Hide navigation arrows on tablet */
    .testimonials-slider .swiper-button-next,
    .testimonials-slider .swiper-button-prev {
        display: none;
    }

    /* Make pagination more prominent on touch devices */
    .testimonials-slider .swiper-pagination {
        margin-top: 1.5rem;
    }

    .testimonials-slider .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
    }

    .testimonials-slider .swiper-pagination-bullet-active {
        width: 25px;
    }
}

/* Mobile Styles (480px and below) */
@media (max-width: 480px) {
    /* About Hero */
    .about-hero {
        padding: 100px 0 60px;
    }

    .about-hero .page-title {
        font-size: 1.8rem;
    }

    .story-content {
        padding: 1.5rem;
    }

    /* Mission and Vision */
    .icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .mission-card h2,
    .vision-card h2 {
        font-size: 1.5rem;
    }

    .mission-card,
    .vision-card {
        padding: 1.5rem;
    }

    /* Facilities */
    .facilities-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .facility-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .facility-card h3 {
        font-size: 1.2rem;
    }

    .facility-card p {
        font-size: 0.9rem;
    }

    /* Testimonials Slider */
    .testimonials-section {
        padding: 50px 0;
    }

    .testimonials-slider-wrapper {
        margin-top: 2rem;
        padding: 1rem 0;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .testimonial-rating {
        margin-bottom: 1rem;
    }

    .testimonial-rating i {
        font-size: 1rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    .testimonial-author {
        padding-top: 1rem;
    }

    .author-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .author-info h4 {
        font-size: 1rem;
    }

    .author-info p {
        font-size: 0.85rem;
    }

    /* Pagination adjustments for mobile */
    .testimonials-slider .swiper-pagination {
        margin-top: 1rem;
    }

    .testimonials-slider .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }

    .testimonials-slider .swiper-pagination-bullet-active {
        width: 20px;
    }

    /* CTA Section */
    .cta-section {
        padding: 3rem 0;
    }

    .cta-content {
        padding: 2rem 1rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-content p {
        font-size: 1rem;
    }
}

/* Large Desktop (1400px and above) */
@media (min-width: 1400px) {
    /* About Hero */
    .about-hero .page-title {
        font-size: 4rem;
    }

    .story-content {
        padding: 3rem;
    }

    /* Facilities */
    .facilities-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    /* Testimonials */
    .testimonials-section {
        padding: 100px 0;
    }

    .testimonial-card {
        padding: 3.5rem;
    }

    .testimonial-text {
        font-size: 1.15rem;
    }

    .author-avatar {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .author-info h4 {
        font-size: 1.2rem;
    }

    /* Navigation arrows - position outside on large screens */
    .testimonials-slider .swiper-button-next {
        right: -60px;
    }

    .testimonials-slider .swiper-button-prev {
        left: -60px;
    }
}

/* Medium Desktop (992px to 1199px) */
@media (min-width: 769px) and (max-width: 1199px) {
    /* Facilities */
    .facilities-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Testimonials - 2 slides on medium screens */
    .testimonial-card {
        padding: 2.5rem;
    }
}

/* Landscape Mobile for About Page */
@media (max-height: 500px) and (orientation: landscape) {
    .about-hero {
        padding: 80px 0 40px;
    }

    .about-hero .page-title {
        font-size: 1.8rem;
    }

    .testimonials-section {
        padding: 40px 0;
    }

    .testimonial-card {
        padding: 1.5rem;
    }
}

/* Touch Device Optimizations for About Page */
@media (hover: none) and (pointer: coarse) {
    /* Ensure swiper is touch-friendly */
    .testimonials-slider {
        touch-action: pan-y;
    }

    /* Make pagination bullets larger for touch */
    .testimonials-slider .swiper-pagination-bullet {
        width: 12px;
        height: 12px;
        margin: 0 6px;
    }

    .testimonials-slider .swiper-pagination-bullet-active {
        width: 30px;
    }

    /* Remove hover effects on testimonial cards */
    .testimonial-card:hover {
        transform: none;
        box-shadow: 0 5px 20px rgba(0, 240, 255, 0.15);
    }
}

/* High Contrast Mode for About Page */
@media (prefers-contrast: high) {
    .testimonial-card {
        border: 2px solid var(--glass-border);
    }

    .testimonial-rating i {
        filter: drop-shadow(0 0 2px #ffd700);
    }

    .author-avatar {
        border: 2px solid var(--primary-cyan);
    }
}

/* Reduced Motion for About Page */
@media (prefers-reduced-motion: reduce) {
    .testimonial-card,
    .testimonials-slider .swiper-button-next,
    .testimonials-slider .swiper-button-prev {
        transition: none !important;
    }

    .testimonial-card:hover {
        transform: none;
    }

    /* Disable autoplay for reduced motion preference */
    .testimonials-slider .swiper-wrapper {
        transition-duration: 0ms !important;
    }
}


/* ===================================
   Contact Page Responsive Styles
   =================================== */

/* Tablet Styles (768px and below) */
@media (max-width: 768px) {
    /* Contact Section */
    .contact-section {
        padding: 3rem 0;
    }

    /* Contact Grid - Stack on tablet */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Contact Form Container */
    .contact-form-container {
        padding: 2.5rem;
    }

    .contact-form-container h2 {
        font-size: 1.8rem;
    }

    /* Form Inputs */
    .contact-form input,
    .contact-form textarea {
        padding: 0.9rem 1.1rem;
        font-size: 0.95rem;
    }

    /* Submit Button */
    .btn-submit {
        padding: 1.1rem 2rem;
        font-size: 1rem;
    }

    /* Contact Info Cards */
    .contact-info-card,
    .social-media-card,
    .map-container {
        padding: 2rem;
    }

    .contact-info-card h3,
    .social-media-card h3,
    .map-container h3 {
        font-size: 1.6rem;
    }

    /* Contact Detail Item */
    .contact-detail-item {
        padding: 1rem;
    }

    .detail-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .detail-content h4 {
        font-size: 1rem;
    }

    .detail-content p {
        font-size: 0.9rem;
    }

    /* Social Links Grid */
    .social-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }

    .social-link {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }

    .social-link i {
        font-size: 1.3rem;
    }

    /* FAQ Section */
    .faq-section {
        padding: 3rem 0;
    }

    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .faq-item {
        padding: 1.75rem;
    }

    .faq-item h3 {
        font-size: 1.1rem;
    }

    .faq-item p {
        font-size: 0.95rem;
    }
}

/* Mobile Styles (480px and below) */
@media (max-width: 480px) {
    /* Contact Section */
    .contact-section {
        padding: 2rem 0;
    }

    /* Contact Grid */
    .contact-grid {
        gap: 2rem;
    }

    /* Contact Form Container */
    .contact-form-container {
        padding: 2rem 1.5rem;
    }

    .contact-form-container h2 {
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
    }

    .form-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    /* Alert Messages */
    .alert {
        padding: 0.85rem 1.25rem;
        font-size: 0.9rem;
    }

    .alert i {
        font-size: 1.1rem;
    }

    /* Contact Form */
    .contact-form {
        gap: 1.25rem;
    }

    /* Form Group */
    .form-group label {
        font-size: 0.9rem;
    }

    .form-group label i {
        font-size: 0.9rem;
    }

    /* Form Inputs */
    .contact-form input,
    .contact-form textarea {
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }

    .contact-form textarea {
        min-height: 130px;
    }

    /* Submit Button */
    .btn-submit {
        padding: 1rem 1.75rem;
        font-size: 0.95rem;
        margin-top: 0.25rem;
    }

    /* Contact Info Cards */
    .contact-info-card,
    .social-media-card,
    .map-container {
        padding: 1.75rem 1.5rem;
    }

    .contact-info-card h3,
    .social-media-card h3,
    .map-container h3 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .info-description,
    .social-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    /* Contact Details */
    .contact-details {
        gap: 1.25rem;
    }

    .contact-detail-item {
        padding: 1rem;
        gap: 1rem;
        border-radius: 8px;
    }

    .detail-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        border-radius: 8px;
    }

    .detail-content h4 {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }

    .detail-content p {
        font-size: 0.85rem;
    }

    /* Social Links Grid - Stack on mobile */
    .social-links-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .social-link {
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }

    .social-link i {
        font-size: 1.2rem;
        width: 25px;
    }

    /* Map Container */
    .map-placeholder {
        padding: 2.5rem 1.5rem;
        border-radius: 8px;
    }

    .map-placeholder i {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .map-placeholder p {
        font-size: 1rem;
    }

    .map-placeholder small {
        font-size: 0.85rem;
    }

    /* FAQ Section */
    .faq-section {
        padding: 2rem 0;
    }

    .faq-grid {
        gap: 1.25rem;
        margin-top: 1.5rem;
    }

    .faq-item {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .faq-item h3 {
        font-size: 1rem;
        gap: 0.6rem;
        margin-bottom: 0.75rem;
    }

    .faq-item h3 i {
        font-size: 1.1rem;
    }

    .faq-item p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* Large Desktop (1400px and above) */
@media (min-width: 1400px) {
    /* Contact Grid */
    .contact-grid {
        gap: 4rem;
    }

    /* Contact Form Container */
    .contact-form-container {
        padding: 3.5rem;
    }

    .contact-form-container h2 {
        font-size: 2.2rem;
    }

    /* Form Inputs */
    .contact-form input,
    .contact-form textarea {
        padding: 1.1rem 1.5rem;
        font-size: 1.05rem;
    }

    .contact-form textarea {
        min-height: 180px;
    }

    /* Submit Button */
    .btn-submit {
        padding: 1.3rem 3rem;
        font-size: 1.15rem;
    }

    /* Contact Info Cards */
    .contact-info-card,
    .social-media-card,
    .map-container {
        padding: 3rem;
    }

    .contact-info-card h3,
    .social-media-card h3,
    .map-container h3 {
        font-size: 2rem;
    }

    /* Contact Detail Item */
    .detail-icon {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }

    .detail-content h4 {
        font-size: 1.15rem;
    }

    .detail-content p {
        font-size: 1rem;
    }

    /* Social Links Grid */
    .social-links-grid {
        gap: 1.25rem;
    }

    .social-link {
        padding: 1.1rem 1.5rem;
        font-size: 1rem;
    }

    .social-link i {
        font-size: 1.6rem;
    }

    /* FAQ Grid */
    .faq-grid {
        gap: 2.5rem;
    }

    .faq-item {
        padding: 2.5rem;
    }

    .faq-item h3 {
        font-size: 1.3rem;
    }

    .faq-item p {
        font-size: 1.05rem;
    }
}

/* Medium Desktop (992px to 1199px) */
@media (min-width: 769px) and (max-width: 1199px) {
    /* Contact Grid */
    .contact-grid {
        grid-template-columns: 1fr 0.9fr;
        gap: 2.5rem;
    }

    /* Contact Form Container */
    .contact-form-container {
        padding: 2.75rem;
    }

    /* Contact Info Cards */
    .contact-info-card,
    .social-media-card,
    .map-container {
        padding: 2.25rem;
    }

    /* Social Links Grid */
    .social-links-grid {
        grid-template-columns: 1fr;
    }
}

/* Landscape Mobile for Contact Page */
@media (max-height: 500px) and (orientation: landscape) {
    .contact-section {
        padding: 2rem 0;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .contact-form-container {
        padding: 2rem;
    }

    .contact-form {
        gap: 1rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.75rem 1rem;
    }

    .contact-form textarea {
        min-height: 100px;
    }

    .btn-submit {
        padding: 0.9rem 1.75rem;
    }

    .contact-info-card,
    .social-media-card,
    .map-container {
        padding: 1.75rem;
    }

    .faq-section {
        padding: 2rem 0;
    }

    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Touch Device Optimizations for Contact Page */
@media (hover: none) and (pointer: coarse) {
    /* Make form inputs more touch-friendly */
    .contact-form input,
    .contact-form textarea {
        min-height: 48px;
        padding: 1rem 1.25rem;
    }

    /* Make buttons more touch-friendly */
    .btn-submit {
        min-height: 52px;
        padding: 1.2rem 2.5rem;
    }

    /* Reduce hover effects on touch devices */
    .contact-detail-item:hover {
        transform: translateX(0);
    }

    .social-link:hover {
        transform: translateY(-2px);
    }

    .faq-item:hover {
        transform: translateY(-2px);
    }

    /* Disable focus transform on touch devices */
    .contact-form input:focus,
    .contact-form textarea:focus {
        transform: none;
    }
}

/* High Contrast Mode for Contact Page */
@media (prefers-contrast: high) {
    .contact-form-container,
    .contact-info-card,
    .social-media-card,
    .map-container,
    .faq-item {
        border: 2px solid var(--glass-border);
    }

    .contact-form input,
    .contact-form textarea {
        border: 2px solid var(--glass-border);
    }

    .contact-form input:focus,
    .contact-form textarea:focus {
        border: 3px solid var(--primary-cyan);
    }

    .social-link {
        border: 2px solid var(--glass-border);
    }

    .contact-detail-item {
        border: 2px solid var(--glass-border);
    }
}

/* Reduced Motion for Contact Page */
@media (prefers-reduced-motion: reduce) {
    .alert,
    .contact-form input,
    .contact-form textarea,
    .btn-submit,
    .contact-detail-item,
    .social-link,
    .faq-item {
        animation: none !important;
        transition: none !important;
    }

    .contact-form input:focus,
    .contact-form textarea:focus {
        transform: none;
    }

    .contact-detail-item:hover,
    .social-link:hover,
    .faq-item:hover,
    .btn-submit:hover {
        transform: none;
    }

    .btn-submit::before {
        display: none;
    }
}

/* Print Styles for Contact Page */
@media print {
    .contact-section {
        padding: 2rem 0;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .btn-submit,
    .social-links-grid,
    .map-container {
        display: none;
    }

    .contact-form-container,
    .contact-info-card,
    .faq-item {
        break-inside: avoid;
        border: 1px solid #ccc;
    }

    .alert {
        display: none;
    }
}
