/* ============================================
   BY DEEPTI GOEL — style.css
   Dark & Gold Luxury Aesthetic
   ============================================ */

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

/* --- Custom Properties --- */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111110;
  --bg-card: #141210;

  --gold: #c4a265;
  --gold-muted: #8a7a5a;
  --gold-border: rgba(196, 162, 101, 0.12);
  --gold-border-hover: rgba(196, 162, 101, 0.35);
  --gold-divider: rgba(196, 162, 101, 0.08);
  --gold-glow: rgba(196, 162, 101, 0.15);

  --text-heading: #f0e8dc;
  --text-body: #b0a898;
  --text-muted: #8a7a5a;
  --text-dim: #5a5248;

  --font-serif: Georgia, 'Times New Roman', Times, serif;

  --nav-height: 72px;
  --transition: 0.3s ease;
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-serif);
  background: var(--bg-primary);
  color: var(--text-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--text-heading);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  color: var(--text-heading);
  font-weight: 400;
}

.section-label {
  font-size: 10px;
  letter-spacing: 5px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.section {
  padding: 80px 60px;
  border-bottom: 1px solid var(--gold-divider);
}

/* --- Utility --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* --- Gold Divider --- */
.gold-rule {
  width: 0;
  height: 1px;
  background: var(--gold);
  margin: 40px auto;
  transition: width 0.8s ease;
}

.gold-rule.visible {
  width: 60px;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-divider);
  transition: background var(--transition);
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 60px;
  height: var(--nav-height);
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  font-size: 16px;
  letter-spacing: 4px;
  color: var(--gold);
  font-weight: 400;
}

.nav-logo:hover {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-link {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold-muted);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}

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

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  transition: transform var(--transition), opacity var(--transition);
}

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.97);
  z-index: 999;
  align-items: center;
  justify-content: center;
}

.nav-overlay.open {
  display: flex;
}

.nav-overlay .nav-links-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.nav-overlay .nav-links-mobile a {
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--gold-muted);
  transition: color var(--transition);
}

.nav-overlay .nav-links-mobile a:hover {
  color: var(--gold);
}

.nav-overlay .close-btn {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 40px;
  padding-top: var(--nav-height);
  border-bottom: 1px solid var(--gold-divider);
}

.hero-label {
  font-size: 10px;
  letter-spacing: 6px;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-ornament {
  color: var(--gold);
  margin-bottom: 24px;
  opacity: 0.5;
}

.hero-ornament svg {
  width: 80px;
  height: 12px;
}

.hero-statement {
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.6;
  color: var(--text-heading);
  font-weight: 400;
  font-style: italic;
  max-width: 820px;
}

.hero-statement .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-statement .char.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-statement .hero-word {
  display: inline-block;
  white-space: nowrap;
}

.hero-statement .char-space {
  display: inline-block;
  width: 0.3em;
}

.hero-location {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--gold-muted);
}

/* ============================================
   What I Do
   ============================================ */
.services-description {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text-body);
  max-width: 680px;
}

.services-closing {
  font-size: 17px;
  line-height: 1.9;
  color: var(--text-heading);
  font-style: italic;
  max-width: 680px;
  margin-top: 20px;
}

.services-pillars {
  display: flex;
  gap: 40px;
  margin-top: 48px;
}

.pillar {
  flex: 1;
  border-top: 1px solid var(--gold-border-hover);
  padding-top: 18px;
}

.pillar-icon {
  width: 14px;
  height: 14px;
  color: var(--gold);
  margin-bottom: 8px;
  opacity: 0.4;
}

.pillar-name {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold);
}

/* ============================================
   Selected Work (Homepage)
   ============================================ */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.work-card {
  display: block;
  border: 1px solid var(--gold-border);
  padding: 32px;
  transition: border-color var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.work-card:hover {
  border-color: var(--gold-border-hover);
  box-shadow: 0 0 30px var(--gold-glow);
}

.work-card-category {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 10px;
}

.work-card-name {
  font-size: 20px;
  color: var(--text-heading);
  font-weight: 400;
  margin-bottom: 14px;
}

.work-card-excerpt {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
  font-style: italic;
}

.work-cta {
  text-align: center;
  margin-top: 48px;
}

.cta-link {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 6px;
  transition: color var(--transition), border-color var(--transition);
}

.cta-link:hover {
  color: var(--text-heading);
  border-color: var(--text-heading);
}

/* ============================================
   About
   ============================================ */
.about-headline {
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.7;
  font-style: italic;
  max-width: 680px;
}

.about-body {
  margin-top: 28px;
  max-width: 680px;
}

.about-body p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-body);
  margin-bottom: 16px;
}

