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

:root {
  --bg: #080c10;
  --bg2: #0d1117;
  --bg3: #111820;
  --accent: #00e5ff;
  --accent2: #7c3aed;
  --accent3: #ff6b35;
  --text: #e2e8f0;
  --muted: #64748b;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(0, 229, 255, 0.12);
  --glow: 0 0 30px rgba(0, 229, 255, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  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.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(8, 12, 16, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 229, 255, 0.06);
  transition: all 0.3s;
}
nav.scrolled {
  padding: 14px 60px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}
.nav-logo {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--accent);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  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%;
}

main {
  position: relative;
  z-index: 2;
}

section {
  padding: 120px 60px;
  max-width: 1100px;
  margin: 0 auto;
}
.section-tag {
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}
.section-tag.visible {
  opacity: 1;
  transform: none;
}
.section-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 60px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease 0.1s;
}
.section-title.visible {
  opacity: 1;
  transform: none;
}

#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 60px 80px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.hero-eyebrow {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeUp 0.8s ease both;
}
.hero-eyebrow::before {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}
.hero-name {
  font-family: "Syne", sans-serif;
  font-size: clamp(4rem, 10vw, 8.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease 0.1s both;
}
.hero-name span {
  color: var(--accent);
}
.hero-title {
  font-size: 1.15rem;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 16px;
  animation: fadeUp 0.8s ease 0.2s both;
  max-width: 560px;
  line-height: 1.7;
}
.hero-typing {
  font-family: "Space Mono", monospace;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 48px;
  animation: fadeUp 0.8s ease 0.3s both;
  min-height: 1.5em;
}
.hero-typing .cursor-blink {
  display: inline-block;
  background: var(--accent);
  width: 2px;
  height: 1.1em;
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.4s both;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--bg);
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: none;
  clip-path: polygon(
    0 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% 100%,
    10px 100%,
    0 calc(100% - 10px)
  );
  transition: all 0.3s;
}
.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  background: transparent;
  color: var(--text);
  font-family: "Space Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--card-border);
  cursor: none;
  clip-path: polygon(
    0 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% 100%,
    10px 100%,
    0 calc(100% - 10px)
  );
  transition: all 0.3s;
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.hero-socials {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: fadeIn 1s ease 0.8s both;
}
.hero-socials::before,
.hero-socials::after {
  content: "";
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--muted));
}
.hero-socials::after {
  background: linear-gradient(to top, transparent, var(--muted));
}
.hero-socials a {
  color: var(--muted);
  font-size: 1rem;
  text-decoration: none;
  transition:
    color 0.2s,
    transform 0.2s;
}
.hero-socials a:hover {
  color: var(--accent);
  transform: translateX(-3px);
}
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 60px;
  font-family: "Space Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeIn 1s ease 1s both;
}
.hero-scroll::before {
  content: "";
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease infinite;
}

/* ── ABOUT ── */
#about {
  padding-top: 60px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-photo-wrap {
  position: relative;
  opacity: 0;
  transform: translateX(-40px);
  transition: all 0.8s ease;
}
.about-photo-wrap.visible {
  opacity: 1;
  transform: none;
}
.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  clip-path: polygon(
    0 0,
    calc(100% - 24px) 0,
    100% 24px,
    100% 100%,
    24px 100%,
    0 calc(100% - 24px)
  );
  border: 1px solid var(--card-border);
  filter: grayscale(20%);
  transition: filter 0.4s;
}
.about-photo:hover {
  filter: none;
}
.about-photo-deco {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100%;
  aspect-ratio: 3/4;
  border: 1px solid var(--accent);
  opacity: 0.2;
  clip-path: polygon(
    0 0,
    calc(100% - 24px) 0,
    100% 24px,
    100% 100%,
    24px 100%,
    0 calc(100% - 24px)
  );
  pointer-events: none;
}
.about-content {
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.8s ease 0.2s;
}
.about-content.visible {
  opacity: 1;
  transform: none;
}
.about-bio {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 32px;
}
.about-bio strong {
  color: var(--text);
  font-weight: 500;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}
.stat {
  border: 1px solid var(--card-border);
  padding: 20px;
  background: var(--card);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition:
    border-color 0.3s,
    background 0.3s;
}
.stat:hover {
  border-color: var(--accent);
  background: rgba(0, 229, 255, 0.04);
}
.stat-num {
  font-family: "Syne", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 4px;
}

