/* ========================================
   Maria Rego Portfolio - Styles
   Clean, minimalist black & white design
   ======================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #0a0a0a;
    --dark: #1a1a1a;
    --gray-dark: #333;
    --gray: #666;
    --gray-light: #999;
    --gray-lighter: #e5e5e5;
    --white: #ffffff;
    --off-white: #f8f8f8;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font);
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--gray);
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 0;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--dark);
    transition: var(--transition);
}

.navbar.scrolled .nav-logo {
    color: var(--dark);
}

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

.nav-link {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dark);
    position: relative;
    transition: var(--transition);
}

.navbar.scrolled .nav-link {
    color: var(--dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: var(--transition);
}

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

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.8rem;
    background: var(--white);
    min-width: 200px;
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition: var(--transition);
    z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-link {
    display: block;
    padding: 0.5rem 1.2rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--gray-dark);
    transition: var(--transition);
}

.nav-dropdown-link:hover {
    background: var(--gray-lightest);
    color: var(--dark);
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--white);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    transition: var(--transition);
    z-index: 1001;
    position: relative;
}

.navbar.scrolled .theme-toggle {
    color: var(--dark);
}

.theme-icon-moon { display: none; }
.theme-icon-sun { display: block; }

[data-theme="dark"] .theme-icon-moon { display: block; }
[data-theme="dark"] .theme-icon-sun { display: none; }

/* Mobile Topic Bar */
.mobile-topic-bar {
    display: none;
    position: fixed;
    top: 52px;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow-x: auto;
    gap: 0;
    padding: 0;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.mobile-topic-bar::-webkit-scrollbar {
    display: none;
}

.mobile-topic-link {
    flex-shrink: 0;
    padding: 0.6rem 1.2rem;
    font-family: var(--font);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray);
    white-space: nowrap;
    transition: var(--transition);
}

.mobile-topic-link:hover,
.mobile-topic-link.active {
    color: var(--dark);
}

[data-theme="dark"] .mobile-topic-bar {
    background: rgba(10, 10, 10, 0.95);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    margin: 5px 0;
    transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
    background: var(--dark);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    position: relative;
    overflow: hidden;
    background: var(--white);
    padding-top: 56px;
}

.hero-image {
    width: 100%;
}

.hero-image img {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    object-position: center 55%;
    display: block;
}

@media (max-width: 768px) {
    .hero-image img {
        height: auto;
        object-fit: initial;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.1) 40%,
        rgba(0,0,0,0.5) 100%
    );
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 6rem 2rem;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: clamp(0.85rem, 1.5vw, 1.1rem);
    font-weight: 400;
    letter-spacing: 0.3em;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2.5rem;
}

.hero-word {
    transition: var(--transition);
    cursor: pointer;
    color: rgba(255,255,255,0.85);
}

.hero-word:hover {
    color: var(--dark);
}

[data-theme="dark"] .hero-word:hover {
    color: #000000;
}

.hero-cta {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    border: 1px solid rgba(255,255,255,0.6);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: var(--transition);
}

.hero-cta:hover {
    background: var(--white);
    color: var(--dark);
    border-color: var(--white);
}

[data-theme="dark"] .hero-cta {
    color: #ffffff;
}

.hero-cta-mobile-wrap {
    display: none;
    padding: 1.5rem 2rem;
    text-align: center;
    background: transparent;
    position: relative;
    z-index: 1;
}

.hero-cta-mobile {
    color: var(--dark);
    border-color: var(--dark);
    background: transparent;
    font-size: 0.6rem;
    padding: 0.5rem 1.2rem;
}

/* ========================================
   Sections Common
   ======================================== */

.section {
    padding: 7rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-light);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--dark);
}

.section-line {
    width: 50px;
    height: 2px;
    background: var(--dark);
    margin: 1.2rem auto 0;
}

/* ========================================
   About Section
   ======================================== */

.about {
    background: var(--white);
}

