@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap');

:root {
  /* Default Light Mode - Warm & Clear */
  --bg: #fcfaf7;
  /* Very clear warm background */
  --surface: #ffffff;
  --surface-border: rgba(0, 0, 0, 0.04);
  --line: rgba(0, 0, 0, 0.05);
  --ink: #000000;
  /* Maximum contrast */
  --muted: #4a4542;
  /* Much deeper for readability */
  --accent: #b8964d;
  /* Premium Brand Gold */
  --accent-soft: rgba(184, 150, 77, 0.06);
  --cta: #1c1917;
  --cta-ink: #ffffff;
  --container: min(1000px, 88vw);
  /* Slightly tighter for more minimalism */
  --radius: 8px;
  /* Sharper, more modern corners */
  --glass: rgba(252, 250, 247, 0.82);
  --font-main: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark Mode - Tech & Premium */
    --bg: #090a0b;
    --surface: #111214;
    --surface-border: rgba(255, 255, 255, 0.04);
    --line: rgba(255, 255, 255, 0.05);
    --ink: #f7f7f7;
    /* Brighter for contrast */
    --muted: #a6a6a1;
    /* Brighter for readability on dark */
    --accent: #d4af37;
    /* Brighter Gold for Dark backgrounds */
    --accent-soft: rgba(212, 175, 55, 0.1);
    --cta: #ffffff;
    --cta-ink: #000000;
    --glass: rgba(9, 10, 11, 0.82);
  }
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 16px;
  /* Increased for better reading */
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.8s ease, color 0.8s ease;
}

body.no-scroll {
  overflow: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 4px;
  /* Thinner */
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

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

/* Header & Navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  border-bottom: 1px solid var(--surface-border);
  backdrop-filter: blur(15px) saturate(160%);
  -webkit-backdrop-filter: blur(15px) saturate(160%);
  transition: background 0.8s ease, border-color 0.8s ease;
}

.topbar-inner {
  width: var(--container);
  margin: 0 auto;
  min-height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  border: 1px solid var(--accent);
  object-fit: cover;
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand:hover .brand-logo {
  transform: rotate(360deg);
}

.brand-text {
  font-size: 0.85rem;
  font-weight: 300;
  /* Reduced weight */
  letter-spacing: 0.2em;
  /* More spacing for elegance */
  text-transform: uppercase;
  color: var(--ink);
}

.nav {
  display: flex;
  gap: 2.2rem;
  align-items: center;
}

.nav a {
  font-size: 0.72rem;
  font-weight: 300;
  /* Reduced weight */
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding: 0.4rem 0;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  /* Minimalist square corners or very slight */
  padding: 0.7rem 1.8rem;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--cta);
  color: var(--cta-ink);
  border: 1px solid var(--cta);
  font-weight: 500;
  /* Slightly more weight for contrast */
}

.btn-primary:hover {
  background: transparent;
  color: var(--ink);
  transform: none;
}

.btn-soft {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-soft:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn-topbar {
  padding: 0.6rem 1.2rem;
  font-size: 0.75rem;
}

/* Hero Section */
.page-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-bottom: 2rem;
}

.page-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 10s ease-out;
}

.page-hero.is-visible .page-hero-image {
  transform: scale(1.1);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(12, 13, 15, 0.7) 0%, rgba(12, 13, 15, 0.45) 50%, rgba(12, 13, 15, 0.8) 100%);
}

.page-hero-inner {
  width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 10;
  color: #fff;
}

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  /* Reduced from 600 */
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.is-visible .eyebrow {
  opacity: 1;
  transform: translateY(0);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.2;
  font-weight: 200;
  /* Ultra thin */
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.is-visible h1 {
  opacity: 1;
  transform: translateY(0);
}

.page-hero p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 300;
  max-width: 45ch;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s;
}

.is-visible p {
  opacity: 1;
  transform: translateY(0);
}

.hero-actions {
  display: flex;
  gap: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s;
}

.is-visible .hero-actions {
  opacity: 1;
  transform: translateY(0);
}

.hero-scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  animation: bounce 3s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* Sections */
main {
  width: var(--container);
  margin: 0 auto;
  background: var(--bg);
}

.section {
  padding: 8rem 0;
  /* More air */
  position: relative;
}

