/* ==========================================================================
   Neeharika Aniruddh — Artist Portfolio
   A warm, elegant design for an expressive arts practitioner
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Warm earthy palette */
  --color-bg:        #faf8f5;
  --color-bg-alt:    #f3efe9;
  --color-text:      #3a3330;
  --color-text-light:#6b5e57;
  --color-heading:   #2c2421;
  --color-accent:    #b0785a;
  --color-accent-dark:#8f5e44;
  --color-accent-light:#d4a98a;
  --color-border:    #e0d6cc;
  --color-white:     #ffffff;

  /* Typography */
  --font-serif:   'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:    'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Layout */
  --container-width: 820px;
  --nav-height: 72px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--color-heading);
  font-weight: 500;
  line-height: 1.3;
}

h1 { font-size: 2.5rem; margin-bottom: var(--space-md); }
h2 { font-size: 1.85rem; margin: var(--space-lg) 0 var(--space-sm); }
h3 { font-size: 1.4rem; margin: var(--space-md) 0 var(--space-xs); }

p {
  margin-bottom: var(--space-sm);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--color-accent-dark);
}

strong { font-weight: 500; }

ul, ol {
  padding-left: 1.5em;
  margin-bottom: var(--space-sm);
}

li {
  margin-bottom: 0.35em;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-lg) 0;
}

blockquote {
  border-left: 3px solid var(--color-accent-light);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  background: var(--color-bg-alt);
  font-style: italic;
  color: var(--color-text-light);
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

/* ---------- Container ---------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-heading);
  letter-spacing: 0.01em;
}

.nav-brand:hover {
  color: var(--color-accent);
}

/* Nav menu */
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-light);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.25s ease;
  text-decoration: none;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--color-accent);
}

/* Dropdown toggle arrow */
.dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
  margin-bottom: 2px;
  transition: transform 0.25s ease;
}

.dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(-135deg);
  margin-bottom: -2px;
}

/* Dropdown menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
}

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

.dropdown-link {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  color: var(--color-text);
  transition: all 0.2s ease;
}

.dropdown-link:hover {
  background: var(--color-bg-alt);
  color: var(--color-accent);
}

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

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-heading);
  position: relative;
  transition: background 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-heading);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.hamburger::before { top: -7px; }
.hamburger::after  { top: 7px; }

/* Hamburger active state */
.nav-toggle.active .hamburger {
  background: transparent;
}

.nav-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  margin-top: var(--nav-height);
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
  background: linear-gradient(175deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}

.hero-inner {
  max-width: 700px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 400;
  color: var(--color-heading);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-sm);
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-text-light);
  letter-spacing: 0.03em;
  line-height: 1.7;
}

/* ==========================================================================
   PAGE CONTENT
   ========================================================================== */
.page-content {
  margin-top: var(--nav-height);
  padding: var(--space-xl) 0 var(--space-2xl);
}

.page-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  font-size: 2.8rem;
  font-weight: 400;
}

.page-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-light);
  margin-top: var(--space-xs);
  font-weight: 300;
}

.page-body h2 {
  position: relative;
  padding-bottom: var(--space-xs);
}

.page-body h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--color-accent-light);
  margin-top: var(--space-xs);
}

.page-body h3 {
  color: var(--color-accent-dark);
}

/* Styled list items for service pages */
.page-body ul {
  list-style: none;
  padding-left: 0;
}

.page-body ul li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 0.5em;
}

.page-body ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.4em;
  line-height: 1.3;
}

/* Disclaimer / callout box */
.disclaimer-box {
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-accent-light);
  border-radius: 0 6px 6px 0;
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
}

.disclaimer-box h2::after,
.disclaimer-box h3::after {
  display: none;
}

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 1;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

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

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

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-xl);
  color: var(--color-text-light);
  font-style: italic;
}

/* ---------- 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: all 0.3s ease;
}

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

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 1rem;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-close { top: 1rem; right: 1.5rem; font-size: 2.8rem; }
.lightbox-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lightbox-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 3rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
/* ---------- Read More Link ---------- */
.read-more {
  display: inline-block;
  margin-top: var(--space-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent-light);
  padding-bottom: 2px;
  transition: all 0.25s ease;
}

.read-more:hover {
  color: var(--color-accent-dark);
  border-bottom-color: var(--color-accent-dark);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.site-footer p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin: 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --nav-height: 60px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--nav-height) + 1rem) var(--space-md) var(--space-md);
    gap: 0;
    box-shadow: -4px 0 30px rgba(0,0,0,0.1);
    transition: right 0.35s ease;
    overflow-y: auto;
  }

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

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 0.75rem 0;
    font-size: 0.9rem;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding-left: var(--space-sm);
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .has-dropdown.open .dropdown-menu {
    max-height: 300px;
  }

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

  .page-header h1 {
    font-size: 2rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-sm);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }
}
