/* ==========================================
   aegostGK Portfolio - Main Stylesheet
   ========================================== */

/* Font Faces */
@font-face {
    font-family: 'Suisse Intl';
    src: url('fonts/fonnts.com-SuisseIntl-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Suisse Intl';
    src: url('fonts/fonnts.com-Suisse_Intl_Book.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Suisse Intl';
    src: url('fonts/fonnts.com-Suisse_Intl_Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Suisse Intl';
    src: url('fonts/fonnts.com-Suisse_Intl_Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Suisse Intl Mono';
    src: url('fonts/fonnts.com-Suisse_Intl_Mono.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Bodoni';
    src: url('fonts/Bodoni 72 Smallcaps Book.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

/* CSS Variables */
:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent-color: #ffffff;
    --border-color: rgba(255, 255, 255, 0.1);
    --camera-frame-color: rgba(255, 255, 255, 0.3);

    --font-main: 'Suisse Intl', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Suisse Intl Mono', 'SF Mono', monospace;
    --font-serif: 'Bodoni', Georgia, serif;

    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 80px;
}

/* Light Mode */
body.light-mode {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --text-primary: #000000;
    --text-secondary: #666666;
    --accent-color: #000000;
    --border-color: rgba(0, 0, 0, 0.1);
    --camera-frame-color: rgba(0, 0, 0, 0.3);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Offset for fixed header elements */
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==========================================
   Fixed UI Elements
   ========================================== */

.fixed-ui {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

/* Logo Area */
.yi-logo {
    position: absolute;
    left: 29px;
    top: 152px;
    z-index: 1001;
    pointer-events: auto;
    /* Removed flex to allow absolute children positioning */
    /* display: flex; */
    /* flex-direction: column; */
    /* align-items: flex-start; */
    /* gap: 60px; */
}

.initial-logo {
    width: 40px;
    height: auto;
    filter: invert(1);
    transition: filter 0.3s ease;
    position: fixed !important;
    left: 24px !important;
    /* Visual calculation: 29px (container) - 5px (offset) */
    top: 53px !important;
    /* Visual calculation: 152px (container) - 99px (offset) */
    z-index: 1002;
    transform: none !important;
}

body.light-mode .initial-logo {
    filter: invert(0);
}

.signature-logo {
    width: 151px !important;
    height: auto;
    filter: invert(1);
    transition: filter 0.3s ease;
    transform: rotate(267.279deg) !important;
    transform-origin: top left;
    margin-left: 20px;
    position: absolute !important;
    left: -14.25px !important;
    top: 125.445px !important;
    z-index: 1002;
    pointer-events: none;
}

body.light-mode .signature-logo {
    filter: invert(0);
}

/* Morsecode Pattern */
/* Morsecode Pattern */
.morsecode-pattern {
    position: absolute !important;
    left: -24px !important;
    top: 416px !important;
    width: 756px !important;
    z-index: 1;
    opacity: 0.9;
    pointer-events: none;
}

.morsecode-pattern img {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}

body.light-mode .morsecode-pattern img {
    filter: brightness(0);
}

/* Timezone Clock */
.timezone-clock {
    position: fixed !important;
    left: 1274.27px !important;
    top: 112px !important;
    text-align: right;
    z-index: 1001;
    pointer-events: auto;
}

.timezone-label {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timezone-time {
    font-family: var(--font-main);
    font-weight: 300;
    font-size: 24px;
    letter-spacing: 1px;
    color: var(--text-primary);
}

/* Theme Toggle */
.theme-toggle {
    position: absolute !important;
    left: 1342px !important;
    top: 60px !important;
    right: auto;
    z-index: 1002;
    pointer-events: auto;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--text-primary);
    border-radius: 26px;
    transition: 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: var(--bg-primary);
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(24px);
}

/* ==========================================
   Hero Section - Thermal Camera
   ========================================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    position: relative;
    /* overflow: hidden; Removed to allow dragging lines further down */
}


.camera-container {
    width: 885px !important;
    aspect-ratio: 16/10;
    position: absolute !important;
    left: 265px !important;
    top: 55px !important;
    z-index: 10;
    pointer-events: auto;
    background: #000;
    border: 3px solid #fff;
    border-radius: 40px;
    /* Rounded corners */
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
    /* overflow: hidden;  Keep content inside rounded corners */
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.camera-container.fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    top: 0 !important;
    left: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    z-index: 9999 !important;
    transform: none !important;
    /* Ensure no drag transform interferes */
    position: fixed !important;
}

.camera-container.fullscreen .camera-viewport {
    height: 100% !important;
    aspect-ratio: unset !important;
    border-radius: 0 !important;
}

.camera-container.minimized {
    pointer-events: none !important;
}

body.no-scroll {
    overflow: hidden !important;
}

.camera-frame {
    position: relative;
    width: 100%;
    height: 100%;
    /* Border moves to container for unified drag handle look */
    /* border: 2px solid var(--camera-frame-color); */
    /* border-radius: 30px; */
    padding: 0;
    overflow: hidden;
    border-radius: 36px;
    /* slightly less than container */
}

/* Traffic Lights */
.traffic-lights {
    position: absolute;
    top: 30px;
    left: 34px;
    display: flex;
    gap: 8px;
    z-index: 20;
}

.light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.light.red {
    background: #ff5f57;
}

.light.yellow {
    background: #febc2e;
}

.light.green {
    background: #28c840;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.light.green:hover {
    transform: scale(1.2);
}

/* Camera Viewport */
.camera-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#webcam-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s;
    transform: scaleX(-1);
    /* Flip added as per request */
    object-position: 50% 50% !important;
}

#webcam-video.active {
    opacity: 1;
}

#thermal-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50% !important;
    transform: scaleX(-1);
}

.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.temp-indicator {
    position: absolute !important;
    top: 78.3333% !important;
    right: 25%;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.5s;
}

.temp-indicator.visible {
    opacity: 1;
}

.temp-line {
    width: 60px;
    height: 2px;
    background: #ff3333;
    transform: rotate(-30deg);
    transform-origin: right center;
}

.temp-value {
    background: rgba(255, 0, 0, 0.8);
    color: white;
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 2px;
    white-space: nowrap;
}

.camera-start-btn {
    position: relative;
    z-index: 30;
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 50px;
    padding: 16px 32px;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.camera-start-btn:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}



.camera-start-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Geometric Circles */
.geometric-circles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.circle {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
}

body.light-mode .circle {
    border-color: rgba(0, 0, 0, 0.15);
}

.circle-1 {
    width: 500px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -30%);
}

.circle-2 {
    width: 600px;
    height: 600px;
    top: 50%;
    left: 60%;
    transform: translate(-50%, -20%);
}

/* ==========================================
   Branding Section
   ========================================== */

.branding-section {
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
    position: relative;
    z-index: 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.branding-section .geometric-circles-bg {
    position: absolute !important;
    left: -172px !important;
    top: -342.6px !important;
    width: 1781px !important;
    height: 1461.36px !important;
    transform: rotate(0.585082deg) !important;
    pointer-events: none;
    z-index: -1;
}

.branding-section .geometric-circles-bg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.6;
    filter: invert(1);
    mix-blend-mode: screen;
}

body.light-mode .branding-section .geometric-circles-bg img {
    filter: none;
    mix-blend-mode: multiply;
    opacity: 0.4;
}

.brand-title {
    font-size: 277.209px !important;
    line-height: 1;
    white-space: nowrap;
    z-index: 2;
    margin-top: -20px;
    text-align: center;
    position: absolute !important;
    left: 159.727px !important;
    top: 258.945px !important;
    width: 737px !important;
    transform: rotate(0.834938deg) !important;
}

.brand-italic {
    font-family: "Times New Roman", Times, serif;
    font-style: italic;
    font-weight: 400;
}

.brand-bold {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
}

/* ==========================================
   Portfolio Navigation
   ========================================== */

/* Ensure clickable and on top */
.portfolio-nav {
    position: absolute !important;
    bottom: auto;
    top: 646.797px !important;
    left: 30px !important;
    width: 187px !important;
    padding: 0;
    z-index: 9999 !important;
    /* Force on top */
    pointer-events: auto !important;
}

.portfolio-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.portfolio-nav li {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 6px 6px 0;
    transition: all 0.2s ease;
    cursor: pointer !important;
    /* Force pointer */
    color: #888;
}

.portfolio-nav a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    color: #fff;
    text-decoration: none;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    border-bottom: none;
    flex: 1;
    pointer-events: none;
    /* Let LI handle the click to avoid conflicts */
}

/* Remove pseudo-element arrow */
.portfolio-nav a::after {
    content: none;
}

/* Style real arrow */
.nav-arrow,
.nav-check {
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    margin-left: 10px;
    opacity: 0.7;
    pointer-events: none;
    /* Let LI handle the click */
}

/* Hover logic - Default (Dark Mode) */
.portfolio-nav li:hover {
    background: #fff !important;
    color: #000 !important;
    padding-left: 8px;
    padding-right: 8px;
}

.portfolio-nav li:hover a {
    color: #000 !important;
}

.portfolio-nav li:hover .nav-arrow {
    color: #000 !important;
    opacity: 1;
}

/* Light Mode Default - Visible Text */
body.light-mode .portfolio-nav li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: #666;
}

body.light-mode .portfolio-nav a {
    color: #000;
}

body.light-mode .portfolio-nav .nav-arrow {
    color: #000;
}


/* Light Mode Hover - Inverted */
body.light-mode .portfolio-nav li:hover {
    background: #000 !important;
    color: #fff !important;
}

body.light-mode .portfolio-nav li:hover a {
    color: #fff !important;
}

body.light-mode .portfolio-nav li:hover .nav-arrow {
    color: #fff !important;
}

/* Active state (removed special styling, behaves same as normal unless hovered) */
.portfolio-nav li.active {
    padding-left: 0;
    padding-right: 0;
}

.portfolio-nav li.active a {
    color: #fff;
}


.nav-footer {
    margin-top: var(--spacing-lg);
    font-size: 10px;
    letter-spacing: 1px;
    opacity: 0.5;
}

/* ==========================================
   Contact Section
   ========================================== */

.contact-section {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-lg);
    max-width: 800px;
    margin: 120px auto 0;
    position: relative;
    z-index: 2;
}

