/* Responsive Styles */

/* Large Devices (Desktops) */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

/* Medium Devices (Tablets) */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
        margin-bottom: 30px;
    }
    
    .service-card {
        padding: 25px;
    }
    
    .services {
        padding: 50px 0 80px; /* Further reduced padding for tablets */
    }
}

/* Small Devices (Landscape Phones) */
@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(18, 18, 18, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        backdrop-filter: blur(10px);
        gap: 20px;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hamburger {
        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 h1 {
        font-size: 3rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .services {
        padding: 40px 0 70px; /* Further reduced padding for mobile */
    }
    
    .hero {
        height: 85vh; /* Slightly reduced height for mobile */
    }
}

/* Extra Small Devices (Portrait Phones) */
@media (max-width: 576px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-content p {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-button, .submit-button {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

/* Height-based Media Queries */
@media (max-height: 700px) {
    .hero {
        height: auto;
        min-height: 90vh;  /* Reduced from 100vh to match the main styles */
        padding: 80px 0;  /* Reduced padding to decrease gap */
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero h2 {
        font-size: 1.6rem;
    }
}

/* Print Styles */
@media print {
    .hero, .services, .about, .contact {
        page-break-inside: avoid;
    }
    
    header, footer, .cta-button, .contact-form {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .logo-background {
        display: none;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
}
