/* =========================================================
   GLOBAL RESET & THEME
   ========================================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #0A0A12;
  --bg-panel: #13131E;
  --bg-panel-soft: #1A1A28;

  --text-100: #FFFFFF;
  --text-200: #C7C7D4;
  --text-300: #A3A3B7;

  --accent-orange: #FF6A3D;
  --accent-orange-light: #FF8E59;
  --accent-cyan: #4DE8FF;

  --border-soft: rgba(255,255,255,0.12);

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;

  --shadow-soft: 0 16px 32px rgba(0,0,0,0.45);
  --shadow-glow-orange: 0 0 24px rgba(255,106,61,0.55);

  --max-width: 1280px;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg-dark);
  color: var(--text-100);
  font-family: "Inter", sans-serif;
  line-height: 1.55;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.6rem;
}

.hidden { display: none !important; }
.no-scroll { overflow: hidden; }

/* =========================================================
   HEADER & NAV
   ========================================================= */
.site-header {
  width: 100%;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,18,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-mark {
  font-size: 1.4rem;
  font-weight: 700;
  padding: 0.4rem 0.9rem;
  background: #10101A;
  border-radius: var(--radius-m);
  border: 1px solid rgba(255,255,255,0.15);
}

.nav {
  display: flex;
  gap: 1.6rem;
}

.nav-link {
  color: var(--text-300);
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--text-100);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 560px;
  padding: 5rem 0 3rem;
  overflow: hidden;
}

/* BACKGROUND 3-ROW CAROUSEL (JS-DRIVEN) */
.hero-carousel-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.22;
  filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 70px;
  pointer-events: none;
}

.carousel-row {
  display: flex;
  width: max-content;
  gap: 2rem;
  will-change: transform;
}

.carousel-track {
  display: flex;
  gap: 2rem;
}

.carousel-row img {
  height: 260px;
  width: auto;
  object-fit: cover;
  border-radius: 10px;
  opacity: 0.9;
}

/* HERO FOREGROUND */
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 560px;
}

.eyebrow {
  color: var(--accent-cyan);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 1rem;
}

.hero-text h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1.05;
  margin-bottom: 1.2rem;
}

.hero-body {
  max-width: 36rem;
  color: var(--text-200);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.button {
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: none;
  transition: 0.25s ease;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-orange-light));
  color: #0B0B0F;
  box-shadow: var(--shadow-glow-orange);
}

.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(255,106,61,0.65);
}

.button.ghost {
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-100);
}

.button.ghost:hover {
  background: rgba(255,255,255,0.08);
}

.button.full-width {
  width: 100%;
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
  padding: 4rem 0;
}

.section-header h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.7rem;
  margin-bottom: 0.4rem;
}

.section-header p {
  color: var(--text-200);
  max-width: 32rem;
}

/* =========================================================
   FEATURED PROJECTS
   ========================================================= */
.featured-list {
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.featured-row {
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 1.6rem;
  align-items: center;
  transition: 0.25s ease;
}

.featured-row:hover {
  transform: translateY(-4px);
  filter: brightness(1.08);
}

.featured-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
}

.featured-meta h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.featured-meta p {
  color: var(--text-200);
  margin-bottom: 0.7rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  background: rgba(255,255,255,0.08);
  color: var(--accent-orange-light);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

/* =========================================================
   LOGO GRID
   ========================================================= */
.logo-grid {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 1.6rem;
}

.logo-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-m);
  padding: 1rem;
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: var(--shadow-soft);
}

.logo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 28px rgba(255,106,61,0.35);
}

.logo-thumb img {
  width: 100%;
  border-radius: var(--radius-s);
  object-fit: cover;
}

.logo-title {
  display: block;
  margin-top: 0.6rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-200);
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-inner {
  max-width: 700px;
}

.about-text h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

.about-text p {
  color: var(--text-200);
  font-size: 1.05rem;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 2rem;
}

.contact-text h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

.contact-text p {
  color: var(--text-200);
}

.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.contact-form label {
  color: var(--text-300);
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  background: var(--bg-panel-soft);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-m);
  padding: 0.7rem;
  color: var(--text-100);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 1px solid var(--accent-orange);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  margin-top: auto;
  padding: 1.6rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-inner {
  text-align: center;
  color: var(--text-300);
  font-size: 0.9rem;
}

/* =========================================================
   PROJECT OVERLAY
   ========================================================= */
.project-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,18,0.75);
  backdrop-filter: blur(16px);
  display: flex;
  justify-content: center;
  padding: 3.5rem 1.8rem;
  z-index: 200;
  overflow-y: auto;
  transition: opacity 0.3s ease;
}

.project-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
}

.overlay-panel {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: var(--bg-panel);
  padding: 2rem;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
  animation: overlay-in 0.25s ease-out;
  z-index: 2;
}

@keyframes overlay-in {
  from { transform: translateY(20px) scale(0.95); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.overlay-close {
  position: absolute;
  right: 1rem;
  top: 0.8rem;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--text-300);
  cursor: pointer;
}

.overlay-content h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.overlay-subtitle {
  color: var(--text-200);
  margin-bottom: 0.8rem;
}

.overlay-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.overlay-body {
  color: var(--text-200);
  margin-bottom: 1.4rem;
}

.overlay-gallery {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.overlay-gallery img,
.overlay-gallery video {
  width: 100%;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
}

/* =========================================================
   ADMIN PLACEHOLDER STYLES (for admin.html)
   ========================================================= */
.admin-body {
  background: var(--bg-dark);
}

.admin-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.admin-card {
  width: 100%;
  max-width: 500px;
  padding: 2rem;
  background: var(--bg-panel);
  border-radius: var(--radius-l);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin: 1rem 0 1.6rem;
}

.admin-stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.admin-stat-card {
  background: var(--bg-panel-soft);
  padding: 0.9rem;
  border-radius: var(--radius-m);
  font-size: 0.9rem;
}

.field label {
  color: var(--text-300);
  font-size: 0.9rem;
}

.field input,
.field textarea,
.field select {
  background: var(--bg-panel-soft);
  color: var(--text-100);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 0.7rem;
  border-radius: var(--radius-m);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 1px solid var(--accent-orange);
}

.form-error {
  color: #ff6262;
  margin-top: 0.4rem;
}
.form-message {
  color: var(--accent-cyan);
  margin-top: 0.4rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .featured-row {
    grid-template-columns: 1fr;
  }
  .contact-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .hero-carousel-wrapper {
    gap: 40px;
  }
  .carousel-row img {
    height: 190px;
  }
  .hero-inner {
    min-height: 460px;
  }
  .nav {
    gap: 1rem;
  }
}
