/* ===================================
   Modern Agency - Responsive Styles
   =================================== */

/* Large devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
}

/* Large devices (desktops, 992px to 1199.98px) */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .container {
        max-width: 960px;
        padding: 0 20px;
    }
}

/* Medium devices (tablets, 768px to 991.98px) */
@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    /* Show hamburger menu on mobile */
    .navbar-toggler {
        display: block;
    }
    
    /* Ensure proper alignment of the menu icon */
    .navbar-toggler i {
        font-size: 1.75rem;
        color: var(--white);
        transition: color 0.3s ease;
    }
    
    /* Change icon color when scrolled */
    .navbar.scrolled .navbar-toggler i {
        color: var(--text-color);
    }
    
    .hero-section {
        min-height: 600px;
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 3rem;
        line-height: 1.2;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    /* Navigation adjustments for tablet */
    .navbar-collapse {
        display: flex !important;
    }
    
    .navbar-nav {
        width: 100%;
        text-align: center;
    }
    
    .nav-item {
        margin: 0 5px;
    }
    
    .nav-link {
        padding: 10px 15px !important;
        font-size: 1rem;
    }
    .mobile-nav-list .nav-link {
        padding: 0.2rem 0.5rem !important;
    }
    .info-toggler {
        margin-top: 20px;
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .hero-buttons .btn {
        padding: 12px 24px;
    }
    
    .footer-widget {
        margin-bottom: 40px;
    }
    
    .copyright .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .copyright-text {
        margin-bottom: 10px;
    }
    
    .footer-bottom-links {
        margin-top: 10px;
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Small devices (landscape phones, 576px to 767.98px) */
@media (max-width: 767.98px) {
    
    .section-padding {
        padding: 80px 0;
    }
    
    /* Footer Responsive */
    .footer-top {
        padding: 60px 0 30px;
    }
    
    .footer-widget .widget-title {
        margin-bottom: 20px;
    }
    
    .copyright {
        padding: 20px 0;
        text-align: center;
    }
    
    .copyright .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-bottom-links {
        justify-content: flex-end;
        gap: 15px;
        padding-left: 0;
        margin-top: 15px;
    }
    
    .footer-bottom-links li::after {
        display: none;
    }
    
    .hero-section {
        min-height: 500px;
        text-align: center;
        padding-top: 90px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.8rem;
        letter-spacing: 2px;
        margin-bottom: 12px;
    }
    
    .navbar {
        padding: 15px 0;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 15px;
    }
    
    .section-padding {
        padding: 70px 0;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-buttons .btn {
        padding: 12px 20px;
    }
    
    .back-to-top {
        width: 42px;
        height: 42px;
        line-height: 42px;
        bottom: 20px;
        right: 20px;
        font-size: 1rem;
    }
}

/* Very small devices (smaller than 400px) */
@media (max-width: 400px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .hero-buttons .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Print styles */
@media print {
    :root {
        --text-color: #000;
        --heading-color: #000;
    }
    
    body {
        padding: 0.5in;
        font-size: 12pt;
        color: var(--text-color);
        background: #fff !important;
    }
    
    .navbar,
    .scroll-down,
    .back-to-top,
    .footer,
    .no-print {
        display: none !important;
    }
    
    a {
        color: var(--text-color);
        text-decoration: underline;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 80%;
        color: var(--text-light);
    }
    
    .container {
        width: auto;
        max-width: 100%;
        padding: 0;
    }
    
    .hero-section {
        min-height: auto;
        padding: 2rem 0 !important;
    }
    
    .hero-title {
        color: var(--heading-color) !important;
        font-size: 2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-subtitle {
        color: var(--text-light) !important;
    }
    
    .btn {
        display: none !important;
    }
    
    @page {
        margin: 1cm;
    }
}
