/* ==============================================
   GUADALESS | Portfolio
   ============================================== */

@font-face {
    font-family: 'Chunkfive Ex';
    src: url('fonts/Chunkfive Ex.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Barionette Script';
    src: url('fonts/BarionetteScript_PERSONAL_USE_ONLY.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    /* Color Palette */
    --beige: #E9D8A6;
    --teal: #92efe3;
    --charcoal: #1C1B19;
    --charcoal-light: #2A2825;
    --off-white: #FAF9F6;
    --light-blue: #e7f9fe;

    /* Typography */
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Layout */
    --max-width: 1400px;
}

/* ==============================================
   Reset & Global Styles
   ============================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--off-white);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s ease, color 0.4s ease;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6,
.logo {
    font-family: var(--font-heading);
    font-weight: 500;
}

/* ==============================================
   Global Title Hover Underline Effect
   Uses width:fit-content so ::after width:100% = exact text width.
   Scoped to exclude nav, hero, buttons, and footer.
   ============================================== */

/* --- Section titles: fit-content + margin auto keeps them centered,
       while making ::after width:100% equal the actual text width --- */
.section-title {
    display: block;
    width: fit-content;  /* Box shrinks to text width */
    margin-left: auto;   /* Keeps it centered on the page */
    margin-right: auto;
    font-size: 3.5rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-align: center;
    color: var(--charcoal);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;             /* Starts exactly at first character */
    width: 0%;
    height: 3px;
    background-color: var(--teal);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-title:hover::after {
    width: 100%;         /* Ends exactly at last character */
}

/* --- Left-aligned titles (.about-page-title): fit-content so underline matches text --- */
.about-page-title {
    position: relative;
    width: fit-content; /* Shrinks to text width so underline aligns precisely */
}

.about-page-title::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--teal);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-page-title:hover::after {
    width: 100%;
}

/* --- Generic h2/h3 in content: no layout change, underline to fit-content via span trick --- */
/* These remain block-level to avoid breaking flex/grid layouts.
   Underline is scoped to named classes only (section-title, about-page-title, about-subtitle). */


/* --- About subtitle: already has decorative underline, enhance it on hover --- */
.about-subtitle {
    position: relative;
    width: fit-content; /* Safe: about-subtitle is inline-style, not a layout element */
}

.about-subtitle::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px; /* Starts as decorative accent */
    height: 3px;
    background-color: var(--teal);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-subtitle:hover::after {
    width: 100%;
}

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

/* When section-title is left-aligned, reset auto centering margins */
.section-title.text-left {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--charcoal-light);
    margin-bottom: 3rem;
    font-weight: 300;
}

.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 6rem 2rem;
}

.bg-secondary {
    background-color: #FFFFFF; /* Changed to white */
}

/* ==============================================
   Buttons
   ============================================== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--teal);
    z-index: -1;
    transition: var(--transition);
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background-color: var(--charcoal);
    color: var(--off-white);
}

.btn-secondary {
    background-color: var(--charcoal);
    color: var(--off-white);
}

.btn-secondary::before {
    background: var(--off-white);
}

.btn-secondary:hover {
    color: var(--charcoal);
}

/* ==============================================
   Header Navigation
   ============================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: var(--transition);
    background-color: transparent;
}

.header.scrolled {
    background-color: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    height: 40px; /* Adjust based on your logo aspect ratio */
}

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.nav-links a {
    color: var(--off-white);
}

.social-icons a {
    color: var(--off-white);
}

.menu-toggle {
    color: var(--off-white);
}

.header.scrolled .logo,
.header.scrolled .nav-links a,
.header.scrolled .social-icons a,
.header.scrolled .menu-toggle {
    color: var(--charcoal);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    /* couleur définie globalement plus haut (.nav-links a { color: var(--off-white) }) */
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--teal);
    transition: var(--transition);
}

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

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    font-size: 1.2rem;
    display: inline-block;
    /* couleur définie globalement plus haut */
}

.social-icons a:hover {
    color: var(--teal);
    transform: translateY(-3px) scale(1.1);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    /* couleur définie globalement plus haut */
}

/* ==============================================
   Language Selector
   ============================================== */
.lang-selector {
    position: relative;
    user-select: none;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--off-white);
    padding: 0.5rem 1rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition);
}

.header.scrolled .lang-btn {
    color: var(--charcoal);
    border-color: rgba(0, 0, 0, 0.1);
}

.lang-btn:hover {
    background-color: rgba(146, 239, 227, 0.15);
    border-color: var(--teal);
}

.lang-arrow {
    font-size: 0.8rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lang-selector.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: #fff;
    min-width: 140px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.lang-selector.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
    color: var(--charcoal);
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 400;
}

.lang-dropdown li:hover {
    background-color: var(--light-blue);
    color: var(--teal);
}

.lang-dropdown li.active {
    font-weight: 700;
    color: var(--teal);
    background-color: rgba(146, 239, 227, 0.05);
}

