/* =========================================
   LAGOM AGENCY - DIGITAL BALANCE STYLES
   ========================================= */

:root {
    --agency-bg: #f9f9fb;
    /* Light grayish background for that clean agency feel */
    --agency-text: #1b2838;
    /* Deep rich blue/black */
    --agency-accent: #007bff;
    /* Sharp reliable blue */
    --agency-dark: #0c1930;
    /* Borrowing studio background for high contrast */
    --agency-overlay: rgba(255, 255, 255, 0.9);
}

body.agency-page {
    background-color: var(--agency-bg);
    color: var(--agency-text);
    overflow-x: hidden;
}

/* =========================================
   BUTTONS & NAVIGATION
   ========================================= */
.agency-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 5%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.agency-nav.scrolled {
    padding: 15px 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

/* Agency Specific Language Switcher Design */
.agency-nav .lang-switcher {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: none;
    padding: 6px 12px;
}

.agency-nav .lang-btn {
    color: rgba(0, 0, 0, 0.4);
}

.agency-nav .lang-btn:hover {
    color: var(--agency-text);
}

.agency-nav .lang-btn.active {
    color: var(--agency-accent);
    text-shadow: none;
    font-weight: 700;
}

.agency-nav .lang-separator {
    color: rgba(0, 0, 0, 0.2);
}

.agency-nav-logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.agency-nav-logo img:hover {
    transform: scale(1.05);
}

.agency-nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
    align-items: center;
    margin: 0;
}

.agency-nav-links a {
    text-decoration: none;
    color: var(--agency-text);
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.agency-nav-links a:hover {
    color: var(--agency-accent);
}

/* Nav Buttons */
.nav-btn-outline {
    padding: 10px 22px;
    border: 2px solid var(--agency-text);
    border-radius: 6px;
    transition: all 0.3s ease !important;
}

.nav-btn-outline:hover {
    background: var(--agency-text);
    color: #fff !important;
}

.nav-btn-solid {
    padding: 10px 22px;
    background: var(--agency-accent);
    color: #fff !important;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease !important;
}

.nav-btn-solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.4);
}

.btn-primary-dark {
    display: inline-block;
    padding: 15px 40px;
    background-color: var(--agency-text);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(27, 40, 56, 0.3);
}

.btn-primary-dark:hover {
    background-color: transparent;
    color: var(--agency-text);
    border-color: var(--agency-text);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(27, 40, 56, 0.1);
}

.btn-large {
    padding: 20px 60px;
    font-size: 1.2rem;
}

/* =========================================
   TRANSITION OVERRIDES
   ========================================= */
.trans-beam-agency {
    background: var(--agency-accent);
    box-shadow: 0 0 30px var(--agency-accent);
}

.agency-page .trans-wipe-panel,
.agency-page .trans-left-panel,
.agency-page .trans-right-panel {
    background-color: var(--agency-bg);
    /* Use light bg for transitions to feel seamless */
}

/* =========================================
   HERO SECTION
   ========================================= */
.agency-hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    background: linear-gradient(135deg, #ffffff 0%, #f0f2f5 100%);
    overflow: hidden;
}

#agency-particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.centered-hero {
    position: relative;
    z-index: 10;
    max-width: 1000px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 1s ease-out;
}

.hero-brand {
    margin-bottom: 2rem;
}

