/* Responsive CSS for VR Safety Training */

/* Mobile First Approach */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    .timeline-item {
        width: 100% !important;
        left: 0 !important;
        text-align: left !important;
        padding-left: 2rem !important;
        padding-right: 0 !important;
    }
    
    .col-lg-2-4 {
        margin-bottom: 1rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .navbar-brand {
        font-size: 1.125rem !important;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .team-member img {
        width: 130px;
        height: 130px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .timeline-item {
        width: 100% !important;
        left: 0 !important;
        text-align: left !important;
        padding-left: 2rem !important;
        padding-right: 0 !important;
    }
    
    .col-lg-2-4 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 1rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .col-lg-2-4 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 60vh;
    }
    
    .navbar {
        padding: 0.25rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-img-top,
    .gallery-img,
    .team-member img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .contact-form,
    #gallery {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* Utility classes for responsive spacing */
.p-responsive {
    padding: 1rem;
}

@media (min-width: 768px) {
    .p-responsive {
        padding: 2rem;
    }
}

@media (min-width: 992px) {
    .p-responsive {
        padding: 3rem;
    }
}

/* Responsive text sizes */
.text-responsive-sm {
    font-size: 0.875rem;
}

.text-responsive-base {
    font-size: 1rem;
}

@media (min-width: 768px) {
    .text-responsive-sm {
        font-size: 1rem;
    }
    
    .text-responsive-base {
        font-size: 1.125rem;
    }
}

/* Navigation menu responsive behavior */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
        padding: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Responsive grid adjustments */
.row-responsive > [class*="col-"] {
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .row-responsive > [class*="col-"] {
        margin-bottom: 2rem;
    }
}

/* Responsive image sizing */
.img-responsive-sm {
    max-width: 100px;
    height: auto;
}

.img-responsive-md {
    max-width: 150px;
    height: auto;
}

.img-responsive-lg {
    max-width: 200px;
    height: auto;
}

@media (min-width: 768px) {
    .img-responsive-sm {
        max-width: 120px;
    }
    
    .img-responsive-md {
        max-width: 180px;
    }
    
    .img-responsive-lg {
        max-width: 250px;
    }
}

/* Container responsive adjustments */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Responsive button sizes */
@media (max-width: 575.98px) {
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Responsive card layouts */
@media (max-width: 767.98px) {
    .card-deck .card {
        margin-bottom: 1rem;
    }
}

/* Responsive section padding */
.section-responsive {
    padding: 2rem 0;
}

@media (min-width: 768px) {
    .section-responsive {
        padding: 4rem 0;
    }
}

@media (min-width: 992px) {
    .section-responsive {
        padding: 5rem 0;
    }
} 