@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

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

:root, .light {
  --bg: hsl(0,0%,98%);
  --fg: hsl(0,0%,15%);
  --card: hsl(0,0%,100%);
  --card-fg: hsl(0,0%,15%);
  --primary: hsl(40,68%,55%);
  --primary-fg: hsl(0,0%,98%);
  --secondary: hsl(0,0%,90%);
  --secondary-fg: hsl(0,0%,20%);
  --muted: hsl(0,0%,90%);
  --muted-fg: hsl(0,0%,45%);
  --border: hsl(0,0%,85%);
  --destructive: hsl(0,84%,60%);
  --radius: 0.25rem;
}
.dark {
  --bg: hsl(0,0%,10%);
  --fg: hsl(0,0%,95%);
  --card: hsl(0,0%,15%);
  --card-fg: hsl(0,0%,95%);
  --primary: hsl(40,68%,55%);
  --primary-fg: hsl(0,0%,98%);
  --secondary: hsl(0,0%,20%);
  --secondary-fg: hsl(0,0%,95%);
  --muted: hsl(0,0%,20%);
  --muted-fg: hsl(0,0%,65%);
  --border: hsl(0,0%,20%);
  --radius: 0.25rem;
}
.luxury {
  --bg: hsl(222,47%,11%);
  --fg: hsl(45,30%,90%);
  --card: hsl(222,47%,13%);
  --card-fg: hsl(45,30%,90%);
  --primary: hsl(43,74%,49%);
  --primary-fg: hsl(222,47%,11%);
  --secondary: hsl(222,47%,16%);
  --secondary-fg: hsl(45,30%,90%);
  --muted: hsl(222,47%,18%);
  --muted-fg: hsl(45,20%,70%);
  --border: hsl(222,47%,20%);
  --radius: 0;
}
.earth {
  --bg: hsl(30,20%,96%);
  --fg: hsl(20,15%,20%);
  --card: hsl(30,20%,98%);
  --card-fg: hsl(20,15%,20%);
  --primary: hsl(15,50%,50%);
  --primary-fg: hsl(30,20%,96%);
  --secondary: hsl(30,15%,90%);
  --secondary-fg: hsl(20,15%,30%);
  --muted: hsl(30,15%,88%);
  --muted-fg: hsl(20,10%,45%);
  --border: hsl(30,15%,85%);
  --radius: 1rem;
}
.sanjay-puri {
  --bg: hsl(0,0%,100%);
  --fg: hsl(0,0%,25%);
  --card: hsl(0,0%,100%);
  --card-fg: hsl(0,0%,25%);
  --primary: hsl(38,76%,57%);
  --primary-fg: hsl(0,0%,100%);
  --secondary: hsl(0,0%,96%);
  --secondary-fg: hsl(0,0%,25%);
  --muted: hsl(0,0%,96%);
  --muted-fg: hsl(0,0%,45%);
  --border: hsl(0,0%,85%);
  --radius: 0;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
::selection { background: hsla(40,68%,55%,0.2); color: var(--primary); }
h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', serif; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* NAV */
.navbar {
  width: 100%;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
}
.navbar .nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
@media(min-width:768px) {
  .navbar .nav-inner { flex-direction: row; justify-content: space-between; }
}
.logo { cursor: pointer; text-align: center; }
@media(min-width:768px) { .logo { text-align: left; } }
.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.logo-s { font-size: 1.875rem; font-style: italic; margin-right: 0.15rem; color: var(--primary); }
.logo-sub {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.5625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted-fg);
  margin-top: 0.25rem;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}
.nav-link {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--fg);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s;
  background: none;
  border: none;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: currentColor;
  transition: width 0.3s;
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* THEME SWITCHER */
.theme-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  position: relative;
  margin-left: 0.5rem;
}
.theme-btn:hover { background: var(--muted); }
.theme-btn svg { width: 1rem; height: 1rem; }
.theme-dropdown {
  display: none;
  position: absolute;
  top: 110%;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 10rem;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  overflow: hidden;
}
.theme-dropdown.open { display: block; }
.theme-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  color: var(--fg);
}
.theme-option:hover { background: var(--muted); }

