/* =========================================
   CSS Reset & Base Variables
   ========================================= */
:root {
    /* Bold, flat palette inspired by premium portfolios */
    --clr-bg-light: #F2F1EC;
    /* Slightly warm off-white */
    --clr-bg-dark: #0D0D0D;
    /* Almost pure black */
    --clr-primary: #1F1F1F;
    /* Dark tone for sections */
    --clr-accent: #E24A22;
    /* Vibrant, flat burnt orange */

    --clr-text-dark: #0D0D0D;
    --clr-text-light: #F2F1EC;

    /* Typography Settings */
    /* Outfit: Narrower, highly legible, but still geometric and elegant */
    --font-heading: 'Outfit', sans-serif;
    /* Inter: for clean, readable body text */
    --font-body: 'Inter', sans-serif;

    /* Extreme Fluid Typography */
    --fs-massive: clamp(4rem, 15vw, 15rem);
    /* Giant text for hero/contact */
    --fs-h1: clamp(3rem, 10vw, 8rem);
    --fs-h2: clamp(2rem, 6vw, 4.5rem);
    --fs-h3: clamp(1.2rem, 2.5vw, 2rem);
    --fs-p: clamp(1rem, 1.2vw, 1.3rem);
    --fs-nav: clamp(2rem, 5vw, 6rem);
    /* Huge nav links */

    /* Spacing */
    --spacing-section: clamp(5rem, 15vh, 12rem);
    --container-width: 90%;
    --container-max: 1600px;
    /* Wide container for that editorial feel */

    /* Layout */
    --border-divider: 1px solid rgba(0, 0, 0, 0.1);
    --border-divider-light: 1px solid rgba(255, 255, 255, 0.15);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    /* Hide scrollbar for cleaner look if desired, but keep functionality */
    /* scrollbar-width: none; */
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-p);
    line-height: 1.5;
    background-color: var(--clr-bg-light);
    color: var(--clr-text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =========================================
   Utility Classes
   ========================================= */
.container {
    width: var(--container-width);
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-padding {
    padding-top: var(--spacing-section);
    padding-bottom: var(--spacing-section);
}

.bg-light {
    background-color: var(--clr-bg-light);
}

.bg-dark {
    background-color: var(--clr-bg-dark);
}

.bg-primary {
    background-color: var(--clr-primary);
}

.bg-accent {
    background-color: var(--clr-accent);
}

.text-light {
    color: var(--clr-text-light);
}

.text-dark {
    color: var(--clr-text-dark);
}

.text-accent {
    color: var(--clr-accent);
}

.text-center {
    text-align: center;
}

/* Brutalist/Elegant Typography Base */
h1,
h2,
h3,
.hero-title,
.massive-title,
.section-title {
    font-family: var(--font-heading);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.02em;
    /* Adjusted letter spacing for Outfit */
    margin: 0;
}

/* =========================================
   Navigation
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: difference;
    /* Critical for the flat design contrast */
    color: #fff;
    /* Ensure contrast works against backgrounds */
}

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: inherit;
    line-height: 0.9;
    display: block;
    text-transform: uppercase;
}

.menu-btn {
    background: none;
    border: none;
    color: inherit;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.1em;
    position: relative;
    z-index: 101;
    /* Ensure button stays on top of menu */
}

/* Fullscreen Menu Overlay */
.full-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--clr-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Create a stark clipping animation */
    clip-path: circle(0% at top right);
    transition: clip-path 0.7s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 99;
}

.full-menu.active {
    clip-path: circle(150% at top right);
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: var(--fs-nav);
    color: var(--clr-bg-dark);
    /* Dark text on Accent background */
    text-decoration: none;
    font-weight: 800;
    line-height: 1;
    display: inline-block;
    transition: color 0.3s ease, transform 0.4s cubic-bezier(0.2, 0.6, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
}

.full-menu.active .nav-link {
    opacity: 1;
    transform: translateY(0);
}

.full-menu.active li:nth-child(1) .nav-link {
    transition-delay: 0.2s;
}

.full-menu.active li:nth-child(2) .nav-link {
    transition-delay: 0.3s;
}

.full-menu.active li:nth-child(3) .nav-link {
    transition-delay: 0.4s;
}

.full-menu.active li:nth-child(4) .nav-link {
    transition-delay: 0.5s;
}

.nav-link:hover {
    color: var(--clr-bg-light);
    /* Hover to white */
    transform: translateX(20px);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    /* Push content down for editorial look */
    padding-bottom: 10vh;
    position: relative;
}

.hero-title {
    font-size: var(--fs-h1);
    margin-bottom: 3rem;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
}

/* Subtle staggered text lines */
.hero-title span {
    display: block;
    overflow: hidden;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 1.8vw, 1.8rem);
    max-width: 800px;
    margin-bottom: 4rem;
    opacity: 0.9;
    font-weight: 400;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.2, 0.6, 0.2, 1);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--clr-accent);
    color: var(--clr-bg-light);
    border: none;
}

