/* ===== RESPONSIVE DESIGN ===== */

/* Large Desktop */
@media screen and (min-width: 1400px) {
    .floating-nav {
        width: 95%;
        max-width: 1600px;
    }
    
    .nav-container {
        padding: 20px 40px;
    }
    
    .nav-links {
        gap: 40px;
    }
    
    .landing-content h1 {
        font-size: 4.5rem;
    }
    
    .taglines p {
        font-size: 1.4rem;
    }
}

/* Desktop */
@media screen and (max-width: 1399px) and (min-width: 1025px) {
    .nav-container {
        padding: 15px 30px;
    }
    
    .nav-links {
        gap: 30px;
    }
    
    .landing-content h1 {
        font-size: 3.5rem;
    }
    
    .taglines p {
        font-size: 1.2rem;
    }
    
    /* Keep desktop cta-buttons layout unchanged */
    .cta-buttons {
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
    }
}

/* Tablet and smaller desktop */
@media screen and (max-width: 1024px) {
    .nav-container {
        padding: 15px 20px;
    }

    .nav-links {
        gap: 25px;
    }

    .landing-content h1 {
        font-size: 3rem;
    }

    .taglines p {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
    
    .cta-buttons {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Tablet */
@media screen and (max-width: 768px) {
    /* Navigation */
    .floating-nav {
        height: 60px;
        top: 10px;
        width: 95%;
        z-index: 2000;
    }

    .nav-container {
        padding: 10px 20px;
    }
    
    .logo {
        height: 35px;
    }
    
    .company-name {
        font-size: 1.3rem;
    }

    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: block !important;
        background: none;
        border: none;
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 8px;
        border-radius: 5px;
        transition: all 0.3s ease;
        z-index: 2001;
    }

    .mobile-menu-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(1.1);
    }

    .mobile-menu-btn i {
        transition: transform 0.3s ease;
    }

    .mobile-menu-btn.active i {
        transform: rotate(90deg);
    }

    /* Navigation Links */
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #111 !important;
        padding: 20px 0;
        flex-direction: column;
        align-items: flex-start;
        border-radius: 0 0 15px 15px;
        z-index: 1999;
        box-shadow: 0 8px 24px rgba(0,0,0,0.25);
        transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
        max-height: 0;
        overflow: hidden;
    }

    .nav-links.open {
        display: flex !important;
        max-height: 400px;
        background: #111 !important;
    }

    .nav-links a, .nav-link {
        color: #fff !important;
        background: transparent !important;
        display: block;
        padding: 15px 25px;
        width: 100%;
        text-align: left;
        font-size: 1.1rem !important;
        border-radius: 0;
        border: none;
        text-shadow: none;
        filter: none;
        transition: background 0.2s, color 0.2s;
        margin: 0;
    }
    
    .nav-links a:hover, .nav-link:hover, .nav-link.active {
        background: #222 !important;
        color: #fff !important;
        transform: none;
    }

    /* Dropdown Styles */
    .nav-dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        background: #222 !important;
        margin-top: 10px;
        padding: 10px 0;
        display: none;
        border-radius: 10px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.18);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        opacity: 1;
        transform: none;
    }
    
    .nav-dropdown.active .dropdown-content {
        display: flex;
    }
    
    .dropdown-content a {
        color: #fff !important;
        background: transparent !important;
        padding: 12px 24px;
        font-size: 1rem;
        border-radius: 0;
        border: none;
        transition: background 0.2s, color 0.2s;
        width: 100%;
        text-align: center;
    }
    
    .dropdown-content a:hover {
        background: #111 !important;
        color: #fff !important;
    }

    /* Landing Section */
    .landing-content h1 {
        font-size: 2.5rem;
    }
    
    .taglines p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
        font-size: 1rem;
        text-align: center;
    }
    
    .landing-section .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    /* General Sections */
    section {
        padding: 60px 0;
    }
    
    section h2 {
        font-size: 2.2rem;
    }
}

/* Mobile */
@media screen and (max-width: 480px) {
    .floating-nav {
        top: 5px;
        width: 98%;
        height: 55px;
    }

    .nav-container {
        padding: 8px 15px;
    }

    .logo {
        height: 30px;
    }

    .company-name {
        font-size: 1.1rem;
    }
    
    .mobile-menu-btn {
        font-size: 1.3rem;
        padding: 6px;
    }

    .landing-content h1 {
        font-size: 2rem;
    }

    .taglines p {
        font-size: 0.9rem;
    }
    
    .landing-content {
        max-width: 90%;
        padding-left: 5%;
    }
    
    .cta-buttons {
        gap: 12px;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
        max-width: 250px;
        text-align: center;
    }
    
    .landing-section .btn {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    section {
        padding: 50px 0;
    }

    section h2 {
        font-size: 1.8rem;
    }
    
    .modal-content {
        margin: 5% auto;
        padding: 20px;
        width: 95%;
    }
}

/* Small Mobile */
@media screen and (max-width: 320px) {
    .floating-nav {
        width: 99%;
        height: 50px;
    }
    
    .nav-container {
        padding: 6px 12px;
    }
    
    .logo {
        height: 25px;
    }
    
    .company-name {
        font-size: 1rem;
    }
    
    .landing-content h1 {
        font-size: 1.8rem;
    }
    
    .taglines p {
        font-size: 0.8rem;
    }
    
    .cta-buttons {
        gap: 10px;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        max-width: 220px;
        text-align: center;
    }
    
    .landing-section .btn {
        width: 100%;
        max-width: 220px;
        margin: 0 auto;
    }
}

/* Landscape Mode */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .landing-section {
        height: auto;
        min-height: 100vh;
        padding: 80px 20px;
    }

    .nav-links {
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .floating-nav {
        top: 5px;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Button Responsiveness */
@media screen and (max-width: 768px) {
    .btn-primary, .btn-secondary, .btn-outline {
        font-size: 0.95rem;
        padding: 10px 20px;
    }
    
    .btn-hero {
        font-size: 1rem;
        padding: 12px 24px;
    }
    
    .service-card .btn-primary {
        font-size: 0.9rem;
        padding: 8px 18px;
    }
    
    .project-card .btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    /* Service page buttons */
    .service-overview .btn {
        font-size: 0.95rem;
        padding: 10px 20px;
    }
    
    /* Pricing buttons */
    .pricing-section .btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

@media screen and (max-width: 480px) {
    .btn-primary, .btn-secondary, .btn-outline {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    .btn-hero {
        font-size: 0.95rem;
        padding: 10px 20px;
    }
    
    .service-card .btn-primary {
        font-size: 0.85rem;
        padding: 6px 14px;
    }
    
    .project-card .btn {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    /* Service page buttons */
    .service-overview .btn {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    /* Pricing buttons */
    .pricing-section .btn {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

/* Ensure mobile menu button is always visible on mobile */
@media screen and (max-width: 768px) {
    .mobile-menu-btn {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Fix for service pages button responsiveness */
@media screen and (max-width: 768px) {
    .service-landing-hero .cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .service-landing-hero .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .service-landing-hero .btn {
        max-width: 250px;
        font-size: 0.9rem;
        padding: 10px 18px;
    }
} 