/* MAIN */
main { flex: 1; }

/* HERO */
.hero {
  position: relative;
  height: 80vh;
  width: 100%;
  overflow: hidden;
  background: #000;
}
.hero-img {
  position: absolute;
  inset: 0;
  opacity: 0.6;
}
.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform 10s;
}
.hero:hover .hero-img img { transform: scale(1.05); }
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 50%, transparent 100%);
  opacity: 0.9;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  max-width: 56rem;
  margin: 0 auto;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  animation: fadeInUp 1s ease 0.2s both;
}
@media(min-width:768px) { .hero h1 { font-size: 6rem; } }
.hero h1 span { color: var(--primary); font-style: italic; font-family: 'Playfair Display', serif; }
.hero p {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
  max-width: 40rem;
  animation: fadeIn 1s ease 0.6s both;
}
.hero .cta {
  display: inline-block;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 1rem 2rem;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.3s;
  animation: fadeInUp 0.8s ease 1s both;
}
.hero .cta:hover { background: var(--primary); color: white; }

/* SECTIONS */
.section {
  padding: 6rem 1.5rem;
  max-width: 80rem;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.section-header h1 {
  font-size: 1.25rem;
  letter-spacing: 0.2em;
  font-weight: 500;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}
@media(min-width:768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media(min-width:640px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media(min-width:1024px) { .grid-3 { grid-template-columns: 1fr 1fr 1fr; } }
.grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media(min-width:768px) { .grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media(min-width:1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ABOUT HOME */
.about-home h2 {
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
}
@media(min-width:768px) { .about-home h2 { font-size: 2.25rem; } }
.about-home p {
  color: var(--muted-fg);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.read-more {
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 0.25rem;
  transition: all 0.3s;
  display: inline-block;
}
.read-more:hover { color: var(--primary); border-color: var(--primary); }
.about-images { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about-images img { width: 100%; height: 16rem; object-fit: cover; }
.about-images img:last-child { margin-top: 3rem; }

/* ABOUT PAGE */
.about-page { max-width: 56rem; margin: 0 auto; padding: 3rem 1.5rem; }
@media(min-width:768px) { .about-page { padding: 6rem 1.5rem; } }
.about-page .text-content { margin-bottom: 3rem; }
.about-page .text-content p {
  color: var(--muted-fg);
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  text-align: justify;
}
.quote-section { margin-top: 5rem; text-align: center; }
.quote-section .quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.quote-section .source {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-fg);
}
.quote-section > div { margin-bottom: 3rem; }

/* ARCHITECTURE */
.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}
@media(min-width:768px) { .cat-tabs { gap: 2.5rem; } }
.cat-tab {
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding-bottom: 1rem;
  position: relative;
  transition: color 0.3s;
  color: var(--muted-fg);
  background: none;
  border: none;
  cursor: pointer;
}
@media(min-width:768px) { .cat-tab { font-size: 0.75rem; } }
.cat-tab:hover, .cat-tab.active { color: var(--fg); font-weight: 600; }
.cat-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--fg);
}
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 2rem;
}
@media(min-width:768px) { .projects-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media(min-width:1024px) { .projects-grid { grid-template-columns: 1fr 1fr 1fr; gap: 2rem 2rem; } }
.project-card { cursor: pointer; }
.project-card .img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--muted);
  position: relative;
  margin-bottom: 1rem;
}
.project-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}
.project-card:hover .img-wrap img { transform: scale(1.05); }
.project-card .img-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.5rem;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
}
.project-card .card-text { text-align: center; }
.project-card .card-text h3 {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  font-family: 'Montserrat', sans-serif;
}
.project-card .card-text p {
  font-size: 0.75rem;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--muted-fg);
}
.empty-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 5rem 0;
  color: var(--muted-fg);
  font-weight: 300;
}

