:root {
    --primary: #0067C1;
    --primary-light: #2B87D1;
    --bg: #ffffff;
    --surface: rgba(255, 255, 255, 0.7);
    --text: #1e293b;
    --text-muted: #64748b;
    --glass: rgba(255, 255, 255, 0.5);
    --border: rgba(0, 0, 0, 0.05);
    --font: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    background-color: var(--bg);
    overflow-x: hidden;
    width: 100%;
    font-size: 90%;
    /* Reduced all font sizes by 10% */
}

body {
    font-family: var(--font);
    background-color: transparent;
    /* Changed to transparent to let wrapper show */
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* ── Animated background wrapper ── */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background: linear-gradient(180deg, #7dd3fc 0%, #bae6fd 100%);
}

#bg-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Base layout remains similar but with light mode tints */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    height: 100px;
    /* Increased height for logo */
    display: flex;
    align-items: center;
    position: fixed;
    /* Stick to top permanently */
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border);
}

.logo {
    text-decoration: none;
    display: block;
    z-index: 1001;
}

.logo-window {
    width: 75px;
    height: 75px;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid #ffffff;
    border-radius: 18px;
    padding: 2px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-window:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 12px 40px rgba(0, 103, 193, 0.2);
}

.logo-window img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.header-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 1001;
    /* Above mobile menu */
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover,
nav a.active {
    color: var(--text);
}

.lang-switch {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid var(--border);
    background: white;
}

.lang-btn.active {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(0, 103, 193, 0.05);
}

/* Burger Menu */
.burger {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.burger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--text);
    border-radius: 2px;
    transition: .25s ease-in-out;
}

.burger span:nth-child(1) {
    top: 0px;
}

.burger span:nth-child(2) {
    top: 9px;
}

.burger span:nth-child(3) {
    top: 18px;
}

.burger.active span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.burger.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

@media (max-width: 768px) {
    .burger {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        /* Less transparent on mobile */
        backdrop-filter: blur(20px);
        padding: 100px 2rem 2rem;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
        border-left: 1px solid var(--border);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
        z-index: 1000;
        transform: translateX(100%);
        visibility: hidden;
        pointer-events: none;
    }

    nav.active {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    nav ul {
        flex-direction: column;
        gap: 1.5rem;
    }

    nav a {
        font-size: 1.25rem;
        display: block;
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* Hero Gallery Section */
.hero-gallery {
    position: relative;
    height: 65vh;
    min-height: 580px;
    width: 100%;
    margin-top: 100px;
    overflow: hidden;
    background: transparent;
}

.gallery-marquee-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 0;
    transform: skewY(-2deg) scale(1.1);
    opacity: 0.8;
}

.gallery-marquee {
    display: flex;
    gap: 1.5rem;
    width: 100vw;
}

.marquee-content {
    display: flex;
    gap: 1.5rem;
    white-space: nowrap;
    will-change: transform;
}

.gallery-img-item {
    flex: 0 0 auto;
    width: 300px;
    height: 200px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.gallery-img-item:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
    z-index: 10;
}

.gallery-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Static row: non-moving half-size blocks with scroll */
.gallery-static-wrap {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 7;
    transform: skewY(-2deg);
}

.gallery-static-row {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.5rem 2rem;
}

.gallery-static-row::-webkit-scrollbar {
    display: none;
}

.gallery-img-item-sm {
    flex: 0 0 auto;
    width: 150px;
    height: 100px;
    border-radius: 0.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Scroll buttons — circular, small, appear on hover */
.static-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transition: opacity 0.3s ease, background 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.gallery-static-wrap:hover .static-scroll-btn {
    opacity: 1;
    pointer-events: auto;
}

.static-scroll-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.static-scroll-btn:active {
    background: rgba(0, 103, 193, 0.25);
    color: #0067C1;
    transform: translateY(-50%) scale(0.95);
}

.static-scroll-left {
    left: 6px;
}

.static-scroll-right {
    right: 6px;
}

/* Animations (Will be augmented by JS but kept as fallback) */
.marquee-right .marquee-content {
    animation: marqueeRight 120s linear infinite;
}

.marquee-left .marquee-content {
    animation: marqueeLeft 120s linear infinite;
}

@keyframes marqueeRight {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.333%);
    }
}

@keyframes marqueeLeft {
    0% {
        transform: translateX(-33.333%);
    }

    100% {
        transform: translateX(0);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(255, 255, 255, 0) 50%,
            rgba(255, 255, 255, 0.4) 100%);
    display: flex;
    align-items: flex-start;
    padding-top: 10vh;
    justify-content: center;
    z-index: 5;
    pointer-events: none;
}

.marquee-overlay-text {
    text-align: center;
    color: var(--text);
    pointer-events: auto;
}

.marquee-overlay-text h1 {
    color: var(--text);
    font-size: 3.5rem;
    text-shadow: 0 10px 30px rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.marquee-overlay-text p {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    text-shadow: 0 4px 10px rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .hero-gallery {
        height: 50vh;
        min-height: 400px;
    }

    .gallery-img-item {
        width: 200px;
        height: 140px;
    }

    .gallery-img-item-sm {
        width: 100px;
        height: 70px;
    }

    .gallery-static-row {
        gap: 0.5rem;
        padding: 0.5rem 1rem;
    }

    .static-scroll-btn {
        width: 28px;
        height: 28px;
        font-size: 0.7rem;
    }

    .marquee-overlay-text h1 {
        font-size: 2.5rem;
    }

    .gallery-marquee-container {
        transform: skewY(-2deg) scale(1);
    }
}

.gallery-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

#marquee-toggle {
    min-width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #000;
    font-size: 2.5rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    line-height: 1;
}

#marquee-toggle:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 103, 193, 0.2);
}

