/* ======================= */
/* RESPONSIVE STYLES */
/* ======================= */

/* Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-title-line {
        font-size: 2.8rem;
    }
    
    .hero-title-bold,
    .hero-title-accent {
        font-size: 3.2rem;
    }
    
    .hero-image-1 {
        width: 320px;
        height: 360px;
    }
    
    .hero-image-2 {
        width: 280px;
        height: 340px;
    }
    
    .hero-image {
        width: 420px;
        height: 500px;
    }
    
    .hero-circle-lg {
        width: 500px;
        height: 500px;
    }
}

/* Large Devices (992px to 1399px) */
@media (max-width: 1399px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
}

/* Medium Devices / Tablets (768px to 991px) */
@media (max-width: 991px) {
    /* Navbar */
    .navbar-collapse {
        background-color: var(--white);
        padding: var(--spacing-lg);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
        margin-top: var(--spacing-md);
    }
    
    .navbar-nav {
        margin-bottom: var(--spacing-md);
    }
    
    .btn-cta {
        width: 100%;
        text-align: center;
    }
    
    /* Hero Section */
    .hero-section {
        padding-top: 100px;
    }
    
    .hero-content {
        text-align: center;
        padding: var(--spacing-xl) 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        align-items: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-search-box {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-images-wrapper {
        min-height: 350px;
        margin-top: 0;
        margin-bottom: var(--spacing-lg);
    }
    
    /* Client Logos */
    .client-logos-section {
        margin-top: -50px;
    }
    
    .hero-image-1 {
        width: 200px;
        height: 240px;
        left: 5%;
        bottom: 10%;
    }
    
    .hero-image-2 {
        width: 180px;
        height: 220px;
        right: 5%;
        top: 0;
    }
    
    .hero-promo-badge {
        bottom: 15%;
        right: 12%;
        padding: 14px 18px;
    }
    
    .hero-promo-badge p {
        font-size: 12px;
    }
    
    .hero-image-wrapper {
        padding: var(--spacing-xl) 0;
    }
    
    .hero-image {
        width: 320px;
        height: 380px;
    }
    
    .hero-circle-lg {
        width: 380px;
        height: 380px;
    }
    
    .hero-circle-md,
    .hero-circle-sm {
        display: none;
    }
    
    /* About Section */
    .about-content {
        padding-left: 0 !important;
        margin-top: var(--spacing-xl);
    }
    
    .about-image {
        max-width: 100%;
        height: 300px;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 2rem;
    }
    
    /* Process Cards */
    .process-card {
        margin-bottom: var(--spacing-lg);
    }

    /* What We Do */
    .whatwedo-content {
        padding-left: 0 !important;
        margin-top: var(--spacing-xl);
    }

    .whatwedo-image {
        max-width: 100%;
        height: 300px;
    }

    /* Services */
    .service-card {
        margin-bottom: var(--spacing-lg);
    }

    /* Team */
    .team-image {
        width: 180px;
        height: 180px;
    }

    /* Testimonials */
    .testimonial-card {
        flex-direction: column;
        text-align: center;
    }

    .quote-icon {
        display: none;
    }

    /* Blog */
    .blog-card {
        margin-bottom: var(--spacing-lg);
    }

    .cta-banner {
        padding: var(--spacing-xl);
    }

    .cta-content h3 {
        font-size: var(--font-size-xl);
    }

    /* Contact */
    .contact-info-wrapper {
        padding-left: 0;
        margin-top: var(--spacing-xl);
        height: auto;
    }

    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: var(--spacing-xl);
    }

    .section-title-light {
        font-size: 2rem;
    }

    /* Footer */
    .footer-links,
    .footer-subscribe {
        margin-top: var(--spacing-lg);
    }
}

/* Small Devices / Phones (576px to 767px) */
@media (max-width: 767px) {
    /* Typography */
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    /* Hero Section */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-title-line {
        font-size: 1.5rem;
    }
    
    .hero-title-bold,
    .hero-title-accent {
        font-size: 1.8rem;
    }
    
    .hero-search-box {
        flex-direction: column;
        padding: 15px;
        border-radius: var(--radius-lg);
        gap: 10px;
    }
    
    .search-input-wrapper {
        width: 100%;
    }
    
    .btn-search {
        width: 100%;
    }
    
    .hero-images-wrapper {
        min-height: 280px;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-image-1 {
        width: 150px;
        height: 180px;
        left: 5%;
        bottom: 15%;
    }
    
    .hero-image-2 {
        width: 140px;
        height: 170px;
        right: 5%;
        top: 0;
    }
    
    .hero-promo-badge {
        display: block;
        bottom: 5%;
        right: 5%;
        left: auto;
        padding: 12px 16px;
        font-size: 11px;
    }
    
    .hero-promo-badge p {
        font-size: 11px;
        margin-bottom: 4px;
    }
    
    /* Stats inline on mobile */
    .stats-row {
        flex-wrap: nowrap;
    }
    
    .stats-number {
        font-size: 1.25rem;
    }
    
    .stats-label {
        font-size: 10px !important;
    }
    
    /* Client Logos */
    .client-logos-wrapper {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
    }
    
    .client-logo-item {
        flex-shrink: 0;
    }
    
    .client-logo {
        height: 25px;
    }
    
    .hero-image {
        width: 280px;
        height: 340px;
    }
    
    .hero-circle-lg {
        width: 320px;
        height: 320px;
    }
    
    .btn-hero {
        padding: var(--spacing-md) var(--spacing-xl);
        width: 100%;
    }
    
    /* About Section */
    .about-image-border {
        display: none;
    }
    
    .about-image {
        height: 250px;
    }
    
    .contact-card {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: var(--spacing-md);
    }
    
    /* Section Titles */
    .section-title {
        font-size: 1.75rem;
    }
    
    /* Process Section */
    .process-card {
        padding: var(--spacing-lg);
    }
    
    .process-number {
        font-size: 2rem;
    }
    
    .process-icon {
        width: 60px;
        height: 60px;
    }
    
    .process-icon i {
        font-size: 1.5rem;
    }

    /* What We Do */
    .whatwedo-image {
        height: 250px;
    }

    .vision-card {
        flex-direction: column;
        text-align: center;
    }

    .vision-icon {
        margin-right: 0;
        margin-bottom: var(--spacing-md);
    }

    /* Services */
    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon i {
        font-size: 1.5rem;
    }

    /* Team */
    .team-image {
        width: 150px;
        height: 150px;
    }

    /* Blog */
    .blog-image {
        height: 150px;
    }

    .cta-banner {
        padding: var(--spacing-lg);
    }

    .cta-content h3 {
        font-size: var(--font-size-lg);
    }

    /* Contact */
    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: var(--spacing-lg);
    }

    .contact-info-item {
        padding-bottom: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }

    .contact-info-icon {
        width: 45px;
        height: 45px;
    }

    .social-icons {
        justify-content: flex-start;
    }

    .social-icon {
        width: 40px;
        height: 40px;
    }

    .section-title-light {
        font-size: 1.75rem;
    }

    /* Footer */
    .footer-section {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .career-item {
        justify-content: flex-start;
    }

    .footer-links:has(.career-item) {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links:has(.career-item) .footer-title {
        text-align: center;
    }

    .subscribe-form .btn {
        width: 100%;
    }
}

/* Extra Small Devices (below 576px) */
@media (max-width: 575px) {
    /* Container Padding */
    .container {
        padding-left: var(--spacing-lg);
        padding-right: var(--spacing-lg);
    }
    
    /* Navbar */
    .navbar-brand {
        font-size: var(--font-size-base);
    }
    
    .logo-icon {
        width: 30px;
        height: 30px;
    }
    
    .logo-text {
        font-size: var(--font-size-lg);
    }
    
    /* Hero Section */
    .hero-section {
        padding-top: 80px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: var(--font-size-xs);
    }
    
    .hero-image {
        width: 240px;
        height: 300px;
    }
    
    .hero-circle-lg {
        width: 280px;
        height: 280px;
    }
    
    /* About Section */
    .about-section {
        padding: var(--spacing-xl) 0;
    }
    
    .about-image {
        height: 220px;
    }
    
    .section-description {
        font-size: var(--font-size-sm);
    }
    
    /* Process Section */
    .process-section {
        padding: var(--spacing-xl) 0;
    }
    
    .process-title {
        font-size: var(--font-size-base);
    }
    
    .process-description {
        font-size: var(--font-size-xs);
    }
}

/* Landscape Mode Adjustments */
@media (max-width: 991px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
    }
    
    .hero-section .row {
        min-height: auto;
    }
    
    .hero-image-wrapper {
        padding: var(--spacing-lg);
    }
    
    .hero-image {
        width: 200px;
        height: 250px;
    }
    
    .hero-circle-lg {
        width: 260px;
        height: 260px;
    }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image,
    .about-image {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Client Logos Responsive */
@media (max-width: 991px) {
    .client-logos-wrapper {
        justify-content: center;
        gap: 20px;
    }
    
    .client-logo-item {
        min-width: 80px;
        max-width: 120px;
    }
    
    .client-logo {
        max-height: 30px;
    }
}

@media (max-width: 576px) {
    .client-logos-wrapper {
        gap: 15px;
    }
    
    .client-logo-item {
        min-width: 70px;
        max-width: 100px;
    }
    
    .client-logo {
        max-height: 25px;
    }
    
    .client-logos-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Portfolio Card Responsive */
@media (max-width: 991px) {
    .portfolio-card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .portfolio-card-title {
        text-align: center;
    }
    
    .portfolio-page-section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .portfolio-card-logo {
        width: 60px;
        height: 60px;
    }
    
    .portfolio-card-logo img {
        max-width: 50px;
        max-height: 50px;
    }
    
    .portfolio-card-header {
        padding: var(--spacing-lg);
    }
    
    .portfolio-card-body {
        padding: var(--spacing-lg);
    }
    
    .portfolio-card-tags span {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    .portfolio-card-badge {
        font-size: 9px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn {
        display: none !important;
    }
    
    .hero-section {
        padding-top: 0;
    }
    
    .hero-circle,
    .deco-circle {
        display: none;
    }
    
    * {
        color: #000 !important;
        background: transparent !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode support
    :root {
        --white: #1a1a2e;
        --light-gray: #16213e;
        --text-primary: #eaeaea;
        --text-secondary: #b0b0b0;
        --bg-section: #0f0f1a;
    }
    */
}
