/* ===== FONTS ===== */
@font-face {
  font-family: 'Ofelia Text';
  src: url('fonts/OfeliaText-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'Ofelia Text';
  src: url('fonts/OfeliaText-LightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
}
@font-face {
  font-family: 'Ofelia Text';
  src: url('fonts/OfeliaText-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Ofelia Text';
  src: url('fonts/OfeliaText-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: 'Ofelia Text';
  src: url('fonts/OfeliaText-Medium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Ofelia Text';
  src: url('fonts/OfeliaText-MediumItalic.otf') format('opentype');
  font-weight: 500;
  font-style: italic;
}
@font-face {
  font-family: 'Ofelia Text';
  src: url('fonts/OfeliaText-Semibold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Ofelia Display';
  src: url('fonts/OfeliaDisplay-Thin.otf') format('opentype');
  font-weight: 100;
  font-style: normal;
}
@font-face {
  font-family: 'Ofelia Display';
  src: url('fonts/OfeliaDisplay-Extralight.otf') format('opentype');
  font-weight: 200;
  font-style: normal;
}
@font-face {
  font-family: 'Ofelia Display';
  src: url('fonts/OfeliaDisplay-ExtralightItalic.otf') format('opentype');
  font-weight: 200;
  font-style: italic;
}
@font-face {
  font-family: 'Ofelia Display';
  src: url('fonts/OfeliaDisplay-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'Ofelia Display';
  src: url('fonts/OfeliaDisplay-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: 'Ofelia Display';
  src: url('fonts/OfeliaDisplay-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
}

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

:root {
  --bg: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #161616;
  --text: #e8e8e8;
  --text-dim: #888888;
  --text-muted: #555555;
  --accent: #c8ff00;
  --accent-dim: #a8d600;
  --border: #1e1e1e;
  --border-light: #2a2a2a;
  --font-body: 'Ofelia Text', -apple-system, sans-serif;
  --font-display: 'Ofelia Display', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 1200px;
  --section-padding: 120px 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-width: thin;
  scrollbar-color: #333 #0a0a0a;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

ul {
  list-style: none;
}

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


/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, padding 0.3s, background 0.3s, backdrop-filter 0.3s;
}

.navbar.scrolled {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 10, 10, 0.8);
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  padding: 14px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  padding: 0 40px;}

.navbar-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.navbar-logo .logo-text {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  transition: color 0.3s;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: #fff;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}


/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  text-align: left;
  padding: 0 40px 80px;
  position: relative;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  pointer-events: none;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 10, 0.55) 0%,
    rgba(10, 10, 10, 0.45) 60%,
    rgba(10, 10, 10, 0.85) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero > *:not(.hero-video-bg):not(.hero-video-overlay) {
  position: relative;
  z-index: 2;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(200, 255, 0, 0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

.hero-logo {
  width: 300px;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-title {
  width: 700px;
  max-width: 100%;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-subtitle {
  font-size: 0.75rem;
  color: var(--text-dim);
  max-width: 420px;
  margin: 0 0 36px;
  line-height: 1.7;
  font-weight: 400;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.8s;
}


/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 0;
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #fff;
  color: #0a0a0a;
}

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

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.4);
}

.btn-secondary:hover {
  border-color: rgba(255,255,255,0.8);
  background: rgba(255, 255, 255, 0.05);
}


/* ===== SECTION HEADERS ===== */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 0 auto;
}

.section-inner {
  padding-top: 48px;
}


/* ===== REELS ===== */
.reels-section {
  padding: var(--section-padding);
}

.reels-section .section-label {
  margin-bottom: 48px;
}

.reels-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 100%;
  margin: 0 auto;
}

.reel-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s;
}

.reel-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.reel-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  position: relative;
  background: #000;
}

.reel-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.reel-info {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.reel-title {
  font-size: 1rem;
  font-weight: 600;
}

.reel-duration {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}


/* ===== FEATURED PROJECT ===== */
.featured-section {
  padding: var(--section-padding);
}

.featured-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 48px;
}

.featured-poster {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}

.featured-poster img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
}

.featured-poster:hover img {
  transform: scale(1.02);
}

.featured-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 28px;
}

.featured-meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 32px;
  margin-bottom: 28px;
}

.meta-item label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.meta-item span {
  font-size: 0.95rem;
  font-weight: 500;
}

.featured-description {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 24px;
}

.featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.tag {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(200, 255, 0, 0.08);
  color: var(--accent);
  border: 1px solid rgba(200, 255, 0, 0.15);
}

.featured-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s;
}

.featured-cta:hover {
  gap: 12px;
}

.featured-video {
  margin-top: 60px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}

.featured-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
}