.section h2 {
  font-size: 0.75rem;
  /* Smaller, uppercase headings for minimalism */
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.title-rule {
  width: 30px;
  /* Shorter */
  height: 1px;
  /* Thinner */
  background: var(--line);
  margin-bottom: 3rem;
}

.section-copy {
  font-size: 1.25rem;
  /* Increased */
  font-weight: 200;
  color: var(--ink);
  max-width: 55ch;
  margin-bottom: 4rem;
}

/* Grid Links & Cards */
.grid-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.link-card {
  background: transparent;
  /* Cleaner */
  border: none;
  border-bottom: 1px solid var(--line);
  /* Simple line instead of box */
  padding: 2rem 0;
  border-radius: 0;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.link-card::before {
  display: none;
  /* Remove old rule */
}

.link-card:hover {
  transform: translateX(10px);
  /* Subtle shift right instead of pop out */
  border-color: var(--accent);
  box-shadow: none;
}

.link-card:hover::before {
  transform: scaleX(1);
}

.link-card h3 {
  font-size: 1.2rem;
  font-weight: 300;
  margin: 0;
}

.link-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.8;
}

.link-card a {
  margin-top: 0.5rem;
  font-size: 0.65rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.link-card a::after {
  content: '→';
  transition: var(--transition);
}

.link-card:hover a::after {
  transform: translateX(5px);
}

/* Panel & Steps */
.panel {
  background: transparent;
  padding: 0;
  border: none;
  font-size: 1.2rem;
  font-weight: 200;
  line-height: 1.8;
  color: var(--ink);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  list-style: none;
  padding: 0;
}

.steps li {
  background: transparent;
  border: none;
  border-left: 1px solid var(--line);
  /* Vertical line minimalism */
  padding: 0 0 0 1.5rem;
  border-radius: 0;
  transition: var(--transition);
}

.steps li:hover {
  border-color: var(--accent);
  transform: none;
}

.step-index {
  display: block;
  font-size: 0.65rem;
  font-weight: 300;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0.6;
  letter-spacing: 0.2em;
}

.steps h3 {
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.steps p {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--muted);
}

/* Carousel */
.carousel-wrap {
  margin: 3rem 0;
}

.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.carousel-header h3 {
  font-size: 1.5rem;
  margin: 0;
}

.carousel-hint {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Carousel */
.carousel {
  margin: 4rem 0;
  position: relative;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 75%;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 1rem 0;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.project-slide {
  scroll-snap-align: center;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-border);
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-slide:hover .project-image {
  transform: scale(1.05);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 0;
  /* Square minimalist arrow backgrounds */
  background: var(--glass);
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.carousel-btn:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
}

.carousel-btn.prev {
  left: -1.5rem;
}

.carousel-btn.next {
  right: -1.5rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.dot {
  width: 40px;
  height: 1px;
  background: var(--line);
  cursor: pointer;
  transition: var(--transition);
}

.dot.is-active {
  background: var(--accent);
  width: 60px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.lightbox.is-open {
  display: flex;
  animation: fadeIn 0.3s forwards;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* Footer */
.footer {
  width: var(--container);
  margin: 4rem auto;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-ig {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}

.footer-ig:hover {
  color: var(--accent);
}

.ig-icon {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

/* Reveal Animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Form Styles */
.contact-layout {
  width: 100%;
  /* Full width */
  margin-top: 3rem;
}

.form-card {
  background: transparent;
  /* Remove box style */
  padding: 0;
  /* Remove internal padding */
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.form-header {
  margin-bottom: 3rem;
  text-align: center;
}

.form-header h3 {
  font-size: 1.8rem;
  font-weight: 300;
  /* Reduced from 700 */
  margin-bottom: 0.5rem;
}

.form-header p {
  color: var(--muted);
  font-size: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.field label {
  font-size: 0.72rem;
  font-weight: 400;
  /* Reduced from 700 */
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 1rem;
  width: 1.2rem;
  height: 1.2rem;
  color: var(--muted);
  transition: var(--transition);
  pointer-events: none;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  padding: 1rem 1rem 1rem 3rem;
  border-radius: 8px;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.field select {
  cursor: pointer;
  appearance: none;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.input-wrap.is-textarea .field-icon {
  top: 1.1rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.field input:focus~.field-icon,
.field select:focus~.field-icon,
.field textarea:focus~.field-icon {
  color: var(--accent);
  transform: scale(1.1);
}

.btn-primary svg {
  transition: transform 0.3s ease;
}

.btn-primary:hover svg {
  transform: translate(3px, -3px);
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin-top: 1rem;
  opacity: 0.8;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 980px) {
  .topbar-inner {
    padding: 0 1rem;
  }

  .carousel-track {
    grid-auto-columns: 80%;
  }

  .carousel-btn {
    display: none;
  }

  .nav {
    display: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .form-card {
    padding: 0;
    /* Keep it clean */
  }
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
  }

  .section {
    padding: 4rem 0;
  }

  .footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .form-header h3 {
    font-size: 1.5rem;
  }
}