#skills {
  background: none;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 16px;
}
.skill-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  background: var(--card);
  border: 1px solid var(--card-border);
  text-align: center;
  font-size: 0.72rem;
  font-family: "Space Mono", monospace;
  color: var(--muted);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  cursor: none;
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(20px);
}
.skill-chip.visible {
  opacity: 1;
  transform: none;
}
.skill-chip i {
  font-size: 1.6rem;
  color: var(--accent);
  transition: transform 0.3s;
}
.skill-chip:hover {
  border-color: var(--accent);
  background: rgba(0, 229, 255, 0.06);
  transform: translateY(-4px);
  box-shadow: var(--glow);
}
.skill-chip:hover i {
  transform: scale(1.2);
}

/* ── EXPERIENCE ── */
.timeline {
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}
.timeline-item {
  padding-left: 52px;
  margin-bottom: 48px;
  position: relative;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.7s ease;
}
.timeline-item.visible {
  opacity: 1;
  transform: none;
}
.timeline-dot {
  position: absolute;
  left: 8px;
  top: 6px;
  width: 18px;
  height: 18px;
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
  transition: background 0.3s;
}
.timeline-item:hover .timeline-dot {
  background: var(--accent);
}
.timeline-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  padding: 28px 32px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  transition:
    border-color 0.3s,
    background 0.3s,
    box-shadow 0.3s;
}
.timeline-item:hover .timeline-card {
  border-color: var(--accent);
  background: rgba(0, 229, 255, 0.04);
  box-shadow: var(--glow);
}
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.timeline-role {
  font-family: "Syne", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.timeline-company {
  color: var(--accent);
}
.timeline-period {
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
}
.timeline-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}
.timeline-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.tag {
  font-family: "Space Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(0, 229, 255, 0.08);
  padding: 4px 10px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  text-transform: uppercase;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.project-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  padding: 28px;
  clip-path: polygon(
    0 0,
    calc(100% - 18px) 0,
    100% 18px,
    100% 100%,
    18px 100%,
    0 calc(100% - 18px)
  );
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
  cursor: none;
  opacity: 0;
  transform: translateY(30px);
}
.project-card.visible {
  opacity: 1;
  transform: none;
}
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 229, 255, 0.06) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s;
}
.project-card:hover {
  border-color: var(--accent);
  box-shadow: var(--glow);
  transform: translateY(-6px);
}
.project-card:hover::before {
  opacity: 1;
}
.project-num {
  font-family: "Space Mono", monospace;
  font-size: 0.65rem;
  color: var(--accent);
  margin-bottom: 12px;
}
.project-name {
  font-family: "Syne", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}
.project-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.project-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.project-links {
  display: flex;
  gap: 12px;
}
.project-link {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition:
    color 0.2s,
    transform 0.2s;
}
.project-link:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.edu-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  padding: 36px 40px;
  clip-path: polygon(
    0 0,
    calc(100% - 20px) 0,
    100% 20px,
    100% 100%,
    20px 100%,
    0 calc(100% - 20px)
  );
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  transition: all 0.4s;
  opacity: 0;
  transform: translateY(30px);
}
.edu-card.visible {
  opacity: 1;
  transform: none;
}
.edu-card:hover {
  border-color: var(--accent);
  box-shadow: var(--glow);
}
.edu-degree {
  font-family: "Syne", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.edu-school {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 6px;
}
.edu-period {
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  color: var(--muted);
}
.edu-badge {
  font-family: "Space Mono", monospace;
  font-size: 2rem;
  color: rgba(0, 229, 255, 0.15);
}

/* ── CONTACT ── */
#contact {
  text-align: center;
}
.contact-wrap {
  max-width: 600px;
  margin: 0 auto;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  padding: 24px 40px;
  border: 1px solid var(--card-border);
  background: var(--card);
  clip-path: polygon(
    0 0,
    calc(100% - 16px) 0,
    100% 16px,
    100% 100%,
    16px 100%,
    0 calc(100% - 16px)
  );
  transition: all 0.4s;
  margin-bottom: 48px;
}
.contact-email:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--glow);
  transform: translateY(-4px);
}
.contact-socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 12px 20px;
  border: 1px solid var(--card-border);
  background: var(--card);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  transition: all 0.3s;
}
.social-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(0, 229, 255, 0.06);
  transform: translateY(-3px);
}

footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--card-border);
  padding: 32px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer p {
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  color: var(--muted);
}
footer span {
  color: var(--accent);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 768px) {
  nav {
    padding: 16px 24px;
  }
  nav.scrolled {
    padding: 12px 24px;
  }
  .nav-links {
    display: none;
  }
  section {
    padding: 80px 24px;
  }
  #hero {
    padding: 120px 24px 60px;
  }
  .hero-name {
    font-size: clamp(3rem, 14vw, 5rem);
  }
  .hero-socials {
    display: none;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  footer {
    padding: 24px;
    flex-direction: column;
    text-align: center;
  }
}
.available-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.08);
  padding: 6px 14px;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease 0.05s both;
}
.available-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}
