@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #030712;
    --primary: #6366f1;
    --primary-light: #a855f7;
    --gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --card-bg: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
}

/* Base Styles */
body {
    background-color: var(--bg-dark);
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Navbar Style */
.nav-agency {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.5s ease;
    box-sizing: border-box;
}

.nav-agency.scrolled {
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 3rem;
}

/* Glass Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 2.5rem;
    transition: all 0.5s ease;
    backdrop-filter: blur(20px);
}

.glass-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-0.5rem);
    background: rgba(255, 255, 255, 0.06);
}

/* Gradients */
.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.bg-gradient-premium {
    background: var(--gradient);
}

/* Buttons */
.btn-agency {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.btn-agency-primary {
    background: var(--gradient);
    color: #ffffff;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.2);
}

.btn-agency-primary:hover {
    box-shadow: 0 15px 30px -5px rgba(99, 102, 241, 0.4);
    transform: scale(1.05);
}

.btn-agency-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.btn-agency-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Hero Badge */
.badge-agency {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-light);
    margin-bottom: 2rem;
}

/* Step Flow (Process) */
.step-dot {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 10;
}

.step-line {
    display: none;
}

@media (min-width: 768px) {
    .step-line {
        display: block;
        position: absolute;
        top: 1.5rem;
        left: 100%;
        width: 100%;
        height: 1px;
        border-top: 1px dashed rgba(255, 255, 255, 0.2);
        z-index: -1;
    }
}

/* Stats Bar */
.stats-banner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    padding: 2.5rem;
    border-radius: 2.5rem;
    background: linear-gradient(to right, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1), rgba(99, 102, 241, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
    .stats-banner {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Animations */
.reveal-up {
    opacity: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}


/* ==========================================================================
   ThinkStacks Unified Responsive Extensions
   ========================================================================== */

.container-agency {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Header Hamburger Menu desktop/mobile handling */
#openMenu {
    display: none !important;
}
@media (max-width: 1100px) {
    #openMenu {
        display: block !important;
    }
}

/* Mobile Menu Overlay modifications */
@media (max-width: 480px) {
    #mobileMenu a {
        font-size: 28px !important;
    }
    #mobileMenu {
        gap: 25px !important;
    }
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Stats Section Grid */
.stats-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    background: linear-gradient(to right, rgba(99,102,241,0.1), rgba(168,85,247,0.1), rgba(99,102,241,0.1));
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 40px;
    padding: 60px;
    text-align: center;
}

@media (max-width: 1024px) {
    .stats-grid-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px 30px;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .stats-grid-container {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 25px;
    }
    .stats-grid-container > div {
        border-left: none !important;
        padding-bottom: 20px;
    }
    .stats-grid-container > div:not(:last-child) {
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
}

/* Testimonials Header */
.testimonials-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 70px;
}

@media (max-width: 768px) {
    .testimonials-header-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        margin-bottom: 40px;
    }
}

/* Testimonials Grid */
.testimonials-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 1024px) {
    .testimonials-grid-container {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .testimonials-grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Service Card & Project Card Responsive Scale */
@media (max-width: 480px) {
    .service-card, 
    .project-card-wrap,
    .portfolio-card {
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
}

/* Hero Section & Image Rotation Overrides */
@media (max-width: 1024px) {
    .hero-image-container img {
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
        margin-top: 20px;
    }
    .hero-image-container {
        padding: 0 10px;
    }
}

/* About Hero Grid */
.about-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 1024px) {
    .about-hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    .about-hero-grid .reveal-up {
        max-width: 100%;
        margin: 0 auto;
    }
}

/* About Floating Cards */
.about-float-card-1 {
    position: absolute;
    top: -40px;
    right: -40px;
    padding: 30px;
    border-radius: 24px;
    z-index: 20;
    background: rgba(99,102,241,0.1);
    backdrop-filter: blur(20px);
    border-color: rgba(99,102,241,0.3);
}

.about-float-card-2 {
    position: absolute;
    bottom: -20px;
    left: -40px;
    padding: 30px;
    border-radius: 24px;
    z-index: 20;
    background: rgba(16,185,129,0.1);
    backdrop-filter: blur(20px);
    border-color: rgba(16,185,129,0.3);
}

@media (max-width: 768px) {
    .about-float-card-1,
    .about-float-card-2 {
        position: relative !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        margin: 20px auto 0 !important;
        max-width: 280px !important;
        text-align: center;
    }
}

/* Core Values Grid About Page */
.values-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 991px) {
    .values-grid-container {
        grid-template-columns: 1fr;
    }
}

/* Contact Grid */
.contact-grid-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 100px;
    align-items: flex-start;
}

@media (max-width: 1024px) {
    .contact-grid-container {
        grid-template-columns: 1fr !important;
        gap: 60px !important;
    }
}

/* Modal Body Scrollability Fix */
.booking-modal-card {
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.modal-body-fixed {
    overflow-y: auto;
    flex-grow: 1;
}

@media (max-width: 550px) {
    .date-grid-2weeks {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 8px !important;
    }
    .booking-modal-card {
        max-height: 100vh !important;
        height: 100% !important;
        border-radius: 0 !important;
    }
}
