/* ─────────────────────────────────────────
   CSS Variables / Root
───────────────────────────────────────── */
:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --surface: #16161f;
  --border: #1e1e2e;
  --accent: #c8ff00;
  --accent2: #7c6aff;
  --text: #f0f0f8;
  --muted: #6b6b80;
  --card-hover: #1c1c28;
}

/* ─────────────────────────────────────────
   Reset & Base
───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
  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.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 999;
  opacity: 0.4;
}

/* ─────────────────────────────────────────
   Navbar
───────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10,10,15,0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.5px;
  color: var(--text);
  text-decoration: none;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.2s;
  letter-spacing: 0.01em;
}

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

.nav-cta {
  background: var(--accent);
  color: #0a0a0f !important;
  font-weight: 500 !important;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  transition: opacity 0.2s !important;
}

.nav-cta:hover { opacity: 0.85; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─────────────────────────────────────────
   Mobile Menu
───────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 260px;
  height: 100vh;
  background: var(--bg2);
  border-left: 1px solid var(--border);
  z-index: 200;
  padding: 5rem 2rem 2rem;
  transition: right 0.35s ease;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu.open { right: 0; }

.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--accent); }

.close-menu {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
  backdrop-filter: blur(4px);
}

.overlay.open { opacity: 1; pointer-events: all; }

/* ─────────────────────────────────────────
   Hero
───────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 4% 4rem;
  position: relative;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,106,255,0.15), transparent 70%);
  top: -100px; right: -100px;
  animation: float1 8s ease-in-out infinite;
}

.blob-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(200,255,0,0.08), transparent 70%);
  bottom: 50px; left: 5%;
  animation: float2 10s ease-in-out infinite;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  width: fit-content;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 1.25rem;
}

h1 .highlight { color: var(--accent); }
h1 .accent-2  { color: var(--accent2); }

.hero-desc {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 420px;
  margin-bottom: 2rem;
  font-weight: 300;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}

.stat-label { font-size: 0.8rem; color: var(--muted); }

.hero-photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo {
  width: 340px; height: 400px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
  animation: fadeInRight 0.8s 0.3s both;
}

.hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,106,255,0.1) 0%, transparent 50%, rgba(200,255,0,0.05) 100%);
}

.photo-tag {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-size: 0.8rem;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.tag-1 { top: -15px; right: -20px; color: var(--accent); font-weight: 600; }
.tag-2 { bottom: 30px; left: -30px; color: var(--text); }

/* ─────────────────────────────────────────
   Shared Section Styles
───────────────────────────────────────── */
section { padding: 6rem 4%; }

.section-tag {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.section-inner { max-width: 1200px; margin: 0 auto; }

/* ─────────────────────────────────────────
   Buttons
───────────────────────────────────────── */
.btn-primary {
  background: var(--accent);
  color: #0a0a0f;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(200,255,0,0.2);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s;
  border: 1px solid var(--border);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline:hover { background: var(--surface); border-color: var(--muted); }

/* ─────────────────────────────────────────
   Skills
───────────────────────────────────────── */
#skills { background: var(--bg2); }

.skills-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

.skills-desc { color: var(--muted); font-weight: 300; line-height: 1.8; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
}

.skill-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.8rem 1rem;
  border-radius: 10px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.25s;
  cursor: default;
}

.skill-chip:hover {
  border-color: var(--accent2);
  background: var(--card-hover);
  color: var(--accent);
  transform: translateY(-3px);
}

.skill-icon { font-size: 1.4rem; display: block; margin-bottom: 0.35rem; }

/* ─────────────────────────────────────────
   Projects
───────────────────────────────────────── */
.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124,106,255,0.4);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.project-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.pc1 .project-thumb { background: linear-gradient(135deg, #0f0f1a, #1a0f2e); }
.pc2 .project-thumb { background: linear-gradient(135deg, #0a1a0f, #0f2e1a); }
.pc3 .project-thumb { background: linear-gradient(135deg, #1a0a0f, #2e1a0f); }

.project-info { padding: 1.25rem; }

.project-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.tag {
  background: rgba(124,106,255,0.12);
  color: var(--accent2);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.project-title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-desc { color: var(--muted); font-size: 0.83rem; line-height: 1.6; }

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
}

.project-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ─────────────────────────────────────────
   Experience
───────────────────────────────────────── */
#experience { background: var(--bg2); }

.timeline {
  position: relative;
  padding-left: 2rem;
  max-width: 700px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding: 0 0 2.5rem 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -6px; top: 8px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--accent2);
  border: 2px solid var(--bg2);
  box-shadow: 0 0 0 3px rgba(124,106,255,0.25);
}

.timeline-period {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.timeline-role {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.timeline-company { color: var(--muted); font-size: 0.88rem; margin-bottom: 0.75rem; }

.timeline-desc { color: var(--muted); font-size: 0.85rem; line-height: 1.7; font-weight: 300; }

/* ─────────────────────────────────────────
   Contact
───────────────────────────────────────── */
#contact { text-align: center; }

.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 4rem 3rem;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.contact-box::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.contact-email {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  display: block;
  margin: 1.5rem 0;
  transition: opacity 0.2s;
}

.contact-email:hover { opacity: 0.7; }

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.social-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-btn:hover { color: var(--text); border-color: var(--muted); background: var(--card-hover); }

/* ─────────────────────────────────────────
   Footer
───────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 0.75rem;
}

footer a { color: var(--muted); text-decoration: none; }

/* ─────────────────────────────────────────
   Animations
───────────────────────────────────────── */
@keyframes float1 {
  0%,100% { transform: translate(0,0); }
  50%      { transform: translate(-30px,30px); }
}

@keyframes float2 {
  0%,100% { transform: translate(0,0); }
  50%      { transform: translate(20px,-20px); }
}

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

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

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

/* ─────────────────────────────────────────
   Section Reveal
───────────────────────────────────────── */
.hidden-section {
  display: none;
  opacity: 0;
  transform: translateY(40px);
}

.hidden-section.revealed {
  display: block;
  animation: revealIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes revealIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─────────────────────────────────────────
   Responsive — Tablet
───────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .hero-desc  { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stats   { justify-content: center; }
  .hero-photo-wrap { order: -1; }
  .hero-photo { width: 220px; height: 260px; }
  .tag-1 { right: 0; }
  .tag-2 { left: 0; }
  .skills-header { grid-template-columns: 1fr; gap: 1rem; }
  .projects-grid { grid-template-columns: 1fr 1fr; }
}

/* ─────────────────────────────────────────
   Responsive — Mobile
───────────────────────────────────────── */
@media (max-width: 640px) {
  nav { padding: 1rem 5%; }
  .nav-links  { display: none; }
  .hamburger  { display: flex; }
  section     { padding: 4rem 5%; }
  .projects-grid  { grid-template-columns: 1fr; }
  .projects-header { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .contact-box { padding: 2.5rem 1.5rem; }
  footer { flex-direction: column; text-align: center; }
}