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

:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #3b82f6;
  --accent-dark: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --text: #334155;
  --text-light: #64748b;
  --white: #ffffff;
  --gray-bg: #f8fafc;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.1);
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.nav--scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

.nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

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

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}

.nav__link:hover, .nav__link.active {
  color: var(--accent);
  background: var(--accent-glow);
}

.nav__link--cta {
  background: var(--accent);
  color: var(--white) !important;
  margin-left: 8px;
}

.nav__link--cta:hover {
  background: var(--accent-dark) !important;
}

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

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59,130,246,0.3);
}

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

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

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

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, var(--accent-glow), transparent),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(59,130,246,0.06), transparent),
    var(--gray-bg);
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__greeting {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero__name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--primary);
  margin-bottom: 12px;
}

.hero__role {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.hero__divider {
  color: var(--accent);
  margin: 0 8px;
}

.hero__summary {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: 40px;
}

.stat {
  text-align: center;
}

.stat__number {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat__label {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--gray-bg);
}

.section__title {
  font-size: 2rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.section__title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* ===== ABOUT ===== */
.about__content p {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.about__content strong {
  color: var(--primary);
}

/* ===== SKILLS ===== */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-card {
  background: var(--white);
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.skill-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.skill-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: 10px;
  color: var(--accent);
  margin-bottom: 16px;
}

.skill-card__icon svg {
  width: 22px;
  height: 22px;
}

.skill-card__title {
  font-size: 1rem;
  margin-bottom: 12px;
}

.skill-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gray-bg);
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.tag--sm {
  padding: 3px 10px;
  font-size: 0.75rem;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 32px;
}

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

.timeline__item {
  position: relative;
  margin-bottom: 40px;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline__marker {
  position: absolute;
  left: -32px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--accent);
  z-index: 1;
}

.timeline__item:first-child .timeline__marker {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.timeline__content {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.timeline__content:hover {
  box-shadow: var(--shadow);
}

.timeline__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.timeline__role {
  font-size: 1.15rem;
  color: var(--primary);
}

.timeline__company {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
}

.timeline__team {
  font-weight: 400;
  color: var(--text-light);
}

.timeline__date {
  font-size: 0.85rem;
  color: var(--text-light);
  background: var(--gray-bg);
  padding: 4px 12px;
  border-radius: 6px;
  white-space: nowrap;
  font-weight: 500;
}

.timeline__summary {
  color: var(--text);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.timeline__list {
  list-style: none;
  padding: 0;
}

.timeline__list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
}

.timeline__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.timeline__list strong {
  color: var(--primary);
}

/* ===== PROJECTS ===== */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.project-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.project-card__badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--accent-glow);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-card__title {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.project-card__text {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.7;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ===== EDUCATION & AWARDS ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.edu-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.edu-card__year {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.edu-card__degree {
  font-size: 1rem;
  margin-bottom: 2px;
}

.edu-card__school {
  color: var(--text-light);
  font-size: 0.9rem;
}

.edu-card__grade {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 4px;
}

.awards {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.award {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.award__year {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  min-width: 44px;
}

.award p {
  font-size: 0.9rem;
  color: var(--text);
}

/* ===== CONTACT ===== */
.contact {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, #1e3a5f 100%);
  text-align: center;
}

.contact__title {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 12px;
}

.contact__title::after {
  display: none;
}

.contact__text {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.contact__links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.contact__card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.contact__card:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.contact__card svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ===== FOOTER ===== */
.footer {
  padding: 24px 0;
  background: var(--primary);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer p {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 24px;
    box-shadow: -4px 0 20px rgba(0,0,0,0.08);
    transition: right var(--transition);
    z-index: 99;
  }

  .nav__links.active {
    right: 0;
  }

  .nav__link {
    padding: 12px 16px;
    font-size: 1rem;
  }

  .nav__link--cta {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
  }

  .nav__toggle {
    display: flex;
    z-index: 100;
  }

  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero__name {
    font-size: 2.2rem;
  }

  .hero__role {
    font-size: 1rem;
  }

  .hero__stats {
    gap: 24px;
  }

  .stat__number {
    font-size: 1.5rem;
  }

  .section {
    padding: 60px 0;
  }

  .section__title {
    font-size: 1.6rem;
  }

  .skills__grid {
    grid-template-columns: 1fr;
  }

  .projects__grid {
    grid-template-columns: 1fr;
  }

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

  .timeline {
    padding-left: 24px;
  }

  .timeline__marker {
    left: -24px;
    width: 12px;
    height: 12px;
  }

  .timeline__header {
    flex-direction: column;
  }

  .timeline__content {
    padding: 20px;
  }

  .contact__links {
    flex-direction: column;
    align-items: center;
  }

  .contact__card {
    width: 100%;
    max-width: 340px;
    justify-content: center;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .skills__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
