/* ===== RESPONSIVE DESIGN ===== */
/* Bootstrap 5 breakpoints:
   xs: < 576px
   sm: >= 576px
   md: >= 768px
   lg: >= 992px
   xl: >= 1200px
   xxl: >= 1400px
*/

/* ===== EXTRA LARGE SCREENS (1400px and up) ===== */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 175px;
}
    
    .hero-section h2 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1.36rem;
    }
}

/* ===== LARGE SCREENS (992px to 1399px) ===== */
@media (min-width: 992px) and (max-width: 1399px) {
    .hero-section h1 {
        font-size: 2.55rem;
    padding-top: 175px;
}
    
    .hero-section h2 {
        font-size: 1.84rem;
    }
    
    .team-member {
        padding: 1rem;
    }
    
    .team-photo {
        width: 100px;
        height: 100px;
    }
    
    .process-step {
        padding: 1rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.19rem;
    }
}

/* ===== MEDIUM SCREENS (768px to 991px) ===== */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-section {
        min-height: 80vh;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.28rem;
        margin-bottom: 1rem;
    padding-top: 175px;
}
    
    .hero-section h2 {
        font-size: 1.52rem;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 1.18rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        margin-top: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    .service-card .card-img-top {
        height: 180px;
    }
    
    .team-member {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .team-photo {
        width: 80px;
        height: 80px;
    }
    
    .process-step {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .timeline-item {
        padding-left: 2rem;
    }
    
    .price-card.featured {
        transform: none;
    }
    
    .contact-info {
        margin-top: 2rem;
    }
    
    .gallery-img {
        margin-bottom: 1rem;
    }
}

/* ===== SMALL SCREENS (576px to 767px) ===== */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-section {
        min-height: 70vh;
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    padding-top: 175px;
}
    
    .hero-section h2 {
        font-size: 1.29rem;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .service-card .card-img-top {
        height: 160px;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .team-member {
        padding: 1rem;
        margin-bottom: 1.68rem;
    }
    
    .team-photo {
        width: 70px;
        height: 70px;
    }
    
    .process-step {
        padding: 1rem;
        margin-bottom: 1.58rem;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 0.92rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
        margin-bottom: 1.75rem;
    }
    
    .timeline-year {
        font-size: 0.79rem;
        padding: 0.2rem 0.5rem;
    }
    
    .price-card.featured {
        transform: none;
    }
    
    .price-card .card-header {
        padding: 1.5rem 1rem;
    }
    
    .price-card .price-display {
        font-size: 1.61rem;
    }
    
    .contact-info {
        margin-top: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .contact-item i {
        margin-right: 0;
        margin-bottom: 0.57rem;
    }
    
    .gallery-img {
        margin-bottom: 1rem;
    }
    
    .faq-card {
        margin-bottom: 1rem;
    }
    
    .blog-card {
        margin-bottom: 1.75rem;
    }
}

/* ===== EXTRA SMALL SCREENS (below 576px) ===== */
@media (max-width: 575px) {
    .hero-section {
        min-height: 60vh;
        text-align: center;
        padding: 1.5rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.78rem;
        margin-bottom: 0.92rem;
    padding-top: 175px;
}
    
    .hero-section h2 {
        font-size: 1.17rem;
        margin-bottom: 0.96rem;
    }
    
    .hero-section p {
        font-size: 0.95rem;
        margin-bottom: 1.58rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    .navbar-brand {
        font-size: 1.00rem;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.95rem;
        padding: 0.5rem 1rem;
    }
    
    h1, .h1 {
        font-size: 1.81rem;
    }
    
    h2, .h2 {
        font-size: 1.62rem;
    }
    
    h3, .h3 {
        font-size: 1.26rem;
    }
    
    h4, .h4 {
        font-size: 1.16rem;
    }
    
    h5, .h5 {
        font-size: 1rem;
    }
    
    .service-card .card-img-top {
        height: 140px;
    }
    
    .service-card .card-body {
        padding: 1rem;
    }
    
    .service-card .price-tag {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.25rem 0.5rem;
        font-size: 0.83rem;
    }
    
    .feature-icon {
        font-size: 1.83rem;
    }
    
    .feature-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .team-member {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .team-photo {
        width: 60px;
        height: 60px;
    }
    
    .process-step {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.76rem;
    }
    
    .timeline-item {
        padding-left: 1rem;
        margin-bottom: 1rem;
    }
    
    .timeline-year {
        font-size: 0.81rem;
        padding: 0.15rem 0.4rem;
    }
    
    .price-card.featured {
        transform: none;
    }
    
    .price-card .card-header {
        padding: 1rem 0.75rem;
    }
    
    .price-card .price-display {
        font-size: 1.40rem;
    }
    
    .price-card .card-body {
        padding: 1rem;
    }
    
    .contact-info {
        margin-top: 1.58rem;
        padding: 1rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 1.67rem;
    }
    
    .contact-item i {
        margin-right: 0;
        margin-bottom: 0.61rem;
        font-size: 1.20rem;
    }
    
    .form-control {
        padding: 0.5rem 0.75rem;
        font-size: 0.93rem;
    }
    
    .btn-primary {
        padding: 0.75rem 1.5rem;
        font-size: 0.98rem;
    }
    
    .gallery-img {
        margin-bottom: 0.92rem;
    }
    
    .faq-card {
        margin-bottom: 0.81rem;
        padding: 1rem;
    }
    
    .faq-card h5 {
        font-size: 0.93rem;
    }
    
    .faq-card p {
        font-size: 0.84rem;
    }
    
    .blog-card {
        margin-bottom: 1rem;
    }
    
    .blog-card .blog-content {
        padding: 1rem;
    }
    
    .review-card .card-body {
        padding: 1rem;
    }
    
    .reviewer-info {
        flex-direction: column;
        text-align: center;
    }
    
    .rating {
        margin-top: 0.68rem;
    }
    
    .case-study-card .case-content {
        padding: 1rem;
    }
    
    .career-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .info-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .info-icon {
        font-size: 1.76rem;
    }
    
    .footer {
        padding: 3rem 0;
    }
    
    .footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    .footer .col-lg-4:last-child {
        margin-bottom: 0;
    }
    
    .footer h5 {
        font-size: 1rem;
    }
    
    .footer p {
        font-size: 0.92rem;
    }
    
    .space-container {
        padding: 2rem 0;
    }
    
    .space-container h1 {
        font-size: 1.89rem;
    }
    
    .space-container p {
        font-size: 0.93rem;
    }
    
    .breadcrumb {
        padding: 0.5rem 0;
    }
    
    .breadcrumb-icon {
        width: 16px;
        height: 16px;
    }
    
    /* Additional page cards */
    .resource-card, .tool-card, .community-card, .support-card, .path-card,
    .course-card, .art-card, .health-card, .financial-card, .hobby-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .resource-icon, .tool-icon, .community-icon, .support-icon, .path-icon,
    .course-icon, .art-icon, .health-icon, .financial-icon, .hobby-icon {
        font-size: 1.90rem;
    }
}

/* ===== LANDSCAPE ORIENTATION (MOBILE) ===== */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        min-height: 90vh;
    }
    
    .navbar-collapse {
        max-height: 200px;
        overflow-y: auto;
    }
    
    .space-container {
        min-height: 90vh;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .hero-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .service-card,
    .feature-card,
    .price-card,
    .review-card,
    .blog-card,
    .faq-card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .timeline-item {
        break-inside: avoid;
    }
    
    .contact-info {
        break-inside: avoid;
    }
    
    .gallery-img {
        max-width: 100%;
        height: auto;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #110797;
        --secondary-color: #14790c;
        --accent-color: #f0c400;
        --warm-color: #ea4f00;
        --cool-color: #4878ae;
        --text-dark: #000000;
        --text-light: #4c4a4a;
        --bg-light: #FFFFFF;
        --bg-white: #FFFFFF;
        --border-light: #000000;
    }
    
    .service-card,
    .feature-card,
    .price-card,
    .review-card,
    .blog-card,
    .faq-card,
    .career-card,
    .info-card {
        border: 2px solid var(--text-dark);
    }
    
    .btn-primary {
        border: 2px solid var(--primary-color);
    }
    
    .form-control {
        border: 2px solid var(--text-dark);
    }
}

/* ===== FOCUS MANAGEMENT FOR TOUCH DEVICES ===== */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .feature-card:hover,
    .price-card:hover,
    .review-card:hover,
    .blog-card:hover,
    .faq-card:hover,
    .career-card:hover,
    .info-card:hover {
        transform: none;
    }
    
    .hero-buttons .btn:hover {
        transform: none;
    }
    
    .gallery-img:hover {
        transform: none;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    .hero-section::before {
        animation: none;
    }
    
    .space-container::before {
        animation: none;
    }
    
    @keyframes float {
        0%, 100% { transform: none; }
        50% { transform: none; }
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .form-control {
        min-height: 44px;
    }
    
    .navbar-toggler {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* ===== DARK MODE SUPPORT ===== */