/* Responsive Styles */

/* Large Devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container-xxl {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.51rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        min-height: 80vh;
        text-align: center;
    }
    
    .navbar-brand {
        font-size: 1.19rem !important;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .team-member {
        margin-bottom: 2rem;
    }
    
    .testimonial-card {
        margin-bottom: 2rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.85rem;
    }
    
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    h1 { font-size: 1.95rem; }
    h2 { font-size: 1.54rem; }
    h3 { font-size: 1.32rem; }
    
    .card {
        margin-bottom: 1.72rem;
    }
    
    .navbar-collapse {
        background: var(--color-white);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: var(--border-radius-md);
        box-shadow: var(--shadow-md);
    }
    
    .footer .col-md-3 {
        margin-bottom: 2rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .service-price {
        font-size: 1.53rem;
    }
}

/* Extra Small Devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.77rem;
    }
    
    .section-title {
        font-size: 1.61rem;
    }
    
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        min-height: 60vh;
        padding: 1.5rem 0;
    }
    
    .section {
        padding: 1.5rem 0;
    }
    
    .container-fluid {
        padding: 0 1rem;
    }
    
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    .service-card,
    .team-member,
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .faq-question {
        font-size: 0.94rem;
    }
    
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    .btn {
        padding: 0.5rem 1.5rem;
        font-size: 1.05rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .form-control {
        display: none !important;
    }
    
    .hero-section h1 {
    padding-top: 150px;
}

.hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid var(--color-gray-light);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #0014ff;
        --color-secondary: #760076;
        --color-black: #000000;
        --color-white: #ffffff;
        --color-gray: #4f4f4f;
    }
    
    .card {
        border: 2px solid var(--color-black);
    }
    
    .btn-primary {
        background: var(--color-black);
        color: var(--color-white);
        border: 2px solid var(--color-black);
    }
}

/* Dark Mode (if system preference is dark) */
@media (prefers-color-scheme: dark) {
    /* Keep light theme as specified in requirements */
    /* This section intentionally left empty */
}

/* Timeline Responsive Styles */
@media (max-width: 991.98px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        margin-right: 0 !important;
    }
    
    .timeline-item::before {
        left: -50px !important;
        right: auto !important;
    }
}

@media (max-width: 767.98px) {
    .timeline {
        padding: var(--spacing-sm) 0;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        padding: var(--spacing-sm);
    }
    
    .timeline-item::before {
        left: -30px !important;
        width: 15px;
        height: 15px;
    }
}

/* Process Steps Responsive */
@media (max-width: 991.98px) {
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.34rem;
    }
    
    .process-step {
        padding: var(--spacing-sm);
        margin-bottom: 2rem;
    }
}

@media (max-width: 767.98px) {
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .process-step h5 {
        font-size: 1rem;
    }
    
    .process-step p {
        font-size: 1.02rem;
    }
}

/* Gallery Responsive */
@media (max-width: 767.98px) {
    .gallery-item {
        margin-bottom: 1rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
}

@media (max-width: 575.98px) {
    .gallery-item img {
        height: 150px;
    }
}

/* Blog Cards Responsive */
@media (max-width: 767.98px) {
    .card-img-top {
        height: 180px;
    }
}

@media (max-width: 575.98px) {
    .card-img-top {
        height: 160px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .card-body h5 {
        font-size: 1.20rem;
    }
    
    .card-body p {
        font-size: 0.97rem;
    }
}

/* Case Study Cards Responsive */
@media (max-width: 767.98px) {
    .casestudy-card {
        padding: var(--spacing-sm);
        margin-bottom: 1.57rem;
        border-left-width: 3px;
    }
}

/* Career Cards Responsive */
@media (max-width: 767.98px) {
    .career-card {
        padding: var(--spacing-sm);
        margin-bottom: 1.56rem;
    }
    
    .career-card::before {
        height: 3px;
    }
    
    .badge {
        font-size: 0.84rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Core Info Cards Responsive */
@media (max-width: 767.98px) {
    .coreinfo-card {
        padding: var(--spacing-sm);
        margin-bottom: 1.61rem;
    }
    
    .coreinfo-card i {
        font-size: 2.51rem !important;
    }
}

@media (max-width: 575.98px) {
    .coreinfo-card i {
        font-size: 2rem !important;
    }
    
    .coreinfo-card h5 {
        font-size: 1rem;
    }
    
    .coreinfo-card p {
        font-size: 0.97rem;
    }
}

/* Enhanced Mobile Navigation */
@media (max-width: 767.98px) {
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--color-gray-light);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Enhanced Section Spacing on Mobile */
@media (max-width: 575.98px) {
    .section-title {
        font-size: 1.52rem;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 1.69rem;
    }
    
    .section-desc {
        font-size: 0.98rem;
        margin-bottom: 2rem;
    }
}

/* Enhanced Hero Section Mobile */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.55rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-desc {
        font-size: 1.04rem;
        margin-bottom: 1.59rem;
    }
    
    .img-hero {
        height: 250px;
        margin-top: 2rem;
    }
}

/* Improved Button Responsiveness */
@media (max-width: 575.98px) {
    .btn {
        font-size: 0.90rem;
        padding: 0.5rem 1rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
}
