:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --border: #1e1e1e;
  --accent: #c8f135;
  --accent2: #35f1c8;
  --text: #e8e8e0;
  --muted: #666;
  --card: #141414;
}

.light-theme {
  --bg: #ffffff;
  --surface: #f5f5f5;
  --border: #e2e2e2;
  --accent: #c8f135;
  --accent2: #35f1c8;
  --text: #111111;
  --muted: #777;
  --card: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Mono", monospace;
  overflow-x: hidden;
  cursor: none;
}

*::selection {
  background: var(--accent);
  color: #0a0a0a;
}

/* Custom cursor */
.cursor {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease;
  mix-blend-mode: difference;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.3s ease;
  opacity: 0.5;
}

body:hover .cursor {
  opacity: 1;
}

/* Noise texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.3;
}

/* Grid background */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(200, 241, 53, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 241, 53, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Typography */
.font-display {
  font-family: "Syne", sans-serif;
}

.font-serif {
  font-family: "Instrument Serif", serif;
}

.font-mono {
  font-family: "DM Mono", monospace;
}

/* Glow effect */
.glow {
  text-shadow: 0 0 40px rgba(200, 241, 53, 0.4);
}

.glow-box {
  box-shadow: 0 0 60px rgba(200, 241, 53, 0.08);
}

/* Animated gradient border */
.grad-border {
  position: relative;
  border: 1px solid transparent;
  background-clip: padding-box;
}

.grad-border::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(200, 241, 53, 0.3),
    rgba(53, 241, 200, 0.1),
    transparent,
    rgba(200, 241, 53, 0.1)
  );
  z-index: -1;
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(10, 10, 10, 0.8);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s;
}

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

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

/* ── Fade-up animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.7s ease forwards;
}
.delay-1 {
  animation-delay: 0.1s;
}
.delay-2 {
  animation-delay: 0.25s;
}
.delay-3 {
  animation-delay: 0.4s;
}
.delay-4 {
  animation-delay: 0.55s;
}
.delay-5 {
  animation-delay: 0.65s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 60px 80px;
  overflow: hidden;
}

.hero .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

/* Left content */
.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-number {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  font-family: "DM Mono", monospace;
}

.hero-title {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-top: 1.2rem;
}

.hero-title .accent {
  color: var(--accent);
}
.hero-title .italic {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-style: italic;
}

.hero-desc {
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 360px;
  letter-spacing: 0.02em;
  margin-top: 1.5rem;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #0a0a0a;
  padding: 16px 36px;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 40px;
  transition: all 0.2s;
}
.btn-primary:hover {
  background: #d4f550;
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 16px 36px;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 40px;
  transition: all 0.2s;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Right — Image column ── */
.hero-image-col {
  flex-shrink: 0;
  position: relative;
  width: clamp(260px, 28vw, 380px);
}

/* Decorative ring behind image */
.hero-image-col::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 50% 40% 50% 40%;
  border: 1px solid rgba(200, 241, 53, 0.18);
  animation: rotateRing 18s linear infinite;
}

/* Accent dot accent */
.hero-image-col::after {
  content: "";
  position: absolute;
  bottom: 18px;
  right: -10px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px rgba(200, 241, 53, 0.6);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes rotateRing {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.6;
  }
}

/* Image wrapper — clipped shape */
.hero-img-wrap {
  position: relative;
  border-radius: 52% 48% 46% 54% / 50% 44% 56% 50%;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 1px rgba(200, 241, 53, 0.06),
    inset 0 0 60px rgba(200, 241, 53, 0.04);
}

/* ↓ Replace the src with your actual photo */
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(15%);
  transition: filter 0.4s;
}
.hero-img-wrap:hover img {
  filter: grayscale(0%);
}

/* Lime gradient overlay at bottom */
.hero-img-wrap .img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.45) 0%,
    transparent 50%
  );
  pointer-events: none;
}

