/* ===============================================
   RESPONSIVE STYLES
   =============================================== */

/* ===============================================
   LARGE SCREENS (Desktop)
   =============================================== */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    #hero h1 {
        font-size: 3rem;
    }
    
    #hero h2 {
        font-size: 1.65rem;
    }
    
    .card-img-top {
        height: 280px;
    }
}

/* ===============================================
   MEDIUM SCREENS (Tablet)
   =============================================== */
@media (max-width: 991.98px) {
    /* Navigation */
    #header .navbar-brand {
        font-size: 1.45rem;
    }
    
    #header .nav-link {
        padding: 0.5rem 0.75rem;
    }
    
    /* Hero Section */
    #hero {
        min-height: 80vh;
        text-align: center;
    }
    
    #hero h1 {
        font-size: 2.24rem;
        margin-bottom: 1rem;
    }
    
    #hero h2 {
        font-size: 1.34rem;
        margin-bottom: 1.69rem;
    }
    
    #hero .lead {
        font-size: 1.13rem;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    /* Cards */
    .card-img-top {
        height: 220px;
    }
    
    /* Team Section */
    #team .card-img-top {
        width: 120px;
        height: 120px;
    }
    
    /* Timeline */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50px;
        margin-right: 0;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        text-align: left;
    }
    
    .timeline-content::before {
        left: -20px;
        border-right-color: var(--white);
        border-left-color: transparent;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::before {
        right: auto;
        left: -20px;
        border-right-color: var(--white);
        border-left-color: transparent;
    }
}

/* ===============================================
   SMALL SCREENS (Mobile)
   =============================================== */
@media (max-width: 767.98px) {
    /* Typography */
    h1 { font-size: 1.84rem; }
    h2 { font-size: 1.61rem; }
    h3 { font-size: 1.37rem; }
    h4 { font-size: 1.30rem; }
    h5 { font-size: 1.22rem; }
    
    /* Navigation */
    #header {
        padding: 0.5rem 0;
    }
    
    #header .navbar-brand {
        font-size: 1.24rem;
    }
    
    #header .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    #header .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.98);
        margin-top: 1rem;
        border-radius: 10px;
        padding: 1rem;
        box-shadow: var(--shadow-medium);
    }
    
    #header .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(114, 110, 227, 0.10);
    }
    
    #header .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Hero Section */
    #hero {
        min-height: 70vh;
        padding: 2rem 0;
        text-align: center;
    }
    
    #hero h1 {
        font-size: 2rem;
        margin-bottom: 0.91rem;
    }
    
    #hero h2 {
        font-size: 1.24rem;
        margin-bottom: 1rem;
    }
    
    #hero .lead {
        font-size: 1rem;
        margin-bottom: 1.73rem;
    }
    
    #hero .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Sections */
    section {
        padding: 2.5rem 0;
    }
    
    /* Grid adjustments */
    .row > [class*="col-"] {
        margin-bottom: 1.61rem;
    }
    
    .row > [class*="col-"]:last-child {
        margin-bottom: 0;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.73rem;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .card-body {
        padding: 1.25rem;
    overflow-x: hidden;
}
    
    /* Services Section */
    #services .card-body {
        padding: 1.5rem;
    }
    
    #services h5.text-primary {
        font-size: 1.41rem;
    }
    
    /* Features Section */
    #f8ebb6tures i {
        font-size: 2rem;
    }
    
    /* Price Plan Section */
    #priceplan h5.text-primary {
        font-size: 1.87rem;
    }
    
    /* Team Section */
    #team .card-img-top {
        width: 100px;
        height: 100px;
    }
    
    /* Gallery Section */
    #gallery img {
        height: 250px;
        margin-bottom: 1rem;
    }
    
    /* Contact Section */
    #contact .row > div {
        margin-bottom: 1.59rem;
    }
    
    #contact .form-control {
        padding: 0.6rem;
    }
    
    #contact .btn-lg {
        width: 100%;
        padding: 0.75rem;
    }
    
    /* Footer */
    #footer {
        text-align: center;
    }
    
    #footer .row > div {
        margin-bottom: 2rem;
    }
    
    #footer .row > div:last-child {
        margin-bottom: 0;
    }
    
    /* Timeline Mobile */
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 40px;
        margin-right: 0;
        padding: 1rem;
        text-align: left;
    }
    
    .timeline-content::before {
        left: -20px;
        border-right-color: var(--white);
        border-left-color: transparent;
    }
    
    /* Breadcrumb */
    .breadcrumb-item img {
        width: 16px;
        height: 16px;
    }
    
    /* Disable hover effects on mobile */
    .card:hover {
        transform: none;
        box-shadow: var(--shadow-light);
    }
    
    .card:hover .card-img-top {
        transform: none;
    }
    
    #hero .btn-primary:hover {
        transform: none;
    }
    
    #gallery a:hover img {
        transform: none;
        box-shadow: var(--shadow-light);
    }
}

/* ===============================================
   EXTRA SMALL SCREENS
   =============================================== */
@media (max-width: 575.98px) {
    /* Container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Typography */
    h1 { font-size: 1.61rem; }
    h2 { font-size: 1.53rem; }
    h3 { font-size: 1.37rem; }
    
    /* Hero Section */
    #hero h1 {
        font-size: 1.89rem;
    }
    
    #hero h2 {
        font-size: 1.13rem;
    }
    
    #hero .lead {
        font-size: 1.03rem;
    }
    
    /* Sections */
    section {
        padding: 2rem 0;
    }
    
    /* Cards */
    .card-img-top {
        height: 180px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Team images */
    #team .card-img-top {
        width: 80px;
        height: 80px;
    }
    
    /* Gallery */
    #gallery img {
        height: 200px;
    }
    
    /* Footer */
    #footer {
        padding: 2rem 0;
    }
    
    /* Timeline extra small */
    .timeline-content {
        padding: 0.75rem;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 35px;
    }
}

/* ===============================================
   PRINT STYLES
   =============================================== */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    #header,
    #footer,
    .btn,
    .card:hover {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card {
        border: 1px solid #d3cccb;
        page-break-inside: avoid;
    }
}

/* ===============================================
   HIGH CONTRAST MODE
   =============================================== */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #1525ff;
        --text-primary: #000000;
        --text-secondary: #1e1e1e;
        --white: #FFFFFF;
        --light-bg: #F0F0F0;
    }
    
    .card {
        border: 2px solid #000000;
    }
    
    .btn-primary {
        background-color: #1439f8;
        border-color: #1200ff;
        color: #FFFFFF;
    }
}

/* ===============================================
   DARK MODE SUPPORT
   =============================================== */