.about-experience-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.about-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.experience-side {
    padding-top: 0.5rem;
}

.experience-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-image {
    flex-shrink: 0;
}

.about-image img {
    width: 300px;
    height: 380px;
    object-fit: cover;
}

.about-text {
    flex: 1;
}

.about-text p {
    font-family: var(--font);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-dark);
    margin-bottom: 1.2rem;
    text-align: justify;
}

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

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-image img {
        width: 250px;
        height: 320px;
    }

    .about-text p {
        text-align: center;
    }
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Experience Section
   ======================================== */

.experience {
    background: var(--off-white);
    padding: 4rem 0;
}

.experience-list {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
}

.experience-list::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--gray-lighter);
}

.experience-item {
    position: relative;
    padding-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-slow);
}

.experience-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.experience-item:last-child {
    padding-bottom: 0;
}

.exp-dot {
    position: absolute;
    left: -2rem;
    top: 8px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--dark);
    transform: translateX(0.5px);
}

.exp-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.3rem;
}

.exp-place {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0.2rem;
}

.exp-date {
    font-size: 0.8rem;
    color: var(--gray-light);
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* ========================================
   What You Can Expect
   ======================================== */

.expect {
    background: var(--white);
}

.expect-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.expect-images-col {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.expect-images-col img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.expect-topics {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.expect-card {
    text-align: center;
    padding: 1rem 0.8rem;
    border: 1px solid var(--gray-lighter);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.expect-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.expect-card:hover {
    border-color: var(--dark);
}

.expect-card h3 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 0;
    color: var(--dark);
}

@media (max-width: 768px) {
    .expect-layout {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Portfolio Section
   ======================================== */

.portfolio {
    background: var(--off-white);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 1px solid var(--gray-lighter);
    padding: 0.6rem 1.5rem;
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

.portfolio-category {
    margin-bottom: 8rem;
    transition: var(--transition-slow);
}

.portfolio-category:last-child {
    margin-bottom: 0;
}

.portfolio-category.hidden {
    display: none;
}

.category-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.category-desc {
    font-size: 0.95rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.category-tags li {
    padding: 0.4rem 1rem;
    background: var(--white);
    border: 1px solid var(--gray-lighter);
    font-size: 0.8rem;
    color: var(--gray-dark);
    font-weight: 500;
}

/* Fashion Editorial Grid */
.fashion-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fashion-hero img {
    width: 100%;
    height: auto;
}

.fashion-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

.fashion-bottom .gallery-item img {
    width: 100%;
    height: auto;
}

.fashion-set-2 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    align-items: start;
}

.fashion-set-2 .gallery-item img {
    width: 100%;
    height: auto;
}

.fashion-set-3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 4rem;
}

.fashion-set-3 .gallery-item img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

/* Landscape + portrait side by side at equal height (flex share = aspect ratio) */
.fashion-row {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.fashion-row .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fashion-row .is-landscape {
    flex: 1.5 1 0;
    aspect-ratio: 3 / 2;
}

.fashion-row .is-portrait {
    flex: 0.6667 1 0;
    aspect-ratio: 2 / 3;
}

@media (max-width: 768px) {
    .fashion-bottom {
        grid-template-columns: 1fr;
    }

    .fashion-set-2 {
        grid-template-columns: 1fr;
    }

    .fashion-set-3 {
        grid-template-columns: 1fr;
    }

    .fashion-row {
        flex-direction: column;
    }

    .fashion-row .is-landscape,
    .fashion-row .is-portrait {
        flex: none;
    }
}

/* Gallery Grid */

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

/* Portraits Layout */
.portraits-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 1rem;
    align-items: start;
}

.portraits-left .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portraits-center {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.portraits-center .gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.portraits-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.portraits-right .gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.portraits-desc {
    list-style: disc;
    padding-left: 1.2rem;
    font-family: var(--font);
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gray-dark);
}

.portraits-desc li {
    margin-bottom: 0.3rem;
}

@media (max-width: 768px) {
    .portraits-layout {
        grid-template-columns: 1fr;
    }
}

/* Headshot Portraits Layout */
.headshots-section {
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 0;
    margin-top: 3rem;
}

.headshots-left {
    grid-row: 1 / 3;
}

.headshots-left .gallery-item img {
    width: 100%;
    height: auto;
}

.headshots-quote {
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--gray-dark);
    margin-top: 1rem;
    line-height: 1.6;
}

.headshots-right-top {
    padding-left: 3rem;
    padding-top: 0.5rem;
}

.headshots-topics {
    list-style: disc;
    padding-left: 1.2rem;
    font-family: var(--font);
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gray-dark);
}

.headshots-topics li {
    margin-bottom: 0.3rem;
}

.headshots-right-bottom {
    padding-left: 1rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.headshots-line {
    width: 40px;
    height: 2px;
    background: var(--gray-dark);
    flex-shrink: 0;
}

.headshots-samples img {
    max-height: 200px;
    width: auto;
    height: auto;
}

@media (max-width: 768px) {
    .headshots-section {
        grid-template-columns: 1fr;
    }

    .headshots-left {
        grid-row: auto;
    }

    .headshots-right-top,
    .headshots-right-bottom {
        padding-left: 0;
    }

    .headshots-right-bottom {
        flex-direction: column;
    }

    .headshots-line {
        width: 2px;
        height: 20px;
    }
}

/* Corporate Events */
.events-title {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.events-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-lighter);
}

.events-grid {
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: 28% 33% 28%;
    grid-template-rows: auto auto;
    justify-content: center;
    gap: 1rem;
}

/* Top-left: panel discussion */
.events-a {
    grid-column: 1;
    grid-row: 1;
}

/* Top-center: award */
.events-b {
    grid-column: 2;
    grid-row: 1;
}

/* Top-right: audience */
.events-c {
    grid-column: 3;
    grid-row: 1;
}

/* Bottom-left: team meeting */
.events-d {
    grid-column: 1;
    grid-row: 2;
}

/* Bottom-center: lab visit */
.events-e {
    grid-column: 2;
    grid-row: 2;
}

/* Bottom-right: speaker */
.events-f {
    grid-column: 3;
    grid-row: 2;
}

.events-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.events-grid .events-item {
    aspect-ratio: 3 / 2;
}

/* Partnership Events */
.events-partnership {
    margin-top: 3rem;
}

.partnership-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.partnership-images-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.partnership-images-row img {
    width: 100%;
    height: auto;
}

.partnership-companies {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray);
    letter-spacing: 0.02em;
    text-align: center;
    line-height: 2;
}

.partner-dot {
    color: var(--gray-lighter);
    margin: 0 0.3rem;
}

@media (max-width: 768px) {
    .partnership-images-row {
        grid-template-columns: 1fr;
    }
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.8rem 0.5rem;
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray);
    border: 1px solid var(--gray-lighter);
    transition: var(--transition);
}

.partner-logo:hover {
    color: var(--dark);
    border-color: var(--dark);
}

/* Product Photography Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
    gap: 1rem;
    margin-top: 2rem;
}

.product-a { grid-column: 1; grid-row: 1; }
.product-b { grid-column: 2; grid-row: 1; }
.product-c { grid-column: 3; grid-row: 1; }
.product-d { grid-column: 1; grid-row: 2; }
.product-e { grid-column: 2 / 4; grid-row: 2 / 4; }
.product-f { grid-column: 1; grid-row: 3; }

.product-grid .gallery-item {
    aspect-ratio: 3 / 2;
}

.product-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

    .product-a, .product-b, .product-c,
    .product-d, .product-e {
        grid-column: 1;
        grid-row: auto;
        aspect-ratio: auto;
    }
}

/* Other Events */
.other-events {
    margin-top: 3rem;
}

.other-events-title {
    margin-bottom: 2.5rem;
}

.other-events-grid {
    display: grid;
    grid-template-columns: 3fr 1.5fr;
    gap: 1rem;
    align-items: stretch;
}

.other-events-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}


