/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* Mobile First Approach
   ========================================================================== */

/* Base Mobile Styles (up to 575.98px)
   ========================================================================== */
@media (max-width: 575.98px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
    background-size: cover; /* or contain */
    min-height: 300px; /* Set minimum height */
  }

     .hero-content h1 {
      padding: 60px 0 0 0;
      font-size: 2.2rem;
    }

    .card-body {
        padding: 1.5rem;
    }
}

/* Small Devices (576px to 767.98px)
   ========================================================================== */
@media (min-width: 576px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .btn-lg {
        width: auto;
    }
}

/* Medium Devices (768px to 991.98px)
   ========================================================================== */
@media (min-width: 768px) {
    .hero {
        min-height: 500px;
        height: 70vh;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content .lead {
        font-size: 1.25rem;
    }

    .section {
        padding: 4rem 0;
    }

    .card-deck {
        display: flex;
        flex-wrap: wrap;
        margin: -15px;
    }

    .card-deck .card {
        flex: 0 0 calc(50% - 30px);
        margin: 15px;
    }
}

/* Mobile Navigation (up to 991.98px)
   ========================================================================== */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 1rem;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1030;
    }

    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1040;
        background-color: var(--background-color);
        padding: 0;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .navbar-collapse.show,
    .navbar-collapse.collapsing {
        display: block;
    }

    .navbar-nav {
        padding: 0;
        margin: 0;
    }

    .nav-item {
        border-bottom: 1px solid rgba(0,0,0,0.1);
        margin: 0;
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-link {
        padding: 1rem 1.5rem !important;
    }
}

/* Desktop (992px and up)
   ========================================================================== */
@media (min-width: 992px) {
    .navbar {
        padding: 0;
        height: 76px;
    }

    .navbar-brand {
        padding-left: 0;
    }

    .navbar-collapse {
        height: auto !important;
        display: flex !important;
    }

    .navbar-nav {
        margin-left: auto;
        height: 76px;
        align-items: center;
    }

    .nav-item {
        margin: 0 0.5rem;
        border: none;
    }

    .nav-link {
        height: 100%;
        display: flex;
        align-items: center;
        position: relative;
        padding: 0.5rem 1rem !important;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background-color: var(--primary-color);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 100%;
    }

    .hero {
        min-height: 600px;
        height: 80vh;
    }

    .card-deck .card {
        flex: 0 0 calc(33.333% - 30px);
    }
}

/* Large Desktop (1200px and up)
   ========================================================================== */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
        margin: 0 auto;
        padding: 0;
    }

    .hero-content {
        max-width: 800px;
    }
}

/* Extra Large Desktop (1400px and up)
   ========================================================================== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Special Cases
   ========================================================================== */

/* iOS Safari Fix */
@supports (-webkit-touch-callout: none) {
    .hero {
        height: -webkit-fill-available;
    }
}

/* Print styles */
@media print {
    .navbar {
        position: relative !important;
        box-shadow: none;
    }

    .navbar-toggler,
    .navbar-collapse {
        display: none !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}