/* ==============================================
   Theme Toggle
   ============================================== */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 62px;
    height: 32px;
    border-radius: 50px;
    padding: 3px;
    cursor: pointer;
    position: relative;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-right: 1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header.scrolled .theme-toggle {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.theme-toggle:hover {
    border-color: var(--teal);
    background-color: rgba(146, 239, 227, 0.1);
}

[data-theme="dark"] .theme-toggle {
    background: rgba(146, 239, 227, 0.15);
    border-color: rgba(146, 239, 227, 0.3);
}

.toggle-track {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

.toggle-thumb {
    width: 26px;
    height: 26px;
    background: var(--off-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

[data-theme="dark"] .toggle-thumb {
    left: calc(100% - 26px);
    background: var(--charcoal);
    box-shadow: 0 0 12px rgba(146, 239, 227, 0.4);
}

.sun-icon,
.moon-icon {
    font-size: 0.9rem;
    position: absolute;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light Theme: Showing Moon (inviting to dark) */
.sun-icon {
    color: #FFB800;
    opacity: 0;
    transform: rotate(90deg) scale(0.4) translateY(10px);
}

.moon-icon {
    color: var(--charcoal);
    opacity: 1;
    transform: rotate(0) scale(1) translateY(0);
}

.header.scrolled .moon-icon {
    color: var(--charcoal);
}

/* Dark Theme: Showing Sun (inviting to light) */
[data-theme="dark"] .sun-icon {
    opacity: 1;
    transform: rotate(0) scale(1) translateY(0);
}

[data-theme="dark"] .moon-icon {
    color: var(--teal);
    opacity: 0;
    transform: rotate(-90deg) scale(0.4) translateY(-10px);
}

.mobile-theme-toggle {
    margin: 1.5rem auto 1rem;
    width: 70px;
    height: 36px;
    padding: 4px;
}

.mobile-theme-toggle .toggle-thumb {
    width: 28px;
    height: 28px;
}

[data-theme="dark"] .mobile-theme-toggle .toggle-thumb {
    left: calc(100% - 28px);
}

/* Works Page Header Fixes for Light Theme */
.works-page .header:not(.scrolled) .logo,
.works-page .header:not(.scrolled) .nav-links a,
.works-page .header:not(.scrolled) .social-icons a,
.works-page .header:not(.scrolled) .menu-toggle,
.works-page .header:not(.scrolled) .theme-toggle,
.works-page .header:not(.scrolled) .lang-btn {
    color: var(--charcoal);
}

.works-page .header:not(.scrolled) .lang-btn,
.works-page .header:not(.scrolled) .theme-toggle {
    border-color: rgba(0, 0, 0, 0.2);
}

/* ==============================================
   Mobile Menu
   ============================================== */
.mobile-nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--charcoal);
    color: var(--off-white);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 15vh;
    transition: 0.5s ease-in-out;
}

.mobile-nav-menu.active {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--off-white);
    transition: var(--transition);
}

.close-menu:hover {
    color: var(--teal);
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    text-align: center;
    margin-bottom: 3rem;
}

.mobile-links a {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    letter-spacing: 2px;
    color: var(--off-white);
}

.mobile-links a:hover {
    color: var(--beige);
}

.mobile-socials {
    display: flex;
    gap: 2rem;
}

.mobile-socials a {
    font-size: 1.5rem;
    color: var(--off-white);
}

.mobile-socials a:hover {
    color: var(--teal);
}

/* Mobile Language */
.mobile-lang-selector {
    margin-top: 2rem;
    text-align: center;
}

.mobile-lang-selector p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.mobile-lang-options {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.mobile-lang-options span {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.mobile-lang-options span.active {
    color: var(--teal);
    text-decoration: underline;
    text-underline-offset: 5px;
}


/* ==============================================
   Hero Section
   ============================================== */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Keeps the whole content block in the right third area */
    text-align: center; /* Center-aligns the text block internally */
    /* Fallback si pas d'image */
    background-color: var(--charcoal);
    overflow: hidden;
}

/* ===================================================
   🖼️  IMAGE DE FOND HERO — Style de l'image
   L'image est insérée dans index.html (class="hero-bg-image")
   =================================================== */
.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /* Overlay sombre pour lisibilité du texte */
    background: linear-gradient(to bottom,
            rgba(28, 27, 25, 0.45) 0%,
            rgba(28, 27, 25, 0.55) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 5% 0 0; /* Adjusted for centered block feel on the right third */
    width: 100%;
    max-width: 800px; /* Constrain the stack width */
    display: flex;
    flex-direction: column;
    align-items: center; /* PERFECTLY CENTER items relative to each other (logo + sub) */
}

.hero-title {
    margin-bottom: 0.2rem; /* Reduced for tighter cohesion */
    display: flex;
    justify-content: center;
}

/* Multilingual Subtitle Styling */
.hero-multilingual-sub {
    margin-bottom: 4.5rem;
    min-height: 2.8rem; /* Reduced to bring text closer to the logo */
    display: flex;
    justify-content: center;
    align-items: center;
}

#multilingual-text {
    font-size: 2rem; /* Fixed size for consistency across all scripts */
    font-weight: 600;
    color: var(--off-white);
    opacity: 1; 
    letter-spacing: 4px; /* Slightly reduced for better cross-script compatibility */
    text-transform: lowercase;
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    line-height: 1.2;
    display: inline-block;
}

#multilingual-text.fade-out {
    opacity: 0;
}

.hero-logo {
    max-width: 600px;
    width: 80%;
    height: auto;
    filter: drop-shadow(0 2px 20px rgba(0, 0, 0, 0.4));
    transition: var(--transition);
}

.hero-tagline {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75); /* Increased visibility */
    margin-bottom: 0;
    max-width: 600px;
    margin-inline: auto;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Bouton hero adapté au fond sombre */
.hero .btn-primary {
    background-color: var(--off-white);
    color: var(--charcoal);
}

/* Mobile Responsiveness for Hero */
@media (max-width: 768px) {
    .hero {
        justify-content: center;
        text-align: center;
    }
    .hero-content {
        padding: 0 1.5rem;
        align-items: center;
    }
    .hero-title, 
    .hero-multilingual-sub {
        justify-content: center;
    }
    .hero-tagline {
        margin-inline: auto;
    }
}

.hero .btn-primary::before {
    background: var(--teal);
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    display: block;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        top: 8px;
        opacity: 1;
    }

    100% {
        top: 25px;
        opacity: 0;
    }
}


