:root {
    color-scheme: light;
    --primary-color: #2b2b2b;
    --accent-color: #4a90e2;
    /* Subtle accent, can be changed */
    --bg-color: #ffffff;
    --bg-alt: #f8f9fa;
    --text-color: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --spacing-unit: 1rem;
    --container-width: 1200px;

    /* Liquid Menu Variables */
    --c-glass: #bbbbbc;
    --c-light: #fff;
    --c-dark: #000;
    --c-content: #224;
    --c-action: #0052f5;
    --glass-reflex-dark: 100%;
    --glass-reflex-light: 1;
    --saturation: 150%;
    --fz: 16px;
    /* Font size for menu */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: #ffffff;
    /* We will animate position-x in JS */
    background-attachment: fixed;
    /* Keeps it filling screen, we move it manually or let it sit? User wants "moves left" */
    /* If we want to move it LEFT on scroll, we need JS to update background-position-x */
    line-height: 1.6;
    overflow-x: clip;
    overflow-y: visible;
}

/* Glassmorphism Utility */
.glass-panel {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    border-radius: 16px;
    padding: 40px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: var(--primary-color);
}

/* Header */
/* Disable old header styles that conflict or are redundant */
.header {
    /* Using new floating menu instead */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    pointer-events: none;
    /* Let clicks pass through, enable for children */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding-top: 20px;
    /* Space for the floating menu */
    pointer-events: auto;
    /* Re-enable for logo/btn */
}

/* Images - Global Responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav {
    display: none;
    /* Hide old nav */
}

/* Liquid Switcher Menu Styles */
.switcher {
    position: fixed;
    z-index: 2000;
    top: 20px;
    left: 50%;
    translate: -50%;
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
    /* Auto width to fit text */
    min-width: 600px;
    /* Increased for text */
    height: 60px;
    box-sizing: border-box;
    padding: 4px;
    margin: 0 auto;
    display: flex;
    border: none;
    border-radius: 8px;
    font-size: var(--fz);
    font-family: var(--font-heading);
    background-color: rgba(255, 255, 255, 0.8);
    /* Fallback */
    background-color: color-mix(in srgb, var(--c-glass) 12%, transparent);
    backdrop-filter: blur(8px) url(#switcher) saturate(var(--saturation));
    -webkit-backdrop-filter: blur(8px) saturate(var(--saturation));
    box-shadow: inset 0 0 0 1px color-mix(in srgb,
            var(--c-light) calc(var(--glass-reflex-light) * 10%),
            transparent),
        inset 1.8px 3px 0px -2px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 90%), transparent),
        inset -2px -2px 0px -2px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 80%), transparent),
        inset -3px -8px 1px -6px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 60%), transparent),
        inset -0.3px -1px 4px 0px color-mix(in srgb,
            var(--c-dark) calc(var(--glass-reflex-dark) * 12%),
            transparent),
        inset -1.5px 2.5px 0px -2px color-mix(in srgb,
            var(--c-dark) calc(var(--glass-reflex-dark) * 20%),
            transparent),
        inset 0px 3px 4px -2px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 20%), transparent),
        inset 2px -6.5px 1px -4px color-mix(in srgb,
            var(--c-dark) calc(var(--glass-reflex-dark) * 10%),
            transparent),
        0px 1px 5px 0px color-mix(in srgb,
            var(--c-dark) calc(var(--glass-reflex-dark) * 10%),
            transparent),
        0px 6px 16px 0px color-mix(in srgb,
            var(--c-dark) calc(var(--glass-reflex-dark) * 8%),
            transparent);
    transition: background-color 400ms cubic-bezier(1, 0, 0.4, 1),
        box-shadow 400ms cubic-bezier(1, 0, 0.4, 1);
}

