/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
}

/* Desktop (1024px - 1440px) */
@media (max-width: 1440px) {
    .container {
        max-width: 1200px;
    }
}

/* Tablet Landscape (1024px - 1199px) */
@media (max-width: 1199px) {
    .hero-stats {
        gap: 2rem;
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .contact-content {
        gap: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait (768px - 1023px) */
@media (max-width: 1023px) {
    :root {
        --section-padding: 80px 0;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 250px;
        text-align: center;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-light);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Mobile Large (480px - 767px) */
@media (max-width: 767px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.8rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-content {
        padding: 2rem;
    }
    
    .testimonial-content p {
        font-size: 1rem;
    }
    
    .testimonial-navigation {
        gap: 1rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-container {
        padding: 0 15px;
        height: 70px;
    }
    
    .nav-menu {
        top: 70px;
    }
    
    .navbar {
        background: rgba(255, 255, 255, 0.98);
    }
}

/* Mobile Small (320px - 479px) */
@media (max-width: 479px) {
    :root {
        --section-padding: 50px 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-buttons .btn {
        width: 200px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .testimonial-content {
        padding: 1.5rem;
    }
    
    .testimonial-content p {
        font-size: 0.95rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .nav-container {
        height: 60px;
    }
    
    .nav-menu {
        top: 60px;
        padding: 1.5rem 0;
    }
    
    .nav-logo h2 {
        font-size: 1.3rem;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile (max-width: 320px) */
@media (max-width: 320px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .hero-buttons .btn {
        width: 180px;
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .testimonial-content {
        padding: 1rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .navbar,
    .hero,
    .scroll-indicator,
    .contact-form,
    .social-links,
    .nav-toggle {
        display: none !important;
    }
    
    .section-padding {
        padding: 20px 0;
    }
    
    .container {
        max-width: none;
        margin: 0;
        padding: 0;
    }
    
    .page-break {
        page-break-before: always;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
    }
    
    .btn {
        border: 1px solid black;
        text-decoration: none;
    }
}

/* ===== ACCESSIBILITY & REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .scroll-arrow {
        animation: none;
    }
    
    .animate-pulse,
    .animate-float {
        animation: none;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #000000;
        --text-dark: #000000;
        --text-light: #000000;
        --white: #ffffff;
        --light-bg: #ffffff;
    }
    
    .btn-primary {
        background: #000000;
        color: #ffffff;
        border: 2px solid #000000;
    }
    
    .btn-secondary {
        background: #ffffff;
        color: #000000;
        border: 2px solid #000000;
    }
    
    .service-card,
    .project-card,
    .testimonial-content,
    .contact-form {
        border: 2px solid #000000;
    }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 100px 0 50px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-stats {
        margin-top: 2rem;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    .hover-lift:hover,
    .hover-scale:hover,
    .hover-rotate:hover,
    .hover-glow:hover {
        transform: none;
        box-shadow: var(--shadow-light);
    }
    
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 10px;
    }
    
    .social-links a {
        min-width: 44px;
        min-height: 44px;
    }
    
    .nav-btn {
        min-width: 44px;
        min-height: 44px;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --text-dark: #ffffff;
        --text-light: #b0b0b0;
        --white: #1a1a1a;
        --light-bg: #2a2a2a;
        --dark-bg: #000000;
    }
    
    .navbar {
        background: rgba(26, 26, 26, 0.95);
    }
    
    .service-card,
    .testimonial-content,
    .contact-form {
        background: #2a2a2a;
        color: #ffffff;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        background: #2a2a2a;
        border-color: #4a4a4a;
        color: #ffffff;
    }
    
    .form-group label {
        color: #b0b0b0;
    }
}