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

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", Arial, sans-serif;
  background: #050507;
  color: #f5f5f5;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* Basic Elements */
a {
  color: #ffffff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p {
  margin: 0 0 1rem;
  color: #c7c9d1;
}

h1, h2, h3, h4 {
  margin: 0;
  color: #f7f7f7;
  font-weight: 600;
}

/* Layout */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrapper {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-tight {
  padding: 3.5rem 0;
}

.section-alt {
  background-color: #07070c;
}

.section-alt-wave {
  position: relative;
  overflow: hidden;
}

.section-alt-wave::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/images/wave-background.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  pointer-events: none;
}

.section-alt-wave .wrapper {
  position: relative;
  z-index: 2;
}

/* Typography */
.section-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ea0a6;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

.section-subtitle {
  max-width: 640px;
  color: #b3b5bd;
  font-size: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background-color: rgba(5, 5, 8, 0.55);
  backdrop-filter: blur(18px);
  padding: 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.site-header--hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

body.scrolled .site-header {
  background-color: rgba(5,5,10,0.96);
}

.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.3s ease;
}

.site-logo-img {
  height: 78px;
  width: auto;
}

.site-logo-title {
  font-size: 1.15rem;
  letter-spacing: 0.16em;
}

.site-logo-tagline {
  font-size: 0.72rem;
  color: #9ea0a6;
  letter-spacing: 0.12em;
}

body.scrolled .site-logo {
  transform: scale(0.92);
}

/* Navigation */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.9rem;
  color: #d3d4da;
  position: relative;
  padding-bottom: 0.2rem;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.25s ease;
}

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

/* Hero */
.hero {
  padding-top: 8rem;
  padding-bottom: 5rem;
  position: relative;
  background-color: #050507;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/images/hero-architecture.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.45;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("assets/images/hero-gradient.jpg");
  opacity: 0.55;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.hero-logo-img {
  width: 200px;
  filter: drop-shadow(0 22px 40px rgba(0,0,0,0.7));
}

/* Split Layout (Fixed to Avoid Vertical Blocks) */
.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.6rem;
  align-items: flex-start;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.8rem;
  align-items: flex-start;
}

.section-copy,
.section-copy-long,
.section-text {
  max-width: 640px;
  width: 100%;
}

.section-image img {
  width: 100%;
  height: auto;
  border-radius: 1.3rem;
  box-shadow: 0 18px 40px rgba(0,0,0,0.6);
}

/* Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1.5rem;
}

.card {
  background-color: #0e0e18;
  border-radius: 1.4rem;
  padding: 1.6rem;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 40px rgba(0,0,0,0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(0,0,0,0.75);
}

.card-metric {
  font-size: 1.4rem;
  font-weight: 600;
}

.metric-caption {
  font-size: 0.78rem;
  color: #9ea0a6;
}

/* Buttons */
.btn {
  display: inline-flex;
  padding: 0.7rem 1.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.22s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: #fff;
  color: #050507;
  box-shadow: 0 18px 45px rgba(0,0,0,0.7);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
}

.form-field {
  margin-bottom: 1rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: rgba(4,4,10,0.95);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.9rem;
  color: #fff;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.85);
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 2.2rem 0 2.6rem;
  background: #05050a;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1.4rem;
}

.footer-brand {
  color: #b3b5bd;
}

.footer-link {
  font-size: 0.85rem;
  color: #b3b5bd;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Modal */
.exit-modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 50;
}

.exit-modal--visible {
  display: flex;
}

.exit-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(12px);
}

.exit-modal-panel {
  position: relative;
  z-index: 2;
  width: calc(100% - 3rem);
  max-width: 420px;
  background: #101022;
  padding: 1.8rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 26px 70px rgba(0,0,0,0.85);
}

/* Responsive */
@media (max-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(2,1fr);
  }
  .section-split,
  .two-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .nav-links {
    flex-wrap: wrap;
    gap: 0.9rem;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 4rem 0;
  }
  .hero {
    padding-top: 7.5rem;
  }
}
