/* 
   3stargrowth - Responsive Styles
   Targeting standard viewports from 375px to 1920px
*/

/* ══════════════════════════════════════════════
   MOBILE MENU OVERLAY — Slide from Right
══════════════════════════════════════════════ */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background: linear-gradient(160deg, #060e1c 0%, #0a1628 60%, #061218 100%);
    border-left: 1px solid rgba(0, 229, 160, 0.18);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
    z-index: 99998;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

/* Backdrop */
.mobile-menu-overlay::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(3, 11, 24, 0.7);
    backdrop-filter: blur(4px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.mobile-menu-overlay.active::before {
    opacity: 1;
}

/* Brand row inside menu */
.mobile-menu-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    width: 100%;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

/* Nav links */
.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    width: 100%;
    margin-bottom: auto;
}

.mobile-menu-nav a {
    font-family: var(--font-heading, 'Inter', sans-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.22s ease;
    letter-spacing: 0.01em;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
    color: #00e5a0;
    background: rgba(0, 229, 160, 0.08);
    border-color: rgba(0, 229, 160, 0.2);
    transform: translateX(4px);
}

/* Close button */
.mobile-menu-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s ease;
}
.mobile-menu-close:hover {
    color: #fff;
    background: rgba(255,77,109,0.2);
    border-color: rgba(255,77,109,0.4);
    transform: rotate(90deg);
}

/* CTA Buttons in mobile menu */
.mobile-menu-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.mobile-cta-services {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, #00e5a0, #00b4d8);
    color: #030b18;
    font-size: 0.95rem;
    font-weight: 800;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(0, 229, 160, 0.3);
    transition: all 0.25s ease;
}
.mobile-cta-services:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(0, 229, 160, 0.45);
}

.mobile-cta-book {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(37,99,235,0.35);
    transition: all 0.25s ease;
}
.mobile-cta-book:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
}

.mobile-cta-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.25s ease;
}
.mobile-cta-quote:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Base Responsive Grid Defaults */
.responsive-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.responsive-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* 1920px Desktop */
@media (min-width: 1441px) {
    .container {
        max-width: 1600px;
    }
}

/* 1440px Desktop */
@media (max-width: 1440px) {
    .container {
        max-width: 1280px;
    }
}

/* 1280px Laptop */
@media (max-width: 1280px) {
    .container {
        max-width: 1024px;
        padding: 0 1.5rem;
    }
    .responsive-grid-3 {
        gap: 1.5rem;
    }
}

/* 1024px Tablet */
@media (max-width: 1024px) {
    .container {
        max-width: 768px;
    }
    .responsive-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .responsive-grid-2 {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* 768px Tablet & Mobile */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 1.25rem;
    }
    .responsive-grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .responsive-grid-2 {
        grid-template-columns: 1fr;
    }
    .section-title {
        margin-bottom: 0.75rem !important;
    }
    .section-subtitle {
        margin-bottom: 1.5rem !important;
    }
    .services-section,
    .why-us-section,
    .process-section,
    .testimonials-section,
    .cta-banner-section {
        padding: 40px 0 !important;
    }
    .portfolio-section {
        padding: 40px 0 0 !important;
    }
    .portfolio-header,
    .reveal[style*="margin-bottom"] {
        margin-bottom: 1.5rem !important;
    }

    /* About Card Section (Screenshot 3 Mobile Overflow Fix) */
    .about-card-section {
        overflow: hidden;
        padding: 30px 0 !important;
    }

    .about-founder-card {
        padding: 1.5rem 1.15rem !important;
        border-radius: 18px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden;
    }

    .afc-header-box {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
        padding: 1.15rem 1rem !important;
    }

    .afc-email-link {
        word-break: break-all;
    }

    .afc-stats-row {
        gap: 0.5rem !important;
        padding: 1.15rem 0 !important;
    }

    .afc-stat-val {
        font-size: 1.35rem !important;
    }

    .afc-tags-row {
        gap: 0.4rem !important;
    }

    .afc-pill-tag {
        font-size: 0.7rem !important;
        padding: 4px 10px !important;
    }

    /* CTA Banner Section - Want to Build With Us (Screenshot 4 Mobile Overflow Fix) */
    .cta-banner-section {
        overflow: hidden;
        padding: 35px 0 !important;
    }

    .team-cta-inner {
        padding: 1.75rem 1.25rem !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 20px !important;
        overflow: hidden !important;
    }

    .team-cta-left {
        width: 100% !important;
    }

    .team-cta-right {
        width: 100% !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .team-cta-right .btn {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }

    /* Prevent floating dots/glow shapes from breaking page width */
    .glow-container,
    .hero-shapes,
    .cta-radial-glow {
        max-width: 100vw;
        overflow: hidden;
    }

    /* Mobile active hover state triggers (matches desktop hover) */
    .service-card.is-active-hover,
    .portfolio-marquee-card.is-active-hover,
    .review-card-v2.is-active-hover,
    .team-card.is-active-hover,
    .why-us-card-wrap.is-active-hover .why-us-card {
        border-color: rgba(0, 229, 160, 0.45) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 25px rgba(0, 229, 160, 0.2) !important;
        background: rgba(14, 18, 33, 0.9) !important;
    }

    .service-card.is-active-hover .sc-corner,
    .portfolio-marquee-card.is-active-hover .sc-corner,
    .why-us-card-wrap.is-active-hover .sc-corner {
        opacity: 1 !important;
        width: 28px !important;
        height: 28px !important;
    }

    .service-card.is-active-hover h3,
    .why-us-card-wrap.is-active-hover .why-us-content h3 {
        color: #00e5a0 !important;
    }

    .service-card.is-active-hover .service-arrow {
        transform: translateX(6px) !important;
    }

    .portfolio-marquee-card.is-active-hover .pmc-overlay {
        opacity: 1 !important;
    }

    .portfolio-marquee-card.is-active-hover .pmc-arrow-btn {
        transform: translateY(0) !important;
    }
}

/* 480px / 375px Mobile */
@media (max-width: 480px) {
    .btn {
        width: 100%;
        text-align: center;
    }
    .container {
        padding: 0 1rem;
    }
    .about-founder-card {
        padding: 1.25rem 0.9rem !important;
    }
    .afc-stat-val {
        font-size: 1.2rem !important;
    }
    .afc-stat-lbl {
        font-size: 0.7rem !important;
    }
}