/* ==============================================
   Graphic Work Section
   ============================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 25px;
    cursor: default;
    aspect-ratio: 4/5;
    background-color: var(--charcoal);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28, 27, 25, 0.9) 0%, rgba(28, 27, 25, 0.2) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.item-text {
    transform: translateY(20px);
    transition: transform 0.4s ease;
    color: var(--off-white);
}

.gallery-item:hover .item-text {
    transform: translateY(0);
}

.item-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.item-text span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--beige);
}

/* Mobile: Graphic Work overlay visible by default */
@media (max-width: 768px) {
    .gallery-item .item-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(28, 27, 25, 0.95) 0%, rgba(28, 27, 25, 0.4) 70%, transparent 100%);
    }
    .gallery-item .item-text {
        transform: translateY(0);
    }
    .gallery-item img {
        transform: scale(1.05);
    }
}


/* ==============================================
   Visual Gallery Section
   ============================================== */
.visual-gallery-section {
    background-color: var(--off-white);
}

/* Header block: centré au-dessus de la grille */
.visual-gallery-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4.5rem 2rem 3rem; /* Slightly increased back from 3.5rem */
}

/* Reduire l'espace entre Graphic Work et Visual Gallery */
#graphic-work .section-container {
    padding-bottom: 4.5rem; /* Slightly increased back from 3.5rem */
}

.visual-gallery-header .section-subtitle {
    margin-bottom: 2rem;
}

/* Bouton "View More Work" */
.vg-btn {
    margin-bottom: 0;
    letter-spacing: 3px;
}

/* ------------------------------------------------
   Grille principale : 4 colonnes, pas de padding
   ------------------------------------------------ */
.vg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    /* espacement minimal entre les cases */
}

/* Chaque cellule image */
.vg-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    /* carré par défaut */
    background-color: var(--charcoal);
    /* fallback si image manquante */
    cursor: pointer;
}

/* Placeholder visible quand l'image n'est pas encore chargée */
.vg-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #d6cfc3;
    z-index: 0;
    transition: opacity 0.3s;
}

.vg-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 0.4s ease;
    /* Masque le placeholder dès que l'image charge */
}

/* Overlay teal semi-transparent au hover */
.vg-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(148, 210, 189, 0.35);
    /* --teal avec opacité */
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Effets hover */
.vg-item:hover img {
    transform: scale(1.07);
    filter: brightness(0.9);
}

.vg-item:hover .vg-overlay {
    opacity: 1;
}

/* ------------------------------------------------
   Responsive
   ------------------------------------------------ */
@media (max-width: 1024px) {
    .vg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .visual-gallery-header {
        padding: 4rem 1.5rem 2.5rem;
    }
}


/* ==============================================
   Logo Marquee Section
   ============================================== */
.logo-section {
    background-color: #FFFFFF !important; /* Always white */
    color: var(--charcoal);
    padding: 3rem 0 6rem; /* Reduced top padding from 6rem to 3rem */
    overflow: hidden;
}

.logo-section .section-title {
    color: var(--charcoal);
    margin-bottom: 2.5rem; /* Reduced from 4rem */
}

.logo-marquee {
    position: relative;
    width: 100vw;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.logo-track {
    display: inline-flex;
    animation: marquee 50s linear infinite;
}

.logo-track:has(.logo-item img:hover) {
    animation-play-state: paused;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 420px;
    height: 180px;
    overflow: hidden;
}

.logo-item img {
    height: 140px;
    width: 220px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.5); /* Default grayscale and muted */
    transition: filter 0.5s ease, opacity 0.5s ease, transform 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%) opacity(1); /* Full color on hover */
    transform: scale(1.08);
}

/* Mobile: Logos full color by default */
@media (max-width: 768px) {
    .logo-item img {
        opacity: 1;
        filter: grayscale(0%);
    }
}

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

    100% {
        transform: translateX(-50%);
    }

    /* Translates -50% because track contains 2 sets of logos */
}


/* ==============================================
   Text Marquee Section
   ============================================== */
