/* RESET & GLOBALS */
/* ---- Work Preview Cards (used on index.html Our Work section) ---- */
.work-preview-card {
    border-radius: 16px;
    overflow: hidden;
    background: var(--deep-moss);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.work-preview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.work-preview-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.work-preview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.3s ease;
}

.work-preview-card:hover .work-preview-img img {
    transform: scale(1.04);
}

.work-preview-info {
    padding: 14px 16px 16px;
}

.work-preview-tag {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-action);
    display: block;
    margin-bottom: 4px;
}

.work-preview-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--off-white);
    line-height: 1.35;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #0F1A14;
    --text-primary: #F4F6F2;
    --text-secondary: #A0AAB5;
    --primary-action: #E9F7C6;
    /* Soft muted lime */
    --primary-hover: #C8F06A;
    /* Brighter lime for hover */

    /* Theme Colors */
    --midnight-base: #0F1A14;
    --deep-moss: #1A2B21;
    --soft-lime: #E9F7C6;
    --off-white: #F4F6F2;

    /* Bento Colors */
    --bento-blue: var(--deep-moss);
    --bento-orange: var(--deep-moss);
    --bento-green: var(--deep-moss);
    --bento-purple: var(--deep-moss);
    --bento-dark: #121E17;

    --font-heading: 'General Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
}

html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    position: relative;
    width: 100%;
}

/* Background graphics & Depth */

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% -10%, rgba(200, 240, 106, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 110%, rgba(74, 124, 89, 0.12) 0%, transparent 50%);
    z-index: -5;
    pointer-events: none;
}

/* NAVBAR (Integrated Floating Pill) */
.navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 12px 24px;
    width: 90%;
    max-width: 1200px;
    margin: 24px auto;
    position: sticky;
    top: 24px;
    z-index: 1000;
    background: rgba(15, 26, 20, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 100px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar>*:last-child {
    justify-self: end;
    grid-column: 3;
    grid-row: 1;
}

.logo {
    display: flex;
    align-items: center;
}

.brand-logo {
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    color: var(--primary-action) !important;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
}

.brand-logo .logo-10 {
    color: var(--primary-action) !important;
    font-family: 'Times New Roman', Times, Georgia, serif;
    font-style: italic;
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: -0.05em;
    padding-right: 2px;
}

.brand-logo .logo-north {
    color: var(--primary-action) !important;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.04em;
}

.brand-name {
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 28px;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary) !important;
    font-size: 0.95rem;
    font-weight: 500 !important;
    padding: 8px 0 !important;
    border-radius: 0 !important;
    transition: color 0.2s;
    background: transparent !important;
}

.nav-link:hover {
    color: var(--off-white) !important;
    background: transparent !important;
    transform: none !important;
}

/* Force override inline active styles on the light mode pill */
.nav-link[style*="color"] {
    color: var(--primary-action) !important;
    font-weight: 600 !important;
}

/* Override default primary buttons inside navbar specifically */
.navbar .btn-primary {
    background: var(--primary-action) !important;
    color: var(--midnight-base) !important;
    border-radius: 100px;
    padding: 10px 24px !important;
    font-weight: 600;
    box-shadow: none !important;
    display: inline-flex;
    align-items: center;
}

.navbar .btn-primary:hover {
    background: var(--primary-hover) !important;
    transform: none !important;
}

.mobile-menu-btn {
    color: var(--off-white) !important;
}

@media (max-width: 800px) {
    .navbar {
        grid-template-columns: auto 1fr;
        padding: 12px 20px;
        width: 95%;
        margin: 16px auto;
        top: 16px;
    }

    .brand-logo {
        grid-column: 1;
        justify-self: start;
    }

    .navbar>*:last-child {
        grid-column: 2;
    }

    .nav-links {
        display: none !important;
    }
}