.switcher__legend {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    white-space: nowrap;
    clip-path: inset(100%);
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.switcher__input {
    clip: rect(0 0 0 0);
    clip-path: inset(100%);
    height: 1px;
    width: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
}

.switcher__icon {
    display: block;
    width: 100%;
    transition: scale 200ms cubic-bezier(0.5, 0, 0, 1);
}

/* Use generic span for text instead of icon */
.switcher__text {
    display: block;
    z-index: 2;
    position: relative;
    font-weight: 600;
    white-space: nowrap;
    transition: scale 200ms cubic-bezier(0.5, 0, 0, 1);
}

.switcher__filter {
    position: absolute;
    width: 0;
    height: 0;
    z-index: -1;
}

.switcher__option {
    --c: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 16px;
    flex: 1;
    /* Distribute space */
    height: 100%;
    box-sizing: border-box;
    border-radius: 8px;
    opacity: 1;
    transition: all 160ms;
    position: relative;
    cursor: pointer;
}

.switcher__option:hover {
    --c: var(--c-action);
}

.switcher__option:hover .switcher__text {
    scale: 1.1;
    color: var(--primary-color);
}

.switcher__option:has(input:checked) {
    --c: var(--c-content);
    cursor: default;
}

.switcher__option:has(input:checked) .switcher__text {
    scale: 1;
    color: #fff;
    /* Active text color usually white if bubble is dark? Example uses body vars. Let's assume white on bubble. */
    /* Wait, the bubble color in example is semi-transparent glass. */
}


/* Hide CSS-only bubble, using JS-controlled one instead */
.switcher::after {
    display: none;
}

/* JS-controlled bubble */
.switcher__bubble {
    position: absolute;
    top: 4px;
    height: calc(100% - 8px);
    border-radius: 8px;
    background-color: var(--primary-color);
    z-index: 0;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px color-mix(in srgb,
            var(--c-light) calc(var(--glass-reflex-light) * 10%),
            transparent),
        inset 2px 1px 0px -1px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 90%), transparent),
        inset -1.5px -1px 0px -1px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 80%), transparent),
        inset -2px -6px 1px -5px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 60%), transparent),
        inset -1px 2px 3px -1px color-mix(in srgb,
            var(--c-dark) calc(var(--glass-reflex-dark) * 20%),
            transparent),
        inset 0px -4px 1px -2px color-mix(in srgb,
            var(--c-dark) calc(var(--glass-reflex-dark) * 10%),
            transparent),
        0px 3px 6px 0px color-mix(in srgb,
            var(--c-dark) calc(var(--glass-reflex-dark) * 8%),
            transparent);
    transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}


.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-heading);
    border: none;
    background-color: color-mix(in srgb, var(--c-glass) 12%, transparent);
    backdrop-filter: blur(8px) url(#switcher) saturate(var(--saturation));
    -webkit-backdrop-filter: blur(8px) saturate(var(--saturation));
    box-shadow: inset 0 0 0 1px color-mix(in srgb,
            var(--c-light) calc(var(--glass-reflex-light) * 10%),
            transparent),
        inset 1.8px 3px 0px -2px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 90%), transparent),
        inset -2px -2px 0px -2px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 80%), transparent),
        inset -3px -8px 1px -6px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 60%), transparent),
        inset -0.3px -1px 4px 0px color-mix(in srgb,
            var(--c-dark) calc(var(--glass-reflex-dark) * 12%),
            transparent),
        inset -1.5px 2.5px 0px -2px color-mix(in srgb,
            var(--c-dark) calc(var(--glass-reflex-dark) * 20%),
            transparent),
        inset 0px 3px 4px -2px color-mix(in srgb, var(--c-dark) calc(var(--glass-reflex-dark) * 20%), transparent),
        inset 2px -6.5px 1px -4px color-mix(in srgb,
            var(--c-dark) calc(var(--glass-reflex-dark) * 10%),
            transparent),
        0px 1px 5px 0px color-mix(in srgb,
            var(--c-dark) calc(var(--glass-reflex-dark) * 10%),
            transparent),
        0px 6px 16px 0px color-mix(in srgb,
            var(--c-dark) calc(var(--glass-reflex-dark) * 8%),
            transparent);
    transition: background-color 400ms cubic-bezier(1, 0, 0.4, 1),
        box-shadow 400ms cubic-bezier(1, 0, 0.4, 1);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary {
    color: var(--primary-color);
}

.btn-secondary {
    color: var(--primary-color);
}

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: inset 0 0 0 1px color-mix(in srgb,
            var(--c-light) calc(var(--glass-reflex-light) * 10%),
            transparent),
        inset 2px 1px 0px -1px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 90%), transparent),
        inset -1.5px -1px 0px -1px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 80%), transparent),
        inset -2px -6px 1px -5px color-mix(in srgb, var(--c-light) calc(var(--glass-reflex-light) * 60%), transparent),
        inset -1px 2px 3px -1px color-mix(in srgb,
            var(--c-dark) calc(var(--glass-reflex-dark) * 20%),
            transparent),
        inset 0px -4px 1px -2px color-mix(in srgb,
            var(--c-dark) calc(var(--glass-reflex-dark) * 10%),
            transparent),
        0px 3px 6px 0px color-mix(in srgb,
            var(--c-dark) calc(var(--glass-reflex-dark) * 8%),
            transparent);
    transform: scale(1.02);
}

/* Hero */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 100px 20px 0;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

/* Hero Background Layer - compact spacing */
.hero-bg-layers {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 5% 20px;
    z-index: 1;
}

.hero-bg-img {
    width: 70vw;
    max-width: 900px;
    height: auto;
    opacity: 0.85;
    filter: none;
}

.or-spacer {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 60px;
    position: relative;
}

.about .or-spacer {
    margin-top: 100px;
}

