/* ===== Responsive Design ===== */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

/* Desktop (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .about-stats {
        gap: var(--spacing-lg);
    }
}

/* Tablet (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    /* Navigation */
    .navbar-brand {
        font-size: var(--font-size-lg);
    }
    
    .logo {
        height: 35px;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: var(--font-size-lg);
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Slider Controls */
    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: var(--font-size-base);
    }
    
    .prev-btn {
        left: var(--spacing-lg);
    }
    
    .next-btn {
        right: var(--spacing-lg);
    }
    
    /* Sections */
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: var(--font-size-base);
    }
    
    /* About Section */
    .about-content {
        padding-right: 0;
        margin-bottom: var(--spacing-xl);
    }
    
    .about-stats {
        justify-content: center;
        gap: var(--spacing-md);
    }
    
    .stat-number {
        font-size: var(--font-size-2xl);
    }
    
    /* Project Cards */
    .project-image {
        height: 200px;
    }
    
    /* Service Cards */
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: var(--font-size-xl);
    }
    
    /* Footer */
    .footer-social {
        justify-content: center;
    }
}

/* Mobile Large (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    /* Navigation */
    .navbar {
        padding: var(--spacing-sm) 0;
    }
    
    .navbar-brand {
        font-size: var(--font-size-base);
    }
    
    .logo {
        height: 30px;
    }
    
    .navbar-nav .nav-link {
        padding: var(--spacing-xs) var(--spacing-sm);
        margin: 0;
        text-align: center;
    }
    
    /* Hero Section */
    .hero-section {
        height: 80vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: var(--spacing-md);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-lg);
    }
    
    .hero-buttons {
        margin-top: var(--spacing-lg);
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: var(--spacing-sm);
        font-size: var(--font-size-base);
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Slider Controls */
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-sm);
    }
    
    .prev-btn {
        left: var(--spacing-md);
    }
    
    .next-btn {
        right: var(--spacing-md);
    }
    
    .slider-indicators {
        bottom: var(--spacing-lg);
    }
    
    /* Sections */
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: var(--font-size-sm);
    }
    
    /* Featured Projects */
    .featured-projects {
        padding: var(--spacing-xl) 0;
    }
    
    .project-card {
        margin-bottom: var(--spacing-lg);
    }
    
    .project-image {
        height: 180px;
    }
    
    .project-content {
        padding: var(--spacing-md);
    }
    
    .project-title {
        font-size: var(--font-size-lg);
    }
    
    .project-description {
        font-size: var(--font-size-sm);
    }
    
    /* Services */
    .services-section {
        padding: var(--spacing-xl) 0;
    }
    
    .service-card {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-md);
    }
    
    .service-title {
        font-size: var(--font-size-lg);
    }
    
    .service-description {
        font-size: var(--font-size-sm);
    }
    
    /* About Section */
    .about-section {
        padding: var(--spacing-xl) 0;
    }
    
    .about-content {
        padding-right: 0;
        margin-bottom: var(--spacing-lg);
        text-align: center;
    }
    
    .about-description {
        font-size: var(--font-size-base);
        text-align: left;
    }
    
    .about-stats {
        justify-content: space-around;
        gap: var(--spacing-sm);
        margin: var(--spacing-lg) 0;
    }
    
    .stat-item {
        flex: 1;
    }
    
    .stat-number {
        font-size: var(--font-size-xl);
    }
    
    .stat-label {
        font-size: var(--font-size-xs);
    }
    
    /* Testimonials */
    .testimonials-section {
        padding: var(--spacing-xl) 0;
    }
    
    .testimonial-card {
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
    }
    
    .testimonial-text {
        font-size: var(--font-size-base);
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
    
    .author-avatar {
        width: 50px;
        height: 50px;
    }
    
    .author-name {
        font-size: var(--font-size-base);
    }
    
    /* CTA Section */
    .cta-section {
        padding: var(--spacing-xl) 0;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-subtitle {
        font-size: var(--font-size-base);
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }
    
    .cta-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-xl) 0;
    }
    
    .footer-brand {
        text-align: center;
        margin-bottom: var(--spacing-lg);
    }
    
    .footer-title {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-md);
    }
    
    .footer-social {
        justify-content: center;
        margin-top: var(--spacing-md);
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: var(--font-size-sm);
    }
    
    /* Back to Top */
    .back-to-top {
        bottom: var(--spacing-lg);
        right: var(--spacing-lg);
        width: 45px;
        height: 45px;
        font-size: var(--font-size-base);
    }
}