.text-marquee-section {
    background-color: var(--charcoal);
    padding: 1rem 0; /* Reduced from 2rem to 1rem */
    overflow: hidden;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .text-marquee-section {
    background-color: #121212;
}

.text-marquee {
    display: flex;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.text-marquee-track {
    display: flex;
    white-space: nowrap;
    animation: text-marquee-scroll 40s linear infinite;
    will-change: transform;
}

.text-marquee:hover .text-marquee-track {
    animation-play-state: paused;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding-right: 4rem;
}

.marquee-item span {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--off-white);
    opacity: 0.9;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.marquee-item i {
    font-size: 0.8rem;
    color: var(--teal);
    opacity: 0.6;
}

.marquee-item:hover span {
    opacity: 1;
    color: var(--teal);
}

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

@media (max-width: 768px) {
    .text-marquee-section {
        padding: 1.5rem 0;
    }
    .text-marquee-track {
        animation-duration: 25s;
    }
    .marquee-item {
        gap: 2rem;
        padding-right: 2rem;
    }
}
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

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

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

.photo-item.wide {
    grid-column: span 2;
}

.photo-item.tall {
    grid-row: span 2;
}

.hover-view {
    position: absolute;
    inset: 0;
    background-color: rgba(148, 210, 189, 0.8);
    /* Teal overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hover-view span {
    color: var(--charcoal);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 2px;
    transform: scale(0.8);
    transition: transform 0.4s ease;
}

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

.photo-item:hover .hover-view {
    opacity: 1;
}

.photo-item:hover .hover-view span {
    transform: scale(1);
}

/* ==============================================
   About Me Section
   ============================================== */
.about-section {
    background-color: var(--off-white);
    overflow: hidden;
}

.about-hero {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.about-identity {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--charcoal);
    font-weight: 500;
}

.about-desc {
    font-size: 1.2rem;
    color: var(--charcoal-light);
    max-width: 600px;
    margin-bottom: 2rem;
}

.about-hero-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    z-index: 1;
}

.image-wrapper img {
    border-radius: 20px;
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

/* About Hero Responsive */
@media (max-width: 992px) {
    .about-hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .about-hero-image {
        order: -1;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .about-desc {
        margin-left: auto;
        margin-right: auto;
    }
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.about-subtitle {
    font-size: 2rem;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.about-subtitle::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--teal);
}

.about-subtitle.centered {
    text-align: center;
    display: block;
    margin-bottom: 4rem;
}

.about-subtitle.centered::after {
    left: 50%;
    transform: translateX(-50%);
}

.skills-bands-section {
    width: 100%;
    margin: 0 0 6rem 0;
}

.bands-container {
    display: flex;
    flex-direction: column;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.skill-band {
    width: 100%;
    height: 120px;
    background-color: var(--band-color);
    color: var(--text-color, var(--charcoal));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.skill-band:hover {
    z-index: 10;
    filter: brightness(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.skill-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--x, 50%) var(--y, 50%), 
        rgba(255,255,255,0.15) 0%, 
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.skill-band:hover::before {
    opacity: 1;
}

.skill-band:active {
    filter: brightness(0.9);
}

.band-content {
    width: 100%;
    max-width: var(--max-width);
    padding: 0 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-band:hover .band-content {
    transform: translateX(20px);
}

.band-icon {
    position: absolute;
    left: 4rem;
    font-size: 2.5rem;
    opacity: 0.2;
    color: inherit;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.skill-band:hover .band-icon {
    transform: scale(1.1) rotate(5deg);
    opacity: 0.3;
}

.band-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.skill-band:hover .band-title {
    letter-spacing: 8px;
}

.band-info {
    position: absolute;
    right: 4rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.05s;
}

.skill-band:hover .band-info {
    transform: translateX(0);
    opacity: 0.8;
}

@media (max-width: 1024px) {
    .band-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .skill-band {
        height: 100px;
    }
    .band-content {
        padding: 0 2rem;
    }
    .band-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    .band-icon {
        font-size: 2rem;
        left: 1rem;
    }
    .band-info {
        display: none;
    }
}

.languages-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.lang-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem;
    background: var(--charcoal);
    border-radius: 16px;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.lang-row:hover {
    transform: translateX(10px);
    background: #2a2d2a;
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
    border-color: var(--teal);
}

.lang-flag-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    transition: transform 0.4s ease;
}

.lang-row:hover .lang-flag-circle {
    transform: scale(1.1) rotate(5deg);
}

.lang-main {
    flex: 1;
}

.lang-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.4rem;
}

.lang-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--off-white);
    letter-spacing: 0.5px;
}

.cefr-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 480px) {
    .lang-row {
        padding: 0.8rem 1rem;
        gap: 0.8rem;
    }
    
    .lang-flag-circle {
        width: 38px;
        height: 38px;
        font-size: 1.3rem;
    }

    .lang-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.1rem;
    }

    .lang-name {
        font-size: 1rem;
    }
}

.lang-rating {
    display: flex;
    gap: 0.3rem;
}

.lang-rating i {
    color: var(--teal);
    font-size: 0.9rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                opacity 0.4s ease, 
                text-shadow 0.3s ease;
}

.lang-row:hover .lang-rating i {
    transform: translateY(-2px);
    text-shadow: 0 0 8px rgba(146, 239, 227, 0.4);
}

.lang-rating .far {
    opacity: 0.25;
}


.exploring-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    padding: 0.5rem 1.2rem;
    background: rgba(146, 239, 227, 0.1);
    color: var(--charcoal);
    border: 1px solid rgba(146, 239, 227, 0.3);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Inspiration Section Redesign: Premium Marquee */
.inspiration-section {
    margin-top: 6rem;
    padding-bottom: 0;
}

.inspiration-section .about-subtitle.centered {
    margin-bottom: 0.5rem;
    margin-left: auto;
    margin-right: auto;
    text-transform: none;
    line-height: 1.1;
    font-size: 3.5rem;
    text-align: center;
}

.font-accent {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    color: var(--charcoal);
}

.font-main {
    font-family: var(--font-heading); /* Bebas Neue */
    font-size: 4rem;
    letter-spacing: 2px;
    color: var(--charcoal);
    text-transform: uppercase;
}

[data-theme="dark"] .font-accent,
[data-theme="dark"] .font-main {
    color: var(--theme-text); /* White in dark mode */
}

.inspiration-section .about-subtitle.centered::after {
    display: none;
}

@media (max-width: 768px) {
    .inspiration-section .about-subtitle.centered {
        font-size: 2rem;
    }
    .font-main {
        font-size: 2.2rem;
    }
}

.inspiration-marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 2.5rem 0 5rem; /* Increased top padding to allow full scale & shadow glow on hover */
    margin-top: -1rem; /* Pulls the container closer to the section title above */
}

.ins-marquee-track {
    --marquee-gap: 6rem;
    display: flex;
    width: max-content;
    gap: var(--marquee-gap);
    animation: marquee-scroll 40s linear infinite;
    cursor: grab;
    overflow: visible;
}

.ins-marquee-track:active {
    cursor: grabbing;
}

.ins-marquee-track:hover {
    animation-play-state: paused !important;
}

.ins-item {
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
    overflow: visible;
}

.ins-item:hover {
    z-index: 10;
}

.ins-circle {
    position: relative;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    background: var(--off-white);
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.ins-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
}

.ins-name {
    margin-top: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--charcoal);
    opacity: 0.7;
    transition: var(--transition);
    text-transform: uppercase;
}

/* Hover Effects */
.ins-item:hover .ins-circle {
    transform: scale(1.1);
    border-color: var(--teal);
    box-shadow: 0 15px 45px rgba(146, 239, 227, 0.3);
}

.ins-item:hover .ins-circle img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.ins-item:hover .ins-name {
    opacity: 1;
    color: var(--teal);
    transform: translateY(5px);
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - (var(--marquee-gap) / 2))); }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .ins-circle {
        width: 180px;
        height: 180px;
    }
    
    .ins-marquee-track {
        --marquee-gap: 2.5rem;
        gap: var(--marquee-gap);
        animation-duration: 30s;
    }
    
    .ins-name {
        font-size: 0.9rem;
    }
}