/* Status badge on the image */
.hero-badge {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 15, 15, 0.95);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 8px 18px;
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── Ambient glow ── */
.hero-blob {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    ellipse at center,
    rgba(200, 241, 53, 0.05) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

/* ── Vertical ticker strip ── */
.hero-line {
  position: absolute;
  left: -110px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  font-family: "DM Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.15);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .hero {
    padding: 100px 24px 80px;
  }

  .hero .container {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 48px;
  }

  .hero-image-col {
    width: 200px;
    align-self: center;
  }

  .hero-title {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .hero-line {
    display: none;
  }
}

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

.marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee 25s linear infinite;
  white-space: nowrap;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.marquee-item {
  font-family: "Syne", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 20px;
}

.marquee-item span {
  color: var(--accent);
  font-size: 1rem;
}

/* Section layout */
section {
  padding: 120px 40px;
  position: relative;
  z-index: 2;
}

.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-label::before {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
}

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

.about-big {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.about-big em {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

/* Skills */
.skill-row {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.skill-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 140px;
  padding-top: 4px;
}

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

.skill-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--text);
  transition: all 0.2s;
}

.skill-tag:hover {
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
}

/* Projects */
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 40px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.project-card:hover {
  border-color: rgba(200, 241, 53, 0.2);
}

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

.project-num {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 24px;
}

.project-title {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.project-date {
  font-size: 0.65rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.project-desc {
  font-size: 0.75rem;
  line-height: 1.8;
  color: #888;
  margin-bottom: 24px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.tech-pill {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--accent2);
  border: 1px solid rgba(53, 241, 200, 0.2);
  padding: 4px 10px;
  text-transform: uppercase;
}

.project-links {
  display: flex;
  gap: 16px;
}

.proj-link {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

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

.proj-link svg {
  width: 14px;
  height: 14px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1px;
  background: var(--border);
}

.projects-grid .project-card {
  background: var(--bg);
}


/* Education */
.edu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}

.edu-degree {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.edu-school {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.edu-year {
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-align: right;
}

/* Contact */
.contact-box {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-box::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: conic-gradient(
    from 0deg,
    var(--accent),
    var(--accent2),
    transparent,
    var(--accent)
  );
  z-index: -1;
  border-radius: inherit;
  animation: spin 8s linear infinite;
  opacity: 0.1;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.contact-big {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 24px;
}

.contact-email {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  color: var(--accent);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: #0a0a0a;
  padding: 16px 36px;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #d4f55a;
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(200, 241, 53, 0.2);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 48px;
}

.social-link {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

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

/* Footer */
footer {
  padding: 32px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
}

.footer-text {
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.5s;
}

.delay-5 {
  animation-delay: 0.7s;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

/* Hero decoration */
.hero-line {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-transform: uppercase;
  opacity: 0.4;
}

/* Status dot */
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4);
  }

  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0);
  }
}

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border) 20%,
    var(--border) 80%,
    transparent
  );
}

/* Max width container */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  nav {
    padding: 16px 20px;
  }

  .nav-links {
    display: none;
  }

  section {
    padding: 80px 20px;
  }

  .hero {
    padding: 100px 20px 60px;
  }

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

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

  .contact-box {
    padding: 40px 24px;
  }

  footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .edu-item {
    flex-direction: column;
    gap: 8px;
  }

  .skill-row {
    flex-direction: column;
    gap: 16px;
  }
}

.checkbox {
  display: none;
}

.slider {
  width: 60px;
  height: 30px;
  background-color: lightgray;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  border: 4px solid transparent;
  transition: 0.3s;
  box-shadow: 0 0 10px 0 rgb(0, 0, 0, 0.25) inset;
  cursor: pointer;
}

.slider::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-color: #fff;
  transform: translateX(-30px);
  border-radius: 20px;
  transition: 0.3s;
  box-shadow: 0 0 10px 3px rgb(0, 0, 0, 0.25);
}

.checkbox:checked ~ .slider::before {
  transform: translateX(30px);
  box-shadow: 0 0 10px 3px rgb(0, 0, 0, 0.25);
}

.checkbox:checked ~ .slider {
  background-color: var(--accent);
}

.checkbox:active ~ .slider::before {
  transform: translate(0);
}
