/* ========================================
   DMC Website - Responsive Design
   ======================================== */

/* Large Desktop (1440px and up) */
@media (min-width: 1440px) {
    .container {
        max-width: var(--container-2xl);
    }
    
    .hero-title {
        font-size: var(--text-7xl);
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    /* This is the default, no changes needed */
}

/* Tablet (768px to 1023px) */
@media (max-width: 1023px) {
    /* Typography adjustments */
    .hero-title {
        font-size: var(--text-5xl);
    }
    
    .section-title {
        font-size: var(--text-3xl);
    }
    
    /* About section */
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .about-image {
        order: -1;
    }
    
    /* Vision & Mission */
    .vision-mission {
        grid-template-columns: 1fr;
    }
    
    /* Services grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }
    
    /* Contact section */
    .contact-container {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .contact-form-wrapper {
        padding: var(--space-6);
    }
    
    .contact-map {
        height: 400px;
    }
    
    /* Footer */
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (up to 767px) */
@media (max-width: 767px) {
    /* Typography */
    html {
        font-size: 14px;
    }
    
    .hero-title {
        font-size: var(--text-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-xl);
    }
    
    .hero-description {
        font-size: var(--text-base);
    }
    
    .section-title {
        font-size: var(--text-2xl);
    }
    
    .section-subtitle {
        font-size: var(--text-base);
    }
    
    /* Spacing adjustments */
    .section {
        padding: var(--space-16) 0;
    }
    
    /* Navigation */
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        padding: var(--space-4);
        box-shadow: var(--shadow-xl);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        z-index: var(--z-dropdown);
    }
    
    .navbar-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        width: 100%;
        padding: var(--space-3) var(--space-4);
        text-align: left;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero section */
    .hero {
        min-height: 100vh;
        padding-top: 70px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Stats bar */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .stats-bar {
        margin-top: 0;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .service-card {
        padding: var(--space-6);
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    /* Clients */
    .clients-slider {
        overflow-x: auto;
    }
    
    .clients-track {
        animation-duration: 20s;
    }
    
    .client-logo {
        width: 150px;
        height: 100px;
    }
    
    /* Certificates */
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
    
    /* Download section */
    .download-profile {
        padding: var(--space-12) 0;
    }
    
    .download-icon {
        font-size: var(--text-6xl);
    }
    
    .download-content h2 {
        font-size: var(--text-3xl);
    }
    
    .download-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    /* Contact */
    .contact-info {
        padding: 0;
    }
    
    .contact-form-wrapper {
        padding: var(--space-4);
    }
    
    .contact-map {
        height: 300px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: var(--text-sm);
    }
    
    /* Projects */
    .project-item {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .project-image-wrapper {
        height: 300px;
    }
    
    .project-details {
        padding: var(--space-6);
    }
    
    .project-details .project-title {
        font-size: var(--text-xl);
    }
    
    .project-details .project-description {
        font-size: var(--text-sm);
    }
    
    /* Footer */
    .footer {
        padding: var(--space-12) 0 var(--space-6);
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    /* Floating buttons */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: var(--space-6);
        right: var(--space-6);
        font-size: var(--text-2xl);
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: var(--space-6);
        left: var(--space-6);
        font-size: var(--text-xl);
    }
}

/* Small Mobile (up to 479px) */
@media (max-width: 479px) {
    /* Further size reductions */
    .container {
        padding: 0 var(--space-3);
    }
    
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .section-title {
        font-size: var(--text-xl);
    }
    
    .navbar-logo img {
        height: 40px;
    }
    
    /* Buttons */
    .btn {
        padding: var(--space-2) var(--space-4);
        font-size: var(--text-sm);
    }
    
    .btn-large {
        padding: var(--space-3) var(--space-6);
        font-size: var(--text-base);
    }
    
    /* Certificates */
    .certificates-grid {
        grid-template-columns: 1fr;
    }
    
    /* Download button */
    .download-btn {
        padding: var(--space-4) var(--space-6);
        font-size: var(--text-lg);
    }
}

/* Landscape orientation adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: var(--space-20) 0;
    }
    
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-lg);
    }
}

/* Print styles */
@media print {
    .navbar,
    .whatsapp-float,
    .back-to-top,
    .hero-actions {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: var(--space-8) 0;
    }
    
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
}
