/* ==========================================================================
   CSS Variables & Root Styles
   ========================================================================== */
:root {
    /* Spacing */
    --spacing-unit: 4px;
    --section-spacing: calc(var(--spacing-unit) * 20);
    --container-width: 1400px;
    
    /* Colors */
    --primary-color: #212121;
    --secondary-color: #757575;
    --surface-color: #eae9e8;
    --background-color: #bea16e;
    --section-background-color: #f5f5f5;
    --ball-color: #ffffff;
    
    /* Pattern Colors */
    --pattern-light: rgba(0, 0, 0, 0.25);
    --pattern-dark: rgba(0, 0, 0, 0.35);
    --pattern-walls: rgba(0, 0, 0, 1);
    --pattern-measure: rgba(0, 0, 0, 0.5);
    --pattern-furniture: rgba(0, 0, 0, 0.6);
    --pattern-doors: rgba(0, 0, 0, 0.8);
    --pattern-windows: rgba(0, 0, 0, 0.6);
    --hero-bg: var(--surface-color);
    
    /* Shadows */
    --shadow-1: 0 2px 1px -1px rgba(0,0,0,.2), 0 1px 1px 0 rgba(0,0,0,.14), 0 1px 3px 0 rgba(0,0,0,.12);
    --shadow-2: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12);
    
    /* Layout */
    --grid-scale: 1;
    --grid-opacity: 0.5;
    --image-move-x: 0px;
    --image-move-y: 0px;
    
    /* Header */
    --header-height: 80px;
    --header-bg: rgba(255, 255, 255, 0.95);
    --header-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--surface-color);
    cursor: none !important;
}

/* ==========================================================================
   Typography
   ========================================================================== */
.mat-typography {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    line-height: 1.3;
    -webkit-font-smoothing: antialiased;
}

.mat-display-2 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: calc(var(--spacing-unit) * 8);
    font-weight: 700;
}

.mat-display-1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.75rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: calc(var(--spacing-unit) * 6);
    font-weight: 600;
}

.mat-h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: calc(var(--spacing-unit) * 4);
    font-weight: 600;
}

.mat-body-1, .mat-body-2 {
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0.03125em;
}

.mat-body-1 {
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.mat-lead {
    font-size: 1.25rem;
    line-height: 1.6;
    letter-spacing: 0.0125em;
    margin-bottom: calc(var(--spacing-unit) * 6);
}

.italic {
    font-style: italic;
}

em {
    font-style: normal;
    font-weight: 600;
}

/* ==========================================================================
   Layout & Container
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 6);
    margin-top: calc(var(--header-height) * -2 );
}

.text-center {
    text-align: center;
}

/* Section Base Styles */
section {
    display: flex;
    align-items: center;
    padding: calc(var(--spacing-unit) * 16) 0;
    position: relative;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.main-header {
    position: fixed;
    top: -100%;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-20px);
    opacity: 0;
    will-change: transform, opacity, top;
}

.main-header.sticky {
    top: 0;
    transform: translateY(0);
    opacity: 1;
}

/* Logo Styles */
.logo {
    position: relative;
    z-index: 10;
}

.hero-logo {
    position: relative;
    display: block;
    width: 200px;
    height: auto;
    margin-bottom: calc(var(--spacing-unit) * 4);
    opacity: 1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
    z-index: 10;
}

.hero-logo.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.hero-logo img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.hero-logo:hover img {
    transform: scale(1.05);
}

.logo.nav-logo {
    width: 150px;
    height: auto;
    max-height: none;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px) scale(0.95);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity, visibility;
}

.logo.nav-logo img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    transition: none;
}

.logo.nav-logo.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo a {
    display: block;
    text-decoration: none;
}

.logo img {
    width: 100%;
    height: auto;
    transition: none;
}

