:root {
  --black: #080808;
  --white: #f5f5f0;
  --accent: #00e5ff;
  --accent2: #39ff8a;
  --mid: #1a1a1a;
  --border: rgba(255, 255, 255, 0.07);
  --text-muted: rgba(245, 245, 240, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Cabinet Grotesk', sans-serif;
  overflow-x: hidden;
}


/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  background: var(--black);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* HAMBURGER MENU */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
  border-radius: 1px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* HERO */
.hero {
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 48px 80px;
  z-index: 2;
  position: relative;
}

.hero-tag {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(52px, 6vw, 90px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}

.hero-name span {
  display: block;
  color: var(--text-muted);
}

.hero-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 380px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}

.hero-cta {
  display: flex;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.25s;
}

.btn-primary {
  background: var(--accent);
  color: var(--black);
  font-weight: 500;
}

.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* HERO PHOTO */
.hero-right {
  position: relative;
  overflow: hidden;
}

.hero-photo-wrap {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: fadeIn 1.2s 0.3s forwards;
}

.hero-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--black) 0%, transparent 30%),
    linear-gradient(to top, var(--black) 0%, transparent 25%);
}

.hero-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(20%) contrast(1.05);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 1s 1.5s forwards;
  z-index: 10;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: scrollPulse 2s infinite;
}

.scroll-text {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}

/* MARQUEE */
.marquee-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 16px 0;
  background: var(--mid);
}

.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 20s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 32px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.marquee-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* SECTIONS */
section {
  padding: 120px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  max-width: 120px;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(38px, 4.5vw, 68px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 60px;
}

/* PROJECTS */
#projects {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  align-items: stretch;
  perspective: 1400px;
}

.project-card {
  flex: 1 1 260px;
  max-width: 340px;
  min-height: 260px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background:
    radial-gradient(circle at 25% 20%, rgba(0, 229, 255, 0.15), transparent 42%),
    linear-gradient(145deg, rgba(26, 28, 33, 0.95), rgba(13, 14, 19, 0.95));
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 14px;
  padding: 32px 24px;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.08),
    inset 0 -2px 6px rgba(0, 0, 0, 0.45),
    0 20px 30px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(0, 229, 255, 0.1);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
  transform-style: preserve-3d;
  animation: floatCard 6s ease-in-out infinite;
  filter: saturate(1.1) drop-shadow(0 22px 28px rgba(0, 229, 255, 0.18));
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(0, 229, 255, 0.08), transparent 65%);
  transform: translateZ(1px);
  pointer-events: none;
  opacity: 0.8;
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(225deg, rgba(0, 230, 255, 0.18), rgba(56, 57, 70, 0.08));
  transform: translate3d(0, 0, -12px) rotateX(8deg) scale(1.03);
  transform-origin: center;
  pointer-events: none;
  filter: blur(6px);
  z-index: 0;
  opacity: 0.45;
  box-shadow: 0 16px 22px rgba(0, 0, 0, 0.35);
}

.project-card * {
  position: relative;
  z-index: 2;
}

.project-card:hover {
  transform: translateY(-16px) rotateX(7deg) rotateY(-7deg) scale(1.06);
  border-color: var(--accent2);
  box-shadow:
    0 30px 55px rgba(0, 229, 255, 0.65),
    0 0 0 2px rgba(0, 229, 255, 0.18);
  filter: saturate(1.24) brightness(1.1) drop-shadow(0 28px 36px rgba(0, 229, 255, 0.3));
}

@keyframes floatCard {
  0%, 100% {
    transform: translateY(0) rotateX(0) rotateY(0) scale(1);
  }
  50% {
    transform: translateY(-7px) rotateX(1deg) rotateY(-1deg) scale(1.01);
  }
}

.project-title {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--white);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.16), 0 6px 14px rgba(0, 0, 0, 0.5);
}

.project-desc {
  font-size: 14px;
  color: rgba(245, 245, 240, 0.75);
  margin-bottom: 18px;
  line-height: 1.6;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.1), 0 3px 8px rgba(0, 0, 0, 0.25);
}

.project-link {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--accent);
  padding: 10px 18px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
}