/* Reduced padding for about section container to bridge gap to contact */
.about-section .section-container {
    padding-bottom: 2rem;
}


/* ==============================================
   Contact Section
   ============================================== */
.contact-section {
    background-color: var(--teal);
    color: var(--charcoal);
}

.contact-section .section-container {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.contact-info .section-title {
    margin-bottom: 1.5rem;
}

.contact-desc {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--charcoal);
    opacity: 0.8;
}

.contact-details {
    margin-top: 2rem;
}

.contact-details li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-details i {
    color: var(--charcoal);
    font-size: 1.3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.input-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: inherit;
    font-weight: 600;
}

.input-group input,
.input-group textarea {
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(28, 27, 25, 0.2);
    padding: 0.5rem 0;
    font-size: 1.1rem;
    font-family: var(--font-body);
    color: var(--charcoal);
    outline: none;
    transition: border-bottom-color 0.3s;
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--charcoal);
    transition: width 0.4s ease;
}

.input-group input:focus~.input-line,
.input-group textarea:focus~.input-line {
    width: 100%;
}


/* ==============================================
   Footer
   ============================================== */
.footer {
    background-color: var(--charcoal);
    color: var(--off-white);
    padding: 4rem 2rem;
    text-align: center;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: var(--transition);
}

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

.footer-socials {
    display: flex;
    gap: 2rem;
}

.footer-socials a {
    color: var(--off-white);
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-socials a:hover {
    background-color: var(--teal);
    border-color: var(--teal);
    color: var(--charcoal);
}

.footer-copy {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}


/* ==============================================
   Lightbox Modal
   ============================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(28, 27, 25, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: var(--off-white);
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--teal);
}

.lightbox-content {
    max-width: 80%; /* Reduced from 90% to clear UI elements */
    max-height: 80vh; /* Reduced from 90% to clear UI elements */
    position: relative;
    transform: scale(0.95);
    transition: transform 0.4s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80vh; /* Matches container for better layout stability */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border-radius: 4px; /* Subtle rounding for a premium feel */
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--off-white);
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
    z-index: 2010;
    padding: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--teal);
}

.lightbox-prev:active,
.lightbox-next:active {
    transform: translateY(-50%) scale(0.9);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

@media (max-width: 768px) {

    .lightbox-prev,
    .lightbox-next {
        font-size: 1.8rem;
        padding: 10px;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }
}


/* ==============================================
   Responsive Design
   ============================================== */
@media (max-width: 1024px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 3rem 2rem;
    }
}