/* PROJECT DETAIL */
.project-detail { max-width: 80rem; margin: 0 auto; padding: 3rem 1.5rem; }
@media(min-width:768px) { .project-detail { padding: 3rem 3rem; } }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted-fg);
  margin-bottom: 2rem;
  transition: color 0.3s;
}
.back-link:hover { color: var(--primary); }
.project-detail > h1 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
}
@media(min-width:768px) { .project-detail > h1 { font-size: 3.25rem; } }
.hero-image {
  width: 100%;
  aspect-ratio: 21/9;
  overflow: hidden;
  background: var(--muted);
  cursor: pointer;
  position: relative;
  margin-bottom: 1rem;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}
.hero-image:hover img { transform: scale(1.05); }
.hero-image .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.hero-image:hover .overlay { background: rgba(0,0,0,0.1); }
.hero-image .overlay span {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(4px);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0;
  transition: opacity 0.3s;
  color: #333;
}
.hero-image:hover .overlay span { opacity: 1; }
.thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}
@media(min-width:768px) { .thumb-grid { grid-template-columns: repeat(6, 1fr); } }
.thumb-grid .thumb {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--muted);
  cursor: pointer;
  position: relative;
}
.thumb-grid .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.thumb-grid .thumb:hover img { transform: scale(1.1); }
.project-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 3rem;
}
@media(min-width:768px) { .project-info { grid-template-columns: 2fr 1fr; } }
.project-info h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.project-info .description {
  color: var(--muted-fg);
  font-weight: 300;
  line-height: 1.8;
  white-space: pre-wrap;
}
.facts-box {
  background: var(--secondary);
  padding: 2rem;
}
.facts-box h3 {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.fact-item { margin-bottom: 1rem; }
.fact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-fg);
}
.fact-value { font-size: 0.875rem; font-weight: 500; }

/* GALLERY LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 110;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: white;
  color: black;
  border: none;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.lightbox-close:hover { background: var(--primary); color: white; }
.lightbox-container {
  position: relative;
  width: 100%;
  max-width: 80rem;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  transition: opacity 0.4s;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
  color: black;
  border: none;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: all 0.3s;
}
.lightbox-nav:hover { color: var(--primary); }
.lightbox-prev { left: 1rem; }
@media(min-width:768px) { .lightbox-prev { left: 2.5rem; } }
.lightbox-next { right: 1rem; }
@media(min-width:768px) { .lightbox-next { right: 2.5rem; } }
.lightbox-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.8);
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  backdrop-filter: blur(4px);
  color: #333;
}

/* PUBLICATION */
.pub-carousel-wrap {
  position: relative;
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 3.5rem;
}
.pub-carousel {
  overflow: hidden;
}
.pub-track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.pub-slide {
  flex: 0 0 33.333%;
  min-width: 33.333%;
  max-width: 33.333%;
  padding: 0 0.75rem;
  box-sizing: border-box;
  cursor: pointer;
}
@media(max-width:767px) {
  .pub-slide { flex: 0 0 100%; min-width: 100%; max-width: 100%; }
  .pub-carousel-wrap { padding: 0 2.5rem; }
}
@media(min-width:768px) and (max-width:1023px) {
  .pub-slide { flex: 0 0 50%; min-width: 50%; max-width: 50%; }
}
.pub-slide-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--muted);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: box-shadow 0.3s, transform 0.3s;
}
.pub-slide:hover .pub-slide-img {
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  transform: translateY(-4px);
}
.pub-slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.pub-slide:hover .pub-slide-img img { transform: scale(1.03); }
.pub-slide p {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 0.875rem;
  margin-top: 0.75rem;
  color: var(--fg);
}
.pub-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  color: var(--fg);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 5;
}
.pub-arrow:hover { background: var(--primary); color: white; border-color: var(--primary); }
.pub-arrow.disabled { opacity: 0.3; pointer-events: none; }
.pub-arrow-prev { left: 0; }
.pub-arrow-next { right: 0; }
.pub-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}
.pub-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}
.pub-dot:hover { background: var(--muted-fg); }
.pub-dot.active { background: var(--fg); transform: scale(1.2); }

