/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #0b0b0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a25;
  --border-color: #1e1e2e;
  --border-dashed: #2a2a3a;
  --text-primary: #e0e0e8;
  --text-secondary: #6b6b80;
  --accent: #e8853d;
  --accent-hover: #f0a060;
  --accent-hash: #e8853d;

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  --section-padding: 5rem 0;
  --container-width: 1100px;
  --card-radius: 0;
  --card-padding: 1.5rem;
  --header-height: 56px;

  --transition-fast: 0.2s ease;
  --transition-med: 0.4s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--accent-hover);
}

img,
video {
  display: block;
  max-width: 100%;
}

/* ===== DECORATIVE ELEMENTS ===== */
.decor {
  position: absolute;
  pointer-events: none;
  opacity: 0.15;
}

.decor--dots {
  width: 60px;
  height: 60px;
  background-image: radial-gradient(circle, var(--accent) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
}

.decor--square {
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent);
}

.decor--cross {
  width: 20px;
  height: 20px;
}

.decor--cross::before,
.decor--cross::after {
  content: '';
  position: absolute;
  background: var(--accent);
}

.decor--cross::before {
  width: 100%;
  height: 2px;
  top: 50%;
  transform: translateY(-50%);
}

.decor--cross::after {
  width: 2px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.decor--line {
  width: 80px;
  height: 2px;
  background: var(--accent);
}

.decor--corner {
  width: 40px;
  height: 40px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}

.decor--corner-br {
  width: 40px;
  height: 40px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(11, 11, 15, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition-fast),
              border-color var(--transition-fast);
}

.header--scrolled {
  background: rgba(11, 11, 15, 0.95);
  border-bottom-color: var(--border-color);
}

.nav {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

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

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav__links a {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav__links .nav__hash {
  color: var(--accent-hash);
}

.nav__links a:hover {
  color: var(--text-primary);
}

.nav__lang {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border-dashed);
  padding: 0.25rem 0.6rem;
  border-radius: 0;
  transition: all var(--transition-fast);
}

.nav__lang:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
}

.nav__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

.nav__burger--active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__burger--active span:nth-child(2) {
  opacity: 0;
}

.nav__burger--active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero__video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  opacity: 0.6;
}

.hero__scroll-indicator::after {
  content: '';
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) translateY(12px);
    opacity: 0.2;
  }
}

/* ===== SECTIONS ===== */
.section {
  padding: var(--section-padding);
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

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

/* Section title: #section-name ———— */
.section__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.section__title {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0;
}

.section__title .hash {
  color: var(--accent-hash);
  margin-right: 0.15em;
}

.section__line {
  flex: 1;
  height: 1px;
  background: var(--accent);
  opacity: 0.3;
  max-width: 300px;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  transition: transform var(--transition-fast),
              border-color var(--transition-fast),
              box-shadow var(--transition-fast);
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(232, 133, 61, 0.08);
}

.card__date {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  line-height: 1.35;
}

.card__org {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

/* ===== TIMELINE (Experience) ===== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: repeating-linear-gradient(
    to bottom,
    var(--accent) 0,
    var(--accent) 8px,
    transparent 8px,
    transparent 16px
  );
  opacity: 0.4;
}

.timeline .card {
  position: relative;
}

.timeline .card::before {
  content: '';
  position: absolute;
  left: calc(-2rem - 4px);
  top: 1.75rem;
  width: 9px;
  height: 9px;
  background: var(--accent);
  border: none;
  transform: rotate(45deg);
}

/* ===== BUILT WITH ===== */
.built-with {
  max-width: 700px;
}

.built-with__quote {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 2px solid var(--accent);
  padding: 2rem 2rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  font-style: italic;
}

.built-with__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.built-with__badge svg {
  width: 14px;
  height: 14px;
}

/* ===== CONTACT ===== */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0;
  padding: 1.25rem 1.5rem;
  color: var(--text-primary);
  font-weight: 500;
  transition: all var(--transition-fast);
  flex: 1;
  min-width: 240px;
}

.contact-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(232, 133, 61, 0.08);
  color: var(--text-primary);
}

.contact-link svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--accent);
}

.contact-link__label {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-link__value {
  font-size: 0.9rem;
}

/* ===== FOOTER ===== */
.footer {
  padding: 2.5rem 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__text {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.footer__socials {
  display: flex;
  gap: 1rem;
}

.footer__socials a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer__socials a:hover {
  color: var(--accent);
}

.footer__socials svg {
  width: 18px;
  height: 18px;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
  .nav__links {
    gap: 1.25rem;
  }

  .decor {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 3.5rem 0;
    --card-padding: 1.25rem;
  }

  .section__title {
    font-size: 1.4rem;
  }

  .nav__burger {
    display: flex;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(11, 11, 15, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border-color);
  }

  .nav__links--open {
    display: flex;
  }

  .nav__links a {
    font-size: 0.9rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .contact-links {
    flex-direction: column;
  }

  .contact-link {
    min-width: unset;
  }

  .built-with__quote {
    padding: 1.5rem;
    font-size: 0.9rem;
  }

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

  .decor {
    display: none;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__video {
    display: none;
  }

  .hero {
    background-image: url('hero-poster.jpg');
    background-size: cover;
    background-position: center;
  }

  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .card {
    transition: none;
  }

  .hero__scroll-indicator::after {
    animation: none;
  }
}
