:root {
    /* Variables */
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --secondary-text: #666666;
    --card-bg: #f9f9f9;
    --border-color: #e5e5e5;
    --overlay-bg: rgba(255, 255, 255, 0.95);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --transition-speed: 0.4s;
}

body.dark-mode {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --secondary-text: #a0a0a0;
    --card-bg: #1e1e1e;
    --border-color: #333333;
    --overlay-bg: rgba(18, 18, 18, 0.95);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

/* --- UTILITY --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
}
.btn:hover { background-color: var(--text-color); color: var(--bg-color); }

/* --- NAVIGATION --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-color);
    transition: background-color var(--transition-speed) ease;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-color);
    text-decoration: none;
    cursor: pointer;
}

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    transition: transform 0.3s ease;
}
#theme-toggle:hover { transform: rotate(15deg); }

/* --- PAGE TRANSITIONS --- */
.view-section {
    animation: fadeIn 0.6s ease-out;
}

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

/* --- HERO --- */
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}
#hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 10px;
    letter-spacing: -1px;
}
#hero p {
    font-size: 1rem;
    color: var(--secondary-text);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 40px;
}
.cta-group { display: flex; gap: 20px; }

/* --- ABOUT --- */
#about { padding: 100px 0; background-color: var(--card-bg); }
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
}
.about-image img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.about-image img:hover { transform: scale(1.02); }
.about-text h2 { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 20px; }
.about-text p { font-size: 1.1rem; color: var(--secondary-text); margin-bottom: 20px; }
.signature { font-family: 'Playfair Display', serif; font-style: italic; margin-top: 10px; font-size: 1.2rem; }

/* --- CATEGORIES (HOME) --- */
#categories { padding: 80px 0; text-align: center; }
.subtitle { color: var(--secondary-text); margin-top: 10px; }
.category-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.cat-card {
    position: relative;
    height: 250px;
    cursor: pointer;
    overflow: hidden;
}
.cat-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.cat-card:hover img { transform: scale(1.1); }
.cat-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}
.cat-card:hover .cat-overlay { background: rgba(0,0,0,0.5); }
.cat-title {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.5);
    padding: 10px 15px;
    text-align: center;
}

/* --- PREVIEW GALLERY (HOME) --- */
.preview-header { margin: 60px 0 30px; text-align: center; }
.preview-header h3 { font-family: var(--font-heading); font-size: 2rem; }

/* Grid for Preview (Uniform) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}
.gallery-item:hover img { transform: scale(1.05); }

/* --- FULL CATEGORY PAGES --- */
.category-header {
    padding: 120px 0 60px;
    text-align: center;
}
.category-header h2 { font-family: var(--font-heading); font-size: 3rem; margin-bottom: 20px; }
.back-btn-container { margin-bottom: 40px; }
.end-gallery { padding: 50px 0; text-align: center; color: var(--secondary-text); }

/* --- MASONRY LAYOUT (For Detailed Pages) --- */
.masonry-grid {
    column-count: 3;
    column-gap: 20px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}
.masonry-item:hover img { transform: scale(1.05); }

/* Overlay Styles (Shared) */
.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex; justify-content: center; align-items: center;
}
.masonry-item:hover .overlay, .gallery-item:hover .overlay { opacity: 1; }
.overlay i { color: white; font-size: 1.5rem; }

/* --- CONTACT --- */
#contact { padding: 100px 0; background-color: var(--card-bg); text-align: center; }
.social-links { display: flex; justify-content: center; gap: 30px; margin-top: 30px; }
.social-icon { font-size: 2rem; color: var(--text-color); transition: transform 0.3s; }
.social-icon:hover { transform: translateY(-5px); }

/* --- FOOTER --- */
footer { padding: 30px 0; text-align: center; border-top: 1px solid var(--border-color); font-size: 0.8rem; color: var(--secondary-text); }

/* --- LIGHTBOX --- */
.lightbox {
    position: fixed; z-index: 2000; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--overlay-bg);
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-content img { max-width: 90vw; max-height: 85vh; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.close-lightbox { position: absolute; top: 30px; right: 40px; font-size: 2rem; cursor: pointer; background: none; border: none; color: var(--text-color); }
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--text-color);
    font-size: 2rem; cursor: pointer; padding: 20px;
}
.prev-btn { left: 30px; }
.next-btn { right: 30px; }

@media (min-width: 768px) {
    .about-content { flex-direction: row; text-align: left; justify-content: center; gap: 80px; }
}

@media (max-width: 900px) {
    .masonry-grid { column-count: 2; }
}
@media (max-width: 600px) {
    .masonry-grid { column-count: 1; }
}
/* === HAMBURGER MENU STYLE === */
#menu-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-color);
  cursor: pointer;
  margin-left: 10px;
  transition: transform 0.3s ease;
}
#menu-toggle:hover {
  transform: rotate(15deg);
}

.mobile-menu {
  position: absolute;
  top: 60px;
  right: 40px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 1001;
  min-width: 140px;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.mobile-menu li a {
  display: block;
  padding: 10px 16px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.mobile-menu li a:hover {
  background: var(--card-bg);
}

.mobile-menu.hidden {
  display: none !important;
}
.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu li {
  margin: 8px 0;
}

.menu-link {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  color: var(--text-color);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.menu-link:hover {
  background: var(--card-bg);
  border-radius: 4px;
}
