/* Creative Coding Workshop Series - Responsive CSS */

/* Mobile First Approach */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
    /* Disable animations on mobile */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    .sal-animate {
        animation: none !important;
        transition: none !important;
    }
    
    /* Typography adjustments */
    .display-4 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    /* Hero section adjustments */
    .hero-section {
        min-height: 90vh;
        padding: 2rem 0;
    }
    
    .hero-section .container {
        text-align: center;
    }
    
    /* Button adjustments */
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Card adjustments */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-img-top {
        height: 150px;
    }
    
    /* Timeline mobile layout */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item::before {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin: 0;
        margin-left: 50px;
        text-align: left;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Team member adjustments */
    .team-member {
        margin-bottom: 2rem;
    }
    
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Contact form adjustments */
    .contact-info {
        margin-top: 2rem;
    }
    
    /* Process steps mobile layout */
    .process-step {
        margin-bottom: 2rem;
    }
    
    .step-number {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem;
    }
    
    /* Gallery mobile spacing */
    #gallery .col-lg-4,
    #gallery .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Footer mobile adjustments */
    footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Navbar mobile adjustments */
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    /* Section padding mobile */
    section {
        padding: 3rem 0;
    }
    
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Feature icons mobile */
    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .feature-icon i {
        font-size: 1.8rem;
    }
    
    /* Map placeholder mobile */
    .map-placeholder {
        min-height: 200px;
        padding: 2rem 1rem;
    }
    
    /* Breadcrumb mobile */
    .breadcrumb-img {
        height: 16px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* No scroll animations on tablets */
    .sal-animate {
        opacity: 1 !important;
        transform: none !important;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-section {
        min-height: 95vh;
    }
    
    .timeline-item:nth-child(odd) .timeline-content {
        margin-right: 45%;
        padding-right: 1.5rem;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 45%;
        padding-left: 1.5rem;
    }
    
    .team-member img {
        width: 110px;
        height: 110px;
    }
    
    .card-img-top {
        height: 180px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .display-4 {
        font-size: 3rem;
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    .card-img-top {
        height: 200px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 992px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section .display-4 {
        font-size: 3.5rem;
    }
    
    .timeline-item:nth-child(odd) .timeline-content {
        margin-right: 50%;
        padding-right: 2rem;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50%;
        padding-left: 2rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    
    body {
        padding-top: 0;
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
    }
    
    .card {
        border: 1px solid #ccc;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .timeline::before,
    .timeline-item::before {
        display: none;
    }
    
    .timeline-content {
        margin: 0 !important;
        padding: 1rem;
        border: 1px solid #ccc;
        margin-bottom: 1rem !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--dark-gray);
    }
    
    .btn-primary {
        border: 2px solid var(--dark-blue);
    }
    
    .form-control {
        border: 2px solid var(--dark-gray);
    }
    
    .timeline-content {
        border: 2px solid var(--dark-gray);
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-section .display-4 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-section p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Focus and accessibility improvements */
@media (any-hover: none) {
    .card:hover {
        transform: none;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Touch device optimizations */
@media (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .nav-link {
        padding: 1rem 0.5rem;
    }
    
    .form-control {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-check-input {
        width: 20px;
        height: 20px;
    }
}

/* Dark mode support */

/* Additional mobile menu adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--white);
        border-radius: 8px;
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Specific adjustments for additional pages */
.breadcrumb-section {
    margin-top: 76px;
}

@media (max-width: 575.98px) {
    .breadcrumb-section {
        padding: 0.5rem 0;
    }
}

/* Form-specific mobile improvements */
@media (max-width: 575.98px) {
    .contact-info {
        text-align: center;
    }
    
    .contact-info .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    form .col-md-6 {
        margin-bottom: 1rem;
    }
    
    form .col-12 {
        margin-bottom: 1rem;
    }
    
    .btn-lg {
        width: 100%;
        margin-top: 1rem;
    }
}

/* Gallery mobile improvements */
@media (max-width: 575.98px) {
    #gallery .col-lg-4 {
        margin-bottom: 0.5rem;
    }
    
    #gallery img {
        border-radius: 4px;
    }
}

/* Team section mobile grid */
@media (max-width: 575.98px) {
    .team-member {
        text-align: center;
        padding: 1rem 0;
    }
}

/* Process section mobile layout */
@media (max-width: 575.98px) {
    .process-step {
        text-align: center;
        padding: 1rem;
    }
    
    .process-step .step-number {
        margin: 0 auto 1rem auto;
    }
}

/* FAQ mobile adjustments */
@media (max-width: 575.98px) {
    #faq .card {
        margin-bottom: 1rem;
    }
    
    #faq .card-body {
        padding: 1rem;
    }
    
    #faq .card-title {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    #faq .card-text {
        font-size: 0.9rem;
    }
}

.hero-section h1 {
    padding-top: 175px;
}