/* =============================================
   VASILIS PAPPAS — Cinematic Editorial
   ============================================= */

:root {
  --bg: #090c12;
  --surface: rgba(17, 22, 32, 0.85);
  --text: #f5f7fc;
  --text-muted: #c2cbdb;
  --accent: #ff5f1f;
  --accent-glow: #ff7837;
  --accent-soft: rgba(255, 95, 31, 0.12);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 95, 31, 0.35);
  --serif: 'Cormorant Garamond', 'Georgia', serif;
  --sans: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

::selection {
  background: rgba(255, 95, 31, 0.3);
  color: var(--text);
}

/* =============================================
   FILM GRAIN
   ============================================= */

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* =============================================
   AURORA BACKGROUND
   ============================================= */

.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  will-change: transform;
}

.orb-1 {
  width: 650px;
  height: 650px;
  top: -18%;
  left: -8%;
  background: radial-gradient(circle, rgba(255, 95, 31, 0.14) 0%, transparent 70%);
  animation: drift-1 22s ease-in-out infinite;
}

.orb-2 {
  width: 550px;
  height: 550px;
  bottom: -12%;
  right: -8%;
  background: radial-gradient(circle, rgba(240, 57, 6, 0.09) 0%, transparent 70%);
  animation: drift-2 28s ease-in-out infinite;
}

.orb-3 {
  width: 400px;
  height: 400px;
  top: 45%;
  left: 55%;
  background: radial-gradient(circle, rgba(140, 160, 200, 0.05) 0%, transparent 70%);
  animation: drift-3 32s ease-in-out infinite;
}

@keyframes drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, 35px) scale(1.06); }
  66% { transform: translate(-25px, 55px) scale(0.94); }
}

@keyframes drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-45px, -25px) scale(1.08); }
  66% { transform: translate(35px, -45px) scale(0.95); }
}

@keyframes drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-35px, 25px) scale(1.12); }
}

/* =============================================
   NAVIGATION
   ============================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(6, 8, 15, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.5s ease;
}

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

.nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff7837 0%, #f03906 100%);
  font-family: Georgia, serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a:hover::after {
  width: 100%;
}

/* =============================================
   HERO
   ============================================= */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 4rem;
}

.hero-inner {
  width: min(1040px, 90vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4rem;
}

/* Portrait */

.hero-portrait {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.portrait-wrap {
  position: relative;
  width: 180px;
  height: 180px;
}

.portrait-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  opacity: 0.3;
}

.portrait-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.06);
}

.location {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.location-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Hero content */

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.hero-label {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.label-sep {
  color: rgba(255, 255, 255, 0.18);
  margin: 0 0.15rem;
}

.hero-title {
  font-family: var(--sans);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
}

.title-line {
  display: block;
}

.title-italic em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1em;
  letter-spacing: 0.01em;
  color: #ffcca8;
}

.hero-tags {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.tag {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.tag:hover {
  border-color: var(--border-hover);
  color: var(--text);
}

.hero-lead {
  max-width: 50ch;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.75;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.8rem;
  flex-wrap: wrap;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.8rem;
  background: linear-gradient(135deg, var(--accent-glow) 0%, var(--accent) 100%);
  color: #0a0c12;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 11px;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease;
  box-shadow: none;
}

.btn-primary::before {
  display: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: none;
}


.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.78rem 1.3rem;
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 400;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 11px;
  letter-spacing: 0.02em;
  transition: color 0.3s ease,
              border-color 0.3s ease,
              background 0.3s ease;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost svg {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-ghost:hover svg {
  transform: translate(2px, -2px);
}

/* =============================================
   SCROLL HINT
   ============================================= */

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-pulse 2.2s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scroll-pulse {
  0%   { opacity: 0; transform: scaleY(0); }
  35%  { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(1); }
}

/* =============================================
   SECTIONS
   ============================================= */

.section {
  position: relative;
  z-index: 1;
  padding: 7rem 2rem;
}

.section-last {
  padding-bottom: 4rem;
}

.section-inner {
  width: min(920px, 90vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
}

.section-label {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 0.4rem;
}

.label-line {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--accent);
  margin-top: 0.55em;
  flex-shrink: 0;
}

.section-content {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.text-large {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text);
  letter-spacing: 0.01em;
}

.text-body {
  color: var(--text-muted);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.75;
}

/* =============================================
   FOCUS SECTION
   ============================================= */

.focus-list {
  display: flex;
  flex-direction: column;
}

.focus-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.4s ease;
}

.focus-item:first-child {
  border-top: 1px solid var(--border);
}

.focus-item:hover {
  border-color: var(--border-hover);
}

.focus-item:hover + .focus-item {
  border-top-color: var(--border-hover);
}

.focus-num {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  opacity: 0.5;
  padding-top: 0.1rem;
  transition: opacity 0.3s ease;
}

.focus-item:hover .focus-num {
  opacity: 0.85;
}

.focus-body h3 {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.35rem;
  letter-spacing: 0.01em;
}

.focus-body p {
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.7;
}

/* =============================================
   WORK SECTION
   ============================================= */

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.work-card {
  position: relative;
  border-radius: 18px;
  padding: 1px;
  background: var(--border);
  transition: background 0.5s ease;
}

.work-card:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 95, 31, 0.3) 0%,
    var(--border) 40%,
    rgba(255, 95, 31, 0.15) 100%
  );
}