.contact-title {
    font-size: clamp(32px, 8vw, 64px);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
}

.contact-subtitle {
    font-size: 14px;
    opacity: 0.6;
    font-weight: 300;
    margin-bottom: var(--spacing-xl);
}

/* Contact Toggle Button */
.contact-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
    border-radius: 50px;
    padding: 18px 40px;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-toggle-btn:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.light-mode .contact-toggle-btn:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.contact-toggle-btn .btn-arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.contact-toggle-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Contact Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: left;
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    margin-top: var(--spacing-lg);
    transition: all 0.4s ease;
    max-height: 1000px;
    opacity: 1;
    overflow: hidden;
}

.contact-form.hidden {
    max-height: 0;
    opacity: 0;
    padding: 0 var(--spacing-lg);
    margin-top: 0;
    border-color: transparent;
}

body.light-mode .contact-form {
    background: rgba(0, 0, 0, 0.02);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 16px;
    font-family: var(--font-main);
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    resize: none;
}

body.light-mode .form-group input,
body.light-mode .form-group textarea {
    background: rgba(0, 0, 0, 0.03);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

body.light-mode .form-group input:focus,
body.light-mode .form-group textarea:focus {
    background: rgba(0, 0, 0, 0.05);
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 50px;
    padding: 18px 40px;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: var(--spacing-sm);
    align-self: flex-start;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.light-mode .submit-btn:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.btn-arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* ==========================================
   Gallery Preview
   ========================================== */

.gallery-preview {
    padding: var(--spacing-lg);
    overflow-x: auto;
}

.preview-grid {
    display: flex;
    gap: var(--spacing-md);
    min-width: max-content;
    padding-bottom: var(--spacing-sm);
}

.preview-item {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
}

.preview-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.preview-item:hover img {
    transform: scale(1.02);
}

.preview-info {
    padding: var(--spacing-sm) 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.preview-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.preview-subtitle {
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* ==========================================
   Portfolio Sections
   ========================================== */

.portfolio-section {
    padding: var(--spacing-lg) var(--spacing-lg);
    position: relative;
    z-index: 2;
    min-height: auto;
    /* Reduce height gap */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--text-primary);
    width: 100%;
}

.section-number {
    font-size: clamp(60px, 10vw, 100px);
    font-weight: 700;
    opacity: 0.9;
    line-height: 1;
}

.section-title {
    font-size: clamp(48px, 10vw, 100px);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.section-title .plus {
    font-weight: 300;
}

/* Gallery Grids */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.item-label {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-xs);
    background: var(--bg-primary);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.item-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gradient-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.typography-thumb {
    font-size: 24px;
    font-weight: 700;
    background: #222;
}

.letter-r {
    font-family: 'Rockwell', serif;
    font-size: 120px;
    font-weight: 700;
    color: #ff4444;
}

/* Logos Showcase */
.logos-showcase {
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.logo-globe {
    width: 80px;
    filter: invert(1);
}

body.light-mode .logo-globe {
    filter: invert(0);
}

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

.logo-name {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-desc {
    display: block;
    font-size: 10px;
    opacity: 0.5;
    letter-spacing: 1px;
}

.logo-letter {
    font-size: 100px;
    font-weight: 700;
}

/* New Logo Showcase Grid */
.logos-grid {
    display: flex;
    gap: var(--spacing-lg);
    overflow-x: auto;
    padding-bottom: var(--spacing-sm);
}

.logo-showcase-item {
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.logo-icon {
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

body.light-mode .logo-icon img {
    filter: invert(1);
}

.logo-svg {
    width: 100%;
    height: 100%;
    color: var(--text-primary);
}

.logo-svg.wide {
    width: 150px;
    height: 100px;
}

.logo-big-letter {
    font-family: var(--font-serif);
    font-size: 100px;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1;
}

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

.logo-showcase-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.logo-showcase-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.logo-showcase-subtitle {
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* Plakate Styles (Mirroring Logos) */
.plakat-item {
    flex: 0 0 16%;
    /* Fit 5 items comfortably */
    max-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plakat-thumb {
    width: 100%;
    aspect-ratio: 2/3;
    /* Standard Poster Ratio */
    overflow: hidden;
    background: var(--bg-secondary);
    position: relative;
    cursor: pointer;
}

.plakat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.plakat-thumb:hover img {
    transform: scale(1.05);
}

.plakat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.plakat-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.plakat-subtitle {
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.plakate-grid {
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping if needed */
    justify-content: flex-start;
    /* Left align items */
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
}

/* Video Showcase */
.video-showcase {
    display: grid;
    gap: var(--spacing-md);
}

.video-item {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-item:hover video {
    transform: scale(1.02);
}

.video-label {
    position: absolute;
    bottom: var(--spacing-sm);
    left: var(--spacing-sm);
    font-size: 12px;
    letter-spacing: 2px;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 12px;
    border-radius: 4px;
}

/* Video Thumbnail Grid - Small thumbnails */
.video-thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    /* Auto-fill keeps them smaller */
    /* Video thumbnails much smaller */
    gap: var(--spacing-sm);
    width: 100%;
}

.video-thumbnail-item {
    display: flex;
    flex-direction: column;
}

.video-thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    overflow: hidden;
    background: var(--bg-secondary);
    border-radius: 8px;
    cursor: pointer;
    max-width: 200px;
    /* Force smaller width */
}

.video-thumb-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 2px solid var(--text-primary);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-play-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) scale(1.1);
}

body.light-mode .video-play-btn {
    background: rgba(255, 255, 255, 0.6);
    border-color: var(--text-primary);
    color: var(--text-primary);
}

body.light-mode .video-play-btn:hover {
    background: rgba(0, 0, 0, 0.15);
}

.video-play-btn.playing {
    opacity: 0;
}

.video-thumb-wrapper:hover .video-play-btn.playing {
    opacity: 1;
}

.play-icon {
    font-size: 16px;
    margin-left: 3px;
}

.video-thumb-info {
    padding: var(--spacing-sm) 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.video-thumb-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.video-thumb-subtitle {
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* CD Showcase - 3D Card */
.cd-showcase {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-start;
}

.cd-card-3d-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    width: 100%;
    max-width: 380px;
}

.cd-card-scene {
    width: 100%;
    aspect-ratio: 1.586 / 1;
    perspective: 800px;
}

.cd-card-3d {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(0deg);
    transition: transform 0.04s linear;
}

.cd-card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
}

/* ─── Card faces — metallic background via JS ─── */
.cd-card-front,
.cd-card-back {
    background-color: #888;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    padding: 10% 8%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.cd-card-front {
    justify-content: space-between;
}

.cd-card-back {
    transform: rotateY(180deg);
    align-items: center;
    justify-content: center;
    gap: 14px;
}

/* (metal texture applied via JS as background-image) */

.cd-card-logo-box {
    align-self: flex-end;
    /* Removed border/text styles for image replacement */
    padding: 0;
    position: relative;
    z-index: 1;
}

.cd-front-logo {
    width: 60px;
    /* Adjust size as needed to match design */
    height: auto;
    display: block;
}

.cd-card-title {
    display: flex;
    flex-direction: column;
    color: #fff;
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: clamp(22px, 4.5vw, 34px);
    line-height: 1.05;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    position: relative;
    z-index: 1;
}

/* Logo gets multiply blend via JS — no hide rule needed */

/* Slider */
.cd-card-slider {
    position: relative;
    width: 100%;
    max-width: 380px;
    height: 14px;
    display: flex;
    align-items: center;
}

#cd-rotation-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 1px;
    background: var(--text-primary);
    outline: none;
    cursor: pointer;
    margin: 0;
    position: relative;
    z-index: 2;
}

#cd-rotation-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--text-primary);
    cursor: grab;
    border: none;
}

#cd-rotation-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
}

#cd-rotation-slider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--text-primary);
    cursor: grab;
    border: none;
}

#cd-rotation-slider::-moz-range-thumb:active {
    cursor: grabbing;
}

/* ==========================================
   Services Section
   ========================================== */

.services-section {
    padding: 0;
    text-align: center;
    min-height: 130vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: #000;
    transition: background 0.4s ease;
    margin-top: -30vh;
    padding-top: 30vh;
}

body.light-mode .services-section {
    background: #ffffff;
}

.services-section canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.services-content {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0 var(--spacing-lg) 0;
    position: relative;
    z-index: 1;
}

.services-list {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 2px;
    color: #fff;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.03em;
    opacity: 0.85;
}

body.light-mode .services-list {
    color: #111;
}

.services-list-heading {
    font-weight: 500;
    margin-bottom: 4px;
}

.services-bottom {
    position: relative;
    z-index: 1;
    padding: var(--spacing-lg) var(--spacing-lg) 0;
}

.services-divider {
    width: 100%;
    height: 1px;
    background: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.services-title {
    font-size: clamp(40px, 10vw, 120px);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff;
    text-align: right;
    pointer-events: none;
    margin-bottom: 0;
}

body.light-mode .services-title {
    color: #111;
}

/* ==========================================
   Responsive Design
   ========================================== */

/* ── Tablet / non-desktop ── */
@media (max-width: 1400px) {

    /* Hero / Branding — reset absolute desktop positions */
    .branding-section {
        min-height: 80vh;
        overflow: hidden;
    }

    .brand-title {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: auto !important;
        transform: none !important;
        font-size: clamp(48px, 14vw, 140px) !important;
        text-align: center;
    }

    .signature-logo {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        width: 80px !important;
        height: auto;
        margin: 0 auto 20px;
        display: block;
    }

    .morsecode-pattern {
        display: none !important;
    }

    .branding-section .geometric-circles-bg {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 120vw !important;
        height: auto !important;
        max-width: 800px;
    }

    .portfolio-nav {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        padding: 0 var(--spacing-lg) !important;
        margin-top: var(--spacing-lg);
        z-index: 10 !important;
    }

    .camera-container {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100%;
        margin: var(--spacing-lg) auto;
    }

    .timezone-clock {
        position: fixed !important;
        left: auto !important;
        right: 15px !important;
        top: 15px !important;
    }

    .theme-toggle {
        position: fixed !important;
        left: auto !important;
        right: 15px !important;
        top: 60px !important;
        z-index: 10000 !important;
    }

    .temp-indicator {
        display: none !important;
    }

    .contact-section {
        margin: 60px auto 0;
    }
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .yi-logo {
        left: 15px;
        top: 15px;
    }

    .initial-logo {
        width: 30px;
    }

    .timezone-clock {
        position: fixed !important;
        right: 12px !important;
        top: 12px !important;
    }

    .timezone-label {
        font-size: 9px;
    }

    .timezone-time {
        font-size: 14px;
    }

    .hero-section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    .camera-frame {
        border-radius: 16px;
        padding: 10px;
    }

    /* Portfolio sections */
    .portfolio-section {
        min-height: auto;
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .preview-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .section-header {
        flex-direction: column;
        gap: var(--spacing-sm);
        margin-top: var(--spacing-md);
        padding-top: var(--spacing-md);
    }

    .section-number {
        font-size: 40px;
    }

    .section-title {
        font-size: 32px;
    }

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

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

    .logos-grid {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo-showcase-item {
        flex: 0 0 45%;
    }

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

    .cd-card-3d-container {
        max-width: 320px;
    }

    /* Services section */
    .services-section {
        min-height: 70vh;
    }

    .services-content {
        padding: 0 var(--spacing-md) 0;
    }

    .services-list {
        font-size: 12px;
    }

    .services-bottom {
        padding: var(--spacing-md) var(--spacing-md) var(--spacing-lg);
    }

    .services-title {
        font-size: clamp(28px, 10vw, 60px);
    }

    /* Contact */
    .contact-section {
        margin: 40px auto 0;
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .contact-title {
        font-size: clamp(24px, 7vw, 48px);
    }

    .contact-form {
        padding: var(--spacing-md);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-toggle-btn,
    .submit-btn {
        width: 100%;
        justify-content: center;
    }

    .nav-list {
        font-size: 12px;
    }

    /* Dock */
    .dock-container {
        width: 85%;
        min-width: 250px;
        height: 60px;
        padding: 8px 14px;
        bottom: 12px;
    }

    .dock-item {
        width: 36px;
        height: 36px;
    }

    .dock-apps {
        gap: 12px;
    }

    /* Finder / Preview */
    .finder-window,
    .preview-modal {
        width: 95vw !important;
        height: 60vh;
    }

    .window-sidebar {
        width: 140px;
    }
}

/* ── Small phone ── */
@media (max-width: 480px) {
    .yi-logo {
        left: 10px;
        top: 10px;
        gap: 8px;
    }

    .initial-logo {
        width: 25px;
    }

    .brand-title {
        font-size: clamp(36px, 14vw, 80px) !important;
    }

    .portfolio-section {
        padding: var(--spacing-md) var(--spacing-sm);
    }

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

    .gallery-grid,
    .plakate-grid {
        grid-template-columns: 1fr;
    }

    .video-thumbnail-grid {
        grid-template-columns: 1fr;
    }

    .logo-showcase-item {
        flex: 0 0 100%;
    }

    .cd-card-3d-container {
        max-width: 260px;
    }

    .cd-card-title {
        font-size: 20px !important;
    }

    .section-number {
        font-size: 32px;
    }

    .section-title {
        font-size: 24px;
    }

    .services-title {
        font-size: clamp(24px, 10vw, 48px);
    }

    .services-content {
        padding: 0 var(--spacing-sm) 0;
    }

    .services-bottom {
        padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-md);
    }

    .services-list {
        font-size: 11px;
    }

    .contact-title {
        font-size: 24px;
    }

    /* Dock */
    .dock-container {
        width: 92%;
        height: 56px;
        padding: 6px 10px;
        bottom: 8px;
        border-radius: 18px;
    }

    .dock-item {
        width: 32px;
        height: 32px;
    }

    .dock-apps {
        gap: 8px;
        padding-left: 4px;
    }

    .dock-separator {
        height: 30px;
        margin: 0 8px;
    }

    /* Finder not usable on small screens */
    .finder-window {
        width: 100vw !important;
        height: 70vh;
        border-radius: 0;
    }

    .window-sidebar {
        display: none;
    }
}

/* Fullscreen Video Overlay */
.fullscreen-video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.fullscreen-video-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.fullscreen-video-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-height: 90vh;
    position: relative;
}

.fullscreen-video-container video {
    height: auto;
    max-height: 78vh;
    max-width: 90vw;
    width: auto;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
    object-fit: contain;
}

/* ─── Minimal video controls ─── */
.video-controls {
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-ctrl-btn {
    background: transparent;
    color: white;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 10px 28px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-ctrl-btn:hover {
    background: white;
    color: black;
    border-color: white;
}

.video-ctrl-btn .ctrl-icon {
    font-size: 11px;
    line-height: 1;
}

/* Play/Pause state icon overlay */
.video-state-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    pointer-events: none;
    opacity: 0;
    transition: none;
    z-index: 5;
}

.video-state-icon.show {
    animation: stateIconPop 0.6s ease forwards;
}

@keyframes stateIconPop {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.5);
    }

    30% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

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

/* Lightbox image */
#lightbox-img {
    max-height: 80vh;
    max-width: 90vw;
    width: auto;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
    object-fit: contain;
}

/* Gallery / Logo / Preview items clickable */
.gallery-item,
.preview-item img,
.logo-icon img {
    cursor: pointer;
}

/* macOS Dock Styles */
/* Dock Container - Wide & Responsive */
.dock-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(200%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    /* Space Between to push Apps Left and Trash Right */
    justify-content: space-between;
    gap: 0;
    z-index: 9998;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    /* Responsive Width */
    width: 38%;
    min-width: 300px;
    max-width: 600px;
    height: 80px;
    /* Slightly taller */
}

.dock-apps {
    display: flex;
    align-items: center;
    gap: 20px;
    /* Spacing between apps */
    flex-grow: 1;
    /* Not needed with space-between but safety */
    justify-content: flex-start;
}

.dock-trash-group {
    /* New wrapper if needed, or just flex the container */
    /* If HTML structure is .dock-apps, .dock-separator, .dock-trash */
    /* We can't wrap them in CSS without HTML change.
       Let's assume we modify HTML or use flex properties.
       If we have [Apps] [Separator] [Trash], space-between puts Separator in middle.
       We want [Available Space] between Apps and (Separator+Trash).

       So:
       .dock-apps { margin-right: auto; }
       This pushes everything after it to the right.
    */
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Use previously planned selector structure */
.dock-apps {
    margin-right: auto;
    padding-left: 10px;
}

.dock-trash {
    display: flex;
    align-items: center;
    margin-left: 0;
    padding-right: 10px;
}

.dock-separator {
    width: 1px;
    height: 50px;
    /* Taller */
    background: rgba(255, 255, 255, 0.2);
    margin: 0;
    margin-right: 15px;
    /* Gap to trash */
    margin-left: 15px;
    /* Gap to apps if they get close */
}

body.light-mode .dock-separator {
    background: rgba(0, 0, 0, 0.1);
}

.dock-container.active {
    transform: translateX(-50%) translateY(0);
}

/* We want: [Apps ..... ] [Separator] [Trash] */
/* But centered on screen. */
/* The container is centered. */
/* If we want separator NEXT to trash, we just group them layout-wise */


.dock-item {
    position: relative;
    width: 48px;
    height: 48px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.dock-item:hover {
    transform: scale(1.15) translateY(-5px);
}

.dock-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.dock-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-family: var(--font-main);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.dock-item:hover .dock-tooltip {
    opacity: 1;
}

/* Light Mode Dock */
body.light-mode .dock-container {
    background: rgba(255, 255, 255, 0.3);
    /* Lighter glass */
    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .dock-tooltip {
    background: rgba(255, 255, 255, 0.9);
    color: black;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Finder Window Styles */
.finder-window,
.preview-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 500px;
    background: rgba(28, 28, 30, 0.85);
    /* Dark mode default */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.finder-window.visible,
.preview-modal.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

body.light-mode .finder-window {
    background: rgba(245, 245, 245, 0.85);
    border-color: rgba(0, 0, 0, 0.1);
    color: #000;
}

.window-header {
    height: 52px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    padding: 0 16px;
    position: relative;
}

body.light-mode .window-header {
    background: rgba(0, 0, 0, 0.05);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.window-controls {
    display: flex;
    gap: 8px;
}

.window-tools {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

/* Traffic Light Hover Scale */
/* Traffic Light Hover Scale */
.window-btn,
.light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.1s ease, filter 0.1s ease;
}

.window-btn:hover,
.light:hover {
    transform: scale(1.2);
    filter: brightness(1.2);
    cursor: pointer;
}

.window-btn:active,
.light:active {
    transform: scale(0.95);
}

.window-btn.red {
    background: #ff5f57;
}

.window-btn.yellow {
    background: #febc2e;
}

.window-btn.green {
    background: #28c840;
}

.window-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 600;
    font-size: 14px;
    opacity: 0.8;
}

.window-body {
    flex: 1;
    display: flex;
}

.window-sidebar {
    width: 200px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 0;
}

body.light-mode .window-sidebar {
    background: rgba(255, 255, 255, 0.4);
}

.sidebar-group {
    padding: 0 10px;
}

/* Entleeren Button Refinement */
.finder-tool-btn {
    /* Default (Dark Mode) */
    background: #6e6e73;
    /* Slightly lighter grey for visibility on dark */
    color: #ffffff;
    border: none;
    padding: 2px 8px;
    /* Very compact */
    border-radius: 4px;
    font-size: 11px;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    box-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.2);
}

.finder-tool-btn:hover {
    background: #8e8e93;
    /* macOS highlight */
}

body.light-mode .finder-tool-btn {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .finder-tool-btn:hover {
    background: #f2f2f7;
}

.sidebar-title {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.5;
    margin-bottom: 8px;
    padding-left: 10px;
}

.sidebar-item {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    opacity: 0.8;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-item.active {
    background: rgba(255, 255, 255, 0.15);
    opacity: 1;
}

body.light-mode .sidebar-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .sidebar-item.active {
    background: rgba(0, 0, 0, 0.1);
}

.window-content {
    flex: 1;
    padding: 20px;
    background: rgba(0, 0, 0, 0.02);
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
}

/* File Item Style matching Secret Image style */
.file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

body.light-mode .file-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.file-item.selected {
    background: rgba(255, 255, 255, 0.2);
}

.file-icon {
    width: 64px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.file-name {
    font-size: 12px;
    text-align: center;
    word-break: break-all;
}

/* Preview Modal Overrides */
.preview-modal {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.preview-window {
    background: rgba(30, 30, 30, 0.95);
    border-radius: 12px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.preview-content {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

.preview-content img {
    max-width: 800px;
    max-height: 80vh;
    object-fit: contain;
}

.hidden {
    display: none !important;
}

/* Genie Effect: JS drives the animation frame-by-frame */
.minimized-genie {
    pointer-events: none !important;
}

/* Default transitions (overridden by JS during genie animation) */
.camera-container,
.finder-window {
    transition: transform 0.7s cubic-bezier(0.5, 0, 0, 1), opacity 0.7s, filter 0.7s, border-radius 0.7s;
}