/* Design System - Color Tokens and Typography */

/* Color Tokens - Converted to HSL for better manipulation */
:root {
    /* Base Colors */
    --color-black: 0 0% 13%; /* #212121 */
    --color-white: 0 0% 100%; /* #FFFFFF */
    --color-blue: 210 71% 40%; /* #1A6BBB */
    --color-grey: 0 0% 96%; /* #F4F4F4 */
    
    /* Opacity Variants */
    --opacity-10: 0.1;
    --opacity-20: 0.2;
    --opacity-50: 0.5;
    
    /* Font Families */
    --font-primary: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    
    /* Typography Scale */
    --text-h1-size: 22px;
    --text-h1-weight: 500;
    --text-h1-ls: -0.02em;
    --text-h1-lh: 26px;
    
    --text-body-size: 14px;
    --text-body-weight: 500;
    --text-body-ls: -0.05em;
    --text-body-lh: 18px;
    
    --text-button-size: 16px;
    --text-button-weight: 400;
    --text-button-ls: -0.02em;
    --text-button-lh: 31px;
    
    --text-page-size: 16px;
    --text-page-weight: 500;
    --text-page-ls: -0.02em;
    --text-page-lh: 24px;
    
    --text-h3-size: 14px;
    --text-h3-weight: 400;
    --text-h3-ls: -0.05em;
    --text-h3-lh: 18px;
    
    --text-nav-size: 14px;
    --text-nav-weight: 400;
    --text-nav-ls: -0.05em;
    --text-nav-lh: 18px;
    
    --text-cursive-size: 14px;
    --text-cursive-weight: 400;
    --text-cursive-style: italic;
    --text-cursive-ls: -0.05em;
    --text-cursive-lh: 18px;
}

/* Theme Modes */
[data-theme="light"] {
    --color-background: var(--color-white);
    --color-foreground: var(--color-black);
    --color-primary: var(--color-black);
    --color-primary-foreground: var(--color-white);
}

[data-theme="dark"] {
    --color-background: var(--color-black);
    --color-foreground: var(--color-white);
    --color-primary: var(--color-white);
    --color-primary-foreground: var(--color-black);
}

[data-theme="color"] {
    --color-background: var(--color-grey);
    --color-foreground: var(--color-blue);
    --color-primary: var(--color-blue);
    --color-primary-foreground: var(--color-grey);
}

/* Error Color Token */
:root {
    --color-red: 6, 45%, 58%; /* #CF685E in HSL */
    --color-green: 160, 95%, 25%; /* Brighter green */
}

[data-theme="light"] {
    --color-error: var(--color-red);
    --color-success: var(--color-green);
}

[data-theme="dark"] {
    --color-error: var(--color-red);
    --color-success: var(--color-green);
}

[data-theme="color"] {
    --color-error: var(--color-red);
    --color-success: var(--color-green);
}

/* Default theme */
:root {
    --color-background: var(--color-white);
    --color-foreground: var(--color-black);
    --color-primary: var(--color-black);
    --color-primary-foreground: var(--color-white);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: hsl(var(--color-foreground));
    background-color: hsl(var(--color-background));
    transition: color 0.3s ease, background-color 0.3s ease;
    overflow-x: hidden;
}

/* Typography Utility Classes */
.text-h1 {
    font-family: var(--font-primary);
    font-size: var(--text-h1-size);
    font-weight: var(--text-h1-weight);
    letter-spacing: var(--text-h1-ls);
    line-height: var(--text-h1-lh);
}

.text-body {
    font-family: var(--font-mono);
    font-size: var(--text-body-size);
    font-weight: var(--text-body-weight);
    letter-spacing: var(--text-body-ls);
    line-height: var(--text-body-lh);
}

.text-small {
    font-family: var(--font-primary);
    font-size: var(--text-button-size);
    font-weight: var(--text-button-weight);
    letter-spacing: var(--text-button-ls);
    line-height: var(--text-button-lh);
}

.text-page {
    font-family: var(--font-primary);
    font-size: var(--text-page-size);
    font-weight: var(--text-page-weight);
    letter-spacing: var(--text-page-ls);
    line-height: var(--text-page-lh);
}

.text-h3 {
    font-family: var(--font-mono);
    font-size: var(--text-h3-size);
    font-weight: var(--text-h3-weight);
    letter-spacing: var(--text-h3-ls);
    line-height: var(--text-h3-lh);
    text-transform: uppercase;
}

.text-nav {
    font-family: var(--font-mono);
    font-size: var(--text-nav-size);
    font-weight: var(--text-nav-weight);
    letter-spacing: var(--text-nav-ls);
    line-height: var(--text-nav-lh);
}

.text-cursive {
    font-family: var(--font-mono);
    font-size: var(--text-cursive-size);
    font-weight: var(--text-cursive-weight);
    font-style: var(--text-cursive-style);
    letter-spacing: var(--text-cursive-ls);
    line-height: var(--text-cursive-lh);
}

/* Color Utility Classes */
.color-background {
    color: hsl(var(--color-background));
}

.color-foreground {
    color: hsl(var(--color-foreground));
}

.color-primary {
    color: hsl(var(--color-primary));
}

.color-primary-foreground {
    color: hsl(var(--color-primary-foreground));
}

.bg-background {
    background-color: hsl(var(--color-background));
}

.bg-foreground {
    background-color: hsl(var(--color-foreground));
}

.bg-primary {
    background-color: hsl(var(--color-primary));
}

.bg-primary-foreground {
    background-color: hsl(var(--color-primary-foreground));
}

/* Opacity Utilities */
.opacity-10 {
    opacity: var(--opacity-10);
}

.opacity-20 {
    opacity: var(--opacity-20);
}

.opacity-50 {
    opacity: var(--opacity-50);
}

.container {
    max-width: calc(100vw - 40px);
    margin: 0 20px;
    padding: 0;
}

/* Fixed Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: hsl(var(--color-background) / 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 10px 0;
    border: none;
}

.header-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    align-items: center;
    height: 100%;
    min-height: 60px;
}

.header-empty-1 {
    grid-column: 1 / 3;
}

.header-name-section {
    grid-column: 3 / 6;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
}

.header-name {
    margin: 0;
    line-height: 1;
}

.header-title {
    margin: 0;
    opacity: 1;
    line-height: 1;
}

.header-empty-2 {
    grid-column: 6;
}

.header-nav-item {
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    height: 100%;
    line-height: 1;
}

.header-nav-index {
    grid-column: 7;
}

.header-nav-work {
    grid-column: 8;
}

.header-nav-about {
    grid-column: 9;
}

.header-empty-3 {
    grid-column: 10;
}

.header-nav-cv {
    grid-column: 11;
}

.header-empty-4 {
    grid-column: 12;
}

.nav-link {
    color: hsl(var(--color-foreground));
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: hsl(var(--color-foreground));
    transition: width 0.3s ease;
}

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

.nav-link.active::after {
    width: 100%;
}

.theme-switcher {
    display: flex;
    gap: 0.5rem;
}

.theme-btn {
    background: none;
    border: 2px solid hsl(var(--color-foreground));
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.theme-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.theme-btn.active {
    opacity: 1;
    background-color: hsl(var(--color-primary));
    border-color: hsl(var(--color-primary));
}

/* Main Content */
.main-content {
    margin-top: 100px; /* Account for fixed header */
    margin-bottom: 60px; /* Account for fixed footer */
    min-height: calc(100vh - 160px);
}