@media (max-width: 768px) {

    .nav,
    .header .social-icons {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

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

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

    .hero-logo {
        max-width: 400px;
        width: 90%;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .logo-item {
        width: 180px;
        height: 120px;
    }

    .logo-item img {
        height: 90px;
        width: 140px;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        max-width: 300px;
    }

    .contact-wrapper {
        padding: 2rem 1rem;
    }
}

/* ==============================================
   Works Page Styles
   ============================================== */
.works-main {
    padding-top: 100px;
    background-color: var(--off-white);
    min-height: 100vh;
    overflow: hidden;
}

.works-hero {
    background-color: var(--off-white);
    position: relative;
    z-index: 2;
}


/* ==============================================
   Works Page Masonry (Editorial Pinterest)
   ============================================== */
.works-main {
    padding-top: 70px; /* Further reduced */
    background-color: var(--off-white);
}

.works-main .section-container {
    padding-top: 3rem; /* Reduced from 6rem to bring content higher */
}

[data-theme="dark"] .works-main {
    background-color: var(--charcoal);
}

.works-masonry {
    columns: 4;
    column-gap: 1.5rem;
    padding: 1rem 0 3rem; /* Reduced from 10rem to bring marquee closer */
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 12px; /* Softer, modern corners */
    background-color: rgba(0,0,0,0.05);
}

/* Integrated Text Tile */
.masonry-text-block {
    background-color: transparent;
    padding: 0 1rem 2rem 0; /* Align with grid rhythm */
    cursor: default;
    overflow: visible; /* Fix: Allow button scaling without clipping */
}

.works-title {
    font-size: clamp(3.5rem, 6vw, 5.5rem); /* Increased for a bolder editorial presence */
    font-family: var(--font-heading);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -2px; /* Slightly tighter for large scale */
    color: var(--charcoal);
    line-height: 0.9; /* Tighter line height for large headings */
    position: relative;
    width: fit-content;
}

.works-title::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--teal);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.works-title:hover::after {
    width: 100%;
}

[data-theme="dark"] .works-title {
    color: var(--off-white);
}

.works-subtitle {
    font-size: 1.1rem;
    color: var(--charcoal-light);
    line-height: 1.7;
    font-weight: 300;
}

[data-theme="dark"] .works-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

.works-back-btn {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background-color: rgba(0, 0, 0, 0.03); /* Subtle background for visibility */
    color: var(--charcoal);
    padding: 0.7rem 1.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 50px;
    margin-bottom: 3rem;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
}

[data-theme="dark"] .works-back-btn {
    border-color: rgba(255, 255, 255, 0.15);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--off-white);
}

.works-back-btn:hover {
    background-color: var(--charcoal);
    color: var(--off-white);
    border-color: var(--charcoal);
    transform: translateY(-2px);
}

[data-theme="dark"] .works-back-btn:hover {
    background-color: var(--off-white);
    color: var(--charcoal);
    border-color: var(--off-white);
}

/* Gallery Items */
.masonry-item img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    filter: brightness(0.95);
    cursor: pointer;
}

.masonry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.masonry-item:not(.masonry-text-block):hover .masonry-overlay {
    opacity: 1;
}

.masonry-item:not(.masonry-text-block):hover img {
    transform: scale(1.08);
    filter: brightness(1);
}

/* Responsive Masonry */
@media (max-width: 1400px) {
    .works-masonry { columns: 3; }
}

@media (max-width: 992px) {
    .works-masonry { columns: 2; column-gap: 1.5rem; }
}

@media (max-width: 600px) {
    .works-masonry { columns: 1; padding: 4rem 0; }
    .works-title { font-size: 2.5rem; }
    .masonry-text-block { padding: 0 0 3rem 0; }
}

/* ==============================================
   Principles Section (Works Page)
   ============================================== */
.principles-section {
    background-color: var(--teal);
    color: var(--charcoal);
    position: relative;
    z-index: 2; /* To sit above global backgrounds if any */
}

.principles-section .section-container {
    padding: 6rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: center;
}

.principle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.principle-item h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 1rem;
    color: var(--charcoal); /* Ensure contrast */
}

.principle-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--charcoal);
}

.principle-item p {
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 400;
    opacity: 0.9;
    color: var(--charcoal); /* Ensure contrast */
}