.other-events-left .gallery-item {
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.other-events-left .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.other-events-right {
    overflow: hidden;
}

.other-events-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.other-events-extra .gallery-item {
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.other-events-extra .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.other-events-extra {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 5rem;
}

.other-events-extra .gallery-item img {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .other-events-extra {
        grid-template-columns: 1fr;
    }

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

    .events-a, .events-b, .events-c,
    .events-d, .events-e, .events-f {
        grid-column: 1;
        grid-row: auto;
        aspect-ratio: auto;
        align-self: auto;
    }

    .partnership-layout {
        grid-template-columns: 1fr;
    }

    .partnership-list {
        columns: 1;
    }

    .other-events-grid {
        grid-template-columns: 1fr;
    }

    .other-events-left {
        grid-template-columns: 1fr;
    }

    .other-events-left .gallery-item {
        aspect-ratio: auto;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-slow);
}

.gallery-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

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

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery-overlay span {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    background: rgba(0,0,0,0.35);
}

.gallery-item:hover .gallery-overlay span {
    opacity: 1;
    transform: translateY(0);
}

/* Social Media Content */
.social-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.social-subtitle::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-lighter);
}

.social-embeds {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.social-embed-item {
    min-width: 0;
    overflow: hidden;
}

.social-embed-item .instagram-media {
    margin: 0 !important;
    width: 100% !important;
    min-width: unset !important;
}

.social-skills {
    list-style: disc;
    padding-left: 1.5rem;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 2;
    color: var(--dark);
    margin-bottom: 3rem;
}

/* Social Steps */
.social-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 2.5rem;
    padding: 0;
}