.or-spacer .mask {
    overflow: hidden;
    height: 20px;
}

.or-spacer .mask::after {
    content: '';
    display: block;
    margin: -25px auto 0;
    width: 100%;
    height: 25px;
    border-radius: 125px / 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.or-spacer span {
    position: absolute;
    bottom: 100%;
    margin-bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    height: 50px;
    width: auto;
    min-width: 50px;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.or-spacer span i {
    position: relative;
    padding: 4px 20px;
    border-radius: 8px;
    border: 1px dashed rgba(43, 43, 43, 0.4);
    text-align: center;
    line-height: 20px;
    font-style: normal;
    color: #2b2b2b;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 1.5rem;
    letter-spacing: 1px;
    white-space: nowrap;
    display: block;
    width: 100%;
}

/* Vertical variations */
.or-spacer-vertical {
    display: inline-block;
    position: relative;
    margin: 40px;
}

.or-spacer-vertical .mask {
    overflow: hidden;
    width: 20px;
    height: 200px;
}

.or-spacer-vertical.left .mask:after {
    content: '';
    display: block;
    margin-left: -20px;
    width: 20px;
    height: 100%;
    border-radius: 12px / 125px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}

.or-spacer-vertical.right .mask:before {
    content: '';
    display: block;
    margin-left: 20px;
    width: 20px;
    height: 100%;
    border-radius: 12px / 125px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}

.hero-bg-1 {
    transform: rotate(-5deg);
}

.hero-bg-2 {
    transform: none;
}

/* Hero Content Layer - minimal spacing below background */
.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 25px 20px 40px;
}

.hero-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-bottom: 40px;
    margin-top: 0;
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 10;
}

.hero-branding__logo {
    position: relative;
    /* For welding canvas overlay */
}

.hero-branding__logo svg {
    width: 300px;
    max-width: 100%;
    height: auto;
    display: block;
}

.hero-branding__text h1 {
    display: flex;
    flex-direction: column;
    font-family: var(--font-heading);
    font-size: 3.2rem;
    line-height: 0.95;
    font-weight: 950;
    /* Ultra thick like screenshot */
    color: #2b2b2b;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    text-align: left;
}

/* Stagger text to follow triangle contour on desktop */
@media (min-width: 769px) {
    .hero-branding__text h1 {
        align-items: flex-start;
        margin-top: -25px;
        /* Pull text up to align better with logo peak */
    }

    .hero-branding__text h1 span:nth-child(1) {
        margin-left: -110px;
    }

    .hero-branding__text h1 span:nth-child(2) {
        margin-left: -70px;
    }

    .hero-branding__text h1 span:nth-child(3) {
        margin-left: -30px;
    }

    .hero-branding__text h1 span:nth-child(4) {
        margin-left: 10px;
    }
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* About Production Section */
.about {
    background-color: #fff;
    position: relative;
    z-index: 1;
    padding-top: 0;
    position: relative;
    overflow: hidden;
}

.about-bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, #ffffff, rgba(255, 255, 255, 0));
    z-index: 0;
    pointer-events: none;
}

.about::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, #ffffff, rgba(255, 255, 255, 0));
    z-index: 0;
    pointer-events: none;
}

.about .container {
    position: relative;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.about-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    background: transparent;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 30px;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 220px;
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-item:hover {
    transform: translateY(-5px);
}

.about-item__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2b2b2b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 10px;
}

.about-item__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

.about-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    margin: 0;
}

.about-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.about-link:hover {
    text-decoration: underline;
}

.about-footer {
    text-align: center;
    padding-top: 20px;
}

.entity-info {
    font-size: 1.15rem;
    color: #2b2b2b;
    background: rgba(255, 255, 255, 0.6);
    padding: 15px 30px;
    border-radius: 8px;
    display: inline-block;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Services */
.services {
    background-color: #fff;
    position: relative;
    z-index: 1;
    height: 500vh;
}

.services .container {
    height: 100%;
}

.services-sticky-content {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.cards-wrapper {
    position: relative;
    max-width: 60em;
    margin: 100px auto 50px;
}

.cards {
    position: relative;
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 500px;
    /* Decreased height */
}

.cards-pagination {
    position: absolute;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 20;
}

.cards-pagination__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cards-pagination__dot:hover {
    background: #ccc;
}

.cards-pagination__dot--active {
    background: var(--primary-color);
    transform: scale(1.4);
    box-shadow: 0 0 0 4px rgba(43, 43, 43, 0.1);
}

.card {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;

    background: #fff;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(0) rotate(4deg) translateX(25px) scale(1);
    transform-origin: 0 0;

    transition: transform 0.6s cubic-bezier(.8, .2, .1, 0.8) 0.1s,
        background 0.4s linear;

    cursor: pointer;
    user-select: none;

    width: 100%;
    height: 100%;
    box-sizing: border-box;

    display: flex;
    /* Flex for 2 columns */
    gap: 40px;
    align-items: center;
}

.card-content {
    flex: 1;
}

.card-image {
    flex: 1;
    height: 100%;
    min-height: 300px;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    /* box-shadow removed for pure white */
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    display: block;
}

.card:last-child {
    margin-bottom: 0;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--primary-color);
}

.card p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-light);
}

