/* Responsive Design */

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Desktop */
@media (max-width: 1199px) {
    .hero-container {
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Tablet */
@media (max-width: 991px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(248, 249, 250, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(33, 37, 41, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu .nav-item {
        margin: 1rem 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-visual {
        height: 400px;
        order: -1;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Mobile Large */
@media (max-width: 767px) {
    section {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-logo h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        padding: 16px 24px;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }
    
    .hero-visual {
        height: 300px;
        margin-top: 2rem;
    }
    
    .floating-card {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .floating-card i {
        font-size: 1.5rem;
    }
    
    /* Hide geometric shapes on mobile to prevent overlap */
    .geometric-shapes {
        display: none;
    }
    
    .code-animation {
        display: none;
    }
    
    .pulse-circle {
        display: none;
    }
    
    /* Add simple floating elements for mobile hero section */
    .hero-visual::after {
        content: '';
        position: absolute;
        top: 20%;
        right: 10%;
        width: 60px;
        height: 60px;
        background: linear-gradient(135deg, rgba(33, 37, 41, 0.1), rgba(33, 37, 41, 0.05));
        border-radius: 50%;
        animation: floatGentle 4s ease-in-out infinite;
        z-index: 1;
    }
    
    .hero-visual::before {
        content: '';
        position: absolute;
        bottom: 30%;
        left: 15%;
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, rgba(33, 37, 41, 0.08), rgba(33, 37, 41, 0.03));
        border-radius: 20%;
        animation: floatGentle 6s ease-in-out infinite reverse;
        z-index: 1;
    }
    
    @keyframes floatGentle {
        0%, 100% {
            transform: translateY(0px) rotate(0deg);
        }
        50% {
            transform: translateY(-15px) rotate(5deg);
        }
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benefit-card {
        padding: 1.5rem;
    }
    
    .benefit-icon {
        width: 70px;
        height: 70px;
    }
    
    .benefit-icon i {
        font-size: 1.5rem;
    }
    

    
    .testimonial-text p {
        font-size: 1rem;
    }
    
    .testimonial-nav {
        gap: 0.5rem;
    }
    
    .testimonial-btn {
        width: 40px;
        height: 40px;
    }
    
    .contact-info h3 {
        font-size: 1.5rem;
    }
    
    .contact-methods {
        gap: 1rem;
    }
    
    .contact-method {
        padding: 0.75rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-section ul {
        align-items: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Mobile Small */
@media (max-width: 575px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .nav-container {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-visual {
        height: 250px;
    }
    
    .floating-card {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    .floating-card i {
        font-size: 1.2rem;
    }
    
    /* Hide geometric shapes on smaller mobile screens */
    .geometric-shapes {
        display: none;
    }
    
    .code-animation {
        display: none;
    }
    
    .pulse-circle {
        display: none;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .benefit-card {
        padding: 1rem;
    }
    
    .benefit-card h3 {
        font-size: 1.1rem;
    }
    
    .benefit-card p {
        font-size: 0.9rem;
    }
    

    
    .testimonial-text p {
        font-size: 0.9rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .contact-info h3 {
        font-size: 1.3rem;
    }
    
    .contact-info p {
        font-size: 0.9rem;
    }
    
    .contact-method {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .contact-method i {
        font-size: 1.2rem;
    }
    
    .footer-logo h3 {
        font-size: 1.3rem;
    }
    
    .footer-logo p {
        font-size: 0.9rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
    
    .footer-section a,
    .footer-section li {
        font-size: 0.9rem;
    }
}

/* Mobile Extra Small */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .service-card,
    .benefit-card {
        padding: 1rem 0.75rem;
    }
    
    .contact-form {
        padding: 0.75rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.5rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-container {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .hero-visual {
        height: 200px;
    }
    
    .floating-card {
        padding: 0.5rem;
        font-size: 0.7rem;
    }
    
    /* Hide all moving elements on very small screens */
    .geometric-shapes {
        display: none;
    }
    
    .code-animation {
        display: none;
    }
    
    .pulse-circle {
        display: none;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .scroll-indicator,
    .testimonial-nav,
    .contact-form,
    .social-links {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: var(--eerie-black);
    }
    
    .hero,
    section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }
    
    .btn {
        border: 1px solid var(--eerie-black);
        background: transparent;
        color: var(--eerie-black);
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-icon,
    .benefit-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* 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;
    }
    
    .floating-card {
        animation: none;
    }
    
    .scroll-indicator {
        animation: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* This can be implemented if dark mode is desired */
    /* Currently maintaining the black and white theme as requested */
}

/* Container Queries (Future-proofing) */
@container (max-width: 600px) {
    .service-card {
        padding: 1rem;
    }
    
    .benefit-card {
        padding: 1rem;
    }
}

/* Focus Styles for Accessibility */
@media (any-hover: none) {
    .btn:focus,
    .nav-link:focus,
    .contact-method:focus {
        outline: 2px solid var(--eerie-black);
        outline-offset: 2px;
    }
}

/* Touch Device Optimizations */
@media (any-hover: none) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 0.5rem;
    }
    
    .social-link {
        min-width: 44px;
        min-height: 44px;
    }
    
    .testimonial-btn {
        min-width: 44px;
        min-height: 44px;
    }
}