/* ===== Base ===== */
:root {
  --bg: #0a1628;
  --bg-alt: #0c1b2e;
  --surface: #132a45;
  --text: #e8f1f8;
  --muted: #9bb4c8;
  --accent: #2eb8c8;
  --ink: #0a1628;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
}

.container {
  width: min(72rem, 100%);
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 1.5rem;
  }
}

.muted {
  color: var(--muted);
}

.max-w {
  max-width: 40rem;
}

.accent {
  color: var(--accent);
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

.grid-2 {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(10, 22, 40, 0.9);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.75rem;
}

.logo {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  .logo {
    font-size: 1.5rem;
  }
}

.nav-desktop {
  display: none;
  gap: 2rem;
}

.nav-desktop a,
.nav-mobile a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-desktop a:hover,
.nav-mobile a:hover {
  color: var(--accent);
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .menu-btn {
    display: none;
  }
}

.menu-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #fff;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.nav-mobile {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 22, 40, 0.95);
  padding: 0.75rem 1rem 1rem;
}

.nav-mobile a {
  display: block;
  padding: 0.5rem 0;
}

.nav-mobile[hidden] {
  display: none;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
}

.btn-primary:hover {
  background: #fff;
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video,
.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-fallback {
  background: linear-gradient(120deg, #0a1628, #0f3a4a, #123050, #0a1628);
  background-size: 200% 200%;
  animation: gradient-shift 14s ease infinite;
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.55);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-block: 7rem 5rem;
}

.hero-role {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
}

@media (min-width: 768px) {
  .hero-role {
    font-size: 0.875rem;
  }
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  color: #fff;
}

.hero-tagline {
  margin: 1.25rem auto 0;
  max-width: 40rem;
  color: #d8e6f0;
  font-size: clamp(1rem, 2vw, 1.125rem);
}

.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--muted);
}

.scroll-hint:hover {
  color: #fff;
}

.scroll-mouse {
  display: block;
  width: 1.25rem;
  height: 2.25rem;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.scroll-dot {
  display: block;
  width: 2px;
  height: 0.5rem;
  margin: 0.5rem auto 0;
  background: currentColor;
  animation: bounce 1.4s ease infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(6px);
    opacity: 0.4;
  }
}

/* ===== About ===== */
.about-list {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.about-list li {
  border-left: 2px solid rgba(46, 184, 200, 0.6);
  padding-left: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.about-photo figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: rgba(155, 180, 200, 0.8);
}

.photo-frame {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #071018;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* ===== Trainings ===== */
.trainings-grid {
  margin-top: 3rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .trainings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .trainings-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.training-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #071018;
}

.trainings-grid figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ===== Skills ===== */
.skills-list {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}

.skill-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.skill-bar {
  height: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 1s ease-out;
}

/* ===== Portfolio ===== */
.portfolio-grid {
  margin-top: 3rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portfolio-card {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.portfolio-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.portfolio-card h3 {
  margin-top: 1rem;
  font-size: 1.5rem;
  color: #fff;
  transition: color 0.2s ease;
}

.portfolio-card:hover h3 {
  color: var(--accent);
}

.portfolio-card p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.media {
  position: relative;
  overflow: hidden;
  background: #071018;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.media-contain img {
  object-fit: contain;
  padding: 0.25rem;
}

.portfolio-card:hover .media img {
  transform: scale(1.03);
}

.aspect-photo {
  aspect-ratio: 4 / 3;
}

.aspect-portrait {
  aspect-ratio: 3 / 4;
  max-height: 28rem;
}

.aspect-banner {
  aspect-ratio: 16 / 10;
}

/* ===== Contact ===== */
.contact-links {
  margin-top: 2rem;
  display: grid;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.contact-links a {
  color: var(--accent);
}

.contact-links a:hover {
  text-decoration: underline;
}

.contact-links .note {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: #fff;
  padding: 0.55rem 0.75rem;
  font: inherit;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.form-status {
  margin: 0;
  font-size: 0.875rem;
  color: var(--accent);
}

.form-status[hidden] {
  display: none;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-place {
  color: rgba(155, 180, 200, 0.7);
  margin: 0;
}

.footer-inner p {
  margin: 0;
}

/* ===== Modal ===== */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}

@media (min-width: 768px) {
  .modal {
    align-items: center;
  }
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(32rem, 100%);
  max-height: 85vh;
  overflow: auto;
  background: var(--surface);
  padding: 1.5rem;
}

.modal-media {
  margin-bottom: 1rem;
}

.modal-panel h3 {
  font-size: 1.75rem;
  color: #fff;
}

.modal-panel .btn {
  margin-top: 1.5rem;
}

/* ===== Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