/* Navigation Styles */
.main-nav {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 calc(var(--spacing-unit) * 2);
    position: relative;
    z-index: 2;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav.scrolled {
    justify-content: space-between;
}

.nav-links {
    display: flex;
    gap: calc(var(--spacing-unit) * 8);
    z-index: 2;
    position: relative;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.nav-links.centered {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
    z-index: 2;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ==========================================================================
   Mouse Follower
   ========================================================================== */
.mouse-follower {
    position: fixed;
    background-color: var(--ball-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2000;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    transition: all 0.1s ease-out;
    mix-blend-mode: difference;
    will-change: transform, width, height;
    opacity: 1;
    width: 20px;
    height: 20px;
}

/* SVG Container */
.svg-container {
    position: fixed;
    opacity: 0;
    transition: opacity 0.3s ease-out;
    z-index: 9998;
    pointer-events: none;
}

/* Interactive Elements */
a, button, input, select, textarea, [role="button"] {
    cursor: none !important;
}

/* Hover States */
a:hover, button:hover, input:hover, select:hover, textarea:hover, [role="button"]:hover {
    cursor: none !important;
}

/* Disabled States */
a:disabled, button:disabled, input:disabled, select:disabled, textarea:disabled, [role="button"]:disabled {
    cursor: none !important;
}

/* Focus States */
a:focus, button:focus, input:focus, select:focus, textarea:focus, [role="button"]:focus {
    cursor: none !important;
    outline: none;
}

/* Active States */
a:active, button:active, input:active, select:active, textarea:active, [role="button"]:active {
    cursor: none !important;
}

/* Disable text selection cursor */
::selection {
    cursor: none !important;
}

/* Disable drag cursor */
[draggable="true"] {
    cursor: none !important;
}

/* Disable resize cursor */
textarea, input[type="range"] {
    cursor: none !important;
    resize: none;
}

/* Disable wait cursor */
.loading, .processing {
    cursor: none !important;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: calc(var(--spacing-unit) * 16) 0;
    background-color: var(--hero-bg);
    overflow: hidden;
    position: relative;
    perspective: 1000px;
}

/* Hero Grid Background */
.hero::before,
.hero::after,
.hero-pattern-1,
.hero-pattern-2 {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    transform-origin: center;
    will-change: transform, background-size, opacity;
}

/* Base Grid - Measurement Grid */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(to right, var(--pattern-light) 2px, transparent 2px),
        linear-gradient(to bottom, var(--pattern-light) 2px, transparent 2px);
    background-size: var(--grid-size) var(--grid-size);
    background-position: var(--mouse-x) var(--mouse-y);
    opacity: var(--grid-opacity);
    z-index: 1;
    transform-origin: var(--mouse-x) var(--mouse-y);
    transform: scale(var(--grid-scale));
    transition: all 0.2s ease-out;
    will-change: transform, background-size, opacity, transform-origin, background-position;
    pointer-events: none;
}

/* Interior Details */
.hero-pattern-1 {
    background-image: 
        linear-gradient(45deg, transparent 45%, var(--pattern-furniture) 45%, var(--pattern-furniture) 48%, transparent 48%),
        linear-gradient(-45deg, transparent 45%, var(--pattern-furniture) 45%, var(--pattern-furniture) 48%, transparent 48%);
    background-position: var(--random-pos-2, 30% 30%);
    background-size: 500px 500px;
    background-repeat: no-repeat;
    opacity: calc(1 * var(--pattern-opacity-2, 1));
    z-index: 5;
    transform-origin: var(--mouse-x) var(--mouse-y);
    transform: scale(var(--grid-scale));
    transition: all 0.6s ease-out;
}

/* Room Labels and Measurements */
.hero-pattern-2 {
    background-image: 
        linear-gradient(var(--pattern-measure) 4px, transparent 4px),
        linear-gradient(90deg, var(--pattern-measure) 4px, transparent 4px);
    background-position: var(--random-pos-3, 70% 70%);
    background-size: 400px 400px;
    background-repeat: no-repeat;
    opacity: calc(1 * var(--pattern-opacity-3, 1));
    z-index: 6;
    transform-origin: var(--mouse-x) var(--mouse-y);
    transform: scale(var(--grid-scale));
    transition: all 0.8s ease-out;
}

/* Grid Movement */
.hero::after {
    transform: translate(
        calc(var(--mouse-x, 0) * 0.05px),
        calc(var(--mouse-y, 0) * 0.05px)
    );
    transition: transform 0.1s ease-out;
}

.hero-pattern-1 {
    transform: translate(
        calc(var(--mouse-x, 0) * -0.03px),
        calc(var(--mouse-y, 0) * -0.03px)
    );
    transition: transform 0.15s ease-out;
}

.hero-pattern-2 {
    transform: translate(
        calc(var(--mouse-x, 0) * 0.04px),
        calc(var(--mouse-y, 0) * 0.04px)
    );
    transition: transform 0.2s ease-out;
}

.hero .container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    z-index: 100;
    padding-top: calc(var(--spacing-unit) * 16);
}

.hero-logo {
    position: relative;
    display: block;
    width: 120px;
    height: auto;
    margin-bottom: calc(var(--spacing-unit) * 12);
    opacity: 1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
    z-index: 10;
}

.hero-content {
    width: 45%;
    padding-right: calc(var(--spacing-unit) * 8);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 100;
}

.hero-text {
    max-width: 480px;
}

.hero-text p {
    margin-bottom: calc(var(--spacing-unit) * 4);
}

/* Hero Images */
.hero-images {
    position: absolute;
    width: 55%;
    height: 400px;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-container {
    position: absolute;
    overflow: hidden;
    border-radius: calc(var(--spacing-unit) * 1);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                z-index 0s linear;
    cursor: pointer;
    box-shadow: var(--shadow-1);
    z-index: 1;
}

.image-container:hover {
    transform: scale(1.05) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    z-index: 9999;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-orientation: from-image;
}

.image-1 {
    width: 65%;
    aspect-ratio: 1;
    top: -2%;
    right: -10%;
    z-index: 3;
}

.image-2 {
    width: 55%;
    aspect-ratio: 4/3;
    top: 20%;
    right: 45%;
    z-index: 2;
}

.image-3 {
    width: 60%;
    aspect-ratio: 1;
    bottom: -50%;
    right: 20%;
    z-index: 1;
}

/* ==========================================================================
   Process Section
   ========================================================================== */
.process {
    background-color: #000000;
    padding: calc(var(--spacing-unit) * 12) 0;
    display: flex;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.process .container {
    max-width: none;
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    text-align: center;
}

.process h2, .process p {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.process h2 {
    color: white;
}

.process p {
    color: rgba(255, 255, 255, 0.8);
}

.process-cards {
    display: grid;
    gap: calc(var(--spacing-unit)* 2);
    padding: calc(var(--spacing-unit)* 16);
    width: 100%;
    margin: 0 auto;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
}

.process-cards::-webkit-scrollbar {
    display: none;
}

.process {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.process-card {
    background-color: #1a1a1a;
    color: white;
    padding: calc(var(--spacing-unit) * 12);
    border-radius: 8px;
    scroll-snap-align: center;
    height: 450px;
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.3s ease-out;
    transform-origin: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
}

.card-number {
    position: absolute;
    top: calc(var(--spacing-unit) * 6);
    right: calc(var(--spacing-unit) * 6);
    font-size: 3.5rem;
    font-weight: 700;
    opacity: 0.15;
    font-family: 'Playfair Display', serif;
    line-height: 1;
}

.process-card img {
    width: 10vw;
    height: 10vw;
    max-width: 200px;
    max-height: 200px;
    min-height: 150px;
    min-width: 150px;
    object-fit: contain;
    margin: calc(var(--spacing-unit) * 4) 0;
    opacity: 0.9;
    transition: all 0.3s ease-out;
}

.process-card:hover img {
    transform: scale(1.1);
    opacity: 1;
}

.process-card h3 {
    color: white;
    margin-bottom: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 8);
    font-size: 1.75rem;
    line-height: 1.3;
}

.process-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 1.1rem;
    max-width: 85%;
}

.process-card h3, .process-card p {
    text-align: left;
}

.process-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease-out;
    pointer-events: none;
    opacity: 0;
}

.process-card:hover::after {
    opacity: 1;
}

/* ==========================================================================
   Based Section
   ========================================================================== */
.based-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background-color: var(--surface-color);
}

.based-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../media/images/gabinete1B.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.based-section.visible .based-image {
    opacity: 1;
}

.based-section .container {
    position: relative;
    z-index: 2;
    height: 100vh;
    margin-top: 0;
    pointer-events: none;
}

/* Rolling Text Styles */
.rolling-text-container {
    position: absolute;
    bottom: auto;
    top: 30%;
    width: 100vw;
    overflow: hidden;
    padding: 3rem 0;
    z-index: 3;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, 
        rgba(0,0,0,0.5) 0%, 
        rgba(0,0,0,0) 10%, 
        rgba(0,0,0,0) 90%, 
        rgba(0,0,0,0.5) 100%
    );
}

.rolling-text {
    display: inline-flex;
    white-space: nowrap;
    will-change: transform;
    animation: roll 30s linear infinite;
}

.rolling-text h2 {
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-size: 4.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    box-sizing: border-box;
    margin-right: 2rem;
}

.rolling-text h2.second-phrase {
    margin-right: 0;
}

.mobile-based-content {
    display: none;
}

/* Mobile Based Section Styles */
@media (max-width: 768px) {
    .based-section {
        min-height: 100vh;
        position: relative;
        overflow: hidden;
        background-color: var(--surface-color);
    }

    .based-image {
        opacity: 1;
        transition: none;
    }

    .rolling-text-container {
        display: none;
    }

    .based-section .container {
        height: 100vh;
        display: flex;
        align-items: flex-start;
        padding-top: 30vh;
    }

    .mobile-based-content {
        position: relative;
        z-index: 3;
        padding: 2rem;
        color: #ffffff;
        text-align: center;
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 1s ease-out forwards;
        animation-delay: 0.5s;
        width: 100%;
    }

    .mobile-based-content h2 {
        font-size: 2.5rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        opacity: 0;
        animation: fadeInUp 1s ease-out forwards;
        animation-delay: 0.8s;
    }

    .mobile-based-content p {
        font-size: 1.2rem;
        line-height: 1.6;
        margin-bottom: 1rem;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        opacity: 0;
        animation: fadeInUp 1s ease-out forwards;
        animation-delay: 1.1s;
    }

    .mobile-based-content .cta-button {
        display: inline-block;
        margin-top: 2rem;
        padding: 1rem 2rem;
        background-color: rgba(255, 255, 255, 0.2);
        color: #ffffff;
        text-decoration: none;
        border-radius: 4px;
        font-weight: 500;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
        opacity: 0;
        animation: fadeInUp 1s ease-out forwards;
        animation-delay: 1.4s;
        transition: background-color 0.3s ease;
    }

    .mobile-based-content .cta-button:hover {
        background-color: rgba(255, 255, 255, 0.3);
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery-section {
    position: relative;
    background-color: var(--surface-color);
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.gallery-title {
    display: block;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 2rem auto;
    color: var(--primary-color);
    padding: 0 20px;
    width: 100%;
    line-height: 1.2;
}

.gallery-rows {
    display: flex;
    flex-direction: column;
    height: 1200px;
}

.gallery-row {
    height: 600px;
    position: relative;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    height: 100%;
    position: relative;
}

.gallery-item {
    flex: 0 0 400px;
    height: 100%;
    padding: 0.5rem;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* Desktop scroll animation */
@media (min-width: 769px) {

    .gallery-title {
        display: none;
    }
    .gallery-rows {
        display: flex;
    }
    
    .gallery-mobile-slider {
        display: none;
    }

    .gallery-row .gallery-track {
        transform: translateX(var(--scroll-offset, 0));
        transition: transform 0.1s ease-out;
    }

    .gallery-row.reverse .gallery-track {
        transform: translateX(var(--scroll-offset-reverse, 0));
    }
}

/* Mobile slider */
.gallery-mobile-slider {
    display: none;
    position: relative;
    height: 100%;
    overflow: hidden;
}

.gallery-mobile-slider .gallery-track {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.gallery-mobile-slider .gallery-item {
    flex: 0 0 100%;
    height: 100%;
}

.gallery-mobile-slider .gallery-item img {
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.dot.active {
    background: white;
}

/* Mobile layout */
@media (max-width: 768px) {
    .gallery-rows {
        display: none;
    }
    
    .gallery-mobile-slider {
        display: block;
    }

    .gallery-section {
        height: 85vh;
        padding: 0;
    }

    .rolling-text h2 {
        font-size: 3rem;
        margin-right: 1.5rem;
    }
    .rolling-text-container {
        top: 40%;
    }

    .about {
        padding-top: 30px;
    }

    .container-about {
        padding: 0 20px;
        height: auto;
    }

    .about-content {
        flex-direction: column;
    }

    .about-text {
        max-width: 100%;
        margin-bottom: 40px;
        padding-top: 20px;
    }

    .team-photos {
        position: relative;
        width: 100%;
        height: auto;
        padding: 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .photo-container {
        position: relative;
        width: 100%;
        height: auto;
        aspect-ratio: 3/4;
    }

    .hero {
        align-items: flex-end;
        min-height: 100vh;
        padding-bottom: calc(var(--spacing-unit) * 8);
    }

    .hero .container {
        flex-direction: column;
        align-items: center;
        padding-top: calc(var(--spacing-unit) * 0);
        justify-content: flex-end;
        height: 100%;
    }

    .hero-logo {
        width: 150px;
        margin: 0 auto calc(var(--spacing-unit) * 8);
    }

    .hero-content {
        order: 1;
        margin-bottom: calc(var(--spacing-unit) * 8);
        text-align: left;
    }

    .hero-images {
        order: 2;
        width: 100%;
        height: 400px;
        position: relative;
        margin-top: calc(var(--spacing-unit) * 4);
    }

    .image-container {
        position: absolute;
        width: 65%;
        margin-bottom: 0;
    }

    .image-1 {
        top: -2%;
        right: -10%;
        z-index: 3;
    }

    .image-2 {
        top: 20%;
        right: 45%;
        z-index: 2;
    }

    .image-3 {
        bottom: -50%;
        right: 20%;
        z-index: 1;
    }

    .hero-text p br {
        display: none;
    }

    /* Scroll Down Arrow and Text */
    .hero-images::after {
        content: '';
        position: absolute;
        bottom: -50px;
        left: 55%;
        width: 12px;
        height: 12px;
        border-right: 2px solid var(--primary-color);
        border-bottom: 2px solid var(--primary-color);
        transform: translateX(-55%) rotate(45deg) !important;
        animation: scrollDown 2s ease-in-out infinite;
    }

    /* Scroll Down Text */
    .hero-images::before {
        content: 'veja mais';
        position: absolute;
        bottom: -120px;
        left: 56%;
        transform: translateX(-55%);
        font-size: 0.8rem;
        color: var(--primary-color);
        font-weight: 500;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        animation: fadeInOut 2s ease-in-out infinite;
        text-align: center;
        white-space: nowrap;
    }

    .gallery-title {
        font-size: 2rem;
        margin: 1.5rem auto;
        padding: 0 15px;
    }
}

@media (max-width: 600px) {
    .hero-logo {
        width: 120px;
    }
    
    .logo.nav-logo {
        width: 100px;
    }

    .gallery-title {
        font-size: 1.75rem;
        margin: 1rem auto;
        padding: 0 10px;
    }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    position: relative;
    overflow: hidden;
    background-color: var(--surface-color);
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    padding-top: 40px;
}

.about::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1;
}

.container-about {
    position: relative;
    height: calc(100vh - 40px);
    padding: 0 40px;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.about-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.about-text {
    position: relative;
    max-width: 600px;
    z-index: 100;
    padding-top: 40px;
    margin-bottom: 60px;
}

.about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-style: italic;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.8);
    max-width: 500px;
}

.team-photos {
    width: 100%;
    height: calc(100% - 200px);
    z-index: 90;
    padding: 0;
}

.photo-container {
    position: absolute;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    background-color: #fff;
}

.photo-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.photo-container:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 100 !important;
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    image-orientation: from-image;
}

/* ==========================================================================
   Technology Section
   ========================================================================== */
.technology {
    padding: 0;
    background: linear-gradient(to bottom, 
        #000000 50%, 
        #1a1a1a 55%,
        #333333 60%,
        #666666 65%,
        #999999 70%,
        var(--surface-color) 75%
    );
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.materialization-container {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
}

.materialization-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    .technology {
        min-height: 80vh;
    }

    .materialization-container {
        height: 50vh;
    }
}

.back-image {
    background-image: url('../media/BIM/Enscape_B.png');
    z-index: 1;
}

.front-image {
    background-image: url('../media/BIM/Enscape_F.png');
    z-index: 2;
    clip-path: polygon(0 0, 100% 0, 100% var(--scroll-position, 0%), 0 var(--scroll-position, 0%));
    transition: clip-path 0.3s ease-out;
}

.transition-line {
    position: absolute;
    left: 0;
    top: var(--scroll-position, 0%);
    width: 100%;
    height: 2px;
    background-color: #bea16e;
    z-index: 300;
    transition: top 0.3s ease-out;
}

/* Info Points */
.info-points {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 400;
    pointer-events: none;
}

.info-point {
    position: absolute;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%);
    cursor: pointer !important;
    pointer-events: auto;
}

.info-point::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #bea16e;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.info-point::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid #bea16e;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
}

.info-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: calc(var(--spacing-unit) * 3);
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.4;
    width: max-content;
    max-width: 250px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease-out;
    left: 100%;
    margin-left: 10px;
}

.info-point:hover .info-tooltip {
    opacity: 1;
    transform: translateY(0);
}

/* Point Positions */
.info-point:nth-child(1) {
    top: 30%;
    left: 25%;
}

.info-point:nth-child(2) {
    top: 45%;
    left: 60%;
}

.info-point:nth-child(3) {
    top: 65%;
    left: 40%;
}

.technology .container {
    max-width: none;
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    text-align: center;
}

.technology h2, .technology p {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.technology h2 {
    color: white;
}

.technology p {
    color: rgba(255, 255, 255, 0.8);
}

.technology-cards {
    display: flex;
    gap: calc(var(--spacing-unit)* 2);
    padding: calc(var(--spacing-unit)* 16);
    width: 100%;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.technology-cards::-webkit-scrollbar {
    display: none;
}

.technology {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.technology-card {
    flex: 0 0 calc(25% - calc(var(--spacing-unit) * 4.5));
    background-color: #1a1a1a;
    color: white;
    padding: calc(var(--spacing-unit) * 12);
    border-radius: 8px;
    scroll-snap-align: center;
    height: 450px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.3s ease-out;
    transform-origin: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    min-width: 280px;
    max-width: 350px;
}

.technology-card img {
    width: 10vw;
    height: 10vw;
    max-width: 200px;
    max-height: 200px;
    min-height: 150px;
    min-width: 150px;
    object-fit: contain;
    margin: calc(var(--spacing-unit) * 4) 0;
    opacity: 0.9;
    transition: all 0.3s ease-out;
}

.technology-card:hover img {
    transform: scale(1.1);
    opacity: 1;
}

.technology-card h3 {
    color: white;
    margin-bottom: calc(var(--spacing-unit) * 2);
    margin-top: calc(var(--spacing-unit) * 8);
    font-size: 1.75rem;
    line-height: 1.3;
}

.technology-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 1.1rem;
    max-width: 85%;
}

.technology-card h3, .technology-card p {
    text-align: left;
}

.technology-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease-out;
    pointer-events: none;
    opacity: 0;
}

.technology-card:hover::after {
    opacity: 1;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(calc(var(--spacing-unit) * 5));
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes patternReveal {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes roll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 1rem));
    }
}

@keyframes exitLeft {
    to {
        transform: translateX(-100vw);
        opacity: 0;
    }
}

@keyframes exitRight {
    to {
        transform: translateX(100vw);
        opacity: 0;
    }
}

@keyframes exitTop {
    to {
        transform: translateY(-100vh);
        opacity: 0;
    }
}

@keyframes exitBottom {
    to {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* SVG Exit Animations */
.svg-container.exit-left {
    animation: exitLeft 1s ease-out forwards;
}

.svg-container.exit-right {
    animation: exitRight 1s ease-out forwards;
}

.svg-container.exit-top {
    animation: exitTop 1s ease-out forwards;
}

.svg-container.exit-bottom {
    animation: exitBottom 1s ease-out forwards;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

@keyframes scrollDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    50% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

@keyframes fadeInOut {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 1400px) {
    .process-cards {
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
    }
}

@media (max-width: 960px) {
    .process-cards {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    
    .process-card {
        max-width: 350px;
        margin: 0 auto;
    }

    /* Header & Navigation */
    .main-nav {
        padding: 0 calc(var(--spacing-unit) * 2);
    }

    .nav-links {
        gap: calc(var(--spacing-unit) * 4);
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .logo {
        height: 50px;
    }

    .logo img {
        max-height: 50px;
    }

    .logo.nav-logo {
        max-height: 60px;
    }

    .logo.nav-logo img {
        max-height: 60px;
    }

    /* Hero Section */
    .hero .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-content {
        width: 100%;
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .hero-images {
        width: 100%;
        height: 300px;
        margin-top: calc(var(--spacing-unit) * 8);
        opacity: 0.8;
        pointer-events: auto;
    }

    .image-1 {
        width: 50%;
        top: -5%;
        right: 0%;
    }

    .image-2 {
        width: 45%;
        top: 15%;
        right: 40%;
    }

    .image-3 {
        width: 48%;
        bottom: -5%;
        right: 15%;
    }

    /* Process Section */
    .process {
        padding: calc(var(--spacing-unit) * 12) 0;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-list {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 4);
        align-items: center;
    }

    .logo.hero-logo {
        width: 30px;
    }
    
    .logo.nav-logo {
        width: 8%;
    }

    .hero-logo {
        width: 100px;
        margin-bottom: calc(var(--spacing-unit) * 8);
    }
}

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

    .gallery-section {
        height: 85vh;
        padding: 0;
    }

    .rolling-text h2 {
        font-size: 3rem;
        margin-right: 1.5rem;
    }
    .rolling-text-container {
        top: 40%;
    }

    .about {
        padding-top: 30px;
    }

    .container-about {
        padding: 0 20px;
        height: auto;
    }

    .about-content {
        flex-direction: column;
    }

    .about-text {
        max-width: 100%;
        margin-bottom: 40px;
        padding-top: 20px;
    }

    .team-photos {
        position: relative;
        width: 100%;
        height: auto;
        padding: 0;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .photo-container {
        position: relative;
        width: 100%;
        height: auto;
        aspect-ratio: 3/4;
    }

    .technology {
        padding: calc(var(--spacing-unit) * 8) 0;
    }

    .technology-card {
        flex: 0 0 calc(100% - calc(var(--spacing-unit) * 4));
        min-width: 280px;
        max-width: 400px;
    }

    .hero-text p br {
        display: none;
    }
}

@media (max-width: 600px) {
    /* Typography */
    .mat-display-2 {
        font-size: 2.25rem;
    }

    .mat-display-1 {
        font-size: 1.75rem;
    }

    /* Header & Navigation */
    .main-header {
        height: calc(var(--header-height) * 1.5);
    }

    .main-nav {
        flex-direction: column;
        justify-content: center;
        gap: calc(var(--spacing-unit) * 4);
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    .logo {
        height: 45px;
    }

    .logo img {
        max-height: 45px;
    }

    .logo.nav-logo {
        max-height: 50px;
    }

    .logo.nav-logo img {
        max-height: 50px;
    }

    /* Section Base Styles */
    section {
        padding: calc(var(--spacing-unit) * 8) 0;
    }

    /* Hero Section */
    .hero {
        padding: calc(var(--spacing-unit) * 8) 0;
        align-items: flex-end;
    }

    .hero-text {
        max-width: 100%;
        text-align: left;
    }

    .hero-images {
        height: 250px;
        margin-top: calc(var(--spacing-unit) * 24);
        right: 6.5vw;
    }

    .image-1 {
        width: 60%;
        top: -2%;
        right: -5%;
    }

    .image-2 {
        width: 55%;
        top: 10%;
        right: 35%;
    }

    .image-3 {
        width: 58%;
        bottom: -2%;
        right: 10%;
    }

    /* Process Section */
    .process {
        padding: calc(var(--spacing-unit) * 8) 0;
    }

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

    .container {
        padding: 0 calc(var(--spacing-unit) * 4);
    }

    .logo.hero-logo {
        width: 25px;
    }
    
    .logo.nav-logo {
        width: 10%;
    }

    .rolling-text h2 {
        font-size: 2rem;
        margin-right: 1rem;
    }
    .rolling-text-container {
        top: 40%;
    }

    .team-photos {
        grid-template-columns: 1fr;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }

    .hero-logo {
        margin-bottom: calc(var(--spacing-unit) * 18);
    }

    .hero-text p br {
        display: none;
    }
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
.footer {
    background-color: var(--primary-color);
    padding: calc(var(--spacing-unit) * 8) 0;
    margin-top: calc(var(--spacing-unit) * 36);
    color: var(--surface-color);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 6);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    text-align: left;
    gap: calc(var(--spacing-unit) * 16);
}

.footer-logo {
    flex: 0 0 15%;
    margin-top: 0;
    margin-right: calc(var(--spacing-unit) * 8);
}

.footer-logo img {
    width: 100%;
    max-width: 150px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo:hover img {
    opacity: 1;
}

.footer-content {
    flex: 0 0 25%;
    display: flex;
    justify-content: flex-start;
    gap: calc(var(--spacing-unit) * 24);
    margin-top: 0;
}

.contact-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 6);
    margin-top: 0;
}

.contact-item {
    display: flex;
    gap: calc(var(--spacing-unit) * 3);
    color: var(--surface-color);
    opacity: 0.8;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

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

.contact-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.contact-text {
    font-size: 1rem;
    line-height: 1.5;
}

.footer-bottom {
    padding-top: calc(var(--spacing-unit) * 12);
    text-align: center;
    color: var(--surface-color);
    opacity: 0.6;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: calc(var(--spacing-unit) * 4);
    flex-wrap: wrap;
    padding: calc(var(--spacing-unit) * 8) calc(var(--spacing-unit) * 4);
}

.footer-bottom p {
    margin: 0;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: calc(var(--spacing-unit) * 12);
    }

    .footer-logo {
        flex: 0 0 auto;
        margin-right: 0;
    }

    .footer-content {
        flex: 0 0 auto;
        width: 80%;
        justify-content: center;
        gap: calc(var(--spacing-unit) * 12);
        margin-top: 0;
        margin-left: 0;
    }

    .contact-info {
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 2);
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
}

@media (max-width: 600px) {
    .footer-content {
        width: 100%;
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 6);
    }

    .footer-bottom {
        padding: calc(var(--spacing-unit) * 4) calc(var(--spacing-unit) * 2);
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   Sticky Navigation
   ========================================================================== */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1100;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    will-change: transform, opacity;
    isolation: isolate;
}

.sticky-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(234, 233, 232, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: -1;
}

.sticky-nav.visible {
    transform: translateY(0);
    opacity: 1;
}

.sticky-nav .container {
    height: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.sticky-nav .nav-content {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.sticky-nav .nav-logo {
    height: 50px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 3;
}

.sticky-nav .nav-logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.sticky-nav .nav-logo:hover img {
    opacity: 0.8;
}

.sticky-nav .nav-links {
    display: flex;
    gap: 40px;
    position: relative;
    z-index: 3;
}

.sticky-nav .nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    padding: 8px 0;
}

.sticky-nav .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
    z-index: -1;
}

.sticky-nav .nav-links a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .sticky-nav {
        height: 70px;
    }

    .sticky-nav .nav-logo {
        height: 40px;
    }

    .sticky-nav .nav-links {
        gap: 20px;
    }

    .sticky-nav .nav-links a {
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   Attribution
   ========================================================================== */
.attribution {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-size: 0.8rem;
    color: var(--surface-color);
    opacity: 0.7;
    transition: opacity 0.3s ease;
    text-align: right;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 4px;
    white-space: nowrap;
}

.attribution:hover {
    opacity: 1;
}

.attribution a {
    color: var(--surface-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.attribution a:hover {
    color: var(--background-color);
}

@media (max-width: 768px) {
    .attribution {
        bottom: 10px;
        right: 10px;
        font-size: 0.75rem;
        padding: 3px 6px;
    }
}

@media (max-width: 600px) {
    .attribution {
        font-size: 0.7rem;
        padding: 2px 4px;
    }
}

/* Trusted By Section */
.trusted-by {
    background-color: #1a1a1a;
    padding: 80px 0;
    overflow: hidden;
}

.trusted-by h2 {
    color: white;
    margin-bottom: 60px;
}

.logo-scroll {
    display: block;
    width: 100%;
    overflow: hidden;
}

.logo-track {
    display: flex;
    animation: scroll 60s linear infinite;
    gap: 40px;
}

.logo-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.logo-item img {
    height: 120px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.logo-item:hover img {
    filter: none;
}

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

/* Mobile Grid Layout */
.logo-grid {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    padding: 20px;
}

@media (max-width: 768px) {
    .logo-scroll {
        display: none;
    }
    
    .logo-grid {
        display: grid;
    }
    
    .logo-grid .logo-item {
        padding: 15px;
    }
    
    .logo-grid .logo-item img {
        height: 80px;
        width: auto;
    }
}