.social-steps li {
    padding: 0.6rem 0;
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--dark);
    position: relative;
    padding-left: 1.5rem;
}

.social-steps li::before {
    content: '\2193';
    position: absolute;
    left: 0;
    color: var(--gray);
    font-size: 0.85rem;
}

.social-steps li:last-child::before {
    content: '\2713';
}

/* Visual Design Grids */
.visual-design-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.visual-design-col .gallery-item {
    opacity: 1;
    transform: none;
}

.visual-design-label {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.visual-design-grid .gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 768px) {
    .visual-design-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.music-videos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.music-video-item {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.music-video-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Odd video out: centered on its own row at the same size as the others */
.music-videos-grid > .music-video-col:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - 0.75rem);
}

@media (max-width: 768px) {
    .music-videos-grid {
        grid-template-columns: 1fr;
    }

    .music-videos-grid > .music-video-col:last-child:nth-child(odd) {
        width: 100%;
    }
}

.music-video-col {
    display: flex;
    flex-direction: column;
}

.music-video-desc {
    font-family: var(--font);
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 0.6rem;
    line-height: 1.5;
}

/* Social Media Services */

.social-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.social-service {
    padding: 2rem;
    background: var(--white);
    border: 1px solid var(--gray-lighter);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-slow);
}

.social-service.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.social-service h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
    letter-spacing: 0.02em;
}

.social-service ul {
    list-style: none;
}

.social-service ul li {
    font-size: 0.88rem;
    color: var(--gray);
    padding: 0.3rem 0;
    padding-left: 1rem;
    position: relative;
    line-height: 1.5;
}

.social-service ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--dark);
}

.social-service p {
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.6;
}

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

.services {
    background: var(--dark);
}

.services .section-title {
    color: var(--white);
}

.services .section-line {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.service-card {
    padding: 3rem;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.service-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-4px);
}

.service-card.animate-in:hover {
    transform: translateY(-4px);
}

.service-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.1);
    margin-bottom: 1rem;
    line-height: 1;
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.8rem;
    letter-spacing: 0.02em;
}

.service-card p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
}

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

.contact {
    background: var(--white);
}

.contact-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.contact-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.contact-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--gray-dark);
    margin-bottom: 3rem;
}

