:root {
    --color-bg: #FFFFFF;
    --color-text-primary: #000000;
    --color-text-secondary: rgba(0, 0, 0, 0.5);
    --color-text-muted: rgba(0, 0, 0, 0.4);
    --color-accent: #14d06b;
    
    --font-inter: 'Inter', sans-serif;
    --font-kanit: 'Kanit', sans-serif;
    --font-hand: 'Caveat', cursive; /* Fallback for Figma_Hand */
    
    --container-width: 1320px;
}

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

html, body {
    overflow-x: clip;
    scroll-behavior: smooth;
}

/* Lock scrolling when mobile menu is open */
body.menu-open,
body.menu-open html {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

body {
    font-family: var(--font-inter);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    -webkit-font-smoothing: antialiased;
}

/* Header */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 18px 40px;
    background: rgba(255, 255, 255, 0.85); /* Slightly transparent initially for scroll effect */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    width: 175px;
}

.logo-icon {
    width: 41px;
    height: 44px;
    display: block;
}

.main-nav {
    display: flex;
    gap: 28px;
    font-weight: 500;
    font-size: 15px;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-text-muted);
    transition: color 0.2s;
}

.main-nav a.active, .main-nav a:hover {
    color: var(--color-text-primary);
}

.header-action {
    position: relative;
    display: flex;
    align-items: center;
}

.btn-primary {
    display: inline-block;
    text-decoration: none;
    background: #000000;
    color: #FFFFFF;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.32px;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    background: #1a1a1a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    transform: scale(0.96);
}

.mobile-only-btn {
    display: none;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--color-text-primary);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* "I'm ready to work" vector element — single SVG from Figma */
.navbar-extra-links {
    position: absolute;
    right: -30px;
    top: 24px;
    width: 206px;
    height: 72px;
    pointer-events: none;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 830px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 1030px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-bottom: 250px; /* Leave space for bottom images */
    z-index: 10;
}

.hero-subtitle {
    font-family: var(--font-hand);
    font-size: 30px;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 3px;
}

.hero-title {
    font-family: var(--font-inter);
    font-size: 82px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.1;
    color: #000;
    margin-bottom: 20px;
}

.hero-description {
    font-family: var(--font-inter);
    font-size: 18px;
    color: var(--color-text-secondary);
    line-height: 26px;
    max-width: 600px;
    margin: 0 auto;
}

/* Works Images - Anchored to Bottom */
.works-images {
    position: absolute;
    bottom: -130px; /* Hide some of it out of view like in design */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: -20px;
    z-index: 20;
}

/* Positioning them relative to a center point as defined by Figma output */
.works-images {
    width: 1200px;
    height: 300px;
    position: absolute;
    bottom: -100px; /* Let's just ground them manually relative to their flex */
}

/* To mimic absolute positions exactly */
.work-img-wrapper {
    position: absolute;
    bottom: 0;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    border-radius: 20px;
    border: 3px solid white;
    box-shadow: 0px 10px 60px 0px rgba(1, 17, 45, 0.08);
    overflow: hidden;
}

/* Using Figma's exact positioning */
.work-img-wrapper:nth-child(1) {
    width: 320px; height: 235px;
    left: calc(50% + 494px - 160px); 
    bottom: 50px;
    transform: rotate(-3.04deg);
    z-index: 1;
}

.work-img-wrapper:nth-child(2) {
    width: 320px; height: 235px;
    left: calc(50% + 227px - 160px);
    bottom: 0px;
    transform: rotate(17.18deg);
    z-index: 2;
}

.work-img-wrapper:nth-child(3) {
    width: 311px; height: 255px;
    left: calc(50% - 496px - 155px);
    bottom: 60px;
    transform: rotate(3.79deg);
    z-index: 1;
}

.work-img-wrapper:nth-child(4) {
    width: 318px; height: 201px;
    left: calc(50% - 293px - 159px);
    bottom: 60px;
    transform: rotate(0deg);
    z-index: 2;
}

.work-img-wrapper:nth-child(5) {
    width: 312px; height: 280px;
    left: calc(50% - 8px - 156px);
    bottom: 50px;
    transform: rotate(-3.62deg);
    z-index: 3;
}

.work-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 17px;
    pointer-events: none; /* so the hover hits the wrapper */
}