/* ===== WORK SECTION ===== */
.work-section {
  padding: var(--section-padding);
}

.work-section .section-label {
  margin-bottom: 48px;
}

.work-grid {
  display: grid;
  gap: 24px;
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  margin-bottom: 24px;
}

.work-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.work-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d0d0d;
}

.work-card-media iframe,
.work-card-media video {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

.work-card-body {
  padding: 24px 28px;
}

.work-card-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.work-card-body .work-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.work-card-body p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.work-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.work-row .work-card {
  margin-bottom: 0;
}


/* ===== IMAGE COMPARISON SLIDER ===== */
.compare-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: col-resize;
}

.compare-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-container .compare-overlay {
  clip-path: inset(0 50% 0 0);
  z-index: 2;
}

.compare-container .compare-base {
  z-index: 1;
}

.compare-slider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  z-index: 3;
  pointer-events: none;
}

.compare-slider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.compare-label {
  position: absolute;
  bottom: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.7);
  z-index: 4;
}

.compare-label.left {
  left: 12px;
}

.compare-label.right {
  right: 12px;
}


/* ===== SKILLS ===== */
.skills-section {
  padding: var(--section-padding);
}

.skills-section .section-label {
  margin-bottom: 48px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 32px;
  transition: border-color 0.3s, transform 0.3s;
}

.skill-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.skill-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(200, 255, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 1.3rem;
}

.skill-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.skill-card p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.7;
}


/* ===== ABOUT ===== */
.about-section {
  padding: var(--section-padding);
}

.about-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 48px;
}

.about-photo {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: sticky;
  top: 120px;
}

.about-photo img {
  width: 100%;
  height: auto;
}

.about-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 24px;
}

.about-text p {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-details {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.about-detail label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.about-detail span,
.about-detail a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.about-detail a {
  color: var(--accent);
  transition: opacity 0.3s;
}

.about-detail a:hover {
  opacity: 0.8;
}


/* ===== EXPERIENCE ===== */
.experience-section {
  padding: var(--section-padding);
}

.experience-section .section-label {
  margin-bottom: 48px;
}

.exp-category {
  margin-bottom: 56px;
}

.exp-category-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.exp-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.exp-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-top: 4px;
}

.exp-details h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.exp-company {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 10px;
}

.exp-description {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.7;
}


/* ===== CONTACT ===== */
.contact-section {
  padding: var(--section-padding);
  text-align: center;
}

.contact-section h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.contact-subtitle {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 36px;
}

.contact-email {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
  padding: 14px 32px;
  border: 1px solid rgba(200, 255, 0, 0.2);
  border-radius: 8px;
  transition: all 0.3s;
  margin-bottom: 40px;
}

.contact-email:hover {
  background: rgba(200, 255, 0, 0.05);
  border-color: rgba(200, 255, 0, 0.4);
}

.social-links {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.social-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.social-links a:hover {
  color: #fff;
}


/* ===== FOOTER ===== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer .footer-location {
  margin-top: 4px;
}


/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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


/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .featured-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-photo {
    position: static;
    max-width: 280px;
  }

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

  .exp-item {
    grid-template-columns: 160px 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }

  :root {
    --section-padding: 80px 0;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .hero {
    padding: 0 24px 60px;
    min-height: auto;
    min-height: 100vh;
  }

  .hero-logo {
    width: 200px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

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

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

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

  .about-details {
    grid-template-columns: 1fr;
  }

  .featured-meta {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .exp-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}