/* ==========================================================================
   Responsive Styles for Cyberpunk Neon Theme
   ========================================================================== */

/* Laptop & Smaller Desktop */
@media (max-width: 1199px) {
    .header-left {
        position: absolute;
        top: calc(100% + 15px);
        right: 0;
        width: 100%;
        background: rgba(5, 5, 8, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid var(--glass-border);
        border-bottom: 2px solid var(--neon-pink);
        border-radius: 24px;
        flex-direction: column;
        justify-content: center;
        padding: 30px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s ease;
        z-index: 999;
        box-shadow: 0 15px 30px rgba(0,0,0,0.8);
    }
    
    .header-left.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        box-shadow: var(--glow-pink);
    }
    
    .header-left nav ul {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .header-btn {
        margin-left: 0;
        margin-top: 40px;
        display: flex;
        justify-content: center;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }

    .hero-text h1 {
        font-size: 56px;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .hero-section {
        padding: 180px 0 80px;
    }
    
    .hero-text h1 {
        font-size: 48px;
    }
    
    .heading h2, .experience h3, .project-style h2 {
        font-size: 40px;
    }

    .project-style {
        border-radius: 24px 24px 0 0;
        padding: 60px 40px;
        border-bottom: none;
    }
    
    .project-img {
        border-radius: 0 0 24px 24px;
        border-left: 1px solid var(--glass-border);
        border-top: none;
        padding: 40px;
    }
    
    .pricing-table.two {
        transform: scale(1);
    }
    
    .pricing-table.two:hover {
        transform: translateY(-5px);
    }
    
    .footer-bottom-style {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    /* Hide large floating shapes on tablet to reduce clutter */
    .shap-one, .shap-two {
        opacity: 0.3;
        transform: scale(0.7);
    }
}

/* Mobile Landscape & Standard Tablets */
@media (max-width: 767px) {
    .gap {
        padding: 80px 0;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .button-main {
        height: 44px !important;
        padding: 0 25px 0 25px !important;
        font-size: 13px !important;
        transform: translateX(-15px) !important;
        white-space: nowrap;
    }
    .button-arrow-wrapper {
        width: 44px !important;
        height: 44px !important;
    }
    .button-arrow-wrapper svg,
    .button-arrow-wrapper i {
        font-size: 13px !important;
    }
    
    .tet-style {
        flex-direction: column;
        align-items: flex-start;
        border-left: none;
        border-top: 3px solid var(--neon-pink);
        box-shadow: 0 -5px 15px rgba(255,0,234,0.3);
        padding-left: 0;
        padding-top: 20px;
    }
    
    .pricing-table {
        padding: 40px 20px;
    }
    
    .footer-contact {
        flex-direction: column;
        text-align: center;
        margin-bottom: 40px;
    }
    
    .footer-contact h4 {
        justify-content: center;
    }
    
    .footer-center ul {
        grid-template-columns: 1fr;
    }
    
    .branding-style span {
        font-size: 50px;
    }
}

/* Small Mobile */
@media (max-width: 575px) {
    .logo img {
        max-height: 40px;
    }
    
    .top-bar {
        padding: 10px 15px;
    }
    
    .heading h2, .experience h3, .project-style h2 {
        font-size: 32px;
    }
    
    .pricing-top h3 {
        font-size: 32px;
    }
    
    .marquee-item {
        padding: 0 20px;
        height: 60px;
    }
    
    .marquee-item img {
        width: auto;
        max-width: 100px;
        height: 35px;
        opacity: 0.9;
    }

    .marquee-content {
        animation-duration: 8s !important;
    }

    .text-logo-partner {
        font-size: 18px;
        opacity: 0.9;
    }
    
    .button-main {
        height: 40px !important;
        padding: 0 20px 0 22px !important;
        font-size: 12px !important;
        transform: translateX(-15px) !important;
        white-space: nowrap;
    }
    .button-arrow-wrapper {
        width: 40px !important;
        height: 40px !important;
    }
    .button-arrow-wrapper svg,
    .button-arrow-wrapper i {
        font-size: 12px !important;
    }
    
    .branding-style, .services-style, .workflow, .experience, .project-style, .project-img {
        padding: 30px 20px;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
}

/* Keep the refined button and navigation surfaces consistent on small screens. */
@media (max-width: 1199px) {
    .header-left {
        background: rgba(24, 25, 23, .96);
        border: 1px solid rgba(255, 255, 255, .12);
        box-shadow: 0 14px 36px rgba(0, 0, 0, .28);
    }
    .header-left.active { box-shadow: 0 14px 36px rgba(0, 0, 0, .28); }
}
@media (max-width: 767px) {
    .button-main {
        height: 48px !important;
        padding: 0 22px 0 8px !important;
        transform: none !important;
        font-size: 14px !important;
    }
    .button-arrow-wrapper { width: 48px !important; height: 48px !important; }
    .tet-style {
        flex-direction: row;
        align-items: center;
        border-left: 2px solid rgba(205, 222, 79, .75);
        border-top: 0;
        box-shadow: none;
        padding: 0 0 0 16px;
    }
}

/* Custom Responsive Optimization Fixes */
@media (max-width: 991px) {
    /* Hide floating recommended-companies backgrounds to prevent horizontal scroll */
    .recommended-companies .shap-3,
    .recommended-companies .shap-4 {
        display: none !important;
    }
    
    /* Add vertical margins to stacked cards */
    .branding-style, 
    .services-style, 
    .workflow, 
    .pricing-table {
        margin-bottom: 30px;
    }
    
    /* Remove bottom margin from last stacked elements */
    .col-lg-4:last-child .branding-style,
    .col-lg-4:last-child .services-style,
    .col-lg-4:last-child .workflow,
    .col-lg-4:last-child .pricing-table {
        margin-bottom: 0;
    }

    /* Adjust padding of stacked blocks */
    .contact-form {
        padding: 25px 20px !important;
    }
    .contact-section {
        padding: 50px 0 !important;
    }
}

@media (max-width: 575px) {
    /* Prevent overflow on sections */
    section, .gap, .workflow-section {
        overflow: hidden;
    }
    .contact-form {
        padding: 20px 15px !important;
        border-radius: 12px;
    }
}