/* ============================================
   Book
   ============================================ */
.section--compact {
  padding: 60px 60px;
}

.book-title {
  font-size: 22px;
  color: var(--text-heading);
  font-style: italic;
  margin-bottom: 14px;
}

.book-description {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-body);
  max-width: 600px;
  margin-bottom: 24px;
}

/* ============================================
   Classes Bar
   ============================================ */
.classes-bar {
  padding: 48px 60px;
  border-bottom: 1px solid var(--gold-divider);
}

.classes-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.classes-title {
  font-size: 18px;
  color: var(--text-heading);
  font-weight: 400;
  margin-bottom: 4px;
}

.classes-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 80px 60px;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.footer-icon {
  width: 14px;
  height: 14px;
  color: var(--gold);
  opacity: 0.4;
  flex-shrink: 0;
}

.footer-email {
  font-size: 18px;
  color: var(--text-heading);
  transition: color var(--transition);
}

.footer-email:hover {
  color: var(--gold);
}

.footer-location {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 2px;
}

.footer-copyright {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-dim);
}

/* ============================================
   Portfolio Page
   ============================================ */
.portfolio-header {
  padding: 120px 60px 50px;
  text-align: center;
  border-bottom: 1px solid var(--gold-divider);
}

.portfolio-quote {
  font-size: clamp(20px, 3vw, 26px);
  color: var(--text-heading);
  font-style: italic;
  font-weight: 400;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 44px;
}

.filter-tab {
  background: none;
  border: none;
  font-family: var(--font-serif);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-dim);
  cursor: pointer;
  padding-bottom: 6px;
  position: relative;
  transition: color var(--transition);
}

.filter-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.filter-tab:hover,
.filter-tab.active {
  color: var(--gold);
}

.filter-tab.active::after {
  width: 100%;
}

/* Projects Container */
.portfolio-projects {
  padding: 0 60px;
}

.category-section {
  padding: 60px 0 20px;
}

/* Category labels within portfolio — hidden when filtering */
.category-section .section-label {
  transition: opacity var(--transition);
}

/* Featured Project (first per category) */
.project--featured {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--gold-divider);
}

.project-image {
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-placeholder {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-dim);
}

.project-tags {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.project-name {
  font-size: 22px;
  color: var(--text-heading);
  font-weight: 400;
  margin-bottom: 16px;
}

.project-excerpt {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-muted);
  font-style: italic;
}

/* Project Cards Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--gold-divider);
}

.project--card {
  border: 1px solid var(--gold-border);
  padding: 28px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.project--card:hover {
  border-color: var(--gold-border-hover);
  box-shadow: 0 0 30px var(--gold-glow);
}

.project--card .project-name {
  font-size: 19px;
  margin-bottom: 12px;
}

/* Filter visibility */
.project.filter-hidden {
  display: none;
}

.category-section.filter-hidden {
  display: none;
}

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

/* --- Tablet (768px and below) --- */
@media (max-width: 768px) {
  .section {
    padding: 60px 32px;
  }

  .nav-inner {
    padding: 0 24px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 0 28px;
  }

  .hero-statement {
    font-size: 24px;
  }

  .services-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

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

  .about-headline {
    font-size: 20px;
  }

  .classes-bar {
    padding: 40px 32px;
  }

  .classes-bar-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer {
    padding: 60px 32px;
  }

  /* Portfolio page */
  .portfolio-header {
    padding: 100px 32px 40px;
  }

  .portfolio-projects {
    padding: 0 32px;
  }

  .filter-tabs {
    flex-wrap: wrap;
    gap: 16px;
  }

  .project--featured {
    grid-template-columns: 1fr;
  }

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

/* --- Mobile (480px and below) --- */
@media (max-width: 480px) {
  .section {
    padding: 48px 20px;
  }

  .nav-inner {
    padding: 0 20px;
  }

  .nav-logo {
    font-size: 14px;
    letter-spacing: 3px;
  }

  .hero {
    padding: 0 20px;
  }

  .hero-label {
    font-size: 9px;
    letter-spacing: 4px;
  }

  .hero-statement {
    font-size: 20px;
  }

  .services-pillars {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .classes-bar {
    padding: 32px 20px;
  }

  .footer {
    padding: 48px 20px;
  }

  .portfolio-header {
    padding: 90px 20px 32px;
  }

  .portfolio-projects {
    padding: 0 20px;
  }

  .portfolio-quote {
    font-size: 18px;
  }

  .filter-tabs {
    gap: 12px;
  }

  .project--card {
    padding: 20px;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .gold-rule {
    width: 60px;
    transition: none;
  }

  .hero-statement .char {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
