/* ══════════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════════ */
:root {
  --bg:       #0b0b0c;
  --bg2:      #0e0f12;
  --card:     #111318;
  --border:   #1e2028;
  --gold:     #d4af37;
  --accent:   #00598d;
  --accent-h: #006fad;
  --muted:    #8b909a;
  --text:     #d8dce6;
  --white:    #ffffff;
  --radius:   12px;
  --header-h: 64px;
}

/* ══════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  height: var(--header-h);
  background: rgba(11, 11, 12, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow .3s;
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
}

.site-header .inner {
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  flex-shrink: 0;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--muted);
  position: relative;
  transition: color .2s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform .25s ease;
}

.nav-link:hover { color: var(--white); }
.nav-link.active { color: var(--white); }
.nav-link.active::after,
.nav-link:hover::after { transform: scaleX(1); }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  background: url("assets/bg1.png") no-repeat center center / cover;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.45) 100%);
}

.hero-inner {
  position: relative;
  max-width: 1100px;
  margin: auto;
  padding: 0 24px;
  animation: fadeUp .9s ease both;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
}

.gold { color: var(--gold); }

.lead {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,.7);
  margin-bottom: 36px;
  max-width: 560px;
}

.cta-group { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 60px; }

.cta {
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  transition: background .2s, transform .15s;
}

.cta:hover { background: var(--accent-h); transform: translateY(-2px); }

.cta.outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.35);
  color: var(--white);
}

.cta.outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.08);
}

/* Hero stats */
.hero-stats { display: flex; gap: 40px; }
.stat { display: flex; flex-direction: column; }

.stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,.5);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ══════════════════════════════════════════
   SECTION SHARED
══════════════════════════════════════════ */
.section { padding: 100px 0; }
.section.dark { background: var(--bg); }

.container { max-width: 1100px; margin: auto; padding: 0 24px; }

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.center-label { text-align: center; }

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: 56px;
}

/* ══════════════════════════════════════════
   ABOUT
══════════════════════════════════════════ */
.about {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 64px;
  align-items: center;
}

.profile-pic {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  box-shadow: 0 0 0 6px rgba(0,89,141,.15);
}

.about-text h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.2;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 14px;
  max-width: 560px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.about-tags span {
  padding: 6px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text);
  transition: border-color .2s;
}

.about-tags span:hover { border-color: var(--accent); }

/* ══════════════════════════════════════════
   RESUME
══════════════════════════════════════════ */
.resume-section {
  background: var(--bg2);
  padding: 100px 0;
}

.resume-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 48px;
}

.resume-column h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 24px;
}

/* Skill bars */
.skill { margin-bottom: 20px; }

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.skill-header span { font-size: 13px; color: var(--text); }
.skill-pct { color: var(--muted) !important; font-size: 12px !important; }

.bar {
  background: var(--border);
  height: 4px;
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #22d3ee);
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}

/* Timeline */
.timeline { position: relative; padding-left: 24px; }

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

.tl-item {
  position: relative;
  margin-bottom: 32px;
}

.tl-dot {
  position: absolute;
  left: -24px;
  top: 6px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg2);
}

.tl-content h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.tl-date {
  font-size: 12px;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}

.tl-content p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* Education */
.edu-item {
  margin-bottom: 16px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.edu-item h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}

.edu-item p {
  font-size: 13px;
  color: var(--muted);
}

/* Icon list */
.icon-list {
  list-style: none;
  padding: 0;
}

.icon-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}

.icon-list li:last-child { border-bottom: none; }
.icon-list li:hover { color: var(--text); }

.icon-list li i {
  width: 18px;
  text-align: center;
  color: var(--accent);
  font-size: 14px;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   PORTFOLIO
══════════════════════════════════════════ */
.portfolio-section {
  background: url("assets/portfoliobg.png") no-repeat center center / cover;
  position: relative;
  padding: 100px 0;
}

.portfolio-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11,11,12,.82);
}

.portfolio-section .container { position: relative; }

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Project card */
.project-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,.5);
  border-color: var(--accent);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.project-card:hover img { transform: scale(1.04); }

.card-body {
  padding: 18px 20px 20px;
}

.card-badge {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(212,175,55,.15);
  color: var(--gold);
  border: 1px solid rgba(212,175,55,.25);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.project-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.3;
}

.project-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: color .2s, gap .2s;
}

.project-card:hover .project-link {
  color: var(--gold);
  gap: 10px;
}

/* ══════════════════════════════════════════
   CONTACT
══════════════════════════════════════════ */
.contact-section {
  background: var(--bg2);
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.contact-intro {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 36px;
  line-height: 1.8;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-detail i {
  width: 40px;
  height: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 15px;
  flex-shrink: 0;
}

.contact-detail div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-detail strong {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}

.contact-detail a {
  font-size: 14px;
  color: var(--text);
  transition: color .2s;
}

.contact-detail a:hover { color: var(--accent); }

.socials {
  display: flex;
  gap: 10px;
  margin-top: 32px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-size: 16px;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}

.socials a:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Contact form */
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form-group:last-of-type { margin-bottom: 0; }

label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 8px;
}

input,
textarea {
  padding: 12px 16px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,89,141,.15);
}

input::placeholder,
textarea::placeholder { color: var(--muted); opacity: .6; }

textarea {
  min-height: 140px;
  resize: vertical;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: background .2s, transform .15s;
}

.submit-btn:hover {
  background: var(--accent-h);
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  margin-top: 12px;
  font-size: 13px;
  text-align: center;
  min-height: 20px;
  color: var(--muted);
}

.form-status.success { color: #4ade80; }
.form-status.error   { color: #f87171; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.site-footer {
  background: #000;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
  transition: color .2s;
}

.footer-links a:hover { color: var(--white); }

.footer-socials {
  display: flex;
  gap: 14px;
}

.footer-socials a {
  color: var(--muted);
  font-size: 16px;
  transition: color .2s;
}

.footer-socials a:hover { color: var(--white); }

/* ══════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

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

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .resume-container {
    grid-template-columns: 1fr 1fr;
  }

  .resume-column:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .resume-column:last-child h3 { grid-column: 1 / -1; margin-bottom: 0; }

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

/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
══════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Nav becomes mobile drawer */
  .nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(11,11,12,.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
    z-index: 999;
  }

  .nav.open { display: flex; }

  .nav-link {
    padding: 12px 16px;
    font-size: 15px;
    border-radius: 8px;
  }

  .nav-link::after { display: none; }
  .nav-link:hover,
  .nav-link.active { background: var(--card); color: var(--white); }

  .hamburger { display: flex; }

  /* Hero */
  .hero { min-height: 100svh; }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 22px; }
  .cta-group { flex-direction: column; align-items: flex-start; }

  /* About */
  .about {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .about-image { display: flex; justify-content: center; }
  .about-text p { max-width: 100%; }
  .about-tags { justify-content: center; }

  /* Resume */
  .resume-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .resume-column:last-child {
    grid-template-columns: 1fr;
  }

  /* Portfolio grid */
  .grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact-form { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤ 480px)
══════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero h1 { font-size: 36px; }
  .profile-pic { width: 200px; height: 200px; }
  .section { padding: 72px 0; }
  .resume-section { padding: 72px 0; }
  .contact-section { padding: 72px 0; }
}
