/* ========== Root ========== */
:root {
  --bg: #0a0a0a;
  --bg-soft: #121212;
  --card: rgba(255, 255, 255, 0.06);
  --text: #f2f2f2;
  --muted: #aaaaaa;
  --accent: #f9b233;
  --border: rgba(255, 255, 255, 0.15);
  --shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --tr: 0.3s ease;
}

/* ========== Base ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: radial-gradient(circle at top right, rgba(249, 178, 51, 0.08), transparent 30%), var(--bg);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3, h4, p {
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  margin: 0;
  padding-left: 20px;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: clamp(64px, 9vw, 104px) 0;
}

.section-head {
  margin-bottom: 32px;
}

.section-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  margin-bottom: 8px;
}

.glass {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

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

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Scroll Progress ========== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  z-index: 1200;
  background: linear-gradient(90deg, var(--accent), #ffe29f);
  box-shadow: 0 0 10px rgba(249, 178, 51, 0.6);
}

/* ========== Navbar ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--tr);
}

.header.scrolled {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.06rem;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--muted);
  transition: var(--tr);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

.menu-btn {
  display: none;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform var(--tr), background var(--tr), border-color var(--tr), color var(--tr);
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-primary:hover {
  background: #e5a229;
}

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

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: 9px 14px;
  font-size: 0.88rem;
}

/* ========== Hero ========== */
.hero {
  padding-top: clamp(90px, 12vw, 128px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-kicker {
  color: var(--accent);
  margin-bottom: 8px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.9rem);
  line-height: 1.15;
}

.hero h2 {
  margin-top: 8px;
  color: var(--accent);
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
}

.hero-text {
  margin-top: 14px;
  color: var(--muted);
  max-width: 50ch;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ========== What I Do ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  padding: 20px;
  transition: transform var(--tr), border-color var(--tr), box-shadow var(--tr);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 178, 51, 0.45);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.service-card h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  margin-bottom: 10px;
}

.service-card h4 i {
  color: var(--accent);
}

.service-card p {
  color: var(--muted);
}

.hero-photo-wrap {
  position: relative;
  justify-self: center;
}

.hero-glow {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 178, 51, 0.35), transparent 65%);
  filter: blur(16px);
  z-index: -1;
}

.hero-photo {
  width: min(360px, 84vw);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ========== About ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.about-card {
  padding: 24px;
}

.about-card p {
  color: var(--muted);
}

.about-info {
  display: grid;
  gap: 12px;
}

.info-item,
.about-detail-row {
  padding: 18px;
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  gap: 12px;
}

.info-item span,
.about-detail-row span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.about-detail-row strong {
  color: var(--text);
}

/* ========== Skills ========== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.skill-card {
  padding: 20px;
}

.skill-card h4 {
  color: #f3f3f3;
  margin-bottom: 10px;
}

.skill {
  margin-bottom: 12px;
}

.skill-card .track {
  margin-top: 6px;
}

.skill > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #ddd;
  font-size: 0.92rem;
}

.track {
  width: 100%;
  height: 9px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ffe29f);
  transition: width 1.2s ease;
}

/* ========== Projects ========== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  padding: 20px;
  transition: transform var(--tr), border-color var(--tr);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 178, 51, 0.45);
}

.project-card p {
  color: var(--accent);
  font-size: 0.9rem;
  margin: 8px 0;
}

.project-card ul {
  color: var(--muted);
  margin-bottom: 16px;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ========== Education ========== */
.education-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.education-card {
  padding: 20px;
  border-top: 2px solid rgba(249, 178, 51, 0.65);
  transition: transform var(--tr), border-color var(--tr);
}

.education-card:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 178, 51, 0.95);
}

.edu-year {
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
}

.edu-school {
  color: #cfcfcf;
  font-size: 0.88rem;
  letter-spacing: 0.4px;
  margin-top: 8px;
}

.edu-score {
  color: var(--muted);
  margin-top: 14px;
  font-size: 0.92rem;
}

/* ========== Experience ========== */
.timeline {
  position: relative;
  margin-left: 8px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(249, 178, 51, 0.35);
}

.timeline-item {
  position: relative;
  padding-left: 42px;
  margin-bottom: 22px;
}

.dot {
  position: absolute;
  left: 0;
  top: 16px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(249, 178, 51, 0.2);
}

.timeline-card {
  padding: 18px;
}

.timeline-card .meta {
  color: var(--accent);
  margin: 6px 0 8px;
  font-size: 0.9rem;
}

.timeline-card ul {
  color: var(--muted);
}

/* ========== Contact ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 16px;
}

.contact-info,
.contact-form {
  padding: 20px;
}

.contact-info p {
  color: #ddd;
  margin-bottom: 12px;
}

.contact-info i {
  color: var(--accent);
  margin-right: 8px;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

/* ========== Footer ========== */
.footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

.footer p {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ========== Responsive ========== */
@media (max-width: 980px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .education-grid,
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .menu-btn {
    display: block;
  }

  .nav-links {
    position: absolute;
    right: 4%;
    top: 72px;
    width: min(220px, 90vw);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(16, 16, 16, 0.95);
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    transform: scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: var(--tr);
  }

  .nav-links.open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  .skills-grid,
  .services-grid,
  .education-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .about-detail-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