/* Exact hover interaction requested by user */
.work-img-wrapper:hover {
    transform: translateY(-40px) rotate(0deg) !important;
    box-shadow: 0px 16px 60px 0px rgba(1, 17, 45, 0.12);
}

/* =====================================================================
   PORTFOLIO SECTION — Matches Figma node 55:132 exactly
   ===================================================================== */
.portfolio-section {
    position: relative;
    padding: 110px 0 110px 0;
    background: linear-gradient(-1.025deg, rgba(140, 140, 140, 0.04) 1.2%, rgba(140, 140, 140, 0) 98.7%);
    overflow: visible;
}

.portfolio-header {
    text-align: center;
    max-width: 722px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 17px;
    margin-bottom: 46px; /* 298px top - 110px padding - ~142px heading height */
}

.portfolio-title {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 46px;
    line-height: 52px;
    color: var(--color-text-primary);
}

.portfolio-title span {
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: 60px;
    line-height: 52px;
    color: #14d06b;
}

.portfolio-subtitle {
    font-family: var(--font-inter);
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: rgba(0, 0, 0, 0.5);
}

/* Horizontal flex row — cards overflow to the right, like Figma */
.portfolio-container {
    display: flex;
    gap: 24px;
    margin: 0;
    overflow-x: auto;
    overflow-y: visible;
    padding: 20px 0 20px max(60px, calc((100% - 1320px) / 2));
    margin-top: -20px; /* pull back up to compensate visual spacing */
    /* Hide scrollbar for a cleaner look */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.portfolio-container::-webkit-scrollbar {
    display: none;
}

.portfolio-container::after {
    content: '';
    min-width: max(60px, calc((100vw - 1320px) / 2 - 24px));
    flex-shrink: 0;
    display: block;
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-decoration: none;
    cursor: pointer;
    min-width: 424px;
    width: 424px;
    flex-shrink: 0;
}

.portfolio-image-wrapper {
    width: 100%;
    height: 520px;
    border-radius: 16px;
    background-color: white;
    box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.portfolio-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.portfolio-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.portfolio-info h3 {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 24px;
    line-height: normal;
    color: var(--color-text-primary);
}

.portfolio-info p {
    font-family: var(--font-inter);
    font-weight: 400;
    font-size: 14px;
    line-height: normal;
    color: rgba(0, 0, 0, 0.5);
}

.portfolio-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--color-text-primary);
    border-radius: 6px;
    padding: 10px;
    transition: background-color 0.4s ease;
}

.portfolio-btn .arrow-icon {
    width: 24px;
    height: 24px;
    display: block;
    transition: transform 0.4s ease;
}

/* Portfolio Card Hover States */
.portfolio-card:hover .portfolio-image-wrapper img {
    transform: scale(1.05);
}

.portfolio-image-wrapper img {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio-card:hover .portfolio-btn {
    background-color: #14d06b;
}

.portfolio-card:hover .arrow-icon {
    transform: rotate(45deg);
}

/* Portfolio Scroll Arrows */
.portfolio-scroll-arrows {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    max-width: calc(1320px + 120px);
    margin: 12px auto 0;
    padding: 0 60px;
}

.portfolio-scroll-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-scroll-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.2);
}

.portfolio-scroll-btn.disabled {
    opacity: 0.3;
    cursor: default;
}

.portfolio-scroll-btn.disabled:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

