/* Responsive CSS for Digital Scrapbook Builder Template */

/* Mobile First Approach - Bootstrap 5 Compatible */

/* Extra Small Devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* No animations on mobile as per requirements */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    /* Typography adjustments */
    h1, .display-4 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.59rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero section adjustments */
    #hero {
        padding-top: 70px;
        min-height: auto;
    }
    
    #hero .display-4 {
        font-size: 1.85rem;
        margin-bottom: 1rem;
    }
    
    /* Button adjustments */
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.25rem;
    }
    
    /* Card adjustments */
    .card-img-top {
        height: 150px;
    }
    
    /* Team member images */
    .team-member-img,
    img[style*="width: 150px"] {
        width: 100px !important;
        height: 100px !important;
    }
    
    /* Gallery grid adjustments */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Contact form spacing */
    .row.g-3 > div {
        margin-bottom: 1rem;
    }
    
    /* Footer adjustments */
    #footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Navbar brand size */
    .navbar-brand {
        font-size: 1.25rem !important;
    }
    
    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Section padding */
    .py-5 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    /* Text centering on mobile */
    .col-md-6,
    .col-lg-3,
    .col-lg-4 {
        text-align: center;
        margin-bottom: 1.67rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Reduce animations on smaller screens */
    [data-sal] {
        animation-duration: 0.76s;
    }
    
    h1, .display-4 {
        font-size: 2.36rem;
    }
    
    h2 {
        font-size: 1.89rem;
    }
    
    /* Hero adjustments */
    #hero {
        padding-top: 75px;
    }
    
    /* Card grid adjustments */
    .row.g-4 > .col-md-6 {
        margin-bottom: 1.57rem;
    }
    
    /* Team member images */
    .team-member-img,
    img[style*="width: 150px"] {
        width: 120px !important;
        height: 120px !important;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Standard animations for tablets */
    [data-sal] {
        animation-duration: 0.84s;
    }
    
    /* Hero section */
    #hero {
        padding-top: 80px;
    }
    
    /* Adjust grid spacing */
    .row.g-4 > div {
        margin-bottom: 1.64rem;
    }
    
    /* Card image height */
    .card-img-top {
        height: 180px;
    }
    
    /* Team member images */
    .team-member-img,
    img[style*="width: 150px"] {
        width: 140px !important;
        height: 140px !important;
    }
    
    /* Footer layout */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
}

/* Large Devices (desktops, 996px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Full animations for desktop */
    [data-sal] {
        animation-duration: 1.24s;
    }
    
    /* Hero section full height */
    #hero {
        min-height: 100vh;
    }
    
    /* Standard card height */
    .card-img-top {
        height: 200px;
    }
    
    /* Team member images standard size */
    .team-member-img,
    img[style*="width: 150px"] {
        width: 150px !important;
        height: 150px !important;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Enhanced animations for large screens */
    [data-sal] {
        animation-duration: 1s;
    }
    
    /* Hero section adjustments */
    #hero {
        min-height: 100vh;
    }
    
    /* Container max width */
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced card height for large screens */
    .card-img-top {
        height: 220px;
    }
    
    /* Typography enhancements */
    h1, .display-4 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.60rem;
    }
    
    .lead {
        font-size: 1.33rem;
    }
}

/* Utility Classes for Responsive Design */

/* Show/Hide on different screen sizes */
@media (max-width: 767.98px) {
    .d-md-none {
        display: none !important;
    }
    
    .d-sm-block {
        display: block !important;
    }
}

@media (min-width: 768px) {
    .d-md-block {
        display: block !important;
    }
    
    .d-sm-none {
        display: none !important;
    }
}

/* Responsive Text Alignment */
@media (max-width: 767.98px) {
    .text-md-start {
        text-align: center !important;
    }
    
    .text-md-center {
        text-align: center !important;
    }
}

@media (min-width: 768px) {
    .text-md-start {
        text-align: left !important;
    }
    
    .text-md-center {
        text-align: center !important;
    }
}

/* Responsive Spacing */
@media (max-width: 575.98px) {
    .py-sm-3 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    .mb-sm-3 {
        margin-bottom: 1rem !important;
    }
    
    .mt-sm-3 {
        margin-top: 1rem !important;
    }
}

/* Responsive Navigation */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--white);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--gray-200);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Responsive Gallery */
@media (max-width: 767.98px) {
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    #gallery img {
        width: 100%;
        height: auto;
    }
}

/* Responsive Form */
@media (max-width: 575.98px) {
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn {
        width: 100%;
        margin-top: 0.57rem;
    }
}

/* Responsive Cards */
@media (max-width: 767.98px) {
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    .card-title {
        font-size: 1.22rem;
    }
    
    .card-text {
        font-size: 1.02rem;
    }
}

/* Responsive Breadcrumbs */
@media (max-width: 575.98px) {
    .breadcrumb {
        justify-content: center;
    }
    
    .breadcrumb-item img {
        width: 16px;
        height: 16px;
    }
}

/* Landscape Mobile Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    #hero {
        min-height: auto;
        padding-top: 60px;
        padding-bottom: 2rem;
    }
    
    .vh-100 {
        height: auto !important;
    }
}

/* Print Styles */
@media print {
    /* Hide navigation and footer */
    #header,
    #footer {
        display: none !important;
    }
    
    /* Adjust colors for print */
    * {
        color: black !important;
        background: white !important;
        box-shadow: none !important;
    }
    
    /* Optimize spacing for print */
    .py-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* Page breaks */
    .card,
    section {
        break-inside: avoid;
    }
} 