/* Index Page */
.index-page {
    padding: 40px 0;
}

/* Page Title */
.page-title {
    padding: 20px 0;
    text-align: left;
    margin-bottom: 20px;
    display: none; /* Hide on desktop by default */
}

/* Desktop Layout */
.desktop-grid {
    display: block;
}

.mobile-content {
    display: none;
}

.page-title-name {
    margin: 0;
    line-height: 1;
}

.page-title-role {
    margin: 0;
    line-height: 1;
    margin-top: 4px;
}

/* 12-Column Grid System */
.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.grid-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* BASED Section (Columns 1-2) */
.based-section {
    grid-column: 1 / 3;
}

/* Column 3: Empty */
.grid-empty-1 {
    grid-column: 3;
}

/* LATELY Section (Columns 4-7) */
.lately-section {
    grid-column: 4 / 8;
}

.lately-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.2;
}

.lately-link {
    color: hsl(var(--color-foreground));
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.lately-link:hover {
    text-decoration: underline;
}

/* Avatar Section (Columns 8-9) */
.avatar-section {
    grid-column: 8 / 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.avatar-container {
    width: 150px;
    height: 196px;
    border-radius: 6px;
    overflow: hidden;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Music Section (Columns 10-12) */
.music-section {
    grid-column: 10 / 13;
    line-height: 1.2;
}

.music-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: block;
    transition: opacity 0.3s ease;
}

.music-link:hover {
    opacity: 0.8;
}

.music-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.music-song-wrapper,
.music-album-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.music-song-wrapper .text-nav,
.music-song-wrapper .text-cursive,
.music-album-wrapper .text-nav,
.music-album-wrapper .text-cursive {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Marquee effect for song and album names */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    background-color: hsl(var(--color-primary) / 0.1);
    padding: 2px 4px;
    border-radius: 2px;
}

.marquee-text {
    display: inline-block;
    animation: marquee 20s linear infinite;
    white-space: nowrap;
}

.marquee-text span {
    display: inline-block;
    margin-right: 2em;
}

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

/* Main About Text (Columns 1-6) */
.main-about {
    grid-column: 1 / 7;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    max-width: 50%;
}

.main-text {
    max-width: 100%;
    word-wrap: break-word;
    hyphens: auto;
}

.learn-more {
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.learn-more::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: hsl(var(--color-foreground));
    transition: width 0.3s ease;
}

.learn-more:hover::after {
    width: 100%;
}

/* Portfolio Cases */
.portfolio-cases {
    margin-top: 140px;
    padding-top: 80px;
}

.portfolio-case {
    margin-bottom: 80px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.portfolio-case:hover {
    cursor: pointer;
}

/* Case Title Section (columns 3-6) */
.case-title-section {
    grid-column: 3 / 7;
    margin-bottom: 8px;
}

.case-title {
    margin: 0;
}

/* Case Details Grid */
.case-details-grid {
    grid-column: 1 / 13;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-bottom: 8px;
}

.case-category {
    grid-column: 1 / 5;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.case-services {
    grid-column: 5 / 9;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.case-empty {
    grid-column: 9 / 13;
}

.case-image {
    grid-column: 1 / 13;
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
}

.case-image-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    object-fit: cover;
    margin-bottom: -1px;
}

.portfolio-case:hover .case-image-img {
    transform: scale(1.02);
}

/* Contact Information Section */
.contact-section {
    margin-top: 100px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.contact-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-column:nth-child(1) {
    grid-column: 1 / 5;
}

.contact-column:nth-child(2) {
    grid-column: 5 / 9;
}

.contact-column:nth-child(3) {
    grid-column: 9 / 13;
}

.contact-title {
    margin: 0;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-link {
    color: hsl(var(--color-foreground));
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-link-no-hover {
    color: hsl(var(--color-foreground));
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.contact-link-no-hover:hover {
    text-decoration: none;
}

/* Custom Cursor System */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background-color: hsl(var(--color-primary));
    border-radius: 50%;
    display: block;
    z-index: 10003;
    pointer-events: none;
    transition: width 0.3s ease, height 0.3s ease, border-radius 0.3s ease;
    /* Hide default cursor */
    cursor: none;
}

.custom-cursor.show {
    width: 120px;
    height: 40px;
    border-radius: 999px;
    background-color: hsl(var(--color-primary));
    color: hsl(var(--color-primary-foreground));
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-cursor.big {
    width: 24px;
    height: 24px;
}

/* Hide default cursor globally */
* {
    cursor: none !important;
}

/* Password Modal */
.password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
}

.password-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: hsl(var(--color-primary) / 0.5);
    backdrop-filter: blur(2px);
}

.password-modal-content {
    position: relative;
    background: hsl(var(--color-background));
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    width: 400px;
    max-width: 90vw;
    z-index: 10002;
}

.password-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0 24px;
    margin-bottom: 20px;
}

.password-modal-title {
    font-family: var(--font-primary);
    font-size: var(--text-h1-size);
    font-weight: var(--text-h1-weight);
    letter-spacing: var(--text-h1-ls);
    line-height: var(--text-h1-lh);
    color: hsl(var(--color-foreground));
    margin: 0;
}

.password-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.password-modal-close:hover {
    opacity: 0.8;
}

.close-icon {
    width: 20px;
    height: 20px;
    filter: none;
}

/* Theme-specific icon colors using filters */
[data-theme="light"] .close-icon {
    filter: brightness(0) saturate(100%);
}

[data-theme="dark"] .close-icon {
    filter: brightness(0) saturate(100%) invert(1);
}

[data-theme="color"] .close-icon {
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(200deg) brightness(104%) contrast(97%);
}

.password-modal-body {
    padding: 0 24px 24px 24px;
}

.password-input-container {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.password-input-wrapper {
    position: relative;
}

.password-input {
    width: 100%;
    padding: 12px 48px 12px 16px;
    border: 2px solid hsl(var(--color-primary) / 0.2);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: var(--text-nav-size);
    font-weight: var(--text-nav-weight);
    letter-spacing: var(--text-nav-ls);
    line-height: var(--text-nav-lh);
    color: hsl(var(--color-foreground));
    background: hsl(var(--color-background));
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.password-input::placeholder {
    color: hsl(var(--color-foreground) / 0.5);
    font-family: var(--font-mono);
    font-size: var(--text-nav-size);
    font-weight: var(--text-nav-weight);
    letter-spacing: var(--text-nav-ls);
    line-height: var(--text-nav-lh);
}

.password-input:focus {
    border-color: hsl(var(--color-primary) / 0.5);
}

.password-input.error {
    border-color: hsl(var(--color-error) / 0.5);
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    transition: opacity 0.2s ease;
}

.password-toggle:hover {
    opacity: 0.8;
}

.eye-icon {
    width: 20px;
    height: 20px;
    filter: none;
}

/* Theme-specific eye icon colors using filters */
[data-theme="light"] .eye-icon {
    filter: brightness(0) saturate(100%);
}

[data-theme="dark"] .eye-icon {
    filter: brightness(0) saturate(100%) invert(1);
}

[data-theme="color"] .eye-icon {
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(200deg) brightness(104%) contrast(97%);
}

.password-error {
    color: hsl(var(--color-error));
    font-family: var(--font-mono);
    font-size: var(--text-nav-size);
    font-weight: var(--text-nav-weight);
    letter-spacing: var(--text-nav-ls);
    line-height: var(--text-nav-lh);
    margin-top: 4px;
    margin-bottom: 0;
    min-height: 16px;
    display: none;
    padding-left: 4px;
}

.password-error.show {
    display: block;
}

.password-submit {
    width: 100%;
    padding: 12px 24px;
    background-color: hsl(var(--color-primary));
    color: hsl(var(--color-primary-foreground));
    border: none;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: var(--text-small-size);
    font-weight: var(--text-small-weight);
    letter-spacing: var(--text-small-ls);
    line-height: var(--text-small-lh);
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.password-submit:hover {
    opacity: 0.9;
}

/* Back to Top Button Container */
.back-to-top-container {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 40px 0;
}

/* Hide back to top button on about page */
.back-to-top-container.hide {
    display: none;
}

/* Sharing Map specific: add extra bottom margin to main content */
.project-sharing-map .main-content {
    margin-bottom: 140px;
}

/* Back to Top Button */
.back-to-top-btn {
    position: relative;
    width: 48px;
    height: 48px;
    background-color: hsl(var(--color-primary));
    color: hsl(var(--color-primary-foreground));
    margin: 0 auto; /* ensure centering even if parent layout differs */
    border: none;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}


.back-to-top-icon {
    width: 24px;
    height: 24px;
    filter: none;
}

/* Theme-specific back to top icon colors */
[data-theme="light"] .back-to-top-icon {
    filter: brightness(0) saturate(100%) invert(1);
}

[data-theme="dark"] .back-to-top-icon {
    filter: brightness(0) saturate(100%);
}

[data-theme="color"] .back-to-top-icon {
    filter: brightness(0) saturate(100%) invert(1);
}

/* Project Page Styles */
/* Header Back Button */
.header-back {
    grid-column: 1 / 3;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Project Page Back to Top Button - same as other pages */
.project-page .back-to-top-container {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 40px 0;
}

.back-button {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

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

.back-icon {
    width: 24px;
    height: 24px;
    filter: none;
}

/* Back Icon Color Filters */
[data-theme="light"] .back-icon {
    filter: brightness(0) saturate(100%);
}

[data-theme="dark"] .back-icon {
    filter: brightness(0) saturate(100%) invert(1);
}

[data-theme="color"] .back-icon {
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(200deg) brightness(104%) contrast(97%);
}

/* Project Title Section */
.header-title-section {
    grid-column: 3 / 7;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

/* Hide mobile project title on desktop */
.mobile-project-title {
    display: none;
}

.project-title {
    margin: 0;
    text-align: left;
    line-height: 1.2;
}

/* Project Overview Section */
.project-overview {
    margin-top: 100px;
    margin-bottom: 80px;
}

.project-details-row {
    grid-column: 1 / 13;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.project-category {
    grid-column: 1 / 5;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-services {
    grid-column: 5 / 9;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-disclaimer {
    grid-column: 9 / 13;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.project-disclaimer p {
    margin: 0;
    text-align: left;
}

.project-intro {
    grid-column: 1 / 5;
    margin-bottom: 40px;
}

.project-intro h1 {
    margin: 0;
}

.project-summary {
    grid-column: 5 / 9;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.project-summary p {
    margin: 0;
}

/* Project Hero Image (Columns 9-12) */
.project-hero-image {
    grid-column: 9 / 13;
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
    height: calc(100% - 2px);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 6px;
}

/* Challenge & Objective Section */
.challenge {
    margin-bottom: 16px;
}

.challenge-objective {
    margin-bottom: 80px;
}

.challenge-heading {
    grid-column: 3 / 7;
    margin-bottom: 4px;
}

.challenge-heading h1 {
    margin: 0;
}

.challenge-content {
    grid-column: 1 / 13;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.challenge-content p {
    margin: 0;
}

/* Challenge Image Styling */
.challenge-image {
    grid-column: 1 / 13;
    width: 100%;
    margin-top: 12px;
    border-radius: 6px;
    overflow: hidden;
}

.challenge-image-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.challenge-image-caption {
    text-align: center;
    margin: 0;
    padding-top: 12px;
    font-style: italic;
    opacity: 0.5;
}

/* Project Link Styling */
.project-link {
    color: hsl(var(--color-foreground));
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

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

/* Design Process Section */
.design-process {
    margin-bottom: 80px;
}

.design-heading {
    grid-column: 3 / 7;
    margin-bottom: 20px;
}

.design-heading h1 {
    margin: 0;
}

.design-content {
    grid-column: 1 / 13;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.design-content p {
    margin: 0;
}

/* Design Images Styling */
.design-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.design-image {
    width: 100%;
}

.design-image-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.design-image-caption {
    text-align: center;
    margin: 0;
    padding-top: 12px;
    font-style: italic;
    opacity: 0.5;
}

/* Key Screens Section */
.key-screens {
    margin-bottom: 80px;
}

.key-screens-heading {
    grid-column: 3 / 7;
    margin-bottom: 20px;
}

.key-screens-heading h1 {
    margin: 0;
}

.key-screens-content {
    grid-column: 1 / 13;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.key-screens-content > p {
    margin: 0;
}

/* Screen Sections */
.screen-section {
    margin-bottom: 60px;
}

.screen-title-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.screen-title {
    margin: 0;
    grid-column: 3 / 7;
}

.screen-blocks {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.screen-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.screen-block:nth-child(1) {
    grid-column: 1 / 5;
}

.screen-block:nth-child(2) {
    grid-column: 5 / 9;
}

.screen-block:nth-child(3) {
    grid-column: 9 / 13;
}

.screen-block-title {
    margin: 0;
    font-weight: 600;
}

.screen-block p {
    margin: 0;
}

/* Screen Images */
.screen-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.screen-image {
    width: 100%;
}

.screen-image-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.screen-image-caption {
    text-align: center;
    margin: 0;
    padding-top: 12px;
    font-style: italic;
    opacity: 0.5;
}

/* Shipment Creation Flow Section */
.shipment-creation-flow {
    margin-bottom: 80px;
}

.shipment-creation-heading {
    grid-column: 3 / 7;
    margin-bottom: 20px;
}

.shipment-creation-heading h1 {
    margin: 0;
}

.shipment-creation-content {
    grid-column: 1 / 13;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Shipment Creation Text Blocks */
.shipment-creation-blocks {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.shipment-creation-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shipment-creation-block:nth-child(1) {
    grid-column: 1 / 5;
}

.shipment-creation-block:nth-child(2) {
    grid-column: 5 / 9;
}

.shipment-creation-block:nth-child(3) {
    grid-column: 9 / 13;
}

.shipment-creation-block-title {
    margin: 0;
    font-weight: 600;
}

.shipment-creation-block p {
    margin: 0;
}

.shipment-creation-block ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.shipment-creation-block li {
    margin-bottom: 8px;
}

.shipment-creation-block li:last-child {
    margin-bottom: 0;
}

/* Shipment Creation Images */
.shipment-creation-image {
    width: 100%;
}

.shipment-creation-image-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.shipment-creation-image-caption {
    text-align: center;
    margin: 0;
    padding-top: 12px;
    font-style: italic;
    opacity: 0.5;
}

/* Image Rows for Side-by-Side Images */
.shipment-creation-images-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Text Paragraphs */
.shipment-creation-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.shipment-creation-text p {
    margin: 0 0 4px 0;
    font-weight: 500;
}

.shipment-creation-text ul {
    margin: 0;
    padding-left: 20px;
}

.shipment-creation-text li {
    margin-bottom: 4px;
}

.shipment-creation-text li:last-child {
    margin-bottom: 0;
}

/* Consistency & Design System Section */
.consistency-design-system {
    margin-bottom: 80px;
}

.consistency-heading {
    grid-column: 3 / 7;
    margin-bottom: 20px;
}

.consistency-heading h1 {
    margin: 0;
}

.consistency-content {
    grid-column: 1 / 13;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.consistency-content p {
    margin: 0;
}

/* Consistency Images */
.consistency-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.consistency-image {
    width: 100%;
}

.consistency-image-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.consistency-image-caption {
    text-align: center;
    margin: 0;
    padding-top: 12px;
    font-style: italic;
    opacity: 0.5;
}

/* Value & Impact Section */
.value-impact {
    margin-bottom: 80px;
}

.value-impact-heading {
    grid-column: 3 / 7;
    margin-bottom: 20px;
}

.value-impact-heading h1 {
    margin: 0;
}

.value-impact-content {
    grid-column: 1 / 13;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.value-impact-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.value-impact-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.value-impact-title {
    margin: 0;
}

.value-impact-block p {
    margin: 0;
}

.value-impact-metric {
    font-family: var(--font-mono);
    font-size: var(--text-nav-size);
    font-weight: 600;
    margin: 0;
}

.success-metric {
    color: hsl(var(--color-success));
}

.error-metric {
    color: hsl(var(--color-error));
}

/* Takeaways Section */
.takeaways {
    margin-bottom: 60px;
}

.takeaways-heading {
    grid-column: 3 / 7;
    margin-bottom: 20px;
}

.takeaways-content {
    grid-column: 1 / 13;
}

.takeaways-list {
    margin: 0;
    padding-left: 20px;
}

.takeaways-list li {
    margin-bottom: 8px;
}

.takeaways-list li:last-child {
    margin-bottom: 0;
}

/* Text Highlighting */
.text-highlight {
    background-color: hsl(var(--color-primary) / 0.1);
    padding: 2px 4px;
    border-radius: 2px;
}

/* Project Category Section */
.project-category {
    margin-bottom: 40px;
}

.project-category-content {
    grid-column: 1 / 13;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-category-content h2 {
    margin: 0;
    font-weight: 600;
}

.project-category-content p {
    margin: 0;
}

/* Project Services Section */
.project-services {
    margin-bottom: 40px;
}

.project-services-content {
    grid-column: 1 / 13;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-services-content h2 {
    margin: 0;
    font-weight: 600;
}

.project-services-content p {
    margin: 0;
}

/* Project Disclaimer Section */
.project-disclaimer {
    margin-bottom: 60px;
}

.project-disclaimer-content {
    grid-column: 1 / 13;
    display: flex;
    justify-content: center;
}

.project-disclaimer-content p {
    margin: 0;
    text-align: center;
    opacity: 0.7;
}

/* Challenge Details Row */
.challenge-details-row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.challenge-candidates {
    grid-column: 1 / 7;
}

.challenge-agencies {
    grid-column: 7 / 13;
}

.challenge-candidates h3,
.challenge-agencies h3 {
    margin: 0 0 12px 0;
    font-weight: 400;
}

.challenge-candidates ul,
.challenge-agencies ul {
    margin: 0;
    padding-left: 20px;
}

.challenge-candidates li,
.challenge-agencies li {
    margin-bottom: 8px;
}

.challenge-candidates li:last-child,
.challenge-agencies li:last-child {
    margin-bottom: 0;
}

/* Text Row Layout */
.shipment-creation-text-row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.shipment-creation-text-block {
    grid-column: 1 / 7;
}

.shipment-creation-text-block:nth-child(2) {
    grid-column: 7 / 13;
}

.shipment-creation-text-block p {
    margin: 0 0 8px 0;
    font-weight: 500;
}

.shipment-creation-text-block ul {
    margin: 0;
    padding-left: 20px;
}

.shipment-creation-text-block li {
    margin-bottom: 4px;
}

.shipment-creation-text-block li:last-child {
    margin-bottom: 0;
}

.cursor-text {
    font-family: var(--font-primary);
    font-size: var(--text-small-size);
    font-weight: var(--text-small-weight);
    letter-spacing: var(--text-small-ls);
    line-height: var(--text-small-lh);
    white-space: nowrap;
    display: none;
}

.custom-cursor.show .cursor-text {
    display: block;
}


/* Additional styles can be added here for future pages */

/* Fixed Footer */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: hsl(var(--color-background) / 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 0;
    z-index: 1000;
    border: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    align-items: center;
}

/* Columns 1-4: TLV, IL + time */
.footer-timezone:nth-child(1) {
    grid-column: 1 / 5;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    white-space: nowrap;
}

/* Columns 5-8: BER, DE + time */
.footer-timezone:nth-child(2) {
    grid-column: 5 / 9;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    white-space: nowrap;
}

/* Columns 9-12: CNX, TH + time + theme switcher */
.footer-right {
    grid-column: 9 / 13;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-timezone:nth-child(3) {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    white-space: nowrap;
}

.footer-theme {
    display: flex;
    align-items: center;
}

.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}


.theme-icon {
    width: 16px;
    height: 16px;
    filter: none;
    transition: all 0.3s ease;
    color: hsl(var(--color-primary));
    fill: currentColor;
}

[data-theme="light"] .theme-icon {
    filter: none;
}

[data-theme="dark"] .theme-icon {
    filter: none;
}

[data-theme="color"] .theme-icon {
    filter: none;
}

.theme-icon svg {
    color: inherit;
    fill: currentColor;
}

.theme-icon svg * {
    fill: currentColor;
    stroke: currentColor;
}

/* Force color inheritance for all theme icons with maximum specificity */
[data-theme="light"] .theme-toggle-btn .theme-icon,
[data-theme="light"] .theme-toggle-btn .theme-icon svg,
[data-theme="light"] .theme-toggle-btn .theme-icon svg path {
    fill: hsl(var(--color-primary)) !important;
    stroke: hsl(var(--color-primary)) !important;
    color: hsl(var(--color-primary)) !important;
}

[data-theme="dark"] .theme-toggle-btn .theme-icon,
[data-theme="dark"] .theme-toggle-btn .theme-icon svg,
[data-theme="dark"] .theme-toggle-btn .theme-icon svg path {
    fill: hsl(var(--color-primary)) !important;
    stroke: hsl(var(--color-primary)) !important;
    color: hsl(var(--color-primary)) !important;
}

[data-theme="color"] .theme-toggle-btn .theme-icon,
[data-theme="color"] .theme-toggle-btn .theme-icon svg,
[data-theme="color"] .theme-toggle-btn .theme-icon svg path {
    fill: hsl(var(--color-primary)) !important;
    stroke: hsl(var(--color-primary)) !important;
    color: hsl(var(--color-primary)) !important;
}

/* Additional specificity for SVG elements */
.theme-toggle-btn .theme-icon svg path {
    fill: currentColor !important;
    stroke: currentColor !important;
}

.theme-toggle-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

.theme-toggle-btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* About Page Styles */
.about-page {
    margin-top: 0;
}

.about-check-section,
.about-say-hello-section,
.about-follow-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-check-section h3,
.about-say-hello-section h3,
.about-follow-section h3 {
    margin: 0;
}

.about-check-section {
    grid-column: 1 / 5;
}

.about-say-hello-section {
    grid-column: 5 / 9;
}

.about-follow-section {
    grid-column: 9 / 13;
}

.about-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.about-link {
    color: hsl(var(--color-foreground));
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.about-link:hover {
    text-decoration: underline;
}

.about-link-no-hover {
    color: hsl(var(--color-foreground));
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.about-link-no-hover:hover {
    text-decoration: none;
}

.about-main-text {
    grid-column: 1 / 13;
    margin-top: 40px;
    max-width: 60%;
}

.about-main-text h1,
.about-main-text p {
    margin-bottom: 20px;
}

.about-main-text h1:last-of-type {
    margin-bottom: 20px;
}

.about-main-text p:last-of-type {
    margin-bottom: 0;
}

.about-selected-work {
    margin-top: 30px;
}


/* Mobile Burger Menu */
.mobile-burger {
    display: none;
}

.burger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.burger-line {
    width: 24px;
    height: 2px;
    background-color: hsl(var(--color-foreground));
    transition: all 0.3s ease;
}

.burger-btn.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-btn.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-btn.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: hsl(var(--color-background));
    border-bottom: 1px solid hsl(var(--color-foreground) / 0.1);
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-nav-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav-link {
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid hsl(var(--color-foreground) / 0.1);
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

/* Prevent horizontal scrolling */
body {
    overflow-x: hidden;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-grid,
    .footer-grid {
        gap: 16px;
    }
    
    .grid-12 {
        gap: 16px;
    }
    
    .based-section {
        grid-column: 1 / 4;
    }
    
    .grid-empty-1 {
        grid-column: 4;
    }
    
    .lately-section {
        grid-column: 5 / 9;
    }
    
    .avatar-section {
        grid-column: 9 / 11;
    }
    
    .music-section {
        grid-column: 11 / 13;
    }
    
    .main-about {
        grid-column: 1 / 9;
    }
}

@media (max-width: 768px) {
    /* Override CSS variables for mobile */
    :root {
        --text-nav-size: 14px;
        --text-cursive-size: 14px;
        --text-nav-lh: 18px;
        --text-cursive-lh: 18px;
    }
    
    /* Ensure consistent font sizing in music section */
    .mobile-music-section .text-nav,
    .mobile-music-section .text-cursive,
    .mobile-music-section .marquee-text span.text-cursive,
    .mobile-music-section .marquee-text span,
    .mobile-music-section p.text-cursive,
    .music-album-wrapper p.text-cursive,
    .music-song-wrapper .text-cursive {
        font-size: var(--text-cursive-size) !important;
        line-height: var(--text-cursive-lh) !important;
        font-weight: var(--text-cursive-weight) !important;
        letter-spacing: var(--text-cursive-ls) !important;
    }
    
    /* Mobile Header - Fixed position at top with glass effect */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: hsl(var(--color-background) / 0.5);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 10px 0;
        min-height: 47px;
        border: none;
    }
    
    /* Mobile Header - Show 4 nav items in one row */
    .header-grid {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        padding: 0;
        min-height: 24px;
    }
    
    .header .container {
        margin: 0;
        max-width: 100%;
        padding: 0;
    }
    
    /* Hide name section and burger menu on mobile */
    .header-name-section,
    .mobile-burger {
        display: none;
    }
    
    /* Hide empty columns */
    .header-empty-1,
    .header-empty-2,
    .header-empty-3,
    .header-empty-4 {
        display: none;
    }
    
    /* Show all 4 nav items in a row */
    .header-nav-item {
        display: flex;
        justify-content: center;
        align-items: center;
        flex: 1;
        margin: 0;
    }
    
    /* Keep mobile nav hidden since we're showing nav items in header */
    .mobile-nav {
        display: none;
    }
    
    /* Mobile Footer - Fixed position at bottom with glass effect */
    .footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: hsl(var(--color-background) / 0.5);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 10px 0;
        min-height: 47px;
        border: none;
    }
    
    /* Mobile Footer - Show only TLV time and theme switcher */
    .footer-grid {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 0 16px;
        min-height: 24px;
    }
    
    .footer .container {
        margin: 0;
        max-width: 100%;
        padding: 0;
    }
    
    /* Show only first timezone (TLV) */
    .footer-timezone:nth-child(1) {
        display: flex;
        flex: 1;
    }
    
    /* Hide BER timezone */
    .footer-timezone:nth-child(2) {
        display: none;
    }
    
    /* Footer right section with theme switcher */
    .footer-right {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        flex: 0 0 auto;
    }
    
    /* Hide CNX timezone within footer-right */
    .footer-right .footer-timezone {
        display: none;
    }
    
    /* Keep theme switcher visible */
    .footer-theme {
        display: flex;
    }
    
    .grid-12 {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .grid-empty-1 {
        display: none;
    }
    
    /* Hide custom cursor on mobile */
    .custom-cursor {
        display: none !important;
    }
    
    /* Show default cursor on mobile */
    * {
        cursor: auto !important;
    }
    
    /* Hide scroll to top button on mobile */
    .back-to-top-container {
        display: none !important;
    }
    
    /* Page title mobile styling */
    .page-title {
        display: block; /* Show on mobile */
        padding: 16px 0;
        margin-bottom: 16px;
    }
    
    .page-title-name,
    .page-title-role {
        font-size: 18px;
        line-height: 1.2;
    }
    
    .page-title-role {
        margin-top: 2px;
    }
    
    /* Remove outer spacing from index page on mobile */
    .index-page {
        margin: 0;
        padding: 0;
    }
    
    /* Remove any extra padding from main content on mobile */
    .main-content {
        padding: 0;
    }
    
    /* Reduce spacing for index section on mobile */
    #index {
        margin-top: 0px;
        margin-bottom: 0px;
    }
    
    /* Ensure container has proper margins but no extra padding */
    .container {
        margin: 0 16px;
        max-width: calc(100vw - 32px);
        padding: 0;
    }
    
    /* Mobile Content Layout */
    .mobile-content {
        display: block;
    }
    
    .desktop-grid {
        display: none;
    }
    
    /* Mobile Avatar + Music Wrapper */
    .mobile-avatar-music-wrapper {
        display: flex;
        align-items: flex-start;
        gap: 16px;
        margin: 20px 0 30px 0;
        width: 100%;
        max-width: 100%;
        overflow: hidden; /* Prevent wrapper overflow */
    }
    
    /* Mobile Avatar Section */
    .mobile-avatar-section {
        flex-shrink: 0;
        width: 116px;
    }
    
    .mobile-avatar-container {
        width: 116px;
        height: 172px;
        border-radius: 6px;
        overflow: hidden;
    }
    
    .mobile-avatar-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Mobile Music Section */
    .mobile-music-section {
        flex: 1;
        line-height: 1.2;
        margin: 0;
        min-width: 0; /* Allow flex item to shrink below content size */
        overflow: hidden; /* Prevent content overflow */
    }
    
    /* Mobile Main About */
    .mobile-main-about {
        margin: 40px 0;
        padding: 20px 0;
    }
    
    .mobile-main-about .main-text {
        margin-bottom: 16px;
    }
    
    /* Add gap between Learn more button and Based section */
    .mobile-main-about .learn-more {
        margin-bottom: 20px;
    }
    
    /* Mobile Based Section */
    .mobile-based-section {
        margin: 20px 0 30px 0;
    }
    
    /* Mobile Lately Section */
    .mobile-lately-section {
        margin: 20px 0;
    }
    
    .mobile-lately-section .lately-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
        line-height: 1.2;
    }
    
    .mobile-lately-section .lately-link {
        color: hsl(var(--color-foreground));
        text-decoration: none;
        transition: all 0.3s ease;
        display: block;
    }
    
    .mobile-lately-section .lately-link:hover {
        text-decoration: underline;
    }
    
    /* Mobile Projects Layout */
    .portfolio-cases {
        margin-top: 50px;
        padding-top: 30px;
    }
    
    .portfolio-case {
        margin-bottom: 60px;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    /* Project titles - full width within container margins */
    .case-title-section {
        width: 100%;
        margin-bottom: 0;
    }
    
    .case-title {
        margin: 0;
        width: 100%;
    }
    
    /* Project details - full width */
    .case-details-grid {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 0;
    }
    
    .case-category,
    .case-services {
        width: 100%;
    }
    
    .case-empty {
        display: none;
    }
    
    /* Project images - full screen width, no border radius */
    .case-image {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        border-radius: 0;
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: flex-start;
    }
    
    .case-image-img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.3s ease;
        object-fit: cover;
        margin-bottom: 0;
        border-radius: 0;
    }
    
    .portfolio-case:hover .case-image-img {
        transform: none; /* Disable hover effect on mobile */
    }
    
    /* Mobile Contact Sections Layout */
    .contact-section {
        margin-top: 40px;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    
    .contact-column {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-bottom: 30px;
    }
    
    .contact-column:nth-child(1),
    .contact-column:nth-child(2),
    .contact-column:nth-child(3) {
        grid-column: unset;
        width: 100%;
    }
    
    .contact-title {
        margin: 0;
        width: 100%;
    }
    
    .contact-links {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .contact-link,
    .contact-link-no-hover {
        width: 100%;
    }
    
    /* Mobile Font Size Standardization - 14px */
    
    /* Header navigation items */
    .header-nav-item,
    .header-nav-item a {
        font-size: 14px;
    }
    
    /* Footer items */
    .footer-timezone,
    .footer-theme,
    .footer-timezone span,
    .footer-theme button {
        font-size: 14px;
    }
    
    /* Section headers and content - Playing in my head */
    .mobile-music-section h3 {
        margin-bottom: 12px;
    }
    
    /* Section headers and content - Based */
    .mobile-based-section h3,
    .mobile-based-section p {
        font-size: 14px;
    }
    
    .mobile-based-section h3 {
        margin-bottom: 12px;
    }
    
    /* Section headers and content - Lately */
    .mobile-lately-section h3,
    .mobile-lately-section .lately-link {
        font-size: 14px;
    }
    
    .mobile-lately-section h3 {
        margin-bottom: 12px;
    }
    
    /* Section headers and content - Check, Say hello, Follow me */
    .contact-title,
    .contact-link,
    .contact-link-no-hover {
        font-size: 14px;
    }
    
    /* Ensure all contact section elements are 14px */
    .contact-column h3,
    .contact-column p,
    .contact-column a {
        font-size: 14px;
    }
    
    /* Reduced gap between contact section titles and content */
    .contact-column h3 {
        margin-bottom: 8px;
    }
    
    /* Preloader caption */
    .preloader-caption {
        font-size: 14px;
    }
    
    /* Project details - Category and Services */
    .case-category,
    .case-services {
        font-size: 14px;
    }
    
    .based-section,
    .lately-section,
    .avatar-section,
    .music-section,
    .main-about {
        grid-column: 1;
    }
    
    .avatar-container {
        width: 120px;
        height: 157px;
    }
    
    /* Project Page Mobile Layout - Full Width & Vertical Stacking */
    
    /* Project Page Header - Mobile Only */
    .back-button {
        margin-left: 16px;
    }
    
    /* Hide project title from header on mobile */
    .header-title-section {
        display: none;
    }
    
    /* Mobile project title in page content */
    .mobile-project-title {
        display: block !important;
        font-size: 16px;
        font-weight: 500;
        margin: 80px 0 30px 0; /* Large top margin to clear fixed header */
        text-align: left;
        line-height: 1.2;
    }
    
    /* Show line breaks in mobile project titles */
    .mobile-project-title br {
        display: block;
    }
    
    /* Project Overview Section */
    .project-overview {
        grid-column: 1 / 13;
        margin-top: 40px;
        margin-bottom: 40px;
        width: 100%;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .project-details-row {
        grid-column: 1 / 13;
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
        width: 100%;
        padding: 0;
    }
    
    .project-category,
    .project-services,
    .project-disclaimer {
        grid-column: unset;
        width: 100%;
        margin-bottom: 0;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .project-disclaimer {
        display: flex;
        justify-content: flex-start;
    }
    
    .project-disclaimer p {
        text-align: left;
    }
    
    /* Project Intro and Summary */
    .project-intro {
        grid-column: 1 / 13;
        width: 100%;
        margin-bottom: 30px;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .project-summary {
        grid-column: 1 / 13;
        width: 100%;
        margin-bottom: 30px;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Project Hero Image */
    .project-hero-image {
        grid-column: 1 / 13;
        width: 100%;
        margin-bottom: 40px;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Project Role Details */
    .project-role-details {
        grid-column: 1 / 13;
        width: 100%;
        margin-bottom: 30px;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Challenge and Process Sections */
    .challenge-heading,
    .design-process,
    .project-category,
    .project-services {
        grid-column: 1 / 13;
        width: 100%;
        margin-bottom: 30px;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .project-category-content,
    .project-services-content {
        grid-column: 1 / 13;
        width: 100%;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .project-disclaimer-content {
        grid-column: 1 / 13;
        width: 100%;
        justify-content: flex-start;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .project-disclaimer-content p {
        text-align: left;
    }
    
    /* Project Images - Full Width */
    .project-image {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        border-radius: 0;
        margin-bottom: 30px;
    }
    
    .project-image img {
        width: 100%;
        height: auto;
        border-radius: 0;
    }
    
    /* Project Content Sections */
    .project-content {
        grid-column: 1 / 13;
        width: 100%;
        margin-bottom: 30px;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .project-content h2,
    .project-content h3,
    .project-content p {
        margin-bottom: 16px;
    }
    
    .project-content h2:last-child,
    .project-content h3:last-child,
    .project-content p:last-child {
        margin-bottom: 0;
    }
    
    /* Remove bottom margin from paragraphs containing project links */
    .project-content p:has(.project-link) {
        margin-bottom: 0;
    }
    
    /* Project Links */
    .project-link {
        display: inline-block;
        margin-bottom: 0;
    }
    
    /* User Personas - Stack vertically on mobile for Sharing Map project only */
    .project-sharing-map .challenge-content div[style*="display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 40px 0;"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        margin: 40px 0 !important;
    }
    
    .project-sharing-map .challenge-content div[style*="display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 40px 0;"] > div {
        width: 100% !important;
    }
    
    /* JTBD Table - Mobile improvements for Sharing Map project only */
    .project-sharing-map .challenge-content div[style*="overflow-x: auto; margin: 20px 0;"] {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        margin: 20px 0 !important;
    }
    
    .project-sharing-map .challenge-content table {
        min-width: 800px !important;
        width: auto !important;
        table-layout: auto !important;
        white-space: nowrap !important;
    }
    
    /* Hide empty gap div between USER PROFILE and FAVOURITES sections on mobile */
    .project-sharing-map div[style*="height: 40px;"] {
        display: none !important;
    }
    
    /* Set 3px border radius for all images on Sharing Map project page for mobile */
    .project-sharing-map img {
        border-radius: 3px !important;
    }
    
    .project-sharing-map div[style*="border-radius"] {
        border-radius: 3px !important;
    }
    
    .project-sharing-map div[style*="border-radius"] img {
        border-radius: 3px !important;
    }
    
    /* Challenge Image Containers and Images (Sharing Map only) */
    .project-sharing-map .challenge-image {
        border-radius: 3px !important;
    }
    .project-sharing-map .challenge-image-img {
        border-radius: 3px !important;
    }
    
    /* Project Hero Image and Container (Sharing Map only) */
    .project-sharing-map .project-hero-image {
        border-radius: 3px !important;
    }
    .project-sharing-map .hero-image {
        border-radius: 3px !important;
    }
    
    /* Image Border Radius (Globus AI only) */
    .project-globus img {
        border-radius: 3px !important;
    }
    .project-globus div[style*="border-radius"] {
        border-radius: 3px !important;
    }
    .project-globus div[style*="border-radius"] img {
        border-radius: 3px !important;
    }
    
    /* Challenge Image Containers and Images (Globus AI only) */
    .project-globus .challenge-image {
        border-radius: 3px !important;
    }
    .project-globus .challenge-image-img {
        border-radius: 3px !important;
    }
    
    /* Project Hero Image and Container (Globus AI only) */
    .project-globus .project-hero-image {
        border-radius: 3px !important;
    }
    .project-globus .hero-image {
        border-radius: 3px !important;
    }
    
    /* Venn Diagram and Vicious Cycle Images - Stack vertically on mobile for Globus AI project only */
    .project-globus .challenge-content div[style*="display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 40px 0;"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        margin: 40px 0 !important;
    }
    
    .project-globus .challenge-content div[style*="display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 40px 0;"] > div {
        width: 100% !important;
    }
    
    /* Challenge Details Row - Stack vertically on mobile for Globus AI project only */
    .project-globus .challenge-details-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .project-globus .challenge-details-row > div {
        width: 100% !important;
    }
    
    /* Image Border Radius (Logic Solutions only) */
    .project-logic img {
        border-radius: 3px !important;
    }
    .project-logic div[style*="border-radius"] {
        border-radius: 3px !important;
    }
    .project-logic div[style*="border-radius"] img {
        border-radius: 3px !important;
    }
    
    /* Challenge Image Containers and Images (Logic Solutions only) */
    .project-logic .challenge-image {
        border-radius: 3px !important;
    }
    .project-logic .challenge-image-img {
        border-radius: 3px !important;
    }
    
    /* Project Hero Image and Container (Logic Solutions only) */
    .project-logic .project-hero-image {
        border-radius: 3px !important;
    }
    .project-logic .hero-image {
        border-radius: 3px !important;
    }
    
    /* Logic Solutions Project Page - Full Width Content and Vertical Stacking */
    .project-logic .project-overview {
        grid-column: 1 / 13;
        margin-top: 40px;
        margin-bottom: 40px;
        width: 100%;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .project-logic .project-content {
        grid-column: 1 / 13;
        width: 100%;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .project-logic .project-image {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        border-radius: 0;
        margin-bottom: 30px;
    }
    
    .project-logic .project-image img {
        width: 100%;
        height: auto;
        border-radius: 0;
    }
    
    .project-logic .challenge {
        grid-column: 1 / 13;
        width: 100%;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .project-logic .challenge-heading {
        grid-column: 1 / 13;
        width: 100%;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* All section headings - start from column 1 on mobile for Logic Solutions project */
    .project-logic .design-heading,
    .project-logic .key-screens-heading,
    .project-logic .shipment-creation-heading,
    .project-logic .consistency-heading,
    .project-logic .value-impact-heading,
    .project-logic .takeaways-heading {
        grid-column: 1 / 13 !important;
        width: 100% !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .project-logic .challenge-content {
        grid-column: 1 / 13;
        width: 100%;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .project-logic .challenge-image {
        grid-column: 1 / 13;
        width: 100%;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .project-logic .design-content {
        grid-column: 1 / 13;
        width: 100%;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .project-logic .design-images {
        grid-column: 1 / 13;
        display: flex;
        flex-direction: column;
        gap: 20px;
        width: 100%;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .project-logic .design-image {
        width: 100%;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .project-logic .project-page .main-content {
        margin-top: 60px;
        margin-bottom: 60px;
        padding: 0;
    }
    
    .project-logic .project-page .container {
        margin: 0 16px;
        max-width: calc(100vw - 32px);
        padding: 0;
    }
    
    /* Problems, Design, Outcome paragraphs - Stack vertically on mobile for Logic Solutions project only */
    .project-logic .screen-blocks {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .project-logic .screen-blocks > div {
        width: 100% !important;
    }
    
    /* Shipment Creation Blocks - Stack vertically on mobile for Logic Solutions project only */
    .project-logic .shipment-creation-blocks {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .project-logic .shipment-creation-blocks > div {
        width: 100% !important;
    }
    
    /* Shipment Creation Text Row - Stack vertically on mobile for Logic Solutions project only */
    .project-logic .shipment-creation-text-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .project-logic .shipment-creation-text-row > div {
        width: 100% !important;
    }
    
    /* Value Impact Content - Match spacing with value-impact-row for Logic Solutions project only */
    .project-logic .value-impact-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .project-logic .value-impact-content > div {
        width: 100% !important;
    }
    
    /* JTBD table cell styling with reduced height on mobile for Sharing Map project */
    .project-sharing-map .challenge-content table th,
    .project-sharing-map .challenge-content table td {
        min-width: 180px !important;
        max-width: 250px !important;
        width: auto !important;
        padding: 12px 16px !important; /* Reduced from 16px 20px for smaller cell height */
        white-space: normal !important;
        word-wrap: break-word !important;
        vertical-align: top !important;
    }
    
    /* Remove any remaining grid layouts on mobile */
    .project-page .grid-12 {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .project-page .grid-12 > * {
        grid-column: unset;
        width: 100%;
    }
    
    /* Project Page Main Content - Full Width with 16px margins only */
    .project-page .main-content {
        margin-top: 60px;
        margin-bottom: 60px;
        padding: 0;
    }
    
    .project-page .container {
        margin: 0 16px;
        max-width: calc(100vw - 32px);
        padding: 0;
    }
    
    /* Remove any extra padding/margins from project page elements */
    .project-page .project-overview,
    .project-page .project-intro,
    .project-page .project-summary,
    .project-page .project-role-details,
    .project-page .challenge-heading,
    .project-page .design-process,
    .project-page .project-category,
    .project-page .project-services {
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Ensure all project content uses full width within container */
    .project-page .project-content,
    .project-page .challenge-content,
    .project-page .process-content {
        width: 100%;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
    }
    
    .challenge-image {
        grid-column: 1;
    }
    
    .design-content {
        grid-column: 1;
    }
    
    .design-images {
        grid-column: 1;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .design-image {
        grid-column: 1;
    }
    
    .screen-images {
        grid-column: 1;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .screen-image {
        grid-column: 1;
    }
    
    .value-impact-container {
        grid-column: 1;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .value-impact-row {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .value-impact-block {
        grid-column: 1;
    }
    
    /* High-Fidelity Prototypes Mobile Layout */
    .grid-12[style*="grid-column"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .grid-12[style*="grid-column"] > div[style*="grid-column"] {
        grid-column: 1 !important;
        width: 100% !important;
    }
    
    /* Override inline grid styles for mobile */
    div[style*="grid-column: 1 / 7"],
    div[style*="grid-column: 2 / 8"],
    div[style*="grid-column: 7 / 13"],
    div[style*="grid-column: 8 / 13"] {
        grid-column: 1 !important;
        width: 100% !important;
    }
    
    /* User Personas Mobile Layout */
    .challenge-content div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .challenge-content div[style*="display: flex"] > div {
        width: 100% !important;
    }
    
    /* CJM Mobile Layout */
    .challenge-content div[style*="display: flex"][style*="flex-direction: column"] {
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    /* Table Mobile Layout */
    table {
        font-size: 0.8rem;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
    
    table thead,
    table tbody,
    table tr {
        display: table;
        width: 100%;
        table-layout: fixed;
    }
}

@media (max-width: 480px) {
    /* Override CSS variables for smaller mobile screens */
    :root {
        --text-nav-size: 0.8rem;
        --text-cursive-size: 0.8rem;
        --text-nav-lh: 18px;
        --text-cursive-lh: 18px;
    }
    
    /* Ensure consistent font sizing in music section */
    .mobile-music-section .text-nav,
    .mobile-music-section .text-cursive,
    .mobile-music-section .marquee-text span.text-cursive,
    .mobile-music-section .marquee-text span,
    .mobile-music-section p.text-cursive,
    .music-album-wrapper p.text-cursive,
    .music-song-wrapper .text-cursive {
        font-size: var(--text-cursive-size) !important;
        line-height: var(--text-cursive-lh) !important;
        font-weight: var(--text-cursive-weight) !important;
        letter-spacing: var(--text-cursive-ls) !important;
    }
    
    .container {
        margin: 0 16px;
        max-width: calc(100vw - 32px);
        padding: 0;
    }
    
    .main-content {
        margin-top: 60px;
        margin-bottom: 60px;
        padding: 0;
    }
    
    .avatar-container {
        width: 90px;
        height: 118px;
    }
    
    .main-about {
        max-width: 100%;
    }
    
    /* About page responsive */
    .about-check-section,
    .about-say-hello-section,
    .about-follow-section {
        grid-column: 1 / 13;
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    /* Add spacing between sections */
    .about-check-section {
        margin-bottom: 20px;
    }
    
    .about-say-hello-section {
        margin-bottom: 20px;
    }
    
    .about-follow-section {
        margin-bottom: 0;
    }
    
    .about-check-section h3,
    .about-say-hello-section h3,
    .about-follow-section h3 {
        margin: 0;
        margin-bottom: 12px;
        font-size: 14px;
    }
    
    .about-check-section p,
    .about-say-hello-section p,
    .about-follow-section p,
    .about-check-section a,
    .about-say-hello-section a,
    .about-follow-section a {
        font-size: 14px;
    }
    
    .about-links {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }
    
    .about-link,
    .about-link-no-hover {
        width: 100%;
    }
    
    .about-main-text {
        max-width: 100%;
        margin-top: 40px;
    }
    
    /* Add top and bottom spacing to About page content */
    .about-page .main-content {
        margin-top: 80px;
        margin-bottom: 80px;
    }
    
    .about-main-text h1,
    .about-main-text p {
        font-size: 22px;
        font-weight: 500;
        letter-spacing: -0.02em;
        line-height: 26px;
        margin-bottom: 20px;
    }
    
    .about-main-text h1:last-of-type {
        margin-bottom: 20px;
    }
    
    /* Keep the "Ever since I was a little girl..." text at 14px */
    .about-main-text p:last-of-type {
        font-size: 14px;
        font-weight: 400;
        letter-spacing: normal;
        line-height: normal;
        margin-bottom: 0;
    }
    
    /* Add gap below Selected work button on mobile */
    .about-selected-work {
        margin-top: 30px;
        margin-bottom: 20px;
    }
    
    /* Additional mobile optimizations for very small screens */
    .text-h1 {
        font-size: 1.5rem;
    }
    
    .text-h3 {
        font-size: 1.2rem;
    }
    
    .text-page {
        font-size: 0.9rem;
    }
    
    
    .challenge-image-img,
    .design-image-img,
    .screen-image-img {
        width: 100%;
        height: auto;
    }
    
    /* Ensure all content stacks vertically on very small screens */
    .grid-12 {
        gap: 16px;
    }
    
    .challenge {
        margin-bottom: 20px;
    }
    
    .challenge-heading {
        margin-bottom: 8px;
    }
    
    /* Mobile-friendly spacing */
    .main-content {
        padding: 0;
    }
    
    /* Mobile Avatar Positioning */
    .avatar-section {
        position: fixed;
        top: 100px;
        right: 20px;
        z-index: 100;
        grid-column: 1;
    }
    
    .avatar-container {
        width: 60px;
        height: 78px;
    }
}

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: hsl(var(--color-background));
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s ease;
    /* Ensure preloader is always visible initially */
    visibility: visible;
    pointer-events: auto;
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 30px;
}

.preloader-text {
    font-family: var(--font-mono);
    font-size: var(--text-nav-size);
    font-weight: var(--text-nav-weight);
    line-height: var(--text-nav-lh);
    letter-spacing: var(--text-nav-ls);
    color: hsl(var(--color-foreground));
    margin: 0;
    opacity: 1;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-main-text {
    display: inline-block;
    flex-shrink: 0;
    white-space: nowrap;
}

.preloader-dots {
    display: inline-block;
    width: 30px;
    text-align: left;
    flex-shrink: 0;
    overflow: hidden;
}

/* CSS-only loading dots animation as fallback */
.preloader-dots::after {
    content: '';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 16.66% { content: '.'; }
    33.33% { content: '..'; }
    50% { content: '...'; }
    66.66%, 100% { content: ''; }
}

@keyframes dotsPulse {
    0%, 20% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
    80%, 100% {
        opacity: 0.3;
    }
}

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

.preloader-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    opacity: 0;
    display: none;
    transition: opacity 0.2s ease;
}

.preloader-image.active {
    opacity: 1;
    display: block;
}

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