.project-link:hover {
  background: var(--accent2);
  transform: translateY(-2px);
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text {
  font-size: 18px;
  line-height: 1.75;
  color: rgba(245, 245, 240, 0.75);
}

.about-text strong {
  color: var(--white);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.stat-card {
  background: var(--mid);
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s;
}

.stat-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 48px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* SKILLS */
.skills-section {
  background: var(--mid);
  max-width: 100%;
  padding: 120px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.skills-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

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

.skill-group {
  background: var(--black);
  padding: 40px 36px;
  border: 1px solid var(--border);
  transition: border-color 0.3s;
}

.skill-group:hover {
  border-color: var(--accent2);
}

.skill-group-title {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 24px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  font-size: 13px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--white);
  transition: all 0.2s;
}

.skill-tag:hover {
  background: rgba(0, 229, 255, 0.08);
  border-color: var(--accent);
  color: var(--accent);
}

/* EXPERIENCE */
.exp-list {
  display: flex;
  flex-direction: column;
}

.exp-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: background 0.3s;
}

.exp-item::before {
  content: '';
  position: absolute;
  left: -48px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: transparent;
  transition: background 0.3s;
}

.exp-item:hover::before {
  background: var(--accent);
}

.exp-year {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 4px;
  letter-spacing: 0.08em;
}

.exp-role {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 6px;
}

.exp-company {
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 16px;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.08em;
}

.exp-desc {
  font-size: 15px;
  color: rgba(245, 245, 240, 0.6);
  line-height: 1.7;
}

/* EDUCATION */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.edu-card {
  background: var(--mid);
  border: 1px solid var(--border);
  padding: 40px 32px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.edu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.edu-card:hover::before {
  transform: scaleX(1);
}

.edu-card:hover {
  border-color: rgba(0, 229, 255, 0.2);
}

.edu-year {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 16px;
}

.edu-degree {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.edu-inst {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* CONTACT / FOOTER */
.contact-section {
  padding: 140px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  background: var(--black);
  border-top: 1px solid var(--border);
}

.contact-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.06) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.contact-big {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(48px, 7vw, 110px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 48px;
  position: relative;
}

.contact-big em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 245, 240, 0.2);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.contact-link {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: all 0.2s;
}

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

footer {
  padding: 28px 48px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.footer-location {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-location::before {
  content: '◉';
  color: var(--accent2);
  font-size: 8px;
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotateX(0) rotateY(0) scale(1); }
  50% { transform: translateY(-7px) rotateX(1deg) rotateY(-1deg) scale(1.01); }
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* NOISE OVERLAY */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.4;
}

/* ACHIEVEMENT BADGE */
.achievement {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(57, 255, 138, 0.07);
  border: 1px solid rgba(57, 255, 138, 0.2);
  border-radius: 2px;
  padding: 10px 18px;
  margin-top: 32px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--accent2);
  text-transform: uppercase;
}

.achievement-icon {
  font-size: 14px;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {

  nav { padding: 16px 24px; }
  .nav-logo { font-size: 12px; }


  .nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--black);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.active {
    display: flex;
    max-height: 300px;
  }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 12px;
    text-align: center;
  }

  .hamburger { display: flex; }

  .hero {
    height: auto;
    grid-template-columns: 1fr;
    min-height: 100vh;
    padding-top: 60px;
  }

  .hero-left {
    padding: 40px 24px;
    justify-content: center;
    min-height: 50vh;
    text-align: center;
  }

  .hero-tag { font-size: 9px; margin-bottom: 16px; display: inline-block; }
  .hero-name { font-size: clamp(32px, 8vw, 48px); margin-bottom: 16px; }
  .hero-sub { font-size: 14px; max-width: 100%; margin: 0 auto 24px; }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .btn { width: 100%; justify-content: center; padding: 12px 20px; font-size: 11px; }

  .hero-right { height: 50vh; min-height: 300px; }

  .hero-photo-wrap {
    position: relative;
    height: 100%;
  }

  .hero-photo-wrap::after {
    background: linear-gradient(to right, var(--black) 0%, transparent 20%),
      linear-gradient(to top, var(--black) 0%, transparent 15%);
  }

  .hero-scroll-hint { display: none; }

  section { padding: 60px 24px; max-width: 100%; text-align: center; }

  .section-label { font-size: 9px; margin-bottom: 24px; justify-content: center; }
  .section-label::after { max-width: 80px; }
  .section-title { font-size: clamp(24px, 6vw, 40px); margin-bottom: 32px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-text { font-size: 15px; line-height: 1.6; }
  .about-stats { grid-template-columns: 1fr; gap: 2px; }
  .stat-card { padding: 24px 20px; }
  .stat-num { font-size: 36px; }
  .stat-label { font-size: 12px; }

  .skills-section { padding: 60px 24px; }
  .skills-grid { grid-template-columns: 1fr; }
  .skill-group { padding: 24px 20px; text-align: center; }
  .skill-group-title { margin-bottom: 20px; }

  .exp-item { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; text-align: center; }
  .exp-item::before { left: -24px; }
  .exp-year { font-size: 11px; }
  .exp-role { font-size: 18px; }
  .exp-company { font-size: 12px; }
  .exp-desc { font-size: 14px; }

  .edu-grid { grid-template-columns: 1fr; gap: 2px; }
  .edu-card { padding: 24px 20px; text-align: center; }
  .edu-year { font-size: 10px; }
  .edu-degree { font-size: 16px; }
  .edu-inst { font-size: 12px; }

  .contact-section { padding: 60px 24px; }
  .contact-section::before { width: 300px; height: 300px; }
  .contact-big { font-size: clamp(32px, 8vw, 60px); margin-bottom: 24px; }
  .contact-links { flex-direction: column; gap: 16px; margin-bottom: 40px; }
  .contact-link { font-size: 11px; }

  footer { flex-direction: column; gap: 16px; padding: 20px 24px; }
  .footer-copy, .footer-location { font-size: 10px; }

  .projects-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 220px; }
}

@media (max-width: 480px) {
  .marquee-item { padding: 0 16px; gap: 16px; font-size: 10px; }
  nav { padding: 12px 16px; }
  .nav-links { top: 50px; padding: 16px; }
  .hero-left { padding: 30px 16px; text-align: center; }
  .hero-name { font-size: clamp(28px, 7vw, 40px); line-height: 0.95; }
  .hero-sub { font-size: 13px; }
  section { padding: 40px 16px; text-align: center; }
  .section-title { font-size: clamp(20px, 5vw, 32px); }
  .contact-big { font-size: clamp(28px, 6vw, 48px); }
}