/* ============================
   RESPONSIVE DESIGN
   Mobile-First Approach
   ============================ */

/* ============================
   EXTRA SMALL DEVICES (Portrait phones, less than 576px)
   ============================ */
@media (max-width: 575.98px) {
    /* Typography */
    h1 {
        font-size: 1.81rem;
    }
    
    h2 {
        font-size: 1.52rem;
    }
    
    h3 {
        font-size: 1.38rem;
    }
    
    /* Navbar */
    .navbar-brand {
    font-size: 10px !important;
        font-size: 1.35rem !important;
    }
    
    .navbar-nav .nav-link {
    font-size: 10px !important;
        padding: 0.75rem 0;
        text-align: center;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 2rem 0;
        min-height: 80vh;
    }
    
    .hero-section h1 {
        font-size: 1.93rem;
        margin-bottom: 0.97rem;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1.18rem;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 1.12rem;
        margin-bottom: 1.69rem;
    }
    
    /* Cards */
    .card-body {
        padding: 1rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    /* Sections */
    section {
        padding: 1.5rem 0;
    }
    
    .py-5 {
        padding-top: 1.56rem !important;
        padding-bottom: 1.61rem !important;
    }
    
    /* Team */
    .team-member img {
        width: 100px;
        height: 100px;
    }
    
    /* Process Steps */
    .process-number {
        width: 50px;
        height: 50px;
        font-size: 1.36rem;
    }
    
    /* Forms */
    .form-control {
        padding: 0.625rem 0.875rem;
        font-size: 1.06rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.99rem;
    }
    
    /* Grid adjustments */
    .col-6 {
        margin-bottom: 1rem;
    }
}

/* ============================
   SMALL DEVICES (Landscape phones, 576px and up)
   ============================ */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero Section */
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1.31rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 190px;
    }
    
    /* Team */
    .team-member img {
        width: 110px;
        height: 110px;
    }
    
    /* Process Steps */
    .process-number {
        width: 55px;
        height: 55px;
        font-size: 1.43rem;
    }
}

/* ============================
   MEDIUM DEVICES (Tablets, 768px and up)
   ============================ */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Hero Section */
    .hero-section {
        min-height: 90vh;
    }
    
    .hero-section h1 {
        font-size: 2.32rem;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1.46rem;
    }
    
    /* Cards */
    .card-img-top {
        height: 200px;
    }
    
    /* Team */
    .team-member img {
        width: 115px;
        height: 115px;
    }
    
    /* Grid adjustments */
    .col-md-4 {
        margin-bottom: 1.72rem;
    }
    
    .col-md-6 {
        margin-bottom: 1.75rem;
    }
    
    /* Navbar */
    .navbar-collapse {
        background: rgba(248, 249, 250, 0.95);
        border-radius: 8px;
        margin-top: 0.70rem;
        padding: 1rem;
    }
}

/* ============================
   LARGE DEVICES (Desktops, 996px and up)
   ============================ */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Hero Section */
    .hero-section {
        min-height: 100vh;
    }
    
    /* Cards */
    .card-img-top {
        height: 220px;
    }
    
    /* Spacing adjustments */
    .mb-4 {
        margin-bottom: 2rem !important;
    }
}

/* ============================
   EXTRA LARGE DEVICES (Large desktops, 1200px and up)
   ============================ */
@media (min-width: 1200px) {
    /* Container max-width */
    .container {
        max-width: 1140px;
    }
    
    /* Cards */
    .card-img-top {
        height: 240px;
    }
    
    /* Hero Section */
    .hero-section h1 {
        font-size: 2.76rem;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1.75rem;
    }
    
    /* Sections */
    section {
        padding: 5rem 0;
    }
    
    .py-5 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
}

/* ============================
   LANDSCAPE ORIENTATION
   ============================ */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.87rem;
        margin-bottom: 0.62rem;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1.22rem;
        margin-bottom: 0.81rem;
    }
    
    .hero-section p {
        font-size: 1.03rem;
        margin-bottom: 1rem;
    }
}

/* ============================
   TOUCH DEVICE OPTIMIZATIONS
   ============================ */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .card:hover {
        transform: none;
        box-shadow: 0 6px 6px rgba(0, 0, 0, 0.1);
    }
    
    .card:hover .card-img-top {
        transform: none;
    }
    
    .team-member:hover img {
        transform: none;
    }
    
    .gallery img:hover {
        transform: none;
        filter: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    /* Increase touch targets */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .nav-link {
    font-size: 10px !important;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .form-control {
        min-height: 44px;
    }
}

/* ============================
   HIGH DPI DISPLAYS
   ============================ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .card {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
    }
    
    .btn {
        border-width: 1px;
    }
    
    .form-control {
        border-width: 1px;
    }
}

/* ============================
   PRINT STYLES
   ============================ */
@media print {
    /* Hide navigation and interactive elements */
    .navbar,
    .btn,
    .form-control,
    footer {
        display: none !important;
    }
    
    /* Optimize text for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    /* Remove background colors and shadows */
    .card,
    section {
        background: #fff !important;
        box-shadow: none !important;
        border: 1px solid #dadada;
    }
    
    /* Ensure content fits on page */
    .container {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .row {
        margin: 0 !important;
    }
    
    .col-lg-3,
    .col-lg-4,
    .col-lg-6,
    .col-md-4,
    .col-md-6 {
        width: 50% !important;
        float: left;
        page-break-inside: avoid;
    }
} 