.btn-primary:hover {
    background-color: var(--clr-bg-light);
    color: var(--clr-accent);
    transform: scale(1.05);
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--clr-text-light);
}

.btn-outline-light:hover {
    background-color: var(--clr-text-light);
    color: var(--clr-bg-dark);
}

/* =========================================
   Section Layouts
   ========================================= */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 900px) {
    .grid-2-col {
        grid-template-columns: 1fr 1fr;
        gap: 6rem;
    }
}

.section-title {
    font-size: var(--fs-h2);
    margin-bottom: 3rem;
    max-width: 12ch;
    /* Keep titles narrow and stacked */
}

/* Vision / About */
.vision-text .lead {
    font-size: clamp(1.2rem, 1.8vw, 2rem);
    opacity: 0.8;
    line-height: 1.4;
}

.vision-stats {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-top: var(--border-divider);
    padding-top: 2rem;
}

.stat-item {
    margin-bottom: 2rem;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--fs-h1);
    line-height: 0.9;
    color: var(--clr-accent);
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    opacity: 0.7;
    margin-top: 0.5rem;
    display: block;
}

/* Services Array */
.services-container {
    border-top: var(--border-divider-light);
}

.service-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 3rem 0;
    border-bottom: var(--border-divider-light);
    align-items: start;
}

@media (min-width: 768px) {
    .service-row {
        grid-template-columns: 100px 1fr 1fr;
        gap: 2rem;
    }
}

.service-num {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.5;
}

.service-title {
    font-size: var(--fs-h3);
}

.service-desc {
    opacity: 0.7;
    font-size: 1.1rem;
}

/* =========================================
   Blog & Case Studies
   ========================================= */
.blog-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: var(--border-divider);
    padding-bottom: 2rem;
    margin-bottom: 4rem;
}

.blog-header .section-title {
    margin-bottom: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}

.blog-card {
    background-color: var(--clr-bg-light);
    border: 1px solid var(--border-divider);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
    border-color: var(--clr-accent);
}

.blog-meta {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--clr-accent);
    margin-bottom: 1.5rem;
}

.blog-title {
    font-size: var(--fs-h3);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.blog-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title a:hover {
    color: var(--clr-accent);
}

.blog-excerpt {
    opacity: 0.8;
    font-size: 1.05rem;
    line-height: 1.6;
}


/* Contact / Footer */


.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 6rem;
    }
}

.contact-text .massive-title {
    margin-bottom: 0;
    line-height: 1;
}

/* Contact Form Styles */
.contact-form {
    width: 100%;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-family: var(--ff-primary);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    color: var(--clr-bg-light);
    opacity: 0.9;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 0;
    font-family: var(--ff-body);
    font-size: 1.2rem;
    color: var(--clr-bg-light);
    transition: var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--clr-accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.massive-title {
    font-size: var(--fs-massive);
    margin-bottom: 1rem;
    line-height: 0.85;
}

.dynamic-link {
    font-size: clamp(1.5rem, 4vw, 4rem);
    color: var(--clr-accent);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.dynamic-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 6px;
    bottom: 0;
    left: 0;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.dynamic-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.site-footer {
    padding: 3rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: var(--border-divider-light);
    font-size: 0.9rem;
    opacity: 0.6;
}

/* =========================================
   Animations (Intersection Observer targets)
   ========================================= */
.reveal-fade {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.reveal-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.reveal-text.visible span {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger text reveals */
.hero-title span:nth-child(1) {
    transition-delay: 0.1s;
}

.hero-title span:nth-child(2) {
    transition-delay: 0.2s;
}

.hero-title span:nth-child(3) {
    transition-delay: 0.3s;
}