.hero-top-logo {
    height: 40px;
    /* Adjust based on logo proportions */
    width: auto;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.05));
    opacity: 0.9;
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    font-weight: 800;
    color: var(--agency-dark);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: #4a5568;
    margin-bottom: 3rem;
    line-height: 1.5;
    max-width: 800px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.btn-pill {
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-pill-primary {
    background: var(--agency-dark);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(12, 25, 48, 0.2);
}

.btn-pill-primary:hover {
    background: var(--agency-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.btn-pill-secondary {
    background: #ffffff;
    color: var(--agency-dark);
    border: 1px solid rgba(12, 25, 48, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.btn-pill-secondary:hover {
    border-color: var(--agency-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

/* =========================================
   SOCIAL PROOF / CLIENT BAND
   ========================================= */
.client-band-wrapper {
    background: #ffffff;
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.client-band {
    background: transparent;
    padding: 60px 2rem;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.client-band::before,
.client-band::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    z-index: 2;
}

.client-band::before {
    left: 0;
    background: linear-gradient(to right, #ffffff, transparent);
}

.client-band::after {
    right: 0;
    background: linear-gradient(to left, #ffffff, transparent);
}

.client-track {
    display: inline-flex;
    align-items: center;
    gap: 80px;
    animation: scrollBand 30s linear infinite;
    padding-left: 80px;
    /* Offset to connect loop */
}

@keyframes scrollBand {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.client-logo {
    height: 45px;
    width: auto;
    filter: grayscale(100%) opacity(0.5);
    transition: all 0.4s ease;
}

.client-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* =========================================
   SCROLL INDICATOR (DARK)
   ========================================= */
.dark-scroll {
    bottom: 40px;
    opacity: 0.4;
}

.dark-mouse {
    border-color: var(--agency-text);
}

.dark-wheel {
    background: var(--agency-accent);
}

/* =========================================
   GENERAL SECTIONS
   ========================================= */
.agency-section {
    padding: 120px 2rem;
    position: relative;
    z-index: 5;
    background: var(--agency-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.section-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--agency-dark);
    margin-bottom: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.t-center {
    text-align: center;
}

.section-lead {
    font-size: 1.4rem;
    line-height: 1.8;
    color: #4a5568;
}

/* =========================================
   CORE SERVICES (HEAVY HITTERS)
   ========================================= */
.core-services {
    background: #ffffff;
}

.services-header {
    text-align: center;
    margin-bottom: 80px;
}

.services-subtitle {
    color: var(--agency-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.services-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--agency-dark);
    margin-bottom: 30px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-points {
    margin-top: 25px;
    list-style: none;
    padding: 0;
}

.service-points li {
    font-size: 1.1rem;
    color: var(--agency-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.service-points li i {
    color: var(--agency-accent);
    margin-right: 15px;
    font-size: 1.2rem;
}

.service-showcase {
    display: flex;
    flex-direction: column;
    gap: 15vw;
    margin-top: 80px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.showcase-item {
    display: flex;
    align-items: center;
    gap: 8%;
}

.showcase-item.right-align {
    flex-direction: row;
}

.showcase-item.left-align {
    flex-direction: row;
}

.showcase-text {
    flex: 1;
    position: relative;
}

.service-number {
    position: absolute;
    top: -60px;
    left: -20px;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    z-index: 0;
    line-height: 1;
}

.showcase-text h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--agency-dark);
    position: relative;
    z-index: 1;
}

.showcase-text p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #4a5568;
    position: relative;
    z-index: 1;
}

.showcase-visual {
    flex: 1;
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.showcase-visual:hover {
    transform: translateY(-10px);
}

.visual-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #f1f5f9;
}

/* Gradient Placeholders for now, will be replaced with images later */
.ecom-bg {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.brand-bg {
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
}

.ads-bg {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

/* =========================================
   THE SPECTRUM (ALL SERVICES)
   ========================================= */
.agency-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.bg-light-grey {
    background: linear-gradient(to bottom, var(--agency-bg), #ffffff);
    padding: 100px 0;
}

.spectrum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.spectrum-card {
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.spectrum-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--agency-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.spectrum-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.08);
    border-color: rgba(0, 123, 255, 0.15);
}

.spectrum-card:hover::before {
    transform: scaleX(1);
}

.spectrum-card i {
    font-size: 2rem;
    color: var(--agency-accent);
    margin-bottom: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: rgba(0, 123, 255, 0.05);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.spectrum-card:hover i {
    background: var(--agency-accent);
    color: #ffffff;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.2);
}

.spectrum-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--agency-dark);
}

.spectrum-card p {
    color: #5a6b82;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* =========================================
   PRICING & PACKAGES (PREMIUM DARK GLASSMORPHISM)
   ========================================= */
.pricing-section.pricing-dark-theme {
    background: #0c1930;
    padding: 120px 2rem;
    position: relative;
    overflow: hidden;
    color: #fff;
}

/* Background Glowing Orbs */
.pricing-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: floatGlow 15s ease-in-out infinite alternate;
}

.glow-orb.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--agency-accent);
    top: -200px;
    left: -100px;
}

.glow-orb.orb-2 {
    width: 500px;
    height: 500px;
    background: #5b21b6;
    /* Deep purple complement */
    bottom: -150px;
    right: -50px;
    animation-delay: -5s;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

.pricing-header {
    margin-bottom: 80px;
}

.pricing-subtitle {
    color: var(--agency-accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    font-weight: 700;
    display: block;
    margin-bottom: 15px;
}

.pricing-dark-theme .section-heading {
    color: #fff;
    margin-bottom: 0px;
}

.text-glow {
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.pricing-card {
    background: #080d19;
    /* Solid deep dark blue, not blurred glass */
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Very subtle line */
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.pricing-card h3 {
    font-size: 1.7rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 800;
    /* Very thick */
    letter-spacing: -0.5px;
}

.price-desc {
    color: rgba(255, 255, 255, 0.5);
    /* Muted gray */
    font-size: 0.85rem;
    margin-bottom: 30px;
    line-height: 1.5;
    min-height: 40px;
}

/* Pricing Block & Structure */
.price-block {
    margin-bottom: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    /* Clean dividers */
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px 0;
}

.price-prefix {
    font-size: 0.75rem;
    font-weight: 800;
    color: #0ea5e9;
    /* Cyan blue uppercase */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.price {
    font-size: 2.3rem;
    font-weight: 800;
    color: #38bdf8;
    /* Blue numbers for side cards */
    display: flex;
    flex-direction: column;
    /* Stack amount and cycle */
    justify-content: center;
    align-items: center;
    gap: 8px;
    letter-spacing: -1.5px;
}

.billing-cycle {
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0;
}

/* Feature List (Centered, Clean) */
.price-features {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
    text-align: center;
    flex: 1;
    /* Pushes button to bottom naturally */
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* Good spacing between items */
}

.price-features.alignment-left {
    text-align: left;
}

.price-features li {
    font-size: 0.85rem;
    font-weight: 500;
    color: #cbd5e1;
    /* Off-white gray */
    display: block;
    line-height: 1.5;
}

.price-features.alignment-left li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.price-features.alignment-left li i {
    margin-top: 3px;
    color: #00d4ff;
}

/* Base button override for dark theme cards */
.pricing-card .btn-primary-dark {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Very faint outline */
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 14px 0;
    width: 100%;
    margin-top: auto;
    letter-spacing: 1px;
    border-radius: 6px;
    /* Slightly sharp corners */
    transition: all 0.3s ease;
}

.pricing-card .btn-primary-dark:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Highlighted Tier (Growth Engine) */
.pricing-card.highlighted {
    background: linear-gradient(180deg, #132f63 0%, #15103a 100%);
    /* Defined gradient */
    border: 1.5px solid #00d4ff;
    /* Distinct cyan border */
    transform: scale(1.03);
    /* Slightly larger */
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.25), 0 20px 50px rgba(0, 0, 0, 0.7);
    z-index: 2;
}

/* Middle card gets pure white text for contrast, cyan borders */
.pricing-card.highlighted .price-block {
    border-color: rgba(0, 212, 255, 0.2);
    /* Cyan-tinted dividers */
}

.pricing-card.highlighted .price {
    color: #e2e8f0;
    /* Less blue, more white for standard price */
}

.pricing-card.highlighted .price-prefix {
    color: #00d4ff;
    /* Extremely bright text */
}

.pricing-card.highlighted .price-features li {
    color: #f8fafc;
    /* Even brighter white list items */
}

.pricing-card.highlighted .nav-btn-solid {
    width: 100%;
    margin-top: auto;
    background: #0088ff;
    /* Vibrant solid blue */
    color: #ffffff;
    /* White text */
    border: none;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 14px 0;
    border-radius: 6px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 136, 255, 0.4);
    transition: all 0.3s ease;
}

.pricing-card.highlighted .nav-btn-solid:hover {
    background: #00d4ff;
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.6);
}

/* Pill Badge on Top Boundary */
.popular-badge {
    position: absolute;
    top: -14px;
    /* Sits precisely on the top line */
    left: 50%;
    transform: translateX(-50%);
    background: #00d4ff;
    /* Pure cyan */
    color: #030712;
    /* Extreme dark text */
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 212, 255, 0.4);
}

@media (max-width: 1024px) {
    .pricing-card.highlighted {
        transform: scale(1);
    }
}

/* =========================================
   PORTFOLIO (BENTO GRID) - FRONT PAGE
   ========================================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 300px;
    gap: 20px;
    max-width: 1400px;
    margin: 60px auto 0;
    padding: 0 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    background-color: #e2e8f0;
}

/* Grid Spanning */
.size-large {
    grid-column: span 2;
    grid-row: span 2;
}

.size-wide {
    grid-column: span 2;
}

.size-small {
    grid-column: span 1;
}

.portfolio-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(12, 25, 48, 0.9) 0%, rgba(12, 25, 48, 0) 100%);
    color: #fff;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.portfolio-item:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-overlay .cat {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--agency-accent);
    margin-bottom: 5px;
    font-weight: 700;
}

.portfolio-overlay h3 {
    font-size: 1.8rem;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* =========================================
   PORTFOLIO (EXPANDED GALLERY)
   ========================================= */
.portfolio-section {
    background: #ffffff;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 50px;
}

.portfolio-subtitle {
    color: var(--agency-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.portfolio-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--agency-dark);
    margin-bottom: 30px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Filter Bar */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(12, 25, 48, 0.2);
    color: var(--agency-text);
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--agency-dark);
    color: #fff;
    border-color: var(--agency-dark);
    box-shadow: 0 4px 15px rgba(12, 25, 48, 0.2);
}

/* Expanded Grid */
.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
    cursor: pointer;
}

.gallery-item.col-4 {
    grid-column: span 4;
}

.gallery-item.col-6 {
    grid-column: span 6;
}

.gallery-item.col-8 {
    grid-column: span 8;
}

.gallery-item.col-12 {
    grid-column: span 12;
    height: 500px;
}

@media (max-width: 992px) {

    .gallery-item.col-4,
    .gallery-item.col-6 {
        grid-column: span 12;
        height: 350px;
    }

    .gallery-item.col-8 {
        grid-column: span 12;
        height: 350px;
    }

    .gallery-item.col-12 {
        height: 400px;
    }
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.gallery-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(12, 25, 48, 0.95), transparent);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.tag {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-overlay h3 {
    font-size: 2rem;
    margin: 0;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Brand Card Specifics */
.brand-card .gallery-img {
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.4s ease;
}

.brand-card:hover .gallery-img {
    transform: scale(1.05);
    background-color: #fff !important;
    /* Brighter on hover */
}

.view-project-btn {
    font-size: 0.9rem;
    color: var(--agency-accent);
    margin-top: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.1s;
    /* Slight delay after h3 */
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-card:hover .view-project-btn {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   PROJECT MODAL (PORTFOLIO)
   ========================================= */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 9, 20, 0.85);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.modal-content-wrapper {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transform: translateY(50px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0;
}

.project-modal.active .modal-content-wrapper {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-close-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    color: var(--agency-dark);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: var(--agency-dark);
    color: #fff;
    transform: rotate(90deg);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 60px;
    scrollbar-width: thin;
    scrollbar-color: var(--agency-accent) #f0f0f0;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.modal-body::-webkit-scrollbar-thumb {
    background-color: var(--agency-accent);
    border-radius: 10px;
}

.modal-brand-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.modal-brand-header h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--agency-dark);
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.modal-brand-header p {
    font-size: 1.15rem;
    color: #5a6b82;
    line-height: 1.8;
}

.modal-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.modal-project-box {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.modal-project-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.modal-project-box img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-project-box h4 {
    padding: 20px;
    font-size: 1.2rem;
    color: var(--agency-dark);
    margin: 0;
    text-align: center;
    font-weight: 700;
}


/* =========================================
   FOOTER
   ========================================= */
.agency-footer {
    background: var(--agency-dark);
    color: #fff;
    text-align: center;
    padding-top: 100px;
}

.footer-cta {
    padding-bottom: 80px;
}

.footer-cta h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 40px;
}

.footer-cta .btn-primary-dark {
    background: #fff;
    color: var(--agency-dark);
}

.footer-cta .btn-primary-dark:hover {
    background: var(--agency-accent);
    color: #fff;
    border-color: var(--agency-accent);
}

.footer-bottom {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* =========================================
   RESPONSIVE DESIGN (AGENCY)
   ========================================= */
@media screen and (max-width: 1024px) {

    .showcase-item,
    .showcase-item.right-align,
    .showcase-item.left-align {
        flex-direction: column;
        gap: 40px;
    }

    /* Ensure the text is always above the image on mobile */
    .showcase-item.left-align .showcase-text {
        order: -1;
    }

    .showcase-visual {
        width: 100%;
        max-width: 100%;
        /* Override the 600px cap to allow full width scaling on modern phones */
        aspect-ratio: 4/3;
        /* Maintain correct aspect ratio */
        height: auto;
    }

    .visual-placeholder {
        background-size: contain;
        background-repeat: no-repeat;
        /* Make sure image spans the full container without cropping */
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Reset spans for smaller grid */
    .size-large,
    .size-wide,
    .size-small {
        grid-column: span 1;
    }

    .size-large {
        grid-row: span 1;
        /* Make large items square instead of tall */
    }
}

@media screen and (max-width: 768px) {
    .btn-back-dark {
        top: 20px;
        left: 20px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .agency-hero {
        padding-top: 120px;
        justify-content: center;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
        letter-spacing: -1px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .hero-actions .btn-pill {
        width: 100%;
    }

    .client-band {
        padding: 30px 0;
    }

    .client-logo {
        height: 30px;
    }

    .agency-section {
        padding: 60px 1.5rem;
    }

    .service-number {
        font-size: 4rem;
        top: -30px;
        left: -10px;
    }

    .showcase-text h3 {
        font-size: 1.8rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        /* Allow items to determine height naturally based on aspect ratio */
        padding: 0;
        gap: 20px;
    }

    .portfolio-item {
        border-radius: 8px;
        height: auto;
    }

    .portfolio-item.size-large {
        aspect-ratio: 1 / 1.05;
        /* Almost square, slightly taller */
    }

    .portfolio-item.size-wide {
        aspect-ratio: 2 / 1;
        /* Wide rectangle */
    }

    .portfolio-item.size-small {
        aspect-ratio: 3 / 4;
        /* Portrait */
    }

    .spectrum-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .spectrum-card {
        padding: 30px 20px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pricing-card {
        padding: 30px 20px;
    }

    .footer-cta h2 {
        font-size: 2rem;
    }
}

/* =========================================
   SERVICES DIRECT PAGE (DARK MODE)
   ========================================= */
body.services-dark-page {
    background-color: #0c1930;
    /* Deep lagom dark */
    color: #ffffff;
}

body.services-dark-page .agency-nav {
    background: transparent;
    border-bottom: 1px solid transparent;
}

body.services-dark-page .agency-nav.scrolled {
    background: rgba(4, 9, 20, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Dark Page Switcher Override */
body.services-dark-page .agency-nav .lang-switcher {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

body.services-dark-page .agency-nav .lang-btn {
    color: rgba(255, 255, 255, 0.4);
}

body.services-dark-page .agency-nav .lang-btn:hover {
    color: #fff;
}

body.services-dark-page .agency-nav .lang-btn.active {
    color: #fff;
}

body.services-dark-page .agency-nav .lang-separator {
    color: rgba(255, 255, 255, 0.2);
}

body.services-dark-page .agency-nav-links a {
    color: #e0e6ed;
}

body.services-dark-page .agency-nav-links a:hover {
    color: #fff;
}

body.services-dark-page .nav-btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
}

body.services-dark-page .nav-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

body.services-dark-page .agency-section.core-services {
    background: transparent;
}

body.services-dark-page .services-header h1 {
    color: #ffffff;
}

/* Sticky Stack Architecture */
.sticky-cards-container {
    padding: 50px 2rem 150px;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    /* Base gap if sticky is unsupported */
}

.sticky-card {
    position: sticky;
    top: 130px;
    /* Default sticky top offset */
    height: 70vh;
    min-height: 500px;
    background: #0c1930;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    overflow: hidden;
    margin-bottom: 20vh;
    /* Scroll spacing before the next card hits */
}

/* Offsets for stacking effect (deck of cards) */
.sticky-card:nth-child(1) {
    top: 130px;
    z-index: 1;
}

.sticky-card:nth-child(2) {
    top: 150px;
    z-index: 2;
}

.sticky-card:nth-child(3) {
    top: 170px;
    z-index: 3;
}

.sticky-card:nth-child(4) {
    top: 190px;
    z-index: 4;
}

.sticky-card:nth-child(5) {
    top: 210px;
    z-index: 5;
    margin-bottom: 0;
}

.card-content {
    flex: 1;
    padding: 60px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.giant-number {
    position: absolute;
    top: 20px;
    left: -20px;
    font-size: 15rem;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.03);
    z-index: 0;
    pointer-events: none;
}

.card-text {
    position: relative;
    z-index: 1;
}

.card-text h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.1;
    background: linear-gradient(90deg, #fff, #aab8c9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #92a4ba;
    margin-bottom: 40px;
    max-width: 500px;
}

.pro-pills {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pro-pills li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.05rem;
    font-weight: 500;
    color: #e0e6ed;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    max-width: fit-content;
    transition: transform 0.3s ease, background 0.3s ease;
}

.pro-pills li::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--agency-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--agency-accent);
}

.pro-pills li:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.08);
}

.card-visual {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(to right, #0c1930, transparent);
}

/* Mobile Adjustments for Sticky Cards */
@media screen and (max-width: 992px) {
    .sticky-card {
        flex-direction: column;
        height: auto;
        min-height: auto;
    }

    .card-visual {
        height: 300px;
        flex: none;
    }

    .card-visual::after {
        background: linear-gradient(to bottom, #0c1930, transparent);
        width: 100%;
        height: 30%;
    }

    .card-content {
        padding: 40px 30px;
    }

    .giant-number {
        font-size: 8rem;
        top: 0;
        left: 0;
    }
}

/* PREMIUM FOOTER */

.agency-footer-premium {
    background: #030712;
    /* Deepest dark blue/black */
    color: #fff;
    padding: 100px 0 0 0;
    position: relative;
    overflow: hidden;
}

/* Massive CTA Section */
.footer-cta-premium {
    text-align: center;
    padding: 0 2rem 80px 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-cta-premium h2 {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 40px;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    letter-spacing: -2px;
}

.btn-cta-glow {
    display: inline-block;
    padding: 20px 50px;
    background: #00d4ff;
    color: #030712;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3), inset 0 -3px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-cta-glow:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.5), inset 0 -3px 0 rgba(0, 0, 0, 0.2);
    background: #4de2ff;
}

/* Divider */
.footer-divider {
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
    margin-bottom: 60px;
}

/* Grid Layout */
.footer-grid-premium {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}

.brand-col .footer-logo {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    letter-spacing: -1px;
    display: block;
    margin-bottom: 20px;
}

.brand-col .footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    font-size: 1.05rem;
    max-width: 400px;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a i {
    font-size: 0.8rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: #00d4ff;
}

.footer-links a:hover {
    color: #00d4ff;
    padding-left: 5px;
}

.footer-links a:hover i {
    opacity: 1;
    transform: translateX(0);
}

/* Bottom Bar */
.footer-bottom-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-premium .copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #fff;
}

.dot-separator {
    color: rgba(255, 255, 255, 0.2);
    margin: 0 10px;
}

/* Responsive Footer */
@media (max-width: 900px) {
    .footer-grid-premium {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom-premium {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* =========================================
   DETAILED PRICING (pricing.html & agency.html)
   ========================================= */
.pricing-hero {
    padding: 180px 2rem 80px 2rem;
    text-align: center;
    background: #0c1930;
    color: #fff;
    position: relative;
}

.pricing-hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 20px;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, #fff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.pricing-hero-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Detailed Pricing Grid */
.detailed-pricing-section {
    background: transparent;
    padding: 40px 0 120px 0;
}

/* specific for standalone page */
body.services-dark-page .detailed-pricing-section {
    background: #0c1930;
    padding: 40px 2rem 120px 2rem;
}

.detailed-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.detailed-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.detailed-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 212, 255, 0.05);
}

.detailed-card.popular-tier {
    border-color: rgba(0, 212, 255, 0.4);
    background: rgba(0, 212, 255, 0.03);
    transform: scale(1.05);
    z-index: 2;
}

.detailed-card.popular-tier:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(0, 212, 255, 0.1);
}

.detailed-card .btn-pill-outline {
    color: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin-top: auto;
}

.detailed-card .btn-pill-outline:hover {
    background: #fff;
    color: #0c1930;
    border-color: #fff;
}

@media (max-width: 1100px) {
    .detailed-pricing-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .detailed-card.popular-tier {
        transform: none;
    }

    .detailed-card.popular-tier:hover {
        transform: translateY(-10px);
    }
}