/* Mobile Small (up to 575px) */
@media (max-width: 575px) {
    /* Navigation */
    .navbar {
        padding: var(--spacing-xs) 0;
    }
    
    .navbar-brand {
        font-size: var(--font-size-sm);
    }
    
    .logo {
        height: 25px;
    }
    
    .brand-text {
        font-size: var(--font-size-sm);
    }
    
    .navbar-nav .nav-link {
        padding: var(--spacing-xs);
        margin: 0;
        text-align: center;
        font-size: var(--font-size-sm);
    }
    
    /* Hero Section */
    .hero-section {
        height: 70vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-md);
    }
    
    .hero-buttons {
        margin-top: var(--spacing-md);
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: var(--spacing-xs);
        font-size: var(--font-size-sm);
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .hero-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Slider Controls */
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: var(--font-size-xs);
    }
    
    .prev-btn {
        left: var(--spacing-sm);
    }
    
    .next-btn {
        right: var(--spacing-sm);
    }
    
    .slider-indicators {
        bottom: var(--spacing-md);
    }
    
    .indicator {
        width: 8px;
        height: 8px;
    }
    
    /* Sections */
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: var(--font-size-xs);
    }
    
    /* Featured Projects */
    .featured-projects {
        padding: var(--spacing-lg) 0;
    }
    
    .project-card {
        margin-bottom: var(--spacing-md);
    }
    
    .project-image {
        height: 150px;
    }
    
    .project-content {
        padding: var(--spacing-sm);
    }
    
    .project-title {
        font-size: var(--font-size-base);
    }
    
    .project-description {
        font-size: var(--font-size-xs);
    }
    
    .tag {
        font-size: var(--font-size-xs);
        padding: 2px var(--spacing-xs);
    }
    
    /* Services */
    .services-section {
        padding: var(--spacing-lg) 0;
    }
    
    .service-card {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-sm);
    }
    
    .service-title {
        font-size: var(--font-size-base);
    }
    
    .service-description {
        font-size: var(--font-size-xs);
    }
    
    /* About Section */
    .about-section {
        padding: var(--spacing-lg) 0;
    }
    
    .about-content {
        padding-right: 0;
        margin-bottom: var(--spacing-md);
        text-align: center;
    }
    
    .about-description {
        font-size: var(--font-size-sm);
        text-align: left;
    }
    
    .about-stats {
        flex-direction: column;
        gap: var(--spacing-sm);
        margin: var(--spacing-md) 0;
    }
    
    .stat-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: var(--spacing-sm);
        background: var(--very-light);
        border-radius: var(--radius-md);
    }
    
    .stat-number {
        font-size: var(--font-size-lg);
        margin-bottom: 0;
    }
    
    .stat-label {
        font-size: var(--font-size-xs);
        margin-bottom: 0;
    }
    
    /* Testimonials */
    .testimonials-section {
        padding: var(--spacing-lg) 0;
    }
    
    .testimonial-card {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }
    
    .testimonial-text {
        font-size: var(--font-size-sm);
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-xs);
    }
    
    .author-avatar {
        width: 40px;
        height: 40px;
    }
    
    .author-name {
        font-size: var(--font-size-sm);
    }
    
    .author-title {
        font-size: var(--font-size-xs);
    }
    
    /* CTA Section */
    .cta-section {
        padding: var(--spacing-lg) 0;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-subtitle {
        font-size: var(--font-size-sm);
    }
    
    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: var(--spacing-xs);
        font-size: var(--font-size-sm);
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .cta-buttons .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-lg) 0;
    }
    
    .footer-brand {
        text-align: center;
        margin-bottom: var(--spacing-md);
    }
    
    .footer-logo {
        height: 30px;
    }
    
    .footer-brand-text {
        font-size: var(--font-size-lg);
    }
    
    .footer-description {
        font-size: var(--font-size-sm);
    }
    
    .footer-title {
        font-size: var(--font-size-sm);
        margin-bottom: var(--spacing-sm);
    }
    
    .footer-contact p {
        font-size: var(--font-size-sm);
    }
    
    .footer-social {
        justify-content: center;
        margin-top: var(--spacing-sm);
        gap: var(--spacing-sm);
    }
    
    .social-link {
        width: 30px;
        height: 30px;
        font-size: var(--font-size-xs);
    }
    
    .footer-copyright {
        font-size: var(--font-size-xs);
    }
    
    /* Back to Top */
    .back-to-top {
        bottom: var(--spacing-md);
        right: var(--spacing-md);
        width: 40px;
        height: 40px;
        font-size: var(--font-size-sm);
    }
    
    /* Utility Classes for Mobile */
    .py-5 {
        padding: var(--spacing-lg) 0;
    }
    
    .px-5 {
        padding: 0 var(--spacing-md);
    }
}

/* ===== Print Styles ===== */
@media print {
    .navbar,
    .hero-section,
    .cta-section,
    .footer,
    .back-to-top,
    .slider-controls,
    .slider-indicators {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    .section-title {
        font-size: 18pt;
        color: #000;
    }
    
    .project-card,
    .service-card,
    .testimonial-card {
        box-shadow: none;
        border: 1px solid #ccc;
        margin-bottom: 10pt;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .btn {
        display: none;
    }
}

/* ===== High DPI Displays ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo,
    .footer-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ===== Landscape Orientation ===== */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        height: 100vh;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: var(--font-size-sm);
    }
    
    .hero-buttons {
        margin-top: var(--spacing-sm);
    }
    
    .hero-buttons .btn {
        display: inline-block;
        width: auto;
        margin-right: var(--spacing-sm);
        margin-bottom: 0;
    }
}

/* ===== Accessibility Improvements ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-slide {
        transition: none;
    }
    
    .project-card:hover,
    .service-card:hover,
    .testimonial-card:hover {
        transform: none;
    }
}

/* ===== Dark Mode Support ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --white: #1a1a1a;
        --very-light: #2d2d2d;
        --light-color: #4a4a4a;
        --medium-color: #8a8a8a;
        --dark-color: #ffffff;
        --primary-color: #4a9eff;
        --secondary-color: #ff6b6b;
    }
    
    body {
        background-color: var(--white);
        color: var(--dark-color);
    }
    
    .navbar {
        background-color: var(--very-light) !important;
    }
    
    .project-card,
    .service-card,
    .testimonial-card {
        background-color: var(--very-light);
        border: 1px solid var(--light-color);
    }
}