.portfolio-scroll-btn svg {
    width: 20px;
    height: 20px;
    stroke: rgba(0, 0, 0, 0.5);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =====================================================================
   STEPS SECTION — Matches Figma node 55:170 exactly
   ===================================================================== */
.steps-section {
    background-color: white;
    padding: 110px 60px;
}

.steps-container {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 47px;
}

.steps-header {
    text-align: center;
    max-width: 732px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.steps-title {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 46px;
    line-height: 52px;
    color: var(--color-text-primary);
}

.steps-title span {
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: 60px;
    line-height: 52px;
    color: #14d06b;
}

.steps-subtitle {
    font-family: var(--font-inter);
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: rgba(0, 0, 0, 0.5);
}

.steps-cards {
    display: flex;
    gap: 24px;
    width: 100%;
}

.step-card {
    width: 312px;
    height: 215px;
    box-sizing: border-box;
    background: white;
    outline: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    box-shadow: 0px 10px 60px 0px rgba(1, 17, 45, 0.02);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.step-card-top {
    display: flex;
    flex-direction: column;
    gap: 16px; /* gap between icon and title */
}

.step-icon {
    width: 42px;
    height: 42px;
    background-color: var(--color-text-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 22px;
    color: white;
}

.step-card-title {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 22px;
    line-height: normal;
    color: var(--color-text-primary);
}

.step-card-desc {
    font-family: var(--font-inter);
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: rgba(0, 0, 0, 0.5);
    height: 60px;
    overflow: hidden;
}

/* Step Card Hover States */
.step-card {
    transition: box-shadow 0.5s cubic-bezier(0.25, 1, 0.5, 1), transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.step-icon {
    transition: background-color 0.4s ease;
}

.step-card:hover {
    transform: scale(1.03);
    box-shadow: 0px 8px 30px 0px rgba(0, 0, 0, 0.06);
}

.step-card:hover .step-icon {
    background-color: #14d06b;
}

/* =====================================================================
   TESTIMONIALS SECTION — What clients and collaborators say
   ===================================================================== */
.testimonials-section {
    background: linear-gradient(180deg, rgba(140, 140, 140, 0.04) 0%, rgba(140, 140, 140, 0) 100%);
    padding: 110px 0 80px 0;
    overflow: hidden;
}

.testimonials-heading {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 46px;
    line-height: 52px;
    text-align: center;
    color: var(--color-text-primary);
    margin-bottom: 46px;
}

.testimonials-heading span {
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: 60px;
    line-height: 42px;
    color: #14d06b;
}

/* Carousel track */
.testimonials-track-wrapper {
    width: 100%;
    overflow: visible;
    position: relative;
}

.testimonials-track {
    display: flex;
    gap: 24px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
}

/* Testimonial card */
.testimonial-card {
    flex-shrink: 0;
    width: 411px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0.6;
    transition: box-shadow 0.4s ease, opacity 0.4s ease;
}

.testimonial-card.active {
    box-shadow: 0px 10px 60px 0px rgba(1, 17, 45, 0.08);
    opacity: 1;
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quote-icon {
    flex-shrink: 0;
    width: 28px;
    height: 33px;
}

.testimonial-text {
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-text-primary);
    height: 168px; /* 7 lines × 24px */
    overflow: hidden;
}

/* Author block */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
}

.testimonial-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.testimonial-name {
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: 26px;
    line-height: 1;
    color: var(--color-text-primary);
    transition: color 0.4s ease;
}

.testimonial-card.active .testimonial-name {
    color: #14d06b;
}

.testimonial-position {
    font-family: var(--font-inter);
    font-weight: 400;
    font-size: 14px;
    line-height: 1;
    color: rgba(0, 0, 0, 0.5);
}

/* =====================================================================
   LOGOS SECTION — Trusted by
   ===================================================================== */
.logos-container {
    max-width: 1320px;
    margin: 46px auto 0;
    padding: 0 60px;
    text-align: center;
}

.logos-label {
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 14px;
    line-height: 24px;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 22px;
}

.logos-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
}

.logo-item {
    opacity: 0.5;
    transition: opacity 0.3s ease;
    cursor: default;
    height: auto;
}

.logo-item:hover {
    opacity: 1;
}

/* =====================================================================
   CTA SECTION
   ===================================================================== */
.cta-section {
    position: relative;
    width: 100%;
    background-color: var(--color-bg-primary);
    padding: 189px 0 206px;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.cta-wave {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
    width: 100%;
    height: auto;
    object-fit: contain;
    pointer-events: none;
    z-index: -1;
}

.cta-container {
    position: relative;
    width: 100%;
    max-width: 940px;
    z-index: 2;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    width: 100%;
}

.cta-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
    width: 100%;
}

.cta-text-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.cta-subtitle {
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: 40px;
    line-height: normal;
    color: var(--color-accent);
}

.cta-title {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 82px;
    line-height: normal;
    letter-spacing: -1px;
    color: var(--color-text-primary);
}

.cta-description {
    font-family: var(--font-inter);
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    color: rgba(0, 0, 0, 0.5);
    max-width: 454px;
}

.cta-button {
    background-color: var(--color-text-primary);
    color: var(--color-bg);
    padding: 10px 16px;
    border-radius: 6px;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.32px;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    background-color: #222;
}

.cta-button-wrapper {
    position: relative;
    display: inline-block;
}

.cta-open-to-work {
    position: absolute;
    right: calc(100% + 14px); /* 14px gap roughly maps to the distance in Figma */
    top: 6px; /* Offset to match the y-coords */
    width: 202px; /* Correctly scaled width to match Figma visually while dodging stretch */
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

/* =====================================================================
   PROJECT PAGE — Hero Section
   ===================================================================== */
.project-hero {
    position: relative;
    padding-top: 100px; /* header height + 20px offset */
    background: linear-gradient(-0.84deg, rgba(140, 140, 140, 0.04) 1.2%, rgba(140, 140, 140, 0) 98.7%);
    overflow: hidden;
    min-height: 830px;
}

.project-hero-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 60px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.project-hero-image {
    flex-shrink: 0;
    width: 840px;
    height: 580px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0px 10px 60px 0px rgba(1, 17, 45, 0.02);
}

.project-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-hero-text {
    flex-shrink: 0;
    width: 420px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
}

.project-hero-text-top {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.project-hero-heading {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.project-hero-label {
    font-family: var(--font-hand);
    font-weight: 700;
    font-size: 30px;
    line-height: normal;
    color: #14d06b;
}

.project-hero-title {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 62px;
    line-height: normal;
    color: var(--color-text-primary);
}

.project-hero-description {
    font-family: var(--font-inter);
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: var(--color-text-primary);
}

.project-hero-industry {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-hero-industry-label {
    font-family: var(--font-inter);
    font-weight: 400;
    font-size: 16px;
    line-height: normal;
    color: rgba(0, 0, 0, 0.3);
}

.project-hero-industry-value {
    font-family: var(--font-inter);
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: var(--color-text-primary);
}

/* =====================================================================
   PROJECT PAGE — Main Content Sections
   ===================================================================== */
.project-content {
    background: #ffffff;
}

.project-content-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 90px 0;
    display: flex;
    flex-direction: column;
    gap: 90px;
}

/* --- "About the project" block --- */
.project-details-block {
    display: flex;
    flex-direction: column;
    gap: 46px;
}

.project-about {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.project-section-title {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 46px;
    line-height: normal;
    color: var(--color-text-primary);
    letter-spacing: -1px;
}

.project-about-columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.project-about-text {
    width: 630px;
    flex-shrink: 0;
}

.project-about-text p {
    font-family: var(--font-inter);
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: var(--color-text-primary);
}

.project-about-services {
    width: 630px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-services-label {
    font-family: var(--font-inter);
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
    color: rgba(0, 0, 0, 0.3);
}

.project-services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-service-tag {
    font-family: var(--font-inter);
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: var(--color-text-primary);
    background: rgba(0, 0, 0, 0.02);
    padding: 6px 14px;
    border-radius: 8px;
    white-space: nowrap;
}

/* --- Project images grid --- */
.project-images-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.project-images-row {
    display: flex;
    gap: 18px;
}

.project-img-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0px 10px 60px 0px rgba(1, 17, 45, 0.04);
}

.project-img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Row 1: 538px + 764px, 404px tall */
.project-images-row-1 .project-img-card-small {
    width: 538px;
    height: 404px;
    flex-shrink: 0;
}

.project-images-row-1 .project-img-card-large {
    width: 764px;
    height: 404px;
    flex-shrink: 0;
}

/* Row 2: three equal 428px, 322px tall */
.project-images-row-2 .project-img-card-third {
    width: 428px;
    height: 322px;
    flex-shrink: 0;
}

/* Row reversed: 764px + 538px, 404px tall (used in project2) */
.project-images-row-1-reversed .project-img-card-large {
    width: 764px;
    height: 404px;
    flex-shrink: 0;
}

.project-images-row-1-reversed .project-img-card-small {
    width: 538px;
    height: 404px;
    flex-shrink: 0;
}

/* --- Challenges block --- */
.project-challenges-block {
    display: flex;
    flex-direction: column;
    gap: 46px;
}

.project-challenges {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.project-challenges-columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.project-challenge-col {
    width: 630px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-challenge-label {
    font-family: var(--font-inter);
    font-weight: 400;
    font-size: 16px;
    line-height: normal;
    color: rgba(0, 0, 0, 0.3);
}

.project-challenge-text {
    font-family: var(--font-inter);
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: var(--color-text-primary);
}

.project-challenge-image {
    width: 100%;
    height: 842px;
    border-radius: 16px;
    overflow: hidden;
}

.project-challenge-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
    width: 100%;
    background-color: var(--color-bg-primary);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 48px 0;
}

.footer-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 320px; /* Force width for perfect centering of logo */
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    text-decoration: none;
}

.footer-logo-icon {
    width: 41px;
    height: 44px;
    display: block;
}

.footer-copyright {
    font-family: var(--font-inter);
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: rgba(0, 0, 0, 0.5);
    text-align: right;
    width: 320px; /* Match left side width */
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 64px;
    }
    .status-indicator {
        display: none;
    }
}

@media (max-width: 900px) {
    /* ===== HEADER MOBILE ===== */
    .fixed-header {
        padding: 15px 20px;
    }

    .header-container {
        justify-content: space-between;
        flex-wrap: nowrap;
    }
    
    .mobile-menu-btn {
        display: flex;
        order: 3;
        width: 44px;
        height: 44px;
        background: var(--color-text-primary);
        border-radius: 6px;
        padding: 12px 10px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
    }

    .mobile-menu-btn span {
        background-color: #fff;
        height: 2px;
        border-radius: 2px;
    }

    .mobile-menu-btn.active {
        background: var(--color-text-primary);
    }

    .mobile-menu-btn.active span {
        background-color: #fff;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .header-action {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 999;
    }

    .main-nav.open {
        right: 0;
    }

    .main-nav a {
        font-size: 24px;
        margin: 15px 0;
    }

    .main-nav .mobile-only-btn {
        display: block;
        margin: 30px auto 0 auto;
        width: calc(100% - 60px);
        text-align: center;
        text-decoration: none;
        font-size: 16px;
        padding: 14px 16px;
        color: #FFFFFF;
    }

    /* ===== HERO MOBILE ===== */
    .hero-section {
        min-height: 844px;
    }

    .hero-content {
        padding: 0 15px;
        padding-bottom: 200px;
        gap: 0;
    }

    .hero-subtitle {
        font-size: 30px;
        margin-bottom: 3px;
    }

    .hero-title {
        font-size: 50px;
        line-height: 58px;
        letter-spacing: -1px;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 16px;
        line-height: 26px;
    }

    /* Center cards physically over mobile viewport */
    .works-images {
        bottom: -50px;
        transform: translateX(-50%) scale(0.75);
        transform-origin: bottom center;
    }

    /* Portfolio Section Mobile Adaptations */
    .portfolio-section {
        padding: 70px 0;
    }

    .portfolio-header {
        padding: 0 15px;
        text-align: center;
        margin-bottom: 24px;
        gap: 14px;
    }

    .portfolio-title {
        font-size: 30px;
        line-height: 38px;
    }
    
    .portfolio-title span {
        font-size: 46px;
        line-height: 38px;
    }

    .portfolio-subtitle {
        font-size: 15px;
        line-height: 24px;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .portfolio-cards {
        padding-left: 15px;
        padding-right: 0;
        gap: 14px;
    }

    .portfolio-container {
        padding: 0;
        padding-left: 15px;
        margin-top: 0;
    }

    .portfolio-container::after {
        content: '';
        min-width: 1px;
        flex-shrink: 0;
    }

    .portfolio-scroll-arrows {
        display: none;
    }

    .portfolio-card {
        min-width: 290px;
        width: 290px;
        position: relative;
    }
    
    .portfolio-image-wrapper {
        height: 356px;
        border-radius: 14px;
    }

    .portfolio-image-wrapper img {
        border-radius: 14px;
    }

    .portfolio-info h3 {
        font-size: 20px;
    }

    /* Move arrow button to top-right of image on mobile */
    .portfolio-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 5;
    }

    /* Steps Section Mobile — Swipeable Stacked Cards */
    .steps-section {
        padding: 70px 0;
    }
    
    .steps-container {
        padding: 0 15px;
        gap: 24px;
    }

    .steps-header {
        gap: 14px;
    }

    .steps-title {
        font-size: 30px;
        line-height: 38px;
    }
    
    .steps-title span {
        font-size: 46px;
        line-height: 38px;
    }

    .steps-subtitle {
        font-size: 15px;
        line-height: 24px;
    }

    .steps-cards {
        position: relative;
        height: 220px;
        width: 100%;
        flex-direction: column;
    }

    .step-card {
        position: absolute;
        width: 350px;
        left: 50%;
        transform: translateX(-50%);
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
        cursor: grab;
        border-radius: 14px;
        padding: 20px;
    }

    /* Stack layering — front card on top */
    .step-card[data-stack="0"] {
        z-index: 4;
        transform: translateX(-50%) rotate(-2.2deg);
        opacity: 1;
        background: #fff;
        box-shadow: 0px 10px 60px 0px rgba(1, 17, 45, 0.04);
    }
    .step-card[data-stack="1"] {
        z-index: 3;
        transform: translateX(-50%) rotate(2.2deg) scale(0.97);
        opacity: 1;
        background: #f0f0f0;
    }
    .step-card[data-stack="2"] {
        z-index: 2;
        transform: translateX(-50%) rotate(-2.2deg) scale(0.94);
        opacity: 0;
        pointer-events: none;
    }
    .step-card[data-stack="3"] {
        z-index: 1;
        transform: translateX(-50%) rotate(2.2deg) scale(0.91);
        opacity: 0;
        pointer-events: none;
    }

    /* Swiped out animations */
    .step-card.swipe-left {
        transform: translateX(calc(-50% - 120%)) rotate(-15deg) !important;
        opacity: 0 !important;
        transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.35s ease !important;
    }
    .step-card.swipe-right {
        transform: translateX(calc(-50% + 120%)) rotate(15deg) !important;
        opacity: 0 !important;
        transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.35s ease !important;
    }

    .step-card .step-number {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        font-size: 22px;
    }

    .step-card h3 {
        font-size: 18px;
    }

    .step-card p {
        font-size: 14px;
        line-height: 20px;
    }

    /* Testimonials Section Mobile */
    .testimonials-section {
        padding: 70px 0 40px;
    }

    .testimonials-heading {
        font-size: 30px;
        line-height: 38px;
        padding: 0 15px;
        margin-bottom: 24px;
    }

    .testimonials-heading span {
        font-size: 46px;
        line-height: 38px;
    }

    .testimonials-track-wrapper {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 10px 0 15px;
    }

    .testimonials-track-wrapper::-webkit-scrollbar {
        display: none;
    }

    .testimonials-track {
        display: flex;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        transform: none !important;
        transition: none !important;
    }

    .testimonials-track::after {
        content: '';
        min-width: 1px;
        flex-shrink: 0;
    }

    .testimonial-card {
        width: 310px;
        min-width: 310px;
        min-height: auto;
        scroll-snap-align: center;
        border-radius: 14px;
        padding: 20px;
        opacity: 0.6;
        transition: opacity 0.3s ease, box-shadow 0.3s ease;
        box-shadow: none;
    }

    .testimonial-card.active {
        opacity: 1;
        box-shadow: 0px 12px 40px 0px rgba(1, 17, 45, 0.04);
    }

    .testimonial-text {
        font-size: 14px;
        line-height: 22px;
        font-weight: 500;
        height: auto;
        overflow: visible;
    }

    .testimonial-avatar {
        width: 42px !important;
        height: 42px !important;
    }

    .testimonial-name {
        font-size: 24px;
    }

    .testimonial-position {
        font-size: 14px;
    }

    /* Logos Section Mobile — Infinite Marquee */
    .logos-container {
        padding: 0;
        overflow: hidden;
    }

    .logos-label {
        font-size: 14px;
        font-weight: 500;
        text-align: center;
        margin-bottom: 16px;
    }

    .logos-row {
        flex-wrap: nowrap;
        gap: 48px;
        justify-content: flex-start;
        animation: logos-marquee 15s linear infinite;
        width: max-content;
    }

    @keyframes logos-marquee {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }

    /* CTA Section Mobile */
    .cta-section {
        padding: 100px 15px 100px;
    }

    .cta-wave {
        display: block;
        z-index: 0;
    }

    .cta-container {
        z-index: 2;
    }

    .cta-open-to-work {
        display: none;
    }

    .cta-button-wrapper {
        position: static;
        width: 100%;
    }

    .cta-button {
        font-size: 16px;
        padding: 14px 16px;
        border-radius: 10px;
        width: 100%;
        text-align: center;
        display: block;
    }

    .cta-subtitle {
        font-size: 30px;
    }

    .cta-title {
        font-size: 70px;
        line-height: 70px;
        letter-spacing: -1px;
    }

    /* Footer Mobile */
    .site-footer {
        padding: 18px 0 10px;
    }

    .footer-container {
        padding: 0 15px;
    }

    .footer-content {
        flex-wrap: wrap;
        gap: 10px;
        text-align: left;
    }

    .footer-logo {
        position: static;
        transform: none;
        order: 1;
    }

    .footer-social {
        width: auto;
        justify-content: flex-end;
        order: 2;
        gap: 24px;
        margin-left: auto;
    }

    .footer-social a img {
        width: 22px;
        height: 22px;
    }

    .footer-copyright {
        width: 100%;
        text-align: left;
        order: 3;
        font-size: 14px;
        line-height: 20px;
    }

    /* =====================================================================
       PROJECT PAGE — Hero Mobile
       ===================================================================== */
    .project-hero {
        padding-top: 65px;
        min-height: auto;
    }

    .project-hero-inner {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        gap: 24px;
        padding: 44px 15px 70px;
    }

    .project-hero-text {
        display: contents;
        width: 100%;
    }

    .project-hero-text-top {
        display: contents;
    }

    .project-hero-heading {
        grid-row: 1;
        gap: 3px;
    }

    .project-hero-image {
        grid-row: 2;
        width: 100%;
        height: 272px;
        border-radius: 14px;
        box-shadow: 0px 10px 60px 0px rgba(1, 17, 45, 0.03);
    }

    .project-hero-description {
        grid-row: 3;
        font-size: 16px;
        line-height: 26px;
    }

    .project-hero-industry {
        grid-row: 4;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0;
    }

    .project-hero-label {
        font-size: 30px;
    }

    .project-hero-title {
        font-size: 50px;
        line-height: 58px;
        letter-spacing: -1px;
    }

    .project-hero-industry-label {
        font-size: 14px;
    }

    .project-hero-industry-value {
        font-size: 16px;
        font-weight: 500;
        line-height: normal;
    }

    /* =====================================================================
       PROJECT PAGE — Content Sections Mobile
       ===================================================================== */
    .project-content-container {
        padding: 70px 15px;
        gap: 70px;
    }

    /* --- About section mobile --- */
    .project-details-block {
        gap: 20px;
    }

    .project-about {
        gap: 18px;
    }

    .project-section-title {
        font-size: 30px;
        line-height: 38px;
    }

    .project-about-columns {
        flex-direction: column;
        gap: 20px;
    }

    .project-about-text {
        width: 100%;
    }

    .project-about-text p {
        font-size: 16px;
        line-height: 26px;
    }

    .project-about-services {
        width: 100%;
    }

    .project-services-label {
        font-size: 14px;
        line-height: normal;
    }

    .project-service-tag {
        font-size: 14px;
        font-weight: 500;
        line-height: 24px;
    }

    /* --- Images grid mobile — single column --- */
    .project-images-grid {
        gap: 18px;
    }

    .project-images-row {
        flex-direction: column;
        gap: 18px;
    }

    .project-images-row-1 .project-img-card-small,
    .project-images-row-1 .project-img-card-large,
    .project-images-row-2 .project-img-card-third,
    .project-images-row-1-reversed .project-img-card-small,
    .project-images-row-1-reversed .project-img-card-large {
        width: 100%;
        height: 270px;
        flex-shrink: 0;
    }

    .project-img-card {
        border-radius: 14px;
    }

    /* --- Challenges section mobile --- */
    .project-challenges-block {
        gap: 20px;
    }

    .project-challenges {
        gap: 18px;
    }

    .project-challenges-columns {
        flex-direction: column;
        gap: 20px;
    }

    .project-challenge-col {
        width: 100%;
    }

    .project-challenge-label {
        font-size: 14px;
    }

    .project-challenge-text {
        font-size: 16px;
        line-height: 28px;
    }

    .project-challenge-image {
        height: 270px;
        border-radius: 14px;
    }
}
