/* ========================================
   BASE — Reset & Shared Structure
   ======================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ========================================
   THEME TOGGLE
   ======================================== */
.theme-toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    gap: 4px;
    background: var(--toggle-bg);
    padding: 8px 12px;
    border-radius: var(--toggle-radius, 40px);
    border: 1px solid var(--toggle-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.theme-btn {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 6px 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.theme-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Fixed dot colors — always represent their theme */
.theme-btn[data-theme="atelier"] .theme-dot { background: #a0522d; }
.theme-btn[data-theme="noir"] .theme-dot { background: #c4a35a; }
.theme-btn[data-theme="coastal"] .theme-dot { background: #64748b; }
.theme-btn[data-theme="ember"] .theme-dot { background: #b87333; }
.theme-btn[data-theme="brutalist"] .theme-dot { background: #ff0000; }

.theme-label {
    font-family: var(--font-body);
    font-size: 0;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    overflow: hidden;
    max-width: 0;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.theme-btn:hover .theme-label,
.theme-btn.active .theme-label {
    font-size: 0.65rem;
    max-width: 80px;
    margin-left: 6px;
}

.theme-btn.active .theme-dot {
    transform: scale(1.3);
    box-shadow: 0 0 0 3px var(--accent-glow, rgba(0,0,0,0.1));
}

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-primary);
}

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

.hero-split-image {
    display: none;
    overflow: hidden;
}
.hero-split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    animation: fadeInUp 1s ease both;
}

.hero-pre {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.logo {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 12vw, 8rem);
    font-weight: var(--logo-weight, 400);
    letter-spacing: var(--logo-spacing, 0.02em);
    line-height: 1;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.tagline {
    font-family: var(--font-body);
    font-size: clamp(0.85rem, 2.5vw, 1.15rem);
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--btn-text);
    background: var(--btn-bg);
    border: var(--btn-border-width, 2px) solid var(--btn-border-color);
    border-radius: var(--btn-radius);
    transition: all 0.3s ease;
}
.cta-btn:hover {
    background: var(--btn-hover-bg);
    color: var(--btn-hover-text);
    border-color: var(--btn-hover-border, var(--btn-hover-bg));
    transform: translateY(-2px);
    box-shadow: var(--btn-shadow);
}

/* ========================================
   GALLERY
   ======================================== */
.gallery {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
}

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

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: var(--title-weight, 400);
    color: var(--text-primary);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.gallery-grid {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.item-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.gallery-item:hover .item-image img {
    transform: scale(1.05);
}

.item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    background: var(--overlay-bg);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
.gallery-item:hover .item-info {
    transform: translateY(0);
}

.item-index {
    display: none;
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.item-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--overlay-text, #fff);
    letter-spacing: 0.05em;
    margin: 0;
}

.item-desc {
    display: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    line-height: 1.6;
}

/* ========================================
   ABOUT
   ======================================== */
.about {
    padding: 6rem 2rem;
    background: var(--bg-primary);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-quote {
    display: none;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.5;
    border: none;
    padding: 0;
    margin: 0;
}

.about-body {
    text-align: center;
}
.about-body .section-title {
    margin-bottom: 2rem;
}
.about-body p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   CONTACT
   ======================================== */
.contact {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
    text-align: center;
}

.contact-content {
    max-width: 500px;
    margin: 0 auto;
}

.contact-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.contact-email {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}
.contact-email:hover {
    color: var(--accent-hover);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-link {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.3s ease;
}
.social-link:hover {
    color: var(--accent);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 2rem;
    text-align: center;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}
.footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ========================================
   RESPONSIVE — Base
   ======================================== */
@media (max-width: 768px) {
    .theme-toggle {
        top: auto;
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
    }
    .theme-label { display: none; }
    .gallery { padding: 4rem 1rem; }
    .about, .contact { padding: 4rem 1.5rem; }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
