/* CSS Custom Properties */
:root {
    /* Spacing System */
    --section-padding-desktop: 120px;
    --section-padding-tablet: 60px;
    --section-padding-mobile: 0px;

    --section-gap-large: 200px;
    --section-gap-medium: 80px;
    --section-gap-small: 40px;

    /* Typography */
    --font-size-base: 1rem;
    --font-size-large: 1.1rem;
    --font-size-tablet: 0.95rem;
    --font-size-mobile: 0.9rem;

    /* Brand Colors */
    --color-brand-light: #bdefec;
    --color-brand-purple: #8602fe;
    --gradient-brand: linear-gradient(
        to right,
        var(--color-brand-light),
        var(--color-brand-purple)
    );

    /* Z-Index Hierarchy */
    /* Navigation system uses layered z-index for proper stacking:
       - Header sits on top (2000) but becomes non-interactive when nav opens
       - Navigation panel sits below header (1500) to allow burger menu access
       - Burger menu uses relative positioning within header context
       This allows burger to remain clickable while nav panel covers logo */
    --z-index-header: 2000;
    --z-index-nav: 1500;
}

/* Keyframe Animations */
@keyframes rotate-counterclockwise {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 200px;
}

body {
    font-family: "Jost", sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #000;
    /* background-color: #f8f8f8; */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-wrap: break-word;
    hyphens: auto;
}

body.nav-open {
    overflow: hidden;
}

