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

:root {
  --bg-950: #020617;
  --bg-900: #0f172a;
  --bg-800: #1e293b;
  --violet: #8b5cf6;
  --cyan: #06b6d4;
  --pink: #ec4899;
  --amber: #f59e0b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --dim: #64748b;
  --border: rgba(255,255,255,0.08);
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg-950); color: var(--text); overflow-x: hidden; }

/* ── NAVBAR ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 2rem; transition: background 0.3s, border-color 0.3s;
}
nav.scrolled {
  background: rgba(2,6,23,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; height: 68px;
}
.nav-logo {
  font-size: 1.25rem; font-weight: 800; color: var(--text);
  text-decoration: none; transition: color 0.2s;
}
.nav-logo:hover { color: var(--violet); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.9rem; font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: rgba(2,6,23,0.97); backdrop-filter: blur(16px);
  flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--muted); text-decoration: none;
  font-size: 1.8rem; font-weight: 600; transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--text); }
.close-menu {
  position: absolute; top: 1.5rem; right: 2rem;
  background: none; border: none; color: var(--text); font-size: 2rem; cursor: pointer;
}

/* ── HERO ── */
#hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0 1.5rem; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at top right, rgba(139,92,246,0.1) 0%, transparent 55%),
              radial-gradient(ellipse at bottom left, rgba(6,182,212,0.07) 0%, transparent 55%),
              var(--bg-950);
}
#hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-badge {
  display: inline-block; padding: 0.4rem 1.2rem;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 999px; font-size: 0.85rem; color: var(--muted);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease both;
}
.hero-name {
  font-size: clamp(3rem, 10vw, 6rem); font-weight: 900;
  line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 1rem;
  animation: fadeUp 0.6s 0.15s ease both;
}
.hero-tagline {
  font-size: clamp(1rem, 3vw, 1.3rem); color: var(--muted);
  font-weight: 300; margin-bottom: 2.5rem; letter-spacing: 0.05em;
  animation: fadeUp 0.6s 0.3s ease both;
}
.hero-btns {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-bottom: 3rem;
  animation: fadeUp 0.6s 0.45s ease both;
}
.btn-primary {
  padding: 0.8rem 2rem; background: #fff; color: #0f172a;
  border: none; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; text-decoration: none; transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-2px); }
.btn-outline {
  padding: 0.8rem 2rem; background: transparent;
  border: 1px solid rgba(255,255,255,0.2); color: var(--text);
  border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; text-decoration: none; transition: background 0.2s;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-outline:hover { background: rgba(255,255,255,0.07); }
.btn-outline.sm { font-size: 0.9rem; padding: 0.65rem 1.4rem; }
.hero-socials {
  display: flex; gap: 1.5rem; justify-content: center;
  animation: fadeUp 0.6s 0.6s ease both;
}
.hero-socials a { color: var(--dim); font-size: 1.3rem; transition: color 0.2s; }
.hero-socials a:hover { color: var(--text); }
.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: var(--dim); font-size: 1rem; animation: bounce 2s infinite;
}

/* ── SECTIONS ── */
section { padding: 6rem 1.5rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-label {
  display: block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.75rem;
}
.section-label.violet { color: var(--violet); }
.section-label.cyan   { color: var(--cyan); }
.section-label.pink   { color: var(--pink); }
.section-label.amber  { color: var(--amber); }
.section-title { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; }
.section-sub { color: var(--muted); margin-top: 1rem; max-width: 520px; margin-inline: auto; line-height: 1.7; }

/* ── ABOUT ── */
#about { background: var(--bg-950); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-img-wrap { position: relative; aspect-ratio: 1/1; max-width: 400px; }
.about-img-wrap::before, .about-img-wrap::after {
  content: ''; position: absolute; inset: 0; border-radius: 1.5rem;
}
.about-img-wrap::before { background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(6,182,212,0.2)); transform: rotate(3deg); }
.about-img-wrap::after  { background: linear-gradient(225deg, rgba(99,102,241,0.15), rgba(168,85,247,0.15)); transform: rotate(-3deg); }
.about-img-inner {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 1/1;
  border-radius: 1.5rem; overflow: hidden; background: var(--bg-900);
  display: flex; align-items: center; justify-content: center;
}
.about-img-inner img { width: 100%; height: 100%; object-fit: cover; }
.about-placeholder { font-size: 5rem; color: var(--bg-800); }
.about-text .violet { color: var(--violet); }
.about-heading { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin: 0.5rem 0 1.5rem; line-height: 1.2; }
.gradient-text {
  background: linear-gradient(to right, var(--violet), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.about-desc { color: var(--muted); font-size: 1rem; line-height: 1.8; margin-bottom: 2rem; }
.about-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1.5rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border);
}
.stat-num { font-size: 2rem; font-weight: 800; }
.stat-label { font-size: 0.8rem; color: var(--dim); margin-top: 0.2rem; }

