/* ===== RESPONSIVE DESIGN ===== */

/* Extra Large Devices (Large Desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .hero-section h3 {
        font-size: 1.8rem;
    }
}

/* Large Devices (Desktops, 992px and up) */
@media (max-width: 1199px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section h3 {
        font-size: 1.4rem;
    }
}

/* Medium Devices (Tablets, 768px and up) */
@media (max-width: 991px) {
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    .hero-section {
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-section h3 {
        font-size: 1.2rem;
        margin-bottom: var(--spacing-md);
    }
    
    section {
        padding: var(--spacing-lg) 0;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 50px;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-item:nth-child(even) {
        padding-left: 50px;
        padding-right: 0;
        text-align: left;
    }
    
    .timeline-item::before {
        left: 20px;
        transform: translateX(0);
    }
    
    .process-step {
        margin-bottom: var(--spacing-lg);
    }
    
    .step-number {
        margin-bottom: var(--spacing-md);
    }
}

/* Small Devices (Landscape phones, 576px and up) */
@media (max-width: 767px) {
    :root {
        --font-size-base: 15px;
        --spacing-xl: 2rem;
        --spacing-lg: 1.5rem;
    }
    
    .navbar-brand {
        font-size: 0.95rem !important;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: var(--spacing-sm);
    }
    
    .hero-section {
        padding: var(--spacing-xl) 0;
    }
    
    .hero-section h1 {
        font-size: 1.6rem;
    }
    
    .hero-section h3 {
        font-size: 1.1rem;
    }
    
    .hero-section p {
        font-size: var(--font-size-base);
    }
    
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1.1rem; }
    
    .card-img-top {
        height: 160px;
    }
    
    .team img {
        width: 100px;
        height: 100px;
        margin-bottom: var(--spacing-sm);
    }
    
    .contact-info {
        margin-top: var(--spacing-lg);
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .swiper {
        padding-bottom: 30px;
    }
    
    /* Disable autoplay and effects on mobile for Swiper */
    .swiper-wrapper {
        transform: none !important;
    }
}

/* Extra Small Devices (Portrait phones, less than 576px) */
@media (max-width: 575px) {
    :root {
        --font-size-base: 14px;
        --spacing-xl: 1.5rem;
        --spacing-lg: 1rem;
        --spacing-md: 0.75rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .navbar-brand {
        font-size: 0.9rem !important;
    }
    
    .hero-section h1 {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .hero-section h3 {
        font-size: 1rem;
    }
    
    h1 { font-size: 1.4rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.1rem; }
    h4 { font-size: 1rem; }
    h5 { font-size: 0.95rem; }
    h6 { font-size: 0.85rem; }
    
    .card-body {
        padding: var(--spacing-sm);
    }
    
    .card h5 {
        font-size: 0.95rem;
    }
    
    .btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: var(--font-size-small);
    }
    
    .form-control {
        padding: var(--spacing-xs);
    }
    
    .accordion-button {
        padding: var(--spacing-sm);
        font-size: var(--font-size-small);
    }
    
    .team img {
        width: 80px;
        height: 80px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .fa-3x {
        font-size: 2rem !important;
    }
    
    #gallery .col-6 {
        margin-bottom: var(--spacing-sm);
    }
    
    .breadcrumb-section {
        padding: var(--spacing-xs) 0;
    }
    
    footer {
        text-align: center;
    }
    
    footer .row > div {
        margin-bottom: var(--spacing-md);
    }
}

/* ===== MOBILE-SPECIFIC STYLES ===== */
@media (max-width: 767px) {
    /* Swiper mobile optimizations */
    .swiper {
        overflow: hidden;
    }
    
    .swiper-slide {
        width: 100% !important;
        flex-shrink: 0;
    }
    
    /* Disable hover effects on touch devices */
    .card:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }
    
    .card:hover .card-img-top {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    .navbar-nav .nav-link:hover::after {
        width: 0;
    }
    
    /* Mobile navigation improvements */
    .navbar-collapse {
        border-top: 1px solid var(--neutral-light);
        margin-top: var(--spacing-sm);
        padding-top: var(--spacing-sm);
    }
    
    .navbar-nav .nav-link {
  font-size: 12px !important;
        padding: var(--spacing-xs) 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    /* Mobile-friendly spacing */
    .row [class*="col-"] {
        margin-bottom: var(--spacing-md);
    }
    
    .row [class*="col-"]:last-child {
        margin-bottom: 0;
    }
    
    /* Mobile gallery grid */
    #gallery .col-6 {
        padding: 2px;
    }
    
    #gallery img {
        border-radius: 4px;
    }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        padding: var(--spacing-lg) 0;
    }
    
    .hero-section h1 {
        font-size: 1.3rem;
    }
    
    .hero-section h3 {
        font-size: 0.95rem;
        margin-bottom: var(--spacing-sm);
    }
    
    section {
        padding: var(--spacing-md) 0;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .navbar,
    .btn,
    .swiper-pagination,
    .breadcrumb-section,
    footer {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
    
    .hero-section h1,
    .hero-section h3,
    .hero-section p {
        color: black !important;
    }
    
    section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        color: black !important;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
    
    img {
        max-width: 100% !important;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #0066cc;
        --accent-color: #008000;
        --highlight-color: #800080;
        --neutral-color: #666666;
        --neutral-light: #cccccc;
    }
    
    .card {
        border: 2px solid var(--primary-color) !important;
    }
    
    .btn {
        border: 2px solid currentColor !important;
    }
    
    .form-control {
        border: 2px solid var(--primary-color) !important;
    }
}

/* ===== DARK MODE PREPARATION ===== */
@media (prefers-color-scheme: dark) {
    /* Future dark mode support can be added here */
    /* Currently maintaining light theme as per requirements */
} 