#marquee-toggle.btn-start {
    background: rgba(255, 255, 255, 0.3);
}

/* Marquee speed buttons - desktop only */
.marquee-speed-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 100px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 0, 0, 0.2);
    color: rgba(0, 0, 0, 0.7);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.marquee-speed-left {
    left: 20px;
    border-radius: 10px 0 0 10px;
}

.marquee-speed-right {
    right: 20px;
    border-radius: 0 10px 10px 0;
}

.marquee-speed-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    color: rgba(0, 0, 0, 0.9);
}

.marquee-speed-btn:active,
.marquee-speed-btn.active {
    background: rgba(0, 103, 193, 0.3);
    color: #0067C1;
}

/* Hide on mobile */
@media (max-width: 768px) {
    .marquee-speed-btn {
        display: none;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-controls {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 10001;
}

.lightbox-select {
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.lightbox-select:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    object-fit: contain;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.lightbox-close {
    position: absolute;
    top: 40px;
    right: 40px;
    color: var(--text);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 20px;
    margin-top: -50px;
    color: var(--text);
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 10001;
}

.lightbox-next {
    right: 40px;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev {
    left: 40px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.lightbox-caption {
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
    width: 100%;
}

.lightbox-caption h3 {
    color: var(--text);
    margin-bottom: 5px;
}

@media (max-width: 768px) {

    .lightbox-prev,
    .lightbox-next {
        padding: 10px;
        font-size: 20px;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
    }
}

/* Hero Section (Deprecated/Removed but kept structure for other sections) */
.hero {
    display: none;
}

h1 {
    font-size: 2.75rem;
    /* Reduced from 3.5rem */
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
    color: #0f172a;
}

.hero p {
    font-size: 1.125rem;
    /* Reduced from 1.25rem */
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Components */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 103, 193, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 103, 193, 0.3);
}

/* Card with 0.7 opacity */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 2.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(8px);
}

/* Gallery GRID */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.gallery-item {
    background: var(--surface);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.gallery-info {
    padding: 1.5rem;
}

/* Feedback Form Area */
.contact-section {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.4);
}

.form-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--surface);
    padding: 3rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-weight: 500;
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e2e8f0;
    color: var(--text);
    border-radius: 0.5rem;
    font-size: 1rem;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 103, 193, 0.1);
}

/* Footer */
footer {
    padding: 5rem 0;
    border-top: 1px solid var(--border);
    background: white;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-nav h4 {
    margin-bottom: 1.5rem;
    color: var(--text);
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 0.75rem;
}

.footer-nav a {
    text-decoration: none;
    color: var(--text-muted);
}

.footer-nav a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero {
        padding: 10rem 1.5rem 5rem;
    }

    .gallery-controls {
        bottom: 15px;
    }

    #marquee-toggle {
        min-width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }
}