/* EcoFest - Responsive Stylesheet */

/* Mobile-First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* No animations on mobile as per requirements */
    * {
        animation: none !important;
        transform: none !important;
        transition: none !important;
    }
    
    /* Typography adjustments for mobile */
    .navbar-brand {
        font-size: 1.19rem;
    }
    
    h1, .h1 {
        font-size: 1.82rem;
    }
    
    h2, .h2 {
        font-size: 1.55rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Hero section mobile adjustments */
    #hero {
        min-height: 80vh;
        padding-top: 100px;
    }
    
    #hero .display-5 {
        font-size: 1.82rem;
    }
    
    /* Hide decorative shapes on mobile */
    .hero-shapes {
        display: none;
    }
    
    /* Card spacing */
    .card {
        margin-bottom: 1rem;
    }
    
    /* Button adjustments */
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    /* Gallery adjustments */
    #gallery .col-md-4 {
        margin-bottom: 0.60rem;
    }
    
    /* Process section mobile layout */
    #process .col-md-6 {
        margin-bottom: 2rem;
    }
    
    /* Team section mobile */
    #team .card-img-top {
        width: 120px;
        height: 120px;
    }
    
    /* Footer mobile adjustments */
    #footer .col-lg-4 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Form adjustments */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Contact info mobile layout */
    #contacts .row.mt-5 .col-md-4 {
        margin-bottom: 1.62rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    #hero {
        min-height: 90vh;
    }
    
    .hero-shapes {
        display: none;
    }
    
    /* Disable animations on small devices */
    .card:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    #team .card:hover .card-img-top {
        transform: none;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    #hero {
        min-height: 95vh;
    }
    
    /* Reduced animations for tablets */
    .card:hover {
        transform: translateY(-4px);
    }
    
    #gallery img:hover {
        transform: scale(1.02);
    }
    
    /* Services grid adjustments */
    #services .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Team section tablet layout */
    #team .card-img-top {
        width: 140px;
        height: 140px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Full animations and effects enabled */
    #hero {
        min-height: 100vh;
    }
    
    /* Enhanced hover effects for desktop */
    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 13px 35px rgba(0, 0, 0, 0.2);
    }
    
    /* Services layout optimization */
    #services .col-lg-4:nth-child(4),
    #services .col-lg-4:nth-child(5),
    #services .col-lg-4:nth-child(6) {
        margin-top: 2rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    /* Enhanced spacing for large screens */
    section {
        padding: 6rem 0;
    }
    
    /* Hero section enhancements */
    #hero .display-5 {
        font-size: 2.58rem;
    }
    
    /* Gallery grid optimization */
    #gallery .row {
        margin: 0 -5px;
    }
    
    #gallery .col-md-4 {
        padding: 0 5px;
        margin-bottom: 10px;
    }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Maximum section spacing */
    section {
        padding: 7rem 0;
    }
}

/* Print Styles */
@media print {
    /* Hide navigation and interactive elements */
    #header,
    .btn,
    #footer {
        display: none !important;
    }
    
    /* Optimize for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    overflow-x: hidden;
}
    
    section {
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
    
    .card {
        border: 1px solid #ddcbc8;
        margin-bottom: 1rem;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #0561b9;
        --color-success: #164023;
        --color-info: #12465d;
        --color-warning: #8a5d0d;
        --color-danger: #8a2832;
    }
    
    .card {
        border: 2px solid var(--color-dark);
    }
    
    .btn {
        border-width: 2px;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: 100vh;
        padding-top: 80px;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .card:hover {
        transform: none;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    #team .card:hover .card-img-top {
        transform: none;
    }
    
    /* Increase touch target sizes */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .nav-link {
        padding: 1rem 0.5rem;
    }
    
    .form-control {
        min-height: 44px;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    /* Override any animations */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Hide decorative elements */
    .hero-shapes {
        display: none !important;
    }
}

/* Dark Mode Support */

/* Specific Mobile Breakpoints for Common Devices */

/* iPhone SE and similar small screens */
@media (max-width: 375px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    #hero .btn-lg {
        width: 100%;
        margin-top: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Standard mobile devices */
@media (min-width: 376px) and (max-width: 575.98px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Tablet Portrait */
@media (min-width: 768px) and (max-width: 991.98px) and (orientation: portrait) {
    #hero .col-lg-6:first-child {
        margin-bottom: 2rem;
    }
    
    #services .col-lg-4 {
        margin-bottom: 1.71rem;
    }
}

/* Tablet Landscape */
@media (min-width: 768px) and (max-width: 1199.98px) and (orientation: landscape) {
    #hero {
        min-height: 100vh;
    }
    
    section {
        padding: 4rem 0;
    }
} 