/* CONTACT */
.contact-tabs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}
.contact-tab {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
  color: var(--muted-fg);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
}
.contact-tab.active { color: var(--fg); font-weight: 600; border-bottom-color: var(--fg); }
.contact-info h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.contact-info .subtitle {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--muted-fg);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}
.contact-info p { color: var(--muted-fg); line-height: 1.8; font-weight: 300; font-size: 0.875rem; }
.contact-info .label { color: var(--fg); font-weight: 500; margin-right: 0.5rem; }
.contact-info .email-link { color: var(--primary); transition: opacity 0.3s; }
.contact-info .email-link:hover { opacity: 0.8; }
.contact-info > div { margin-bottom: 2rem; }

/* FORMS */
.form-input {
  width: 100%;
  padding: 0.75rem 0;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.3s;
  margin-bottom: 1.5rem;
}
.form-input:focus { border-bottom-color: var(--primary); }
.form-input::placeholder { color: var(--muted-fg); }
textarea.form-input { resize: none; min-height: 100px; }
.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  padding: 1rem 2rem;
  border: none;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: opacity 0.3s;
  border-radius: 0;
  margin-top: 1rem;
}
.btn-primary:hover { opacity: 0.9; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-outline {
  background: transparent;
  color: var(--fg);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.3s;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost {
  background: transparent;
  border: none;
  color: var(--fg);
  padding: 0.5rem;
  transition: color 0.3s;
}
.btn-ghost:hover { color: var(--primary); }
.btn-danger { color: var(--destructive); }
.btn-danger:hover { color: var(--destructive); opacity: 0.8; }

/* CAREER */
.career-heading {
  font-size: 2.5rem;
  line-height: 1.2;
  border-left: 2px solid var(--primary);
  padding-left: 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
@media(min-width:768px) { .career-heading { font-size: 3.25rem; } }
.file-input-wrap { margin-bottom: 1rem; }
.file-input-wrap label { font-size: 0.875rem; color: var(--muted-fg); display: block; margin-bottom: 0.5rem; }
.file-input-wrap input[type="file"] { font-size: 0.875rem; }

/* LOGIN */
.login-page {
  max-width: 28rem;
  margin: 8rem auto;
  padding: 0 1.5rem;
}
.login-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.login-card h1 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.login-card .sub { font-size: 0.875rem; color: var(--muted-fg); margin-bottom: 2rem; }
.login-card .form-input { text-align: center; }
.password-wrap { position: relative; }
.password-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-75%);
  background: none;
  border: none;
  color: var(--muted-fg);
  cursor: pointer;
  transition: color 0.3s;
}
.password-toggle:hover { color: var(--fg); }
.forgot-link {
  display: block;
  text-align: right;
  font-size: 0.75rem;
  color: var(--muted-fg);
  margin-bottom: 1.5rem;
  transition: color 0.3s;
}
.forgot-link:hover { color: var(--primary); text-decoration: underline; }

/* ADMIN */
.admin-page { max-width: 80rem; margin: 0 auto; padding: 3rem 1.5rem; }
@media(min-width:768px) { .admin-page { padding: 3rem 3rem; } }
.admin-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media(min-width:768px) {
  .admin-header { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}
.admin-header h1 { font-size: 1.875rem; margin-bottom: 0.5rem; }
.admin-header p { font-size: 0.875rem; color: var(--muted-fg); }
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.admin-tab {
  padding: 0.75rem 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  background: none;
  color: var(--muted-fg);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
}
.admin-tab.active { color: var(--fg); border-bottom-color: var(--primary); }
.admin-tab:hover { color: var(--fg); }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.admin-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.admin-card h3 { font-size: 1.125rem; font-weight: 500; margin-bottom: 1rem; font-family: 'Montserrat', sans-serif; }
.inline-form {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}
.inline-form input {
  flex: 1;
  max-width: 28rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  font-size: 0.875rem;
  border-radius: var(--radius);
  outline: none;
}
.inline-form input:focus { border-color: var(--primary); }
.cat-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}
@media(min-width:768px) {
  .cat-row { flex-direction: row; align-items: center; justify-content: space-between; }
}
.cat-row .cat-name { font-weight: 500; }
.cat-row .cat-count { font-size: 0.75rem; color: var(--muted-fg); margin-left: 0.5rem; }
.cat-row .actions { display: flex; gap: 0.5rem; }
.icon-btn {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--fg);
  border-radius: var(--radius);
  transition: all 0.2s;
  cursor: pointer;
}
.icon-btn:hover { background: var(--muted); }
.icon-btn.danger { color: var(--destructive); }
.icon-btn.success { color: #16a34a; }

.project-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
@media(min-width:768px) { .project-row { flex-direction: row; } }
.project-row .proj-thumb {
  width: 100%;
  height: 8rem;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--muted);
  flex-shrink: 0;
}
@media(min-width:768px) { .project-row .proj-thumb { width: 12rem; } }
.project-row .proj-thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-row .proj-info { flex: 1; }
.project-row .proj-info h4 { font-size: 1.125rem; font-weight: 500; margin-bottom: 0.5rem; font-family: 'Montserrat', sans-serif; }
.project-row .proj-info .desc { font-size: 0.875rem; color: var(--muted-fg); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 1rem; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 1rem; }
.detail-tag {
  font-size: 0.75rem;
  background: var(--muted);
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.detail-tag .tag-label { color: var(--muted-fg); }
.proj-actions {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.gallery-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.gallery-section h5 { font-size: 0.875rem; font-weight: 500; margin-bottom: 1rem; font-family: 'Montserrat', sans-serif; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media(min-width:768px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
@media(min-width:1024px) { .gallery-grid { grid-template-columns: repeat(6, 1fr); } }
.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item .main-badge {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  background: var(--bg);
  font-size: 0.625rem;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius);
}

/* NEW PROJECT FORM */
.new-project-form {
  background: var(--card);
  border: 1px solid var(--primary);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}
.new-project-form h3 { font-size: 1.125rem; font-weight: 500; margin-bottom: 1.5rem; font-family: 'Montserrat', sans-serif; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media(min-width:768px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--fg);
  font-size: 0.875rem;
  border-radius: var(--radius);
  outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 5rem; }
.form-group .hint { font-size: 0.75rem; color: var(--muted-fg); margin-top: 0.25rem; }
.details-box {
  background: var(--muted);
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.details-box > label { font-size: 1rem; display: block; margin-bottom: 0.25rem; }
.details-box > p { font-size: 0.75rem; color: var(--muted-fg); margin-bottom: 1rem; }
.detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  padding: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  margin-bottom: 0.5rem;
}
.detail-row .dl { color: var(--muted-fg); font-weight: 500; }

/* FOOTER */
.site-footer {
  width: 100%;
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--border);
  margin-top: 5rem;
  color: var(--muted-fg);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}
.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}
@media(max-width:767px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}
.footer-brand .footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--fg);
  margin-bottom: 0.25rem;
  letter-spacing: 0.04em;
}
.footer-brand .footer-tagline {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 1rem;
}
.footer-brand .footer-address {
  line-height: 1.7;
  font-size: 0.8rem;
}
.footer-col h4 {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  color: var(--fg);
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-col a {
  display: block;
  color: var(--muted-fg);
  text-decoration: none;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  max-width: 72rem;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-bottom a { color: var(--muted-fg); text-decoration: none; transition: color 0.3s; }
.footer-bottom a:hover { color: var(--primary); }

/* ANIMATIONS */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.7s ease both; }
.fade-in-up { animation: fadeInUp 0.7s ease both; }

/* MOBILE MENU */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--fg);
  font-size: 1.5rem;
  cursor: pointer;
}
@media(max-width:767px) {
  .mobile-toggle { display: block; }
  .nav-links { display: none; flex-direction: column; width: 100%; }
  .nav-links.open { display: flex; }
  .navbar .nav-inner { position: relative; }
  .mobile-toggle { position: absolute; right: 0; top: 0.5rem; }
}

/* UTILITY */
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--muted-fg); }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.hidden { display: none !important; }