.card--next {
    z-index: 5;
    transform: translateY(-25px) rotate(4deg) translateX(25px) scale(1);
}

.card--out {
    animation: card-out 0.6s cubic-bezier(.8, .2, .1, 0.8);
    transform: translateY(-50px) rotate(8deg) translateX(55px) scale(0.95);
    z-index: 1;
    background: #f9f9f9;
}

@keyframes card-out {
    0% {
        z-index: 20;
        transform: translateY(0px) rotate(-4deg);
    }

    50% {
        transform: translateY(-120%) rotate(-5deg) translateX(-40px);
    }

    80% {
        z-index: 1;
    }

    100% {
        transform: translateY(-50px) rotate(8deg) translateX(55px) scale(0.95);
    }
}

.card--current {
    cursor: auto;
    user-select: auto;
    position: relative;
    z-index: 10;
    opacity: 1;
    background: #fff;
    transform: rotate(-1deg) translateX(0%) scale(1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Works Slider 3D */
.works-slider-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: calc(100% + 40px);
    margin-left: -20px;
    padding: 40px 20px;
    height: 500px;
    overflow: visible;
    position: relative;
}

/* Slider Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slider-arrow:hover {
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow--prev {
    left: 20px;
}

.slider-arrow--next {
    right: 20px;
}

.works-slider {
    /* Local overrides */
    --hover-intensity: 15rem;
    --hover-smoothness: 70ms;
    --fall-smoothness: 250ms;
    --perspective: 2000px;
    /* Smooth transition for arrow navigation */
    transition: transform 0.5s ease;

    /* Region calc */
    --r: calc(var(--max-z) * (var(--p) - 1) + var(--z));
    --r-n: calc((var(--r) - 1) / (var(--max-z) * var(--max-p) - 1));

    block-size: min(80%, 100%);
    inline-size: min(100%, 100%);

    display: flex;
    align-items: flex-end;
    position: relative;
    perspective: var(--perspective);
    transform-style: preserve-3d;
    --dir: 0deg;
}

/* Mobile slider styles moved to the mobile media query section at the end of file */

.works-slider__item {
    flex: 1;
    block-size: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: inherit;
    font-size: 1rem;
    cursor: pointer;
    transform-style: preserve-3d;

    --ts: calc(var(--hover-smoothness) * var(--falloff) + var(--fall-smoothness) * (1 - var(--falloff)));
    --fs: calc(.1s * var(--falloff) + .8s * (1 - var(--falloff)));

    transition:
        scale var(--op, .15s),
        filter var(--fs),
        transform var(--ts, var(--fall-smoothness)),
        flex .3s;
}

.works-slider__item {
    --p-n: calc(var(--i) / (var(--max-p) - 1));
    --diff: calc(var(--p-n) - var(--r-n));
    --u: calc(abs(var(--diff)) / var(--w));

    --w: .4;
    --falloff: clamp(calc(0.5 * (1 + cos(min(var(--u), 1) * 180deg))), 0, 1);
    --tilt: calc(clamp(-1, var(--diff) * 5, 1) * var(--falloff) * 70deg);

    transform:
        translateZ(calc(var(--falloff) * var(--hover-intensity))) rotateY(calc(var(--tilt) * cos(var(--dir)))) rotateX(calc(var(--tilt) * sin(var(--dir))));

    filter:
        brightness(max(.5, var(--falloff) * 1.2)) saturate(var(--falloff));
}

/* Show only 12 items at a time on desktop */
.works-slider__item:nth-child(n+13) {
    display: none;
}

