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

:root {
  --bg-dark: #071018;
  --bg-darker: #03070b;
  --bg-light: #f7f5f2;
  --accent: #d4a050;
  --accent-soft: rgba(212, 160, 80, 0.15);
  --text-main: #151515;
  --text-light: #f8f8f8;
  --text-muted: #7a7a7a;
  --border-soft: rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.35);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --transition-fast: 180ms ease-out;
  --container-width: 1120px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: var(--bg-light);
}

/* Layout helpers */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-light {
  background: radial-gradient(circle at top left, #ffffff 0, #f2ede4 60%, #e9e2d7 100%);
}

.section-dark {
  background: radial-gradient(circle at top right, #111827 0, #020617 55%, #000 100%);
  color: var(--text-light);
}

.section-header {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  font-size: 2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

.section-header-left {
  text-align: left;
  margin-inline: 0;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.btn.primary {
  background: linear-gradient(135deg, #f5d08a, var(--accent));
  color: #1a1207;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.btn.outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
  background: transparent;
}

.btn.outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn.full-width {
  width: 100%;
  justify-content: center;
}

/* Header & Navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(to bottom, rgba(3, 7, 15, 0.98), rgba(3, 7, 15, 0.88));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.brand-text {
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.brand-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.75rem;
  opacity: 0.75;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-nav a:hover {
  color: #ffffff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  cursor: pointer;
}

.nav-toggle-line {
  width: 18px;
  height: 2px;
  background: #ffffff;
}

/* Hero */

.hero {
  position: relative;
  min-height: 70vh;
  color: #ffffff;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 70vh;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(243, 200, 115, 0.55), transparent 55%),
              linear-gradient(to bottom, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.85));
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 1.5rem 4rem;
  max-width: var(--container-width);
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.2rem, 3vw + 1.6rem, 3.3rem);
  max-width: 22rem;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 30rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.8rem;
}

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.card-body {
  padding: 1.4rem 1.4rem 1.5rem;
}

.card-body h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.card-body p {
  margin: 0;
  color: var(--text-muted);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.22);
}

/* Experiences */

.experiences-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: center;
}

.icon-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1.2rem;
}

.icon-list h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
}

.icon-list p {
  margin: 0;
  color: rgba(249, 250, 251, 0.8);
}

.experiences-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.exp-item {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.exp-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gallery */

.masonry-grid {
  columns: 3 240px;
  column-gap: 1rem;
}

.masonry-grid img {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  display: block;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

/* Contact */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-block {
  margin-bottom: 1.75rem;
}

.contact-block p {
  margin: 0 0 0.6rem;
}

.contact-block a {
  color: #e5e7eb;
  text-decoration: none;
}

.contact-block a:hover {
  text-decoration: underline;
}

.small-print {
  font-size: 0.9rem;
  color: rgba(229, 231, 235, 0.8);
}

.contact-form-wrapper {
  background: radial-gradient(circle at top, rgba(212, 160, 80, 0.22), rgba(15, 23, 42, 0.98));
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.7rem 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(248, 250, 252, 0.08);
}

.contact-form h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.form-intro {
  margin: 0 0 1.2rem;
  font-size: 0.95rem;
  color: rgba(249, 250, 251, 0.86);
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.9rem;
}

.form-field label {
  font-size: 0.9rem;
}

.form-field input,
.form-field textarea {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.65rem 0.8rem;
  background: rgba(15, 23, 42, 0.8);
  color: #f9fafb;
  font: inherit;
}

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

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(212, 160, 80, 0.55);
}

.form-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: rgba(209, 213, 219, 0.85);
}

/* Footer */

.site-footer {
  background: var(--bg-darker);
  color: rgba(148, 163, 184, 0.9);
  padding: 1.4rem 0 1.6rem;
  border-top: 1px solid rgba(15, 23, 42, 1);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.footer-meta a {
  color: inherit;
  text-decoration: none;
}

.footer-meta a:hover {
  text-decoration: underline;
}

/* Responsive */

@media (max-width: 900px) {
  .experiences-layout,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .experiences-gallery {
    order: -1;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 82vh;
  }

  .hero-content {
    padding-top: 5.5rem;
    padding-bottom: 3.5rem;
  }

  .hero h1 {
    max-width: none;
  }

  .card-img {
    height: 190px;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .masonry-grid {
    columns: 2 200px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding-inline: 1rem;
  }

  .main-nav ul {
    position: absolute;
    top: 60px;
    right: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    background: rgba(3, 7, 18, 0.98);
    border-radius: 18px;
    border: 1px solid rgba(248, 250, 252, 0.06);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
    transform-origin: top right;
    transform: scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
  }

  .main-nav ul.nav-open {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 520px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .masonry-grid {
    columns: 1 260px;
  }
}
/* Honeypot field is visually hidden but present for bots */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Toast popup styles */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(120%);
  min-width: 260px;
  max-width: 90vw;
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  text-align: center;
  background: rgba(15, 23, 42, 0.96);
  color: #f9fafb;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease-out, transform 200ms ease-out;
  z-index: 40;
}

.toast-success {
  border: 1px solid rgba(34, 197, 94, 0.9);
}

.toast-error {
  border: 1px solid rgba(239, 68, 68, 0.9);
}

.toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0%);
  pointer-events: auto;
}