/* ── SKILLS ── */
#skills { background: var(--bg-900); }
.skills-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.skill-card {
  background: rgba(2,6,23,0.5); border: 1px solid var(--border);
  border-radius: 1.2rem; padding: 1.5rem; transition: border-color 0.2s;
}
.skill-card:hover { border-color: rgba(255,255,255,0.14); }
.skill-card-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.skill-icon {
  width: 40px; height: 40px; border-radius: 0.65rem;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem;
}
.skill-icon.violet { background: linear-gradient(135deg,#8b5cf6,#7c3aed); }
.skill-icon.pink   { background: linear-gradient(135deg,#ec4899,#be185d); }
.skill-icon.cyan   { background: linear-gradient(135deg,#06b6d4,#0284c7); }
.skill-icon.amber  { background: linear-gradient(135deg,#f59e0b,#d97706); }
.skill-card-title  { font-size: 1rem; font-weight: 700; }
.skill-item { margin-bottom: 1rem; }
.skill-item:last-child { margin-bottom: 0; }
.skill-row { display: flex; justify-content: space-between; font-size: 0.88rem; margin-bottom: 0.4rem; color: #cbd5e1; }
.skill-bar { height: 5px; background: var(--bg-800); border-radius: 999px; overflow: hidden; }
.skill-fill {height: 100%;border-radius: 999px;width: auto;}
.skill-fill.violet { background: linear-gradient(to right,#8b5cf6,#7c3aed); }
.skill-fill.pink   { background: linear-gradient(to right,#ec4899,#be185d); }
.skill-fill.cyan   { background: linear-gradient(to right,#06b6d4,#0284c7); }
.skill-fill.amber  { background: linear-gradient(to right,#f59e0b,#d97706); }

/* ── PROJECTS ── */
#projects { background: var(--bg-950); }
.projects-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.project-card {
  background: rgba(15,23,42,0.8); border: 1px solid var(--border);
  border-radius: 1.2rem; overflow: hidden; transition: transform 0.25s, border-color 0.25s;
}
.project-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.15); }
.project-img { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-800); }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.project-card:hover .project-img img { transform: scale(1.05); }
.project-body { padding: 1.3rem; }
.project-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.6rem; }
.project-title { font-size: 1rem; font-weight: 700; transition: color 0.2s; }
.project-card:hover .project-title { color: var(--violet); }
.project-links { display: flex; gap: 0.6rem; }
.project-links a { color: var(--dim); font-size: 0.95rem; transition: color 0.2s; }
.project-links a:hover { color: var(--text); }
.project-desc { color: var(--muted); font-size: 0.85rem; line-height: 1.6; margin-bottom: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  padding: 0.2rem 0.65rem; background: rgba(255,255,255,0.05);
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 0.72rem; color: var(--muted);
}

/* ── EXPERIENCE ── */
#experience { background: var(--bg-900); }
.timeline { position: relative; max-width: 740px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 27px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, rgba(139,92,246,0.4), rgba(6,182,212,0.4), rgba(245,158,11,0.4));
}
.timeline-item { position: relative; padding-left: 68px; margin-bottom: 2rem; }
.tl-dot {
  position: absolute; left: 18px; top: 22px;
  width: 18px; height: 18px; border-radius: 50%;
  box-shadow: 0 0 0 4px var(--bg-900);
}
.tl-dot.violet { background: var(--violet); }
.tl-dot.cyan   { background: var(--cyan); }
.tl-dot.amber  { background: var(--amber); }
.tl-card {
  background: rgba(2,6,23,0.5); border: 1px solid var(--border);
  border-radius: 1.2rem; padding: 1.3rem; transition: border-color 0.2s;
}
.tl-card:hover { border-color: rgba(255,255,255,0.14); }
.tl-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.8rem; }
.tl-left { display: flex; align-items: center; gap: 0.8rem; }
.tl-icon {
  width: 34px; height: 34px; border-radius: 0.5rem; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.85rem;
}
.tl-icon.violet { background: var(--violet); }
.tl-icon.cyan   { background: var(--cyan); }
.tl-icon.amber  { background: var(--amber); }
.tl-title { font-size: 0.95rem; font-weight: 700; }
.tl-org   { color: var(--violet); font-size: 0.85rem; font-weight: 500; }
.tl-meta  { color: var(--dim); font-size: 0.8rem; }
.tl-meta div { margin-bottom: 0.2rem; }
.tl-meta i { margin-right: 4px; }
.tl-desc  { color: var(--muted); font-size: 0.86rem; line-height: 1.6; }

/* ── CONTACT ── */
#contact .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;  
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;  
  justify-items: center;      
}
#contact { background: var(--bg-950); }
.contact-grid { display: grid;  gap: 3rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 0.8rem 1rem;
  background: rgba(15,23,42,0.7); border: 1px solid var(--border);
  border-radius: 0.75rem; color: var(--text); font-family: inherit;
  font-size: 0.9rem; outline: none; transition: border-color 0.2s;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--dim); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--violet); }
.contact-form textarea { resize: none; }
.btn-submit {
  padding: 0.85rem; width: 100%;
  background: linear-gradient(to right, var(--violet), #7c3aed);
  border: none; border-radius: 0.75rem; color: #fff;
  font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: opacity 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.btn-submit:hover { opacity: 0.88; }
.success-msg {
  display: none; text-align: center; padding: 0.85rem;
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3);
  border-radius: 0.75rem; color: #4ade80; font-size: 0.9rem; font-weight: 500;
}
.contact-info {
  background: rgba(15,23,42,0.6); border: 1px solid var(--border);
  border-radius: 1.2rem; padding: 2rem;
}
.contact-email-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.contact-icon {
  width: 46px; height: 46px; border-radius: 0.75rem; flex-shrink: 0;
  background: rgba(139,92,246,0.15); display: flex; align-items: center;
  justify-content: center; color: var(--violet); font-size: 1.1rem;
}
.contact-label-text { color: var(--dim); font-size: 0.8rem; margin-bottom: 0.25rem; }
.contact-email { color: var(--text); font-weight: 500; text-decoration: none; transition: color 0.2s; }
.contact-email:hover { color: var(--violet); }
.social-links { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.social-link {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.9rem; background: rgba(255,255,255,0.04);
  border: 1px solid var(--border); border-radius: 0.65rem;
  color: var(--muted); text-decoration: none; font-size: 0.85rem;
  font-weight: 500; transition: background 0.2s, color 0.2s;
}
.social-link:hover { background: rgba(255,255,255,0.08); color: var(--text); }

/* ── FOOTER ── */
footer { padding: 2rem 1.5rem; border-top: 1px solid var(--border); }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem; color: var(--dim); font-size: 0.85rem;
}

/* ── REVEAL ANIMATION ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── KEYFRAMES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%     { transform: translateX(-50%) translateY(7px); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-img-wrap { max-width: 300px; margin: 0 auto; }
  .projects-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 650px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .skills-grid, .projects-grid, .contact-grid, .form-row { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .timeline-item { padding-left: 0; }
  .tl-dot { display: none; }
}