/* Main content container with max-width and white background */
.main-container {
    max-width: 1600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 160px 160px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Hide scrollbars but keep functionality */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

/* ===== HEADER & NAVIGATION ===== */

.header {
    width: 100%;
    margin-bottom: 40px;
    position: sticky;
    top: 0;
    z-index: var(--z-index-header);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px 0 30px 0;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.header.nav-open {
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
}

.header.nav-open .burger-menu {
    pointer-events: auto;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px 0 0;
    position: relative;
}

/* Logo styling */
.logo img {
    height: 120px;
    width: auto;
    margin-left: -5px;
    min-height: 67px;
}

/* Burger menu styling - 3 F letters rotated 90 degrees */
.burger-menu {
    --burger-letter-spacing: -32px; /* CSS variable to control distance between F letters */

    /* Reset button styles */
    background: none;
    border: none;
    font: inherit;
    color: inherit;

    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transform: translateY(-10px);
    position: relative;
    z-index: 1;
    padding: 20px;
    margin: -20px;
}

.burger-f {
    font-family: "Aguafina Script", cursive;
    font-size: 45px;
    color: #000;
    transform: rotate(90deg);
    line-height: 1;
    transition: all 0.4s ease;
    opacity: 1;
}

/* Burger menu active state animations */
.burger-menu.active .burger-f:nth-child(1) {
    transform: rotate(90deg) translateX(10px);
}

.burger-menu.active .burger-f:nth-child(2) {
    opacity: 0; /* Hide middle F completely */
    transform: rotate(90deg) scale(0);
}

.burger-menu.active .burger-f:nth-child(3) {
    transform: rotate(90deg) scaleX(-1) translateX(10px);
}

/* Apply spacing between letters using margin, except for the last one */
.burger-f:not(:last-child) {
    margin-bottom: var(--burger-letter-spacing);
}

/* ===== FLY-IN NAVIGATION MENU ===== */

.nav-menu {
    position: fixed;
    top: 0;
    right: -65%;
    width: 65%;
    height: 100vh;
    background-image: linear-gradient(
        325deg,
        hsl(271deg 99% 50%) 0%,
        hsl(260deg 96% 67%) 9%,
        hsl(252deg 91% 74%) 18%,
        hsl(242deg 84% 79%) 26%,
        hsl(230deg 77% 81%) 34%,
        hsl(216deg 71% 82%) 42%,
        hsl(198deg 63% 83%) 49%,
        hsl(176deg 61% 84%) 56%,
        hsl(176deg 60% 86%) 62%,
        hsl(176deg 60% 89%) 69%,
        hsl(176deg 59% 91%) 75%,
        hsl(176deg 59% 94%) 82%,
        hsl(176deg 58% 96%) 88%,
        hsl(176deg 58% 98%) 94%,
        hsl(0deg 0% 100%) 100%
    );
    z-index: var(--z-index-nav);
    transition: right 0.4s ease-in-out;
    overflow-y: auto;
}

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

.nav-content {
    padding: 220px 80px 80px 80px;
    display: flex;
    flex-direction: column;
    gap: 80px;
    height: 100%;
}

/* Language Switcher */
.nav-language {
    display: none;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
}

.nav-lang-link {
    color: #000;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-lang-link:hover {
    opacity: 0.7;
}

.nav-lang-link.active {
    font-weight: bold;
}

.nav-lang-separator {
    color: #000;
    opacity: 0.5;
}

/* Navigation Links */
.nav-links {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.nav-link {
    color: #000;
    font-size: 2.5rem;
    font-weight: 400;
    text-decoration: none;
    transition: opacity 0.3s ease;
    display: inline-block;
}

.nav-link:hover {
    opacity: 0.7;
}

/* Contact Links */
.nav-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: auto;
}

.nav-contact-link {
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-contact-link::after {
    content: "→";
    font-size: 1rem;
}

.nav-contact-link:hover {
    opacity: 0.7;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large screen breakpoint - screens smaller than 1200px */
@media (max-width: 1200px) {
    html {
        scroll-padding-top: 180px;
    }

    .main-container {
        padding: 100px 100px;
    }

    .navbar {
        padding: 0 20px 0 0;
    }

    /* Logo styling */
    .logo img {
        min-height: 60px;
    }

    .burger-menu {
        --burger-letter-spacing: -32px;
    }

    .burger-f {
        font-size: 45px;
    }

    .nav-content {
        padding: 160px 80px 80px 80px;
    }
}

/* Tablet breakpoint - screens smaller than 960px */
@media (max-width: 960px) {
    html {
        scroll-padding-top: 160px;
    }

    .main-container {
        padding: 100px 80px;
    }

    .logo img {
        height: 80px;
        min-height: 55px;
        margin-left: -5px;
    }

    .navbar {
        padding: 0 14px 0 0;
    }

    .burger-menu {
        --burger-letter-spacing: -28px; /* Adjust letter spacing for smaller screens */
        transform: translateY(-8px);
    }

    .burger-f {
        font-size: 40px;
        transition: none;
    }

    .header {
        transition: background-color 0.1s ease, backdrop-filter 0.1s ease;
    }

    /* Hide logo when navigation is open on tablet */
    .header.nav-open .logo {
        visibility: hidden;
    }

    /* Navigation menu full width on tablet */
    .nav-menu {
        right: -100%;
        width: 100%;
        transition: right 0.1s ease-in-out;
    }

    .nav-content {
        padding: 140px 60px 100px 60px;
        gap: 60px;
    }

    .nav-link {
        font-size: 2rem;
    }
}

/* Mobile breakpoint - screens smaller than 480px */
@media (max-width: 480px) {
    html {
        scroll-padding-top: 130px;
    }

    .main-container {
        padding: 60px 40px;
    }

    .logo img {
        height: 60px;
        min-height: 45px;
        margin-left: -5px;
    }

    .navbar {
        padding: 0 11px 0 0;
    }

    .burger-menu {
        --burger-letter-spacing: -21px; /* Tighter spacing on mobile */
        transform: translateY(-6px);
    }

    .burger-menu.active {
        --burger-letter-spacing: -18px; /* Special spacing when active on mobile */
    }

    .burger-f {
        font-size: 30px;
        transition: none;
    }

    .header {
        margin-bottom: 30px;
        transition: background-color 0.1s ease, backdrop-filter 0.1s ease;
    }

    /* Hide logo when navigation is open on mobile */
    .header.nav-open .logo {
        visibility: hidden;
    }

    /* Navigation menu full width on mobile */
    .nav-menu {
        right: -100%;
        width: 100%;
        transition: right 0.1s ease-in-out;
    }

    .nav-content {
        padding: 100px 40px 140px 40px;
        gap: 50px;
    }

    .nav-language {
        font-size: 1rem;
    }

    .nav-link {
        font-size: 1.8rem;
    }
}

/* ===== HERO SECTION ===== */

.hero {
    display: flex;
    align-items: center; /* Vertically center the hero text */
    min-height: 500px;
}

.hero-text {
    width: 100%;
    font-family: "Jost", sans-serif;
    font-weight: 400;
    line-height: 1.1;
}

.hero-text h1 {
    margin: 0;
    font-weight: 400;
}

.hero-line-1 {
    font-size: 4rem;
    text-align: left;
}

.hero-line-2 {
    font-size: 4.2rem;
    text-align: left;
}

.hero-line-2 em {
    font-style: italic;
    font-weight: 400;
}

.hero-line-3 {
    font-size: 4rem;
    text-align: left;
    margin-top: 0.2rem;
    text-indent: 18rem;
}

/* Responsive adjustments for hero section */
@media (max-width: 960px) {
    .hero {
        min-height: 280px;
    }

    .hero-line-1,
    .hero-line-3 {
        font-size: 2.9rem;
    }

    .hero-line-2 {
        font-size: 3rem;
    }

    .hero-line-3 {
        text-indent: 12rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 250px;
    }

    .hero-line-1,
    .hero-line-3 {
        font-size: 2.5rem;
    }

    .hero-line-2 {
        font-size: 2.7rem;
    }

    .hero-line-3 {
        text-indent: 6rem;
    }
}

/* ===== HEADLINE SECTION (for non-homepage pages) ===== */

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

.headline-text {
    width: 100%;
    font-family: "Jost", sans-serif;
    font-weight: 400;
    line-height: 1.1;
}

.headline h1 {
    font-size: 4rem;
    text-align: left;
    font-weight: 400;
    margin: 0;
    line-height: 1.1;
}

/* Responsive adjustments for headline section */
@media (max-width: 960px) {
    .headline h1 {
        font-size: 2.9rem;
    }
}

@media (max-width: 480px) {
    .headline h1 {
        font-size: 2.5rem;
    }
}

/* ===== PROJECTS SECTION ===== */

/* Visually hidden class for accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.project-filters {
    margin-top: var(--section-gap-medium);
    margin-bottom: 60px;
    padding-left: var(--section-padding-desktop);
    padding-right: var(--section-padding-desktop);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.project-filter-wrapper {
    flex: 1;
    min-width: 200px;
}

.project-filter {
    font-family: "Jost", sans-serif;
    font-size: var(--font-size-base);
    font-weight: 400;
    color: #000;
    padding: 8px 40px 8px 16px;
    border: 1px solid #000;
    border-radius: 50px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

.project-filter:hover {
    background-color: #f8f8f8;
}

.project-filter:focus {
    outline: 2px solid #000;
    outline-offset: 2px;
}

.filter-status {
    font-family: "Jost", sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
    margin-bottom: 40px;
    padding-left: var(--section-padding-desktop);
    padding-right: var(--section-padding-desktop);
}

.projects {
    margin-top: 0;
    margin-bottom: var(--section-gap-medium);
    padding-left: var(--section-padding-desktop);
    padding-right: var(--section-padding-desktop);
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.project.hidden {
    display: none;
}

.project-headline {
    font-family: "Boldonse", serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #000;
    margin: 0 0 10px 0;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}

.project-tag {
    display: inline-block;
    font-family: "Jost", sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    padding: 3px 16px;
    border-radius: 50px;
    background: linear-gradient(to right, #C8A9FF, #FF5F8F);
    color: white;
}

.project-description {
    font-family: "Jost", sans-serif;
    font-size: var(--font-size-large);
    line-height: 1.6;
    color: #000;
    margin: 15px 0 20px 0;
}

.project-context {
    display: flex;
    flex-direction: column;
}

.project-context-item {
    font-family: "Jost", sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: #000;
}

.project-context-label {
    font-weight: 400;
}

.project-context-value {
    font-weight: 400;
}

/* Responsive adjustments for projects section */
@media (max-width: 960px) {
    .project-filters {
        margin-top: 60px;
        margin-bottom: 50px;
        padding-left: 60px;
        padding-right: 60px;
        gap: 15px;
    }

    .project-filter-wrapper {
        min-width: 180px;
    }

    .project-filter {
        font-size: var(--font-size-tablet);
    }

    .filter-status {
        font-size: 0.85rem;
        margin-bottom: 30px;
        padding-left: 60px;
        padding-right: 60px;
    }

    .projects {
        margin-top: 0;
        margin-bottom: 60px;
        padding-left: 60px;
        padding-right: 60px;
        gap: 60px;
    }

    .project-headline {
        font-size: 1.1rem;
    }

    .project-tag {
        font-size: 0.85rem;
    }

    .project-description {
        font-size: var(--font-size-base);
    }

    .project-context-item {
        font-size: var(--font-size-tablet);
    }
}

@media (max-width: 480px) {
    .project-filters {
        margin-top: 40px;
        margin-bottom: 40px;
        padding-left: 0px;
        padding-right: 0px;
        flex-direction: column;
        gap: 10px;
    }

    .project-filter-wrapper {
        min-width: 100%;
        width: 100%;
    }

    .project-filter {
        font-size: var(--font-size-mobile);
    }

    .filter-status {
        font-size: 0.8rem;
        margin-bottom: 20px;
        padding-left: 0px;
        padding-right: 0px;
    }

    .projects {
        margin-top: 0;
        margin-bottom: 40px;
        padding-left: 0px;
        padding-right: 0px;
        gap: 50px;
    }

    .project-headline {
        font-size: 1rem;
    }

    .project-tag {
        font-size: 0.8rem;
    }

    .project-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .project-context-item {
        font-size: var(--font-size-mobile);
    }
}

/* ===== INTRO SECTION ===== */

.intro {
    margin-top: var(--section-gap-medium);
    margin-bottom: var(--section-gap-medium);
    padding-left: var(--section-padding-desktop);
    padding-right: var(--section-padding-desktop);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--section-gap-medium);
}

.intro-left {
}

.intro-content {
    max-width: min(600px, 100%);
}

.intro-www-svg {
    float: left;
    height: 43px;
    width: auto;
    margin-right: 10px;
    margin-bottom: 8px;
    margin-top: 6px;
}

.intro-right {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.intro-cta {
    text-align: right;
}

.intro-cta-text {
    font-family: "Jost", sans-serif;
    font-weight: 400;
    font-size: var(--font-size-large);
    line-height: 1.6;
    color: #000;
    margin: 0;
}

.intro-cta-link {
    color: #000;
    text-decoration: none;
    font-weight: 700;
}

.intro-cta-link:hover {
    text-decoration: underline;
}

.intro-text {
    font-family: "Jost", sans-serif;
    font-weight: 400;
    font-size: var(--font-size-large);
    line-height: 1.6;
    color: #000;
}

.intro-text:not(:last-child) {
    margin-bottom: 14px;
}

.intro-text-main {
    margin-top: 10px;
}

.intro-text-promise {
    margin-top: 10px;
}

/* Responsive adjustments for intro section */
@media (max-width: 960px) {
    .intro {
        margin-top: 60px;
        margin-bottom: 60px;
        padding-left: 60px;
        padding-right: 60px;
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .intro-text {
        font-size: var(--font-size-base);
    }

    .intro-cta-text {
        font-size: 1rem; /* Slightly smaller CTA text on tablet */
    }

    .intro-www-svg {
        height: 38px; /* Fixed height for tablet */
        margin-right: 10px; /* Smaller margin on tablet */
        margin-top: 5px; /* Adjust vertical alignment for tablet */
    }

    .intro-right {
        align-items: flex-start; /* Align CTA to top when stacked on tablet */
    }
}

@media (max-width: 480px) {
    .intro {
        margin-top: 40px; /* Further reduce spacing on mobile */
        margin-bottom: 40px;
        padding-left: 0px; /* Match references section responsive padding */
        padding-right: 0px; /* Match references section responsive padding */
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 30px; /* Match references section responsive gap */
    }

    .intro-right {
        align-items: flex-start; /* Align CTA to top when stacked */
    }

    .intro-text {
        font-size: 0.95rem; /* Smaller text on mobile */
        line-height: 1.5;
    }

    .intro-cta-text {
        font-size: 0.95rem; /* Smaller CTA text on mobile */
    }

    .intro-www-svg {
        height: 36px; /* Fixed height for mobile */
        margin-right: 10px; /* Even smaller margin on mobile */
        margin-top: 5px; /* Adjust vertical alignment for mobile */
    }
}

/* ===== BLOG POST STYLES ===== */

.blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 40px;
}

.blog-header {
    margin-bottom: 40px;
    text-align: left;
}

.blog-title {
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #000;
}

.blog-date {
    font-size: 1rem;
    color: #666;
    font-style: italic;
}

.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.blog-content h1 {
    font-size: 2.5rem;
    margin: 40px 0 20px 0;
    font-weight: 600;
}

.blog-content h2 {
    font-size: 2rem;
    margin: 35px 0 15px 0;
    font-weight: 600;
}

.blog-content h3 {
    font-size: 1.5rem;
    margin: 30px 0 10px 0;
    font-weight: 600;
}

.blog-content p {
    margin-bottom: 20px;
}

.blog-content strong {
    font-weight: 600;
}

.blog-content em {
    font-style: italic;
}

.blog-content a {
    color: #000;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.blog-content a:hover {
    opacity: 0.7;
}

.blog-footer {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.back-link {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.back-link:hover {
    opacity: 0.7;
}

/* Responsive blog styles */
@media (max-width: 960px) {
    .blog-title {
        font-size: 2.5rem;
    }

    .blog-content h1 {
        font-size: 2rem;
    }

    .blog-content h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .blog-title {
        font-size: 2rem;
    }

    .blog-content {
        font-size: 1rem;
    }

    .blog-content h1 {
        font-size: 1.8rem;
    }

    .blog-content h2 {
        font-size: 1.5rem;
    }

    .blog-content h3 {
        font-size: 1.3rem;
    }
}

/* ===== VISUAL BREAK SECTION ===== */

.visual-break {
    margin-top: var(--section-gap-large);
    margin-bottom: var(--section-gap-large);
    overflow: hidden;
}

.brand-pattern {
    display: flex; /* Display words in a row */
    white-space: nowrap; /* Prevent line breaks within pattern */
    justify-content: space-between; /* Distribute words to fill full width */
    width: 100%; /* Ensure full width */
}

.brand-growing {
    font-family: "Boldonse", serif; /* Bold font for GROWING */
    font-weight: 400;
    font-size: 20px; /* Base font size for desktop */
    color: #000;
}

.brand-forward {
    font-family: "Aguafina Script", cursive; /* Script font for FORWARD */
    font-weight: 400;
    font-size: 28px; /* Base font size for desktop */
    color: #000;
    transform: translateY(-2px); /* Move up 2px to align with GROWING font */
    padding-right: 3px; /* Prevent serif from being cut off */
}

/* Hide 5th repetition on screens smaller than 1430px */
@media (max-width: 1430px) {
    .wide-only {
        display: none; /* Hide 5th repetition on smaller than 1430px */
    }
}

/* Responsive adjustments for visual break */
@media (max-width: 1200px) {
    .brand-growing {
        font-size: 18px; /* Slightly smaller on large screens */
    }

    .brand-forward {
        font-size: 26px; /* Slightly smaller on large screens */
    }
}

@media (max-width: 960px) {
    .visual-break {
        margin-top: 100px; /* Reduce spacing on tablet */
        margin-bottom: 100px; /* Match separator line spacing */
    }

    .brand-growing {
        font-size: 16px; /* Smaller font on tablet */
    }

    .brand-forward {
        font-size: 24px; /* Smaller font on tablet */
    }

    .tablet-hide {
        display: none; /* Hide 4th repetition on tablet (show 3 repetitions) */
    }
}

@media (max-width: 480px) {
    .visual-break {
        margin-top: 80px; /* Further reduce spacing on mobile */
        margin-bottom: 80px; /* Match separator line spacing */
    }

    .brand-growing {
        font-size: 13px; /* Minimal reduction for mobile */
    }

    .brand-forward {
        font-size: 20px; /* Minimal reduction for mobile */
    }

    .mobile-hide {
        display: none; /* Hide 3rd and 4th repetitions on mobile (show 2 repetitions) */
    }
}

/* ===== REFERENCES SECTION ===== */

.references {
    margin-top: var(--section-gap-large);
    margin-bottom: var(--section-gap-large);
    padding-left: var(--section-padding-desktop);
    padding-right: var(--section-padding-desktop);
    font-family: "Jost", sans-serif;
    font-weight: 400;
}

.references-headline {
    font-family: "Aguafina Script", cursive;
    font-size: 3rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 40px;
    text-align: left; /* Left aligned to match left column */
    text-transform: uppercase; /* All capital letters */
}

.references-content {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 80px; /* Increased space between columns */
}

.references-left {
    /* Left column - natural height based on content */
}

.references-right {
    /* Right column - offset vertically downwards */
    margin-top: 160px; /* Vertical offset for right column */
}

.references-text {
    font-size: var(--font-size-large);
    line-height: 1.6;
    color: #000;
    margin: 0 0 20px 0;
    font-style: italic; /* All paragraphs in italic */
}

.references-attribution {
    font-size: var(--font-size-base);
    line-height: 1.8; /* Increased line height for more space between name and title */
    color: #000;
    margin-top: 20px;
}

.references-attribution strong {
    font-family: "Boldonse", serif; /* Client name in Boldonse */
    font-size: 1.2rem; /* Slightly larger font size for client name */
    font-weight: 400;
}

.references-statement {
    margin-top: 80px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #000;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

/* ===== SEPARATOR LINE SECTION ===== */

.separator-line {
    margin-top: var(--section-gap-large);
    margin-bottom: var(--section-gap-large);
    display: flex;
    justify-content: center;
    align-items: center;
}

.separator-line-gradient {
    height: 4px; /* Line thickness matching footer vertical line */
    width: 100%; /* Full width horizontal line */
    background: var(
        --gradient-brand
    ); /* Gradient from light blue to purple, horizontal direction */
}

/* Responsive references adjustments */
@media (max-width: 960px) {
    .references {
        margin-top: 120px; /* Reduce spacing on tablet */
        margin-bottom: 120px;
        padding-left: 60px; /* Match about section responsive padding */
        padding-right: 60px;
    }

    .references-content {
        grid-template-columns: 1fr; /* Single column on tablet */
        gap: 60px; /* Gap between stacked sections */
    }

    .references-right {
        margin-top: 0; /* Remove vertical offset when columns stack */
    }

    .references-text {
        font-size: 1rem; /* Slightly smaller text on tablet */
    }

    .references-attribution {
        font-size: 0.95rem;
    }

    .references-attribution strong {
        font-size: 1rem; /* Proportionally reduce client name size for tablet */
    }

    .references-headline {
        font-size: 2.5rem; /* Reduce headline size for tablet */
    }

    .references-statement {
        font-size: 1rem;
        margin-top: 60px;
    }

    .separator-line {
        margin-top: 100px; /* Match visual break tablet spacing */
        margin-bottom: 100px; /* Match visual break tablet spacing */
    }

    .separator-line-gradient {
        height: 3px; /* Slightly thinner line on tablet */
    }
}

@media (max-width: 480px) {
    .references {
        margin-top: 80px; /* Further reduce spacing on mobile */
        margin-bottom: 80px;
        padding-left: 0px; /* Match about section responsive padding */
        padding-right: 0px;
    }

    .references-content {
        gap: 50px; /* Smaller gap between stacked sections */
    }

    .references-text {
        font-size: 0.95rem; /* Smaller text on mobile */
        line-height: 1.5;
    }

    .references-attribution {
        font-size: 0.9rem;
        line-height: 1.6; /* Reduce line height on mobile for tighter spacing */
    }

    .references-attribution strong {
        font-size: 0.9rem; /* Further reduce client name size for mobile */
    }

    .references-headline {
        font-size: 2rem; /* Further reduce headline size for mobile */
        margin-bottom: 30px; /* Reduce bottom margin on mobile */
    }

    .references-statement {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-top: 40px;
    }

    .separator-line {
        margin-top: 80px; /* Match visual break mobile spacing */
        margin-bottom: 80px; /* Match visual break mobile spacing */
    }

    .separator-line-gradient {
        height: 2px; /* Thinnest line on mobile */
    }
}

/* ===== SERVICES SECTION ===== */

.services {
    margin-top: 80px; /* Space above services section */
    margin-bottom: 240px; /* Space below services section */
    padding-left: 120px; /* Match references and intro section alignment */
    padding-right: 120px; /* Match references and intro section alignment */
    font-family: "Jost", sans-serif;
    font-weight: 400;
    position: relative; /* Enable absolute positioning for SVG */
}

.services-svg {
    position: absolute;
    top: 0;
    left: 60px; /* Align with section padding */
    height: 180px; /* Match other SVG heights in the site */
    width: auto; /* Maintain aspect ratio */
    animation: rotate-counterclockwise 20s linear infinite;
}

.services-headline {
    font-family: "Aguafina Script", cursive; /* Match references headline */
    font-size: 3rem; /* Match references headline */
    font-weight: 400;
    color: #000;
    margin-bottom: 40px; /* Match references headline */
    text-align: right; /* Position in upper right corner */
    text-transform: uppercase; /* All capital letters like references */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(
        3,
        1fr
    ); /* 3 columns to accommodate second row */
    grid-template-rows: auto auto; /* 2 rows */
    gap: 40px; /* Space between service groups */
    margin-bottom: 60px; /* Space before button */
    width: 75%; /* Reduce to roughly two thirds of width */
    margin-left: auto; /* Align to right */
}

.service-group:nth-child(1) {
    grid-column: 1 / 2; /* First group in first column */
    grid-row: 1;
}

.service-group:nth-child(2) {
    grid-column: 2 / 3; /* Second group in second column */
    grid-row: 1;
}

.service-group:nth-child(3),
.service-group:nth-child(4),
.service-group:nth-child(5) {
    grid-row: 2; /* Place groups 3-5 in second row */
}

.service-group:nth-child(3) {
    grid-column: 1 / 2; /* First position in second row */
}

.service-group:nth-child(4) {
    grid-column: 2 / 3; /* Second position in second row */
}

.service-group:nth-child(5) {
    grid-column: 3 / 4; /* Third position in second row */
}

.service-group {
    font-family: "Jost", sans-serif;
    display: flex;
    flex-direction: column;
    overflow-wrap: break-word; /* Break long words if needed */
}

/* Offset alternating rows */
.service-group:nth-child(1),
.service-group:nth-child(2) {
    transform: translateX(40px); /* First row: push right */
}

.service-group:nth-child(3),
.service-group:nth-child(4),
.service-group:nth-child(5) {
    transform: translateX(-40px); /* Second row: push left */
}

.service-group-title {
    font-family: "Boldonse", serif; /* Boldonse font for headlines */
    font-size: 1.2rem;
    font-weight: 400;
    color: #000;
    margin-bottom: 15px;
}

.service-group-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-group-list li {
    font-size: var(--font-size-base);
    line-height: 1.3; /* Reduced line height */
    color: #000;
    margin-bottom: 6px; /* Reduced margin for tighter spacing */
    position: relative;
    padding-left: 15px; /* Space for underscore */
}

.service-group-list li:before {
    content: "_";
    position: absolute;
    left: 0;
    color: #000;
}

.services-button {
    display: block;
    width: fit-content; /* Button width fits content */
    font-family: "Jost", sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: white;
    text-decoration: none;
    padding: 6px 60px; /* Increased width padding */
    border-radius: 50px; /* Maximum rounded corners (pill shape) */
    background: var(
        --gradient-brand
    ); /* Horizontal gradient from light blue to purple */
    transition: opacity 0.3s ease; /* Smooth hover transition */
    margin: 80px auto 0 auto; /* Centered horizontally with top margin */
    text-align: center; /* Center text within button */
}

.services-button:hover {
    opacity: 0.9; /* Slight fade on hover */
}

/* Responsive services adjustments */
@media (max-width: 960px) {
    .services {
        margin-top: 60px; /* Proportionally reduce from 80px */
        margin-bottom: 180px; /* Proportionally reduce from 240px */
        padding-left: 60px; /* Match other sections responsive padding */
        padding-right: 60px;
    }

    .services-svg {
        left: 30px; /* Proportionally reduce from 60px for tablet */
        height: 120px; /* Proportionally reduce from 180px for tablet */
    }

    .services-headline {
        font-size: 2.5rem; /* Match references responsive size */
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* Keep 2 columns */
        gap: 30px; /* Reduce gap on tablet */
        width: 72%; /* Match desktop adjustment */
    }

    .service-group:nth-child(5) {
        grid-column: 1 / 3; /* Still span both columns */
        grid-row: 3; /* Move to third row for 2-2-1 layout */
    }

    /* Remove offsets on tablet */
    .service-group:nth-child(1),
    .service-group:nth-child(2),
    .service-group:nth-child(3),
    .service-group:nth-child(4),
    .service-group:nth-child(5) {
        transform: none; /* Reset all transforms on tablet */
    }

    .service-group-title {
        font-size: 1.1rem; /* Slightly smaller on tablet */
    }

    .service-group-list li {
        font-size: 0.95rem; /* Smaller text on tablet */
        line-height: 1.3; /* Maintain consistent line height */
        margin-bottom: 6px; /* Maintain consistent spacing */
    }

    .services-button {
        font-size: 0.95rem; /* Slightly smaller text on tablet */
        padding: 6px 45px; /* Proportionally reduce from 60px padding */
        margin: 60px auto 0 auto; /* Proportionally reduce from 80px margin */
    }
}

@media (max-width: 480px) {
    .services {
        margin-top: 40px; /* Proportionally reduce from 80px */
        margin-bottom: 120px; /* Proportionally reduce from 240px */
        padding-left: 0px; /* Match other sections responsive padding */
        padding-right: 0px;
    }

    .services-svg {
        top: -40px;
        left: 0px;
        height: 80px; /* Proportionally reduce from 180px for mobile */
    }

    .services-headline {
        font-size: 2rem; /* Match references responsive size */
        margin-bottom: 40px; /* Match references responsive margin */
        padding-right: 8px;
    }

    .services-grid {
        display: block; /* Use block layout instead of grid on mobile */
        margin-bottom: 40px; /* Reduce margin before button */
        width: 100%; /* Full width on mobile */
        margin-left: 0; /* Reset alignment on mobile */
    }

    .service-group {
        width: 100%; /* Ensure consistent width on mobile */
        margin-bottom: 20px; /* Add spacing between groups */
        box-sizing: border-box; /* Include padding in width calculation */
    }

    /* Grid properties are irrelevant since we use block layout on mobile */

    /* Remove offsets on mobile - single column layout */
    .service-group:nth-child(1),
    .service-group:nth-child(2),
    .service-group:nth-child(3),
    .service-group:nth-child(4),
    .service-group:nth-child(5) {
        transform: none; /* Reset all transforms on mobile */
    }

    .service-group-title {
        font-size: 1rem; /* Smaller on mobile */
        margin-bottom: 12px; /* Reduce margin on mobile */
    }

    .service-group-list li {
        font-size: 0.9rem; /* Smaller text on mobile */
        line-height: 1.3; /* Maintain consistent line height */
        margin-bottom: 6px; /* Maintain consistent spacing */
    }

    .services-button {
        font-size: 0.9rem; /* Smaller text on mobile */
        padding: 6px 40px; /* Proportionally reduce from 60px padding */
        margin: 40px auto 0 auto; /* Proportionally reduce from 80px margin */
    }
}

/* ===== ABOUT SECTION ===== */

.about {
    padding-left: 120px;
    padding-right: 120px;
    font-family: "Jost", sans-serif;
    font-weight: 400;
}

.about-content {
    margin-bottom: 20px;
}

.about-svg {
    float: left;
    height: 43px;
    width: auto;
    margin-right: 40px;
    margin-bottom: 8px;
    margin-top: 6px;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #000;
    margin: 0;
    overflow: hidden; /* Prevent text wrapping around floated element */
}

.about-text-plain {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #000;
    margin: 0;
}

/* Responsive about adjustments */
@media (max-width: 960px) {
    .about {
        padding-left: 60px;
        padding-right: 60px;
    }

    .about-svg {
        height: 38px;
        margin-top: 5px;
        margin-right: 20px;
    }

    .about-text,
    .about-text-plain {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .about {
        padding-left: 0px;
        padding-right: 0px;
    }

    .about-svg {
        height: 36px;
        margin-top: 5px;
        margin-right: 15px;
    }

    .about-text,
    .about-text-plain {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* ===== FOOTER SECTION ===== */

.footer {
    margin-top: 160px;
}

/* GROWING FORWARD brand spanning width */
.footer-brand {
    justify-content: center;
    align-items: center;
    width: 100%;
    max-height: 200px; /* Maximum height constraint */
    overflow: hidden; /* Prevent overflow beyond max height */
}

.footer-brand-svg {
    width: 100%; /* Scale to fit container width */
    max-width: 100%;
    height: auto; /* Maintain aspect ratio */
    max-height: 200px; /* Respect maximum height constraint */
}

/* Links and copyright */
.footer-links {
    display: flex;
    justify-content: space-between; /* Links container left, copyright right */
    align-items: center;
    margin-top: 120px;
    padding-left: 120px; /* Align with intro section */
    padding-right: 120px; /* Align with intro section */
    font-family: "Jost", sans-serif;
    font-weight: 400;
}

.footer-links-left {
    display: flex;
    flex-wrap: nowrap; /* Prevent individual links from wrapping */
    gap: max(
        10px,
        calc(4 * min(100vw, 1600px) / 100)
    ); /* Gap based on main container width */
    align-items: center;
    margin-right: max(
        10px,
        calc(4 * min(100vw, 1600px) / 100)
    ); /* Add gap after last link */
}

.footer-link {
    color: #000;
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.2s ease;
    white-space: nowrap; /* Prevent underscore from breaking away from the word */
}

.footer-link:hover {
    opacity: 0.7;
}

.footer-copyright {
    color: #000;
    font-size: 1rem;
    white-space: nowrap; /* Prevent copyright text from breaking into individual words */
}

/* Responsive footer adjustments */
@media (max-width: 960px) {
    .footer-links {
        padding-left: 60px; /* Match intro section responsive padding */
        padding-right: 60px;
        margin-top: 80px; /* Proportionally reduce margin */
        flex-direction: column; /* Stack on tablet */
        gap: 30px; /* Gap between stacked sections */
        align-items: flex-start; /* Left align when stacked */
    }

    .footer-links-left {
        gap: max(
            10px,
            calc(4 * min(100vw, 1600px) / 100)
        ); /* Gap based on main container width */
    }
}

@media (max-width: 480px) {
    .footer-links {
        padding-left: 0px; /* Match intro section responsive padding */
        padding-right: 0px;
        margin-top: 60px; /* Further reduce margin */
        gap: 20px; /* Smaller gap between stacked sections */
    }

    .footer-links-left {
        flex-direction: column; /* Stack links vertically on mobile */
        gap: max(
            10px,
            calc(4 * min(100vw, 1600px) / 100)
        ); /* Gap based on main container width */
        align-items: flex-start; /* Left align links */
    }

    .footer-link,
    .footer-copyright {
        font-size: 0.95rem; /* Slightly smaller text on mobile */
    }
}

/* Part 3: Vertical gradient line */
.footer-line {
    margin-top: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-line-gradient {
    width: 4px; /* Line thickness for desktop */
    height: 15vh; /* Height based on viewport height */
    background: linear-gradient(
        to bottom,
        var(--color-brand-light),
        var(--color-brand-purple)
    ); /* Gradient from light blue to purple */
}

/* Responsive line adjustments */
@media (max-width: 960px) {
    .footer-line {
        margin-top: 80px; /* Match spacing between other parts on tablet */
    }

    .footer-line-gradient {
        width: 3px; /* Thinner line on tablet */
        height: 16vh; /* Slightly shorter on tablet */
    }
}

@media (max-width: 480px) {
    .footer-line {
        margin-top: 60px; /* Match spacing between other parts on mobile */
    }

    .footer-line-gradient {
        width: 2px; /* Thinnest line on mobile */
        height: 16vh; /* Shortest on mobile */
    }
}
