/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:      #0a0c10;
  --surface: #111318;
  --border:  #1e2330;
  --accent:  #00e5ff;
  --accent2: #7c3aed;
  --accent3: #10b981;
  --text:    #e8eaf0;
  --muted:   #6b7280;
  --card:    #13161e;
}

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

html {
  scroll-behavior: smooth;
}

/* ── Base ───────────────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  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.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 2px; }

/* ── Navigation ─────────────────────────────────────────────── */
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(10, 12, 16, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

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

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

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

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

.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.08) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}

.hero-glow2 {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.07) 0%, transparent 70%);
  bottom: 50px; left: 100px;
  pointer-events: none;
}

.hero-content {
  max-width: 780px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 229, 255, 0.07);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeUp 0.7s ease both;
}

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

h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeUp 0.7s 0.1s ease both;
}

h1 span {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 40px;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.3s ease both;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.7s 0.4s ease both;
}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.stat-num span {
  color: var(--accent);
}

.stat-label {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 4px;
  letter-spacing: 0.04em;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: #33ecff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 229, 255, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

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

/* ── Sections (generic) ─────────────────────────────────────── */
section {
  padding: 100px 60px;
}

section:nth-child(even) {
  background: var(--surface);
}

.section-tag {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 12px;
}

h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  line-height: 1.15;
}

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

.about-text p {
  color: #9ca3af;
  margin-bottom: 20px;
  font-size: 1rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
}

.info-row .icon {
  color: var(--accent);
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.info-row .label {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.info-row .value {
  color: var(--text);
  font-weight: 400;
}

.info-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ── Experience / Timeline ──────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 32px;
  transition: border-color 0.3s, transform 0.3s;
}

.timeline-item:hover {
  border-color: rgba(0, 229, 255, 0.3);
  transform: translateX(4px);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -40px; top: 30px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.tl-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.tl-role {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}

.tl-date {
  font-size: 0.78rem;
  color: var(--accent);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.15);
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

.tl-company {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.tl-bullets {
  list-style: none;
  padding: 0;
}

.tl-bullets li {
  color: #9ca3af;
  font-size: 0.92rem;
  padding: 5px 0 5px 20px;
  position: relative;
}

.tl-bullets li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

/* ── Skills ─────────────────────────────────────────────────── */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.skill-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.skill-card:hover {
  border-color: rgba(0, 229, 255, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.skill-card-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-card-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

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

.skill-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.82rem;
  color: #d1d5db;
  transition: all 0.2s;
}

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

/* ── Education & Certifications ─────────────────────────────── */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.edu-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-3px);
}

.edu-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
}

.edu-degree {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.edu-school {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.edu-year {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--accent2);
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.2);
  padding: 4px 12px;
  border-radius: 100px;
}

.edu-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--accent3);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 4px 12px;
  border-radius: 100px;
  margin-left: 8px;
}

.edu-status::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent3);
}

/* ── Projects ───────────────────────────────────────────────── */
#projects {
  background: var(--bg) !important;
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 16px;
}

.projects-header h2 {
  margin-bottom: 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: rgba(0, 229, 255, 0.25);
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.project-thumb {
  height: 200px;
  background: linear-gradient(135deg, #111827 0%, #1e2533 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Unique gradient per card */
.project-card:nth-child(1) .project-thumb { background: linear-gradient(135deg, #0d1b2a, #1a3a5c); }
.project-card:nth-child(2) .project-thumb { background: linear-gradient(135deg, #1a0d2e, #3a1a5c); }
.project-card:nth-child(3) .project-thumb { background: linear-gradient(135deg, #0d2a1a, #1a5c3a); }
.project-card:nth-child(4) .project-thumb { background: linear-gradient(135deg, #2a1a0d, #5c3a1a); }

.project-thumb-icon {
  font-size: 3rem;
  opacity: 0.15;
  position: absolute;
  bottom: -10px;
  right: 20px;
}

.project-thumb-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.2);
  padding: 6px 14px;
  border-radius: 100px;
}

.project-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

.project-desc {
  color: #9ca3af;
  font-size: 0.88rem;
  flex: 1;
  margin-bottom: 20px;
}

.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.project-tech {
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.12);
  color: var(--accent);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 4px;
}

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

.project-link {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

.project-link:hover {
  color: var(--accent);
  border-color: rgba(0, 229, 255, 0.2);
}

/* Add-project card */
.project-card-add {
  background: transparent;
  border: 2px dashed var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s;
  min-height: 340px;
  color: var(--muted);
  text-decoration: none;
}

.project-card-add:hover {
  border-color: rgba(0, 229, 255, 0.3);
  color: var(--accent);
  transform: translateY(-3px);
}

.add-icon {
  font-size: 2.5rem;
  opacity: 0.5;
}

.add-label {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ── Goals ──────────────────────────────────────────────────── */
.goals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.goal-card:hover {
  transform: translateY(-3px);
}

.goal-card:first-child { border-left: 3px solid var(--accent); }
.goal-card:last-child  { border-left: 3px solid var(--accent2); }

.goal-horizon {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 12px;
}

.goal-card:first-child .goal-horizon { color: var(--accent); }
.goal-card:last-child  .goal-horizon { color: var(--accent2); }

.goal-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.goal-desc {
  color: #9ca3af;
  font-size: 0.92rem;
}

/* ── Contact ────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-text {
  color: #9ca3af;
  font-size: 1rem;
  line-height: 1.8;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
}

.contact-item:hover {
  border-color: rgba(0, 229, 255, 0.3);
  transform: translateX(4px);
  color: var(--accent);
}

.contact-icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
  color: var(--accent);
}

.contact-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.contact-value {
  font-size: 0.92rem;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  padding: 32px 60px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--bg);
}

footer p {
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  color: var(--accent);
  font-size: 1rem;
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

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

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }

  section,
  .hero { padding: 80px 24px; }

  .hero-stats { flex-direction: column; gap: 24px; }

  .about-grid,
  .edu-grid,
  .goals-grid,
  .contact-grid { grid-template-columns: 1fr; }

  footer { padding: 24px; }
}