.work-card-inner {
  background: rgba(10, 13, 22, 0.94);
  border-radius: 17px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  transition: background 0.5s ease;
}

.work-card:hover .work-card-inner {
  background: rgba(12, 16, 28, 0.96);
}

.work-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.work-header h3 {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.work-badge {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

.work-badge-active {
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(255, 95, 31, 0.18);
}

.work-badge-past {
  color: var(--text-muted);
  background: rgba(169, 180, 202, 0.08);
  border: 1px solid rgba(169, 180, 202, 0.12);
}

.work-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 400;
  line-height: 1.7;
}

.work-stats {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: auto;
  padding-top: 0.8rem;
}

.stat {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.stat-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.35;
}

/* =============================================
   CONTACT SECTION
   ============================================= */

.contact-links {
  display: flex;
  flex-direction: column;
  margin-top: 0.6rem;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.3s ease, padding-left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-link:first-child {
  border-top: 1px solid var(--border);
}

.contact-link:hover {
  border-color: var(--border-hover);
  padding-left: 0.6rem;
}

.contact-link-label {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 400;
  color: var(--text);
  transition: color 0.3s ease;
}

.contact-link:hover .contact-link-label {
  color: var(--accent);
}

.contact-link svg {
  color: var(--text-muted);
  opacity: 0.5;
  transition: color 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.contact-link:hover svg {
  color: var(--accent);
  opacity: 1;
  transform: translate(3px, -3px);
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
  position: relative;
  z-index: 1;
  width: min(920px, 90vw);
  margin: 0 auto;
  padding: 2.5rem 0 3.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* =============================================
   SCROLL REVEAL STATES
   ============================================= */

.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Hero items: entrance animation (not observer-based) */

.reveal-hero {
  opacity: 0;
  transform: translateY(28px);
  animation: hero-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@media (max-width: 860px) {
  .section-inner {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .section-label {
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 5rem 1.5rem 4rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-portrait {
    align-items: flex-start;
  }

  .portrait-img {
    width: 100%;
    height: 100%;
  }

  .portrait-wrap {
    width: 130px;
    height: 130px;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .section {
    padding: 4.5rem 1.5rem;
  }

  .focus-item {
    grid-template-columns: 40px 1fr;
    gap: 1rem;
    padding: 1.2rem 0;
  }

  .focus-num {
    font-size: 1.2rem;
  }

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

  .nav {
    padding: 0.85rem 1.5rem;
  }

  .nav-links {
    gap: 1.4rem;
  }

  .scroll-hint {
    display: none;
  }

  .text-large {
    font-size: 1.35rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3.5rem 1.15rem 3rem;
  }

  .section {
    padding: 3.5rem 1.15rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
  }

  .btn-primary,
  .btn-ghost {
    justify-content: center;
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .hero-title {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
  }

  .hero-label {
    gap: 0.5rem;
  }

  .portrait-img {
    width: 100%;
    height: 100%;
  }

  .portrait-wrap {
    width: 100px;
    height: 100px;
  }
}

/* =============================================
   REDUCED MOTION
   ============================================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-item,
  .reveal-hero {
    opacity: 1;
    transform: none;
  }
}