@media (max-width: 992px) {
    .principles-grid {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .principles-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ==============================================
   Dark Theme Overrides
   ============================================== */
[data-theme="dark"] {
    --theme-bg: #1C1B19;
    --theme-text: #FAF9F6;
    --theme-text-muted: #cacaca;
    --theme-bg-alt: #2A2825;
}

[data-theme="dark"] body {
    background-color: var(--theme-bg);
    color: var(--theme-text);
}

[data-theme="dark"] .section-title {
    color: var(--theme-text);
}

[data-theme="dark"] .section-subtitle {
    color: var(--theme-text-muted);
}

[data-theme="dark"] .logo-section .section-title {
    color: var(--charcoal); /* Keep charcoal on white background even in dark mode */
}

[data-theme="dark"] .contact-info .section-title {
    color: var(--theme-text);
}

[data-theme="dark"] .contact-info p {
    color: var(--theme-text-muted);
}

[data-theme="dark"] .contact-details li {
    color: var(--theme-text);
}

[data-theme="dark"] .contact-details i {
    color: var(--teal);
}

[data-theme="dark"] .btn-secondary {
    background-color: var(--theme-text);
    color: var(--theme-bg);
}

[data-theme="dark"] .btn-secondary:hover {
    color: var(--charcoal) !important;
}

[data-theme="dark"] .bg-secondary {
    background-color: var(--teal);
}

[data-theme="dark"] .bg-secondary .section-title,
[data-theme="dark"] .bg-secondary .section-subtitle {
    color: var(--theme-text);
}

[data-theme="dark"] .btn-primary:not(.hero .btn-primary) {
    background-color: var(--theme-text);
    color: var(--theme-bg);
}

[data-theme="dark"] .btn-primary:not(.hero .btn-primary):hover {
    color: var(--charcoal) !important;
}

[data-theme="dark"] .header.scrolled {
    background-color: rgba(28, 27, 25, 0.95);
}

[data-theme="dark"] .header.scrolled .logo,
[data-theme="dark"] .header.scrolled .nav-links a,
[data-theme="dark"] .header.scrolled .social-icons a,
[data-theme="dark"] .header.scrolled .menu-toggle,
[data-theme="dark"] .header.scrolled .theme-toggle,
[data-theme="dark"] .header.scrolled .lang-btn,
[data-theme="dark"] .works-page .header:not(.scrolled) .logo,
[data-theme="dark"] .works-page .header:not(.scrolled) .nav-links a,
[data-theme="dark"] .works-page .header:not(.scrolled) .social-icons a,
[data-theme="dark"] .works-page .header:not(.scrolled) .menu-toggle,
[data-theme="dark"] .works-page .header:not(.scrolled) .theme-toggle,
[data-theme="dark"] .works-page .header:not(.scrolled) .lang-btn {
    color: var(--theme-text) !important;
}

[data-theme="dark"] .header.scrolled .lang-btn,
[data-theme="dark"] .header.scrolled .theme-toggle,
[data-theme="dark"] .works-page .header:not(.scrolled) .lang-btn,
[data-theme="dark"] .works-page .header:not(.scrolled) .theme-toggle {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

[data-theme="dark"] .lang-dropdown {
    background-color: var(--theme-bg-alt);
    color: var(--theme-text);
}

[data-theme="dark"] .lang-dropdown li {
    color: var(--theme-text);
}

[data-theme="dark"] .lang-dropdown li:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .visual-gallery-section,
[data-theme="dark"] .contact-section,
[data-theme="dark"] .contact-wrapper {
    background-color: var(--theme-bg);
}

[data-theme="dark"] .logo-section {
    background-color: #FFFFFF !important;
}

/* Photography Section remains white in dark mode for contrast with black text */
[data-theme="dark"] #photography {
    background-color: #FFFFFF !important; /* Changed to white */
}

[data-theme="dark"] #photography .section-title,
[data-theme="dark"] #photography .section-subtitle,
[data-theme="dark"] #photography .hover-view span {
    color: var(--charcoal) !important;
}




[data-theme="dark"] .input-group input,
[data-theme="dark"] .input-group textarea {
    background: rgba(255, 255, 255, 0.03);
    color: var(--theme-text);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .input-group label {
    color: var(--theme-text-muted);
}

[data-theme="dark"] .gallery-item {
    background-color: var(--theme-bg-alt);
}

[data-theme="dark"] .footer {
    background-color: var(--theme-bg-alt);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Works Page specific overrides */
[data-theme="dark"] .works-main,
[data-theme="dark"] .works-hero,
[data-theme="dark"] .works-wrapper {
    background-color: var(--theme-bg);
}

[data-theme="dark"] .works-title {
    color: var(--theme-text);
}

[data-theme="dark"] .works-subtitle {
    color: var(--theme-text-muted);
}

[data-theme="dark"] .works-back-btn {
    color: var(--theme-text);
    border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .works-back-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* About Me Dark Theme */
[data-theme="dark"] .about-section {
    background-color: var(--theme-bg);
}

[data-theme="dark"] .about-identity {
    color: var(--theme-text);
}

[data-theme="dark"] .about-desc {
    color: var(--theme-text-muted);
}

[data-theme="dark"] .skill-card {
    background: var(--theme-bg-alt);
    color: var(--theme-text);
    border-color: rgba(255,255,255,0.05);
}

[data-theme="dark"] .skill-card:hover {
    background: var(--teal);
    color: var(--charcoal) !important;
}

[data-theme="dark"] .skill-band {
    color: var(--charcoal); /* Default to dark text for light bands */
}

/* Ensure dark bands remain readable */
[data-theme="dark"] .skill-band[style*="#1c1b19"],
[data-theme="dark"] .skill-band[style*="var(--charcoal)"] {
    color: var(--theme-text) !important;
}

[data-theme="dark"] .tool-item {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .tool-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .tool-item i {
    color: var(--theme-text);
}



[data-theme="dark"] .lang-rating i {
    filter: drop-shadow(0 0 3px rgba(146, 239, 227, 0.2));
}

[data-theme="dark"] .lang-row:hover .lang-rating i {
    filter: drop-shadow(0 0 10px rgba(146, 239, 227, 0.6));
}



[data-theme="dark"] .tag {
    background: rgba(146, 239, 227, 0.05);
    color: var(--theme-text);
}

[data-theme="dark"] .plus-card {
    background: var(--theme-bg-alt);
    color: var(--theme-text);
}

[data-theme="dark"] .plus-card:hover {
    background: var(--teal);
    color: var(--charcoal);
}

[data-theme="dark"] .ins-circle {
    background: var(--theme-bg-alt);
    border-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .ins-name {
    color: var(--theme-text);
}


/* ==============================================
   About Page Specific Styles
   ============================================== */
.about-main {
    padding-top: 70px; /* Further reduced */
    background-color: var(--off-white);
}

[data-theme="dark"] .about-main {
    background-color: var(--charcoal);
}

.about-hero-section {
    padding: 0 0 1rem; /* Further reduced from 3rem to 1rem */
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.about-hero-section .section-container {
    padding-top: 3.5rem; /* Increased back slightly for better breathing room */
}

.about-split-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Editorial balance */
    gap: 8rem;
    align-items: center;
}

.about-page-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1;
    margin-bottom: 3rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: -1px;
    color: var(--charcoal);
}

[data-theme="dark"] .about-page-title {
    color: var(--off-white);
}

.about-page-desc {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--charcoal-light);
    max-width: 650px;
    font-weight: 300;
}

[data-theme="dark"] .about-page-desc {
    color: rgba(255, 255, 255, 0.7);
}

/* Clean Square Image Frame */
.about-visual-content {
    position: relative;
    display: flex;
    justify-content: center;
}

.about-image-frame {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px; /* Consistency with Works page */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background-color: var(--charcoal-light);
}

.about-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-details-section {
    padding-bottom: 10rem;
    background-color: var(--off-white);
}

.about-details-section .section-container {
    padding-top: 1.5rem;
}

[data-theme="dark"] .about-details-section {
    background-color: var(--charcoal);
}

.skills-title-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 0;
    margin-bottom: -1rem;
}

.skills-title-image {
    max-width: 550px;
    width: 95%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: filter 0.3s ease;
}

/* Invert image colors in dark mode since the title graphic has dark typography */
[data-theme="dark"] .skills-title-image {
    filter: invert(1) brightness(1.2);
}

@media (max-width: 1024px) {
    .about-split-layout {
        grid-template-columns: 1fr;
        gap: 5rem;
        text-align: center;
    }
    
    .about-page-desc {
        margin-inline: auto;
    }
    
    .about-image-frame {
        max-width: 400px;
        margin-inline: auto;
    }
}

@media (max-width: 768px) {
    .about-hero-section {
        padding: 5rem 0;
    }
    .about-page-title {
        font-size: 2.5rem;
    }
}

/* ==========================================================================
   Creamy Scoops Project Page Styling
   ========================================================================== */

/* Hero Section */
.creamy-hero {
    position: relative;
    width: 100%;
    min-height: 80vh;
    background: linear-gradient(135deg, #e90095 0%, #ff81e1 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    padding: 100px 0 0 0; /* Clear header space */
    z-index: 1;
}

.creamy-logo-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 0;
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 2;
}

.creamy-logo-container img {
    max-width: 820px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.15));
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.creamy-logo-container img:hover {
    transform: scale(1.08) rotate(3deg);
}

/* Star Bands */
.creamy-star-band {
    width: 100%;
    height: 80px;
    background-color: #edfffd;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 3;
}

.creamy-star-band .stars-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.creamy-star-band svg.creamy-star {
    fill: #00c2ff;
    width: 2.6rem;
    height: 2.6rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.creamy-star-band svg.creamy-star:hover {
    transform: scale(1.3) rotate(15deg);
}

/* Branding Gallery Section */
.creamy-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--black);
}

.creamy-gallery-item {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.creamy-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* Split Section (1/3 text + 2/3 image) */
.creamy-split-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    width: 100%;
    min-height: 70vh;
    background-color: var(--black);
    color: var(--white);
    align-items: center;
}

.creamy-split-text {
    font-family: 'Chunkfive Ex', sans-serif;
    padding: 4rem 3rem 4rem 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.creamy-split-text h2 {
    font-family: 'Barionette Script', cursive;
    font-size: 4.8rem;
    line-height: 1.1;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ff81e1 0%, #e90095 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.creamy-split-text h3 {
    font-family: 'Chunkfive Ex', sans-serif;
    font-size: 1.3rem;
    font-weight: normal;
    color: #00c2ff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.creamy-split-text p {
    font-family: 'Chunkfive Ex', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--light-gray);
    margin-bottom: 2rem;
}

.creamy-split-image {
    width: 100%;
    height: 100%;
    min-height: 450px;
    overflow: hidden;
}

.creamy-split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.creamy-split-image:hover img {
    transform: scale(1.03);
}

/* Banner Section (16:9 full width) */
.creamy-banner-section {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background-color: var(--black);
}

.creamy-banner-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.creamy-banner-section:hover img {
    transform: scale(1.02);
}

/* Responsiveness */
@media (max-width: 1024px) {
    .creamy-split-text {
        padding: 3rem 2rem 3rem 3rem;
    }
    .creamy-split-text h2 {
        font-size: 3.6rem;
    }
}

@media (max-width: 768px) {
    .creamy-hero {
        min-height: 60vh;
    }
    .creamy-logo-container img {
        max-width: 480px;
        width: 90%;
    }
    .creamy-gallery {
        grid-template-columns: 1fr; /* Stack images vertically on small screens */
    }
    .creamy-split-section {
        grid-template-columns: 1fr; /* Stack split vertically on small screens */
    }
    .creamy-split-text {
        padding: 4rem 2rem;
        order: 1; /* Text first */
    }
    .creamy-split-image {
        min-height: 350px;
        order: 2; /* Image second */
    }
}

/* ==========================================================================
   Photography Page strict 16:9 Sizing
   ========================================================================== */
.photography-page .works-masonry {
    columns: 2 !important;
    column-gap: 2.5rem !important;
}

@media (max-width: 768px) {
    .photography-page .works-masonry {
        columns: 1 !important;
    }
}

.photography-page .masonry-item:not(.masonry-text-block) {
    aspect-ratio: 3/2 !important;
    width: 100%;
}

.photography-page .masonry-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Keep Photography section "View more" button black in dark theme */
[data-theme="dark"] #photography .vg-btn {
    background-color: var(--charcoal) !important;
    color: var(--off-white) !important;
}

/* Custom kerning for the F in Barionette Script */
.creamy-kerning-f {
    margin-right: 0.16em;
}