/* Smooth sliding animation when arrows clicked */
.works-slider.sliding .works-slider__item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.works-slider__img {
    background: var(--img);
    background-color: #fff3;
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    margin-inline: 0.05em;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.works-slider__hover-zone {
    position: absolute;
    inset: 0;
    inset-inline: -3px;
    display: flex;
    z-index: 999;
}

.works-slider__hover-zone>i {
    flex: 1;
    transition: .3s;
}

/* Logic for Hover State (Item Detection) */
.works-slider:has(.works-slider__item:nth-child(1):hover) {
    --p: 1;
}

.works-slider:has(.works-slider__item:nth-child(2):hover) {
    --p: 2;
}

.works-slider:has(.works-slider__item:nth-child(3):hover) {
    --p: 3;
}

.works-slider:has(.works-slider__item:nth-child(4):hover) {
    --p: 4;
}

.works-slider:has(.works-slider__item:nth-child(5):hover) {
    --p: 5;
}

.works-slider:has(.works-slider__item:nth-child(6):hover) {
    --p: 6;
}

.works-slider:has(.works-slider__item:nth-child(7):hover) {
    --p: 7;
}

.works-slider:has(.works-slider__item:nth-child(8):hover) {
    --p: 8;
}

.works-slider:has(.works-slider__item:nth-child(9):hover) {
    --p: 9;
}

.works-slider:has(.works-slider__item:nth-child(10):hover) {
    --p: 10;
}

.works-slider:has(.works-slider__item:nth-child(11):hover) {
    --p: 11;
}

.works-slider:has(.works-slider__item:nth-child(12):hover) {
    --p: 12;
}

.works-slider:has(.works-slider__item:nth-child(13):hover) {
    --p: 13;
}

.works-slider:has(.works-slider__item:nth-child(14):hover) {
    --p: 14;
}

.works-slider:has(.works-slider__item:nth-child(15):hover) {
    --p: 15;
}

.works-slider:has(.works-slider__item:nth-child(16):hover) {
    --p: 16;
}

.works-slider:has(.works-slider__item:nth-child(17):hover) {
    --p: 17;
}

.works-slider:has(.works-slider__item:nth-child(18):hover) {
    --p: 18;
}

.works-slider:has(.works-slider__item:nth-child(19):hover) {
    --p: 19;
}

.works-slider:has(.works-slider__item:nth-child(20):hover) {
    --p: 20;
}

.works-slider:has(.works-slider__item:nth-child(21):hover) {
    --p: 21;
}

.works-slider:has(.works-slider__item:nth-child(22):hover) {
    --p: 22;
}

.works-slider:has(.works-slider__item:nth-child(23):hover) {
    --p: 23;
}

.works-slider:has(.works-slider__item:nth-child(24):hover) {
    --p: 24;
}

.works-slider:has(.works-slider__item:nth-child(25):hover) {
    --p: 25;
}

.works-slider:has(.works-slider__item:nth-child(26):hover) {
    --p: 26;
}

.works-slider:has(.works-slider__item:nth-child(27):hover) {
    --p: 27;
}

.works-slider:has(.works-slider__item:nth-child(28):hover) {
    --p: 28;
}

/* Logic for Zone Detection */
.works-slider:has(.works-slider__hover-zone i:nth-child(1):hover) {
    --z: 1;
}

.works-slider:has(.works-slider__hover-zone i:nth-child(2):hover) {
    --z: 2;
}

.works-slider:has(.works-slider__hover-zone i:nth-child(3):hover) {
    --z: 3;
}

.works-slider:has(.works-slider__hover-zone i:nth-child(4):hover) {
    --z: 4;
}

.works-slider:has(.works-slider__hover-zone i:nth-child(5):hover) {
    --z: 5;
}

.works-slider:has(.works-slider__hover-zone i:nth-child(6):hover) {
    --z: 6;
}

.works-slider:has(.works-slider__hover-zone i:nth-child(7):hover) {
    --z: 7;
}

.works-slider:has(.works-slider__hover-zone i:nth-child(8):hover) {
    --z: 8;
}

.works-slider:has(.works-slider__hover-zone i:nth-child(9):hover) {
    --z: 9;
}

/* Focus State */
.works-slider:has(.works-slider__item:hover),
.works-slider:has(.works-slider__item:focus-visible) {
    --active: 1;
}

.works-slider .works-slider__item:hover,
.works-slider .works-slider__item:focus-visible {
    flex: 3;
    /* Expand hovered item */
    z-index: 100;
}

/* Contact */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: space-between;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.contact-item {
    margin-bottom: 30px;
}

.contact-label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-address {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

/* Contact Buttons - Glass Style */
.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    border: none;

    /* Glass Effect Base */
    background-color: color-mix(in srgb, var(--c-glass) 12%, transparent);
    backdrop-filter: blur(8px) url(#switcher) saturate(var(--saturation));
    -webkit-backdrop-filter: blur(8px) saturate(var(--saturation));

    /* Complex Shadow Stack (from .btn) */
    /* Simplified robust shadow - Softer and Shifted */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 6px rgba(0, 0, 0, 0.1);

    transition: background-color 400ms cubic-bezier(1, 0, 0.4, 1),
        box-shadow 400ms cubic-bezier(1, 0, 0.4, 1),
        transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.contact-btn:hover {
    transform: scale(1.02);
    color: #fff;
    /* Hover Shadow Stack */
    /* Simplified hover shadow */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.contact-btn:active {
    transform: scale(0.98);
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Phone Button - Transparent Orange Tint */
.phone-btn {
    background-color: color-mix(in srgb, var(--primary-color) 15%, transparent);
    color: var(--primary-color);
}

.phone-btn:hover {
    background-color: var(--primary-color);
}

/* Telegram Personal Button - Transparent Blue Tint */
.telegram-personal-btn {
    background-color: color-mix(in srgb, #0088cc 15%, transparent);
    color: #0088cc;
}

.telegram-personal-btn:hover {
    background-color: #0088cc;
}

/* Telegram Channel Button - Transparent Light Blue Tint */
.telegram-channel-btn {
    background-color: color-mix(in srgb, #2da5e0 15%, transparent);
    color: #2da5e0;
}

.telegram-channel-btn:hover {
    background-color: #2da5e0;
}

.contact-map {
    flex: 1;
    min-width: 300px;
    height: 400px;
    background-color: #eee;
    border-radius: 12px;
    overflow: hidden;
    /* Ensure rounded corners clip the iframe */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 6px rgba(0, 0, 0, 0.1);
}

.map-placeholder {
    display: none;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.company-details {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    color: #777;
    line-height: 1.6;
}

.company-details p {
    margin: 4px 0;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {

    /* General */
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    /* Hero */
    .hero-content {
        padding-top: 180px;
    }

    .hero-branding {
        align-items: center;
        gap: 35px;
        margin-top: 30px;
    }

    .hero-branding__logo svg {
        max-width: 200px;
    }

    .hero-branding__text h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    /* Tablet */
    .hero-bg-layers {
        padding: 80px 4% 15px;
    }

    .hero-bg-img {
        width: 65vw;
        max-width: 700px;
    }

    .hero-content {
        padding: 20px 20px 50px;
    }

    .hero-branding {
        gap: 40px;
    }

    /* About */
    .about-text {
        padding: 30px;
        max-width: 700px;
    }

    .about-text p {
        font-size: 1rem;
    }

    .features-list {
        gap: 25px;
    }

    /* Services */
    .services-grid {
        gap: 20px;
    }

    .service-card {
        padding: 30px;
    }

    .service-title {
        font-size: 1.3rem;
    }

    /* Contact */
    .contact-wrapper {
        gap: 30px;
    }

    .contact-info {
        padding: 30px;
    }

    .contact-map {
        height: 350px;
    }

    /* Footer */
    .footer {
        padding: 30px 0;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .header {
        display: none;
    }

    html,
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Mobile Media Queries */
    /* Hero */
    /* Mobile */
    /* Hero */
    /* Mobile */
    .hero-bg-layers {
        padding: 20px 0 0;
        /* Reduced to bring image closer to menu */
        position: relative;
        width: 100%;
        height: auto;
        z-index: 1;
        overflow: visible;
    }

    .hero-bg-img {
        width: 100vw;
        max-width: none;
        transform: scale(1.3);
        margin-bottom: -15px;
        /* Pull text closer to image */
        object-fit: contain;
        height: auto;
    }

    .hero-content {
        padding: 0 10px 40px;
        margin-top: 0;
        position: relative;
        z-index: 2;
    }

    .hero-branding {
        flex-direction: column;
        gap: 20px;
        /* Tighter gap */
        margin-top: 0;
        margin-bottom: 30px;
        align-items: center;
        /* Center content horizontally */
    }

    .hero-branding__text h1 {
        line-height: 1.0;
        letter-spacing: -0.8px;
        text-align: center;
        /* Center text */
        align-items: center;
    }

    .hero-branding__text h1 span {
        margin-bottom: 0px !important;
        display: block;
        margin-left: 0 !important;
        /* Ensure no staggering on mobile */
    }

    .hero {
        padding: 40px 20px 0;
        justify-content: flex-start;
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: #fff;
        /* Ensure solid background to cover start of canvas if needed */
        position: relative;
        z-index: 2;
    }

    .about {
        padding-top: 0;
        position: relative;
        z-index: 1;
        overflow: hidden;
    }

    /* Make canvas absolute (like desktop) instead of fixed so it stays in About */
    .about-bg-canvas {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
    }


    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }


    .switcher {
        min-width: unset;
        width: calc(100% - 20px);
        max-width: 340px;
        height: 48px;
        font-size: 12px;
        padding: 5px 6px 7px;
        gap: 2px;
        top: 10px;
    }

    .switcher__option {
        padding: 0 8px;
    }

    .switcher__text {
        font-size: 12px;
        white-space: nowrap;
    }

    /* General - Mobile */
    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }

    /* About - Mobile */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .about-item {
        padding: 20px;
    }

    .entity-info {
        font-size: 1rem;
        padding: 12px 20px;
    }

    .features-list {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    /* Services - Mobile */
    /* Services - Mobile */
    .services {
        height: 100dvh;
        min-height: 100dvh;
        padding: 0;
        background-color: #fff;
        overflow: hidden;
        /* Prevent internal scroll, we will lock body */
        scroll-snap-align: start;
    }

    .services .container {
        height: 100%;
        padding: 0;
        max-width: none;
        width: 100%;
        overflow: visible;
    }

    .services-sticky-content {
        height: 100lvh;
        justify-content: center;
        display: flex;
        flex-direction: column;
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        overflow: visible;
        z-index: 10;
        background: #fff;
    }

    .cards-wrapper {
        margin: 20px auto;
        width: 90%;
        max-width: none;
        position: relative;
    }

    .cards {
        height: 60vh;
        min-height: 500px;
    }

    .card {
        flex-direction: column-reverse;
        padding: 20px;
        gap: 20px;
        border-radius: 20px;
        overflow: hidden;
        /* Ensure rounded corners */
    }

    .card-content {
        text-align: center;
        flex: 0 0 auto;
    }

    .card h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .card p {
        font-size: 0.85rem;
        display: block;
        height: 140px;
        overflow-y: auto;
        padding-right: 10px;
        margin-right: -5px;
        /* Custom Scrollbar for better UX */
        scrollbar-width: thin;
        scrollbar-color: #ccc transparent;
    }

    .card p::-webkit-scrollbar {
        width: 4px;
    }

    .card p::-webkit-scrollbar-thumb {
        background-color: #ccc;
        border-radius: 4px;
    }

    .card-image {
        width: 100%;
        height: 200px;
        min-height: 150px;
        flex: 1;
        background: #ffffff;
        box-shadow: none;
    }

    .cards-pagination {
        right: 0;
        left: 0;
        top: -50px;
        bottom: auto;
        transform: none;
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }

    .card--out {
        animation-name: card-out-mobile;
    }

    @keyframes card-out-mobile {
        0% {
            z-index: 20;
            transform: translateY(0px) rotate(-1deg);
        }

        50% {
            transform: translateX(-150%) rotate(-15deg);
        }

        80% {
            z-index: 1;
        }

        100% {
            transform: translateY(-50px) rotate(8deg) translateX(55px) scale(0.95);
        }
    }

    .service-card {
        padding: 25px;
    }

    .service-icon {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }

    .service-title {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    .service-desc {
        font-size: 0.9rem;
    }

    /* Works - Mobile */
    #works.section {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        min-height: 500px !important;
        overflow: visible !important;
        padding-top: 40px;
        padding-bottom: 40px;
        /* Ensure it appears above the canvas background */
        position: relative !important;
        z-index: 10 !important;
        background-color: #fff !important;
    }

    #works .or-spacer {
        margin-bottom: 60px !important;
        /* Increased margin to prevent overlap */
    }

    #works .or-spacer .mask::after,
    #works .or-spacer .mask:after {
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.4) !important;
    }

    /* Give some space above the separator for shadow visibility */
    #works .container {
        padding-top: 20px;
    }

    .works-slider-wrapper {
        padding: 0;
        /* Reset padding */
        height: auto;
        /* Auto height for grid */
        min-height: 0;
        /* Remove stiff min-height */
        overflow: visible;
        width: 100%;
        margin-left: 0;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        margin-top: 100px !important;
        /* Force large space to fix overlap */
    }

    .works-slider {
        /* Mobile Horizontal Scroll Layout */
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        /* Removed scroll-snap for pure smooth scrolling */
        gap: 20px;
        /* Comfortable gap */
        width: 100%;
        padding: 0 20px 20px 20px;
        /* Padding to allow card edges to be seen */
        margin-bottom: 20px;
        /* Hide scrollbar */
        scrollbar-width: none;
        -ms-overflow-style: none;
        perspective: none !important;
        transform-style: flat !important;
        height: auto !important;
    }

    .works-slider::-webkit-scrollbar {
        display: none;
    }

    .works-slider__item {
        /* Card styling for scroll */
        flex: 0 0 80%;
        /* Show 80% of card width to encourage scroll */
        max-width: 320px;
        /* Don't get too huge */
        width: 80% !important;
        height: 450px !important;
        /* Good vertical height */
        transform: none !important;
        inset: auto !important;
        margin: 0 !important;
        opacity: 1 !important;
        filter: none !important;
        display: block !important;
        /* Removed scroll-snap-align */
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    /* Enable all items */
    .works-slider__item:nth-child(n+5) {
        display: block !important;
    }

    /* Hide dots as we use native scroll */
    .slider-dots {
        display: none !important;
    }

    .slider-dot {
        width: 8px;
        height: 8px;
        background: #ddd;
        border-radius: 50%;
        transition: all 0.3s;
    }

    .slider-dot.active {
        background: #444;
        transform: scale(1.3);
    }

    .works-slider__img {
        position: absolute;
        inset: 0;
        background-size: cover !important;
        background-position: center !important;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }

    .works-slider__hover-zone {
        display: none !important;
    }

    /* Hide arrows on mobile */
    .slider-arrow {
        display: none !important;
    }

    .contact-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .contact-info {
        padding: 25px;
        min-width: unset;
    }

    .contact-item {
        margin-bottom: 20px;
    }

    .contact-label {
        font-size: 1rem;
    }

    .contact-item p {
        font-size: 1rem;
    }

    .contact-map {
        height: 280px;
        min-width: unset;
    }

    /* Footer - Mobile */
    .footer {
        padding: 25px 0;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 0 15px;
    }

    .hero-branding__text h1 {
        font-size: 1.5rem;
    }

    .switcher {
        min-width: unset;
        width: auto;
        max-width: calc(100vw - 20px);
        font-size: 9px;
        height: 36px;
        padding: 3px 4px 4px;
        gap: 1px;
    }

    .switcher__option {
        padding: 0 5px;
    }

    .switcher__text {
        font-size: 9px;
    }
}

/* ============================================
   DESKTOP: Unified Section Spacing (40-60px)
   ============================================ */
@media (min-width: 769px) {

    /* Base section padding reduced */
    .section {
        padding: 50px 0 !important;
    }

    /* Separator spacing - 50px bottom margin */
    .or-spacer {
        margin: 0 auto 50px !important;
    }

    /* About section: reduce top margin of separator */
    .about .or-spacer {
        margin-top: 50px !important;
    }

    /* Prevent cards from overlapping About section */
    .about {
        overflow: hidden !important;
        position: relative !important;
        z-index: 3 !important;
        padding-bottom: 0 !important;
    }

    /* Services section - lower z-index so it doesn't overlap About */
    .services {
        height: 150vh !important;
        padding: 0 !important;
        position: relative !important;
        z-index: 1 !important;
    }

    .services-sticky-content {
        height: 85vh !important;
        top: 5vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 0 !important;
    }

    /* Reduce top margin on Services separator */
    .services .or-spacer {
        margin-top: 0 !important;
    }

    .services .or-spacer {
        margin-bottom: 100px !important;
    }

    .cards-wrapper {
        margin: 0 auto 50px !important;
    }

    /* Works section: no overlap, clean spacing */
    #works.section {
        padding-top: 0 !important;
        margin-top: 0 !important;
        position: relative !important;
        z-index: 2 !important;
    }

    #works .or-spacer {
        margin-top: 0 !important;
        margin-bottom: 50px !important;
    }

    .works-slider-wrapper {
        padding: 0 !important;
        height: 400px !important;
    }

    /* Contact section: reduce top padding */
    #contact.section {
        padding-top: 50px !important;
    }

}

/* Lightbox Modal */
/* Lightbox Modal */
.lightbox {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    /* Lighter background */
    backdrop-filter: blur(5px);
    /* Slightly less blur */
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
    /* Flex to center content */
    opacity: 1;
}

.lightbox-content {
    max-width: 80%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    user-select: none;
    z-index: 10002;
}

.lightbox-close:hover {
    color: #ddd;
}

/* Lightbox Arrows */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s, transform 0.2s;
    user-select: none;
    z-index: 10001;
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* Lightbox Counter */
.lightbox-counter {
    position: absolute;
    top: 30px;
    left: 30px;
    color: #fff;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 12px;
    border-radius: 20px;
    pointer-events: none;
    z-index: 10003;
    font-family: 'Montserrat', sans-serif;
}

/* Lightbox Dots */
.lightbox-dots {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10003;
}

.lightbox-dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.lightbox-dot:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.lightbox-dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* Mobile adjustments for lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 90%;
        max-height: 70vh;
    }

    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }

    .lightbox-arrow {
        width: 40px;
        height: 40px;
        font-size: 24px;
        background: rgba(0, 0, 0, 0.3);
        /* Darker bg for visibility on mobile */
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

/* Slider Counter for Mobile */
.works-slider-counter {
    display: none;
}

@media (max-width: 768px) {
    .works-slider-counter {
        display: block;
        text-align: center;
        margin-top: 15px;
        font-family: 'Montserrat', sans-serif;
        font-size: 1rem;
        font-weight: 500;
        color: #333;
    }
}

/* Footer Credits */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.footer-credit {
    font-size: 0.85em;
    color: #888;
    margin-top: 4px;
}

.footer-credit a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-credit a:hover {
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: color-mix(in srgb, var(--c-glass) 12%, transparent);
    backdrop-filter: blur(8px) url(#switcher) saturate(var(--saturation));
    -webkit-backdrop-filter: blur(8px) saturate(var(--saturation));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--primary-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border-color: transparent;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        left: 20px;
        width: 40px;
        height: 40px;
    }
}