/* BUTTONS */
.btn {
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-action);
    color: var(--midnight-base);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(23, 78, 89, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--off-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.btn-outline:hover {
    border-color: var(--off-white);
    background: rgba(255, 255, 255, 0.05);
}

/* HERO SECTION */
.hero {
    text-align: center;
    padding: 60px 20px 80px;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
}

.clutch-logo {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stars {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-title {
    font-size: clamp(2.5rem, 4vw, 3.75rem);
    font-weight: 600;
    font-family: var(--font-heading);
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.emoji {
    display: inline-block;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transform: rotate(-10deg);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 100px;
}

/* FLOATING WIDGETS */
.floating-widget {
    position: absolute;
    background: var(--deep-moss);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: float 6s ease-in-out infinite;
    z-index: 10;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.float-left {
    top: 250px;
    left: 20px;
    width: 200px;
}

.widget-header {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.widget-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #EF4444;
}

.widget-line {
    height: 6px;
    background: #F3F4F6;
    border-radius: 4px;
    margin-bottom: 8px;
}

.float-right-top {
    top: 100px;
    right: 50px;
    width: 180px;
    animation-delay: 2s;
}

.widget-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.widget-chart-placeholder {
    height: 40px;
    width: 100%;
}

.float-right-bottom {
    bottom: 150px;
    right: 150px;
    width: 140px;
    animation-delay: 1s;
}

.widget-stat {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
}

/* LOGOS */
.logos-section {
    text-align: center;
    padding: 0 40px 100px;
}

.logos-title {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px;
    opacity: 0.4;
    filter: grayscale(100%);
}

.logo-item {
    transition: all 0.3s;
}

.logo-item:hover {
    opacity: 1;
    filter: grayscale(0%);
    cursor: pointer;
}

/* SERVICES BENTO */
.services-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 60px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(350px, auto);
    gap: 24px;
    text-align: left;
}

.bento-card {
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.bento-card:hover {
    transform: translateY(-4px);
    border-color: rgba(233, 247, 198, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(233, 247, 198, 0.03);
}

/* ThinklyLabs inspired link arrow hover */
.arrow-link {
    color: var(--primary-action);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.arrow-link::after {
    content: '→';
    transition: transform 0.3s ease;
}

.arrow-link:hover {
    color: #fff;
}

.arrow-link:hover::after {
    transform: translateX(4px);
}

.bento-wide {
    grid-column: span 2;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.wide-content {
    flex: 1;
    z-index: 2;
}

/* Typography inside cards */
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.05);
}

/* Icon specific colors to match the design */
.blue-icon {
    color: #0EA5E9;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.1);
}

.orange-icon {
    color: #F97316;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.1);
}

.green-icon {
    color: #10B981;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.1);
}

.purple-icon {
    color: #8B5CF6;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.1);
}

.dark-icon {
    background: rgba(255, 255, 255, 0.1);
    color: #FFF;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tag {
    background: rgba(233, 247, 198, 0.03);
    border: 1px solid rgba(233, 247, 198, 0.1);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--primary-action);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(233, 247, 198, 0.1);
}

/* Background Colors */
.bento-blue {
    background-color: var(--bento-blue);
}

.bento-orange {
    background-color: var(--bento-orange);
}

.bento-green {
    background-color: var(--bento-green);
}

.bento-purple {
    background-color: var(--bento-purple);
}

.bento-dark {
    background-color: var(--bento-dark);
    color: #FFFFFF;
}

.dark-tag {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Image Placeholders / Asset Requests */
.asset-req {
    margin-top: 24px;
    padding: 16px;
    border: 1px dashed rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    color: #555;
    font-style: italic;
    text-align: center;
}

.dark-card-graphic {
    flex: 1;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 40px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-wide {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-wide {
        grid-column: span 1;
        flex-direction: column;
    }

    .dark-card-graphic {
        padding-left: 0;
        margin-top: 40px;
        width: 100%;
    }

    .floating-widget {
        display: none;
    }


    .hero-title {
        font-size: 2.5rem;
        margin-top: 0 !important;
    }

}

/* TESTIMONIALS SECTION */
.testimonials-section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: var(--deep-moss);
    border-radius: 24px;
    padding: 40px;
    text-align: left;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.test-text {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 30px;
    font-style: italic;
}

.test-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-action);
}

.author-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2px;
}

.author-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* FAQ SECTION */
.faq-section {
    padding: 100px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-container {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: var(--deep-moss);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.faq-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.faq-question {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.faq-answer {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* CONTACT SECTION */
.contact-section {
    padding: 120px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-container {
    display: flex;
    gap: 60px;
    background: var(--deep-moss);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info {
    flex: 1;
    background: var(--midnight-base);
    color: var(--off-white);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-title {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.contact-desc {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 0.875rem;
}

.contact-form-wrapper {
    flex: 1.2;
    padding: 60px;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--text-primary);
    background: var(--midnight-base);
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-action);
    background: var(--midnight-base);
    box-shadow: 0 0 0 4px rgba(200, 240, 106, 0.1);
}

textarea.form-input {
    resize: vertical;
}

/* FOOTER */
.site-footer {
    background: var(--midnight-base);
    color: var(--off-white);
    padding: 80px 20px 40px;
    margin-top: 100px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .brand-name {
    color: #FFFFFF;
}

.footer-brand .logo-icon path[fill] {
    fill: #FFFFFF;
}

.footer-brand .logo-icon path[stroke] {
    stroke: #FFFFFF;
}

.footer-text {
    color: #9CA3AF;
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-links-grid {
    display: flex;
    gap: 80px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-column h4 {
    font-weight: 600;
    margin-bottom: 8px;
    color: #F9FAFB;
}

.footer-column a {
    color: #9CA3AF;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    text-align: center;
    color: #6B7280;
    font-size: 0.875rem;
}

/* Responsive specific to new sections */
@media (max-width: 1024px) {
    .contact-container {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links-grid {
        flex-wrap: wrap;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 16px 20px;
        grid-template-columns: 1fr auto;
    }

    .nav-links {
        display: none;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-wide {
        grid-column: span 1;
        flex-direction: column;
    }

    .dark-card-graphic {
        padding-left: 0;
        margin-top: 40px;
        width: 100%;
    }

    .floating-widget {
        display: none;
    }


    .hero {
        padding-top: 30px;
        padding-bottom: 40px;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-top: 0 !important;
    }


    .form-row {
        flex-direction: column;
    }

    .contact-info {
        padding: 40px;
    }

    .contact-form-wrapper {
        padding: 40px;
    }
}

/* PORTFOLIO GRID */
.portfolio-hero {
    padding: 180px 20px 80px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.portfolio-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 100px;
}

.portfolio-item {
    background: var(--deep-moss);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-8px);
}

.portfolio-image {
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.portfolio-content {
    padding: 40px;
    flex-grow: 1;
}

.portfolio-cta {
    text-align: center;
    padding: 100px 20px 150px;
}

.massive-btn {
    font-size: 1.125rem;
    padding: 18px 40px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* PROJECT MODAL STYLES */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 12, 8, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #111c14;
    border-radius: 24px;
    width: 100%;
    max-width: 900px;
    position: relative;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
    transform: translateY(24px);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    max-height: 88vh;
    margin: auto;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.2s;
    color: var(--text-primary);
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: scale(1.08);
}

/* LEFT COLUMN — image */
.modal-hero-image {
    grid-column: 1;
    grid-row: 1 / -1;
    min-height: 0;
    overflow: hidden;
    background: #0a0f0d;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    position: sticky;
    top: 0;
    align-self: start;
}

.modal-hero-image img,
.modal-hero-image>div {
    width: 100% !important;
    height: auto !important;
    border-radius: 0 !important;
}

/* RIGHT COLUMN — text */
.modal-header {
    grid-column: 2;
    grid-row: 1;
    padding: 32px 32px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-header .card-tags {
    margin-bottom: 12px;
    margin-top: 0;
    flex-wrap: wrap;
}

.modal-title {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--off-white);
}

.modal-body {
    grid-column: 2;
    grid-row: 2;
    padding: 24px 32px 36px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.modal-section {
    margin-bottom: 24px;
}

.modal-section:last-of-type {
    margin-bottom: 28px;
}

.modal-section h3 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-body);
    margin-bottom: 8px;
    color: var(--primary-action);
}

/* SINGLE COLUMN VIDEO LAYOUT FOR MODAL */
.modal-content.video-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    max-width: 800px;
}
.modal-content.video-layout .modal-hero-image {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    top: auto;
    height: auto;
    width: 100%;
}
.modal-content.video-layout .modal-header {
    grid-column: 1;
    grid-row: 2;
    border-bottom: none;
    padding-bottom: 0;
}
.modal-content.video-layout .modal-body {
    grid-column: 1;
    grid-row: 3;
    padding-top: 16px;
}

.modal-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

@media (max-width: 700px) {
    .modal-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        max-height: 92vh;
        border-radius: 20px;
    }

    .modal-hero-image {
        grid-column: 1;
        grid-row: 1;
        position: relative;
        max-height: 200px;
    }

    .modal-header {
        grid-column: 1;
        grid-row: 2;
        padding: 20px 20px 12px;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .modal-body {
        grid-column: 1;
        grid-row: 3;
        padding: 16px 20px 28px;
    }
}

/* LENIS SMOOTH SCROLL OVERSIGHT */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

/* MODERN FRAMER-LIKE MICRO ANIMATIONS */
[data-aos] {
    opacity: 0;
    filter: blur(8px);
    transition-property: transform, opacity, filter !important;
}

[data-aos].aos-animate {
    opacity: 1;
    filter: blur(0px);
}

body[data-aos-easing="framer"] [data-aos],
[data-aos][data-aos][data-aos-easing="framer"] {
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* TABBED WORK UI */
.work-tabs {
    display: flex;
    gap: 15px;
    margin: 40px auto 60px;
    max-width: 1200px;
    flex-wrap: wrap;
    justify-content: center;
}

.work-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.work-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--off-white);
}

.work-tab-btn.active {
    background: var(--primary-action);
    color: var(--bg-color);
    border-color: var(--primary-action);
}

.work-tab-content {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.4s ease forwards;
}

.work-tab-content.active {
    display: block;
}

.work-service-detail {
    background: var(--deep-moss);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 60px 40px;
    margin-bottom: 40px;
}

.work-service-detail h2 {
    color: var(--off-white);
    font-size: 2rem;
    margin-bottom: 15px;
}

.work-service-detail p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 800px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- Mobile nav fix ---- */
.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--off-white);
    border-radius: 10px;
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-nav-drawer {
    display: none;
    flex-direction: column;
    background: var(--deep-moss);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 12px 20px 16px;
    gap: 4px;
}

.mobile-nav-drawer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.2s;
}

.mobile-nav-drawer a:hover,
.mobile-nav-drawer a.active-link {
    color: var(--primary-action);
    background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-drawer.open {
    display: flex;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .navbar>div:last-child {
        justify-content: flex-end;
        width: 100%;
    }

    .nav-links,
    .navbar .btn {
        display: none !important;
    }
}

/* --- Mobile Hero Gallery --- */
.mobile-hero-gallery {
    display: none;
    margin-top: 50px;
    width: 100vw;
    margin-left: -20px;
    /* Offset index padded hero container bounds */
    overflow: hidden;
}

.mh-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

@media (max-width: 768px) {
    .mobile-hero-gallery {
        display: block;
    }

    .mh-track {
        display: flex;
        gap: 12px;
        width: max-content;
        animation: marquee 20s linear infinite;
        padding-left: 12px;
    }

    .mh-img-wrap {
        width: 220px;
        max-width: 60vw;
        border-radius: 12px;
        overflow: hidden;
        aspect-ratio: 4/5;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
        flex-shrink: 0;
    }

}

/* Re-closing media query, now adding keyframes */

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ---- Production Workflow Flowchart ---- */
.workflow-container {
    max-width: 1000px;
    margin: 60px auto 80px;
    padding: 0 20px;
}

.workflow-header {
    text-align: center;
    margin-bottom: 40px;
}

.workflow-title {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    color: var(--off-white);
    margin-bottom: 12px;
}

.workflow-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.workflow-step {
    background: #1B2923;
    /* Dark earthy moss as the base */
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 24px 32px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Create the colorful left-border glow effect to mimic the superside steps */
.workflow-step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    border-radius: 4px;
    background: currentColor;
    box-shadow: 0 0 12px currentColor;
    opacity: 0.8;
}

.workflow-step h4 {
    color: var(--off-white);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.workflow-step p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 800px;
}

/* Colors for the line ticks */
.glow-1::before {
    color: #FFF1CD;
}

/* Soft cream */
.glow-2::before {
    color: #D8F79D;
}

/* The primary green/lime */
.glow-3::before {
    color: #FFF1CD;
}

/* White */
.glow-4::before {
    color: var(--text-secondary);
}

/* Greyish */

@media (max-width: 768px) {
    .workflow-title {
        font-size: 1.75rem;
    }

    .workflow-step {
        padding: 20px 24px 20px 32px;
    }
}

@media (max-width: 768px) {
    .work-service-detail h2 {
        font-size: 2.2rem !important;
    }

    .work-service-detail p {
        font-size: 1.1rem !important;
    }
}
/* Image-based Bento Cards (like Real Estate pages) */
.bento-card-img {
    position: relative;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 240px 40px 40px 40px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.4s ease;
    text-decoration: none;
    color: var(--off-white);
}

.bento-card-img:hover {
    transform: translateY(-6px);
    border-color: rgba(233, 247, 198, 0.2);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(233, 247, 198, 0.03);
}

.bento-card-img .bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.bento-card-img .bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: transform 0.7s ease, opacity 0.4s ease;
}

.bento-card-img:hover .bg-image img {
    transform: scale(1.05);
    opacity: 0.4;
}

.bento-card-img .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(10, 15, 13, 0.9) 70%, rgba(10, 15, 13, 1) 100%);
    z-index: 1;
}

.bento-card-img .content {
    position: relative;
    z-index: 2;
}

.bento-card-img h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--off-white);
    margin-bottom: 12px;
}

.bento-card-img p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.bento-card-img .card-tags {
    margin-bottom: 24px;
}