.contact-text a {
    font-weight: 600;
    border-bottom: 1px solid var(--dark);
}

.contact-text a:hover {
    color: var(--gray);
    border-color: var(--gray);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--dark);
    transition: var(--transition);
}

.contact-link svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.contact-link:hover {
    color: var(--gray);
}

/* ========================================
   Back to Top
   ======================================== */

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 42px;
    height: 42px;
    border: 1px solid var(--gray-lighter);
    background: var(--white);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 900;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

/* ========================================
   Language Switch
   ======================================== */

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.lang-btn {
    background: none;
    border: none;
    font-family: var(--font);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--gray-light);
    cursor: pointer;
    padding: 0.2rem 0.3rem;
    transition: var(--transition);
}

.lang-btn.active {
    color: var(--dark);
    font-weight: 700;
}

.lang-btn:hover {
    color: var(--dark);
}

.lang-sep {
    color: var(--gray-lighter);
    font-size: 0.75rem;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--gray-lighter);
    text-align: center;
}

.footer p {
    font-size: 0.8rem;
    color: var(--gray-light);
    letter-spacing: 0.05em;
}

/* ========================================
   Lightbox
   ======================================== */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 2rem;
    cursor: pointer;
}

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

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    cursor: default;
}

/* ========================================
   Animations
   ======================================== */

[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animate-in {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 1024px) {

    .social-services {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 0;
        transition: var(--transition);
        box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    }

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

    .nav-menu .nav-link {
        color: var(--dark);
        font-size: 0.9rem;
        padding: 1rem 0;
        border-bottom: 1px solid var(--gray-lighter);
        display: block;
    }

    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 0;
        padding-left: 1rem;
    }

    .nav-dropdown-link {
        padding: 0.4rem 0;
        font-size: 0.8rem;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .nav-container {
        gap: 0.5rem;
    }

    .nav-logo {
        font-size: 0.9rem;
        letter-spacing: 0.1em;
    }

    .theme-toggle {
        margin-left: auto;
        margin-right: 0.5rem;
    }


    .section {
        padding: 5rem 0;
    }

    .hero-overlay {
        padding: 4rem 1.5rem;
        align-items: flex-end;
        justify-content: flex-start;
    }

    .hero-overlay {
        display: none;
    }

    .hero-cta-mobile-wrap {
        display: block;
    }

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

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

    .portfolio-filter {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.2rem;
    }

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

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

    .service-card {
        padding: 2rem;
    }
}

/* ========================================
   Dark Mode
   ======================================== */

[data-theme="dark"] {
    --black: #f8f8f8;
    --dark: #f0f0f0;
    --gray-dark: #ccc;
    --gray: #aaa;
    --gray-light: #888;
    --gray-lighter: #333;
    --white: #0a0a0a;
    --off-white: #111;
}

[data-theme="dark"] body {
    background: #0a0a0a;
    color: #f0f0f0;
}

[data-theme="dark"] .navbar,
[data-theme="dark"] .navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
}

[data-theme="dark"] .nav-menu {
    background: #0a0a0a;
}

[data-theme="dark"] .service-card:hover,
[data-theme="dark"] .service-card.animate-in:hover {
    transform: translateY(-4px);
}

[data-theme="dark"] .services {
    background: #1a1a1a;
}

[data-theme="dark"] .services .section-title {
    color: #f0f0f0;
}

[data-theme="dark"] .service-card {
    border-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .service-card h3 {
    color: #f0f0f0;
}

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

[data-theme="dark"] .service-number {
    color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .lightbox {
    background: rgba(0,0,0,0.95);
}

[data-theme="dark"] .footer {
    border-top-color: #222;
}

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

[data-theme="dark"] .theme-toggle {
    color: #f0f0f0;
}

[data-theme="dark"] .nav-logo,
[data-theme="dark"] .nav-link {
    color: #f0f0f0;
}

[data-theme="dark"] .nav-toggle span {
    background: #f0f0f0;
}
