/* Responsive Styles */
/* Medium devices (tablets, 992px and down) */
@media (max-width: 992px) {
    /* General Adjustments */
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    /* Contact Section Layout */
    .contact-container {
        flex-direction: column;
        gap: 30px;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Section Padding */
    section {
        padding: 90px 20px;
    }
}

/* Small devices (landscape phones, 768px and down) */
@media (max-width: 768px) {
    /* Navigation */
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 20px 0;
    }
    
    /* Typography */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Hero Section */
    .hero-content {
        padding: 0 20px;
    }
    
    /* About Section */
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Section Padding */
    section {
        padding: 80px 20px;
    }
    
    /* Header */
    header {
        padding: 15px 0;
    }
}

/* Extra small devices (portrait phones, 576px and down) */
@media (max-width: 576px) {
    /* Typography */
    h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    /* Buttons */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .btn:last-child {
        margin-bottom: 0;
    }
    
    /* Contact Form */
    .contact-form input,
    .contact-form textarea {
        padding: 12px;
    }
    
    /* Logo */
    .logo {
        font-size: 1.5rem;
    }
    
    /* Section Padding */
    section {
        padding: 70px 15px;
    }
}

/* Very small devices (phones, 400px and down) */
@media (max-width: 400px) {
    /* Typography */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    /* Info Items */
    .info-item {
        flex-direction: column;
        text-align: center;
    }
    
    .info-item i {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    /* Service Cards */
    .service-card {
        padding: 30px 20px;
    }
}

/* Orientation-specific adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    /* Hero Section */
    #home {
        min-height: auto;
        padding: 120px 20px;
    }
    
    /* Reduce padding on other sections */
    section:not(#home) {
        min-height: auto;
        padding: 80px 20px;
    }
    
    /* Typography */
    h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    /* Navigation */
    header {
        padding: 10px 0;
    }
    
    .nav-links {
        top: 60px;
        height: calc(100vh - 60px);
    }
}

/* High-resolution displays */
@media 
(-webkit-min-device-pixel-ratio: 2), 
(min-resolution: 192dpi) { 
    /* Sharper text rendering */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Refine button edges */
    .btn {
        border-width: 1.5px;
    }
}

/* Print styles */
@media print {
    /* Hide unnecessary elements */
    header, .menu-toggle, .btn {
        display: none !important;
    }
    
    /* Base styles */
    body {
        background: none !important;
        color: #000 !important;
        font-size: 12pt;
        line-height: 1.4;
    }
    
    /* Section adjustments */
    section {
        min-height: auto !important;
        padding: 20px 0 !important;
        page-break-after: avoid;
    }
    
    /* Links */
    a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        font-weight: normal;
    }
    
    /* Remove background images */
    section::before {
        display: none;
    }
    
    /* Text contrast */
    h2 {
        color: #000 !important;
    }
    
    /* Contact info */
    .info-item i {
        display: none;
    }
}