/* ---------- Variables ---------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-card: #ffffff;
  --text: #1b2430;
  --text-muted: #5c6773;
  --heading: #0f172a;
  --accent: #0f766e;
  --accent-dim: rgba(15, 118, 110, 0.08);
  --card-border: rgba(15, 23, 42, 0.1);
  --max-width: 1100px;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: 0.25s ease;
}

/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--accent);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

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

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -10px rgba(15, 118, 110, 0.5);
}

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

.btn--outline:hover {
  background: var(--accent-dim);
  transform: translateY(-3px);
}

.btn--small {
  padding: 8px 16px;
  font-size: 0.8rem;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--card-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

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

.nav__list {
  display: flex;
  gap: 32px;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
  position: relative;
}

.nav__link:hover {
  color: var(--accent);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--accent);
  transition: transform var(--transition), opacity var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__greeting {
  color: var(--accent);
  font-family: var(--font-heading);
  margin-bottom: 12px;
  font-size: 1rem;
}

.hero__name {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 24px;
}

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

.hero__desc {
  max-width: 540px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

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

.hero__photo {
  display: flex;
  justify-content: center;
}

.hero__photo-frame {
  width: 260px;
  height: 260px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 8px var(--accent-dim), 0 12px 30px rgba(15, 23, 42, 0.1);
  background: var(--bg-card);
}

.hero__photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Sections ---------- */
.section {
  padding: 100px 0;
}

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

.section__heading {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--heading);
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.section__heading::after {
  content: '';
  height: 1px;
  width: 100%;
  background: rgba(91, 103, 115, 0.3);
  margin-left: 16px;
}

.section__heading--center {
  justify-content: center;
}

.section__heading--center::after {
  display: none;
}

.section__num {
  color: var(--accent);
  font-weight: 500;
}

.subheading {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--heading);
  margin: 56px 0 24px;
}

/* ---------- About ---------- */
.about__text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  max-width: 720px;
}

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.skills__group h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-list li {
  background: var(--bg-card);
  border: 1px solid rgba(15, 118, 110, 0.2);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.pill-list--small li {
  font-size: 0.75rem;
  padding: 4px 10px;
}

.cert__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.cert__card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 20px 24px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.cert__card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.cert__card h4 {
  font-family: var(--font-heading);
  color: var(--heading);
  margin-bottom: 6px;
  font-size: 1rem;
}

.cert__card p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Timeline (Experience / Education) ---------- */
.timeline__item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(91, 103, 115, 0.15);
}

.timeline__item:last-child {
  border-bottom: none;
}

.timeline__date {
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
}

.timeline__content h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--heading);
  margin-bottom: 12px;
}

.timeline__content h3 span {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.95rem;
}

.timeline__content ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline__content li {
  position: relative;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.timeline__content li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.timeline__content p {
  color: var(--text-muted);
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.1);
}

.project-card h3 {
  font-family: var(--font-heading);
  color: var(--heading);
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.project-card__link:hover {
  text-decoration: underline;
}

.project-card__link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ---------- Contact ---------- */
.contact__inner {
  text-align: center;
  max-width: 760px;
}

.contact__intro {
  color: var(--text-muted);
  margin-bottom: 40px;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.contact__card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.contact__card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.contact__icon {
  font-size: 1.6rem;
  color: var(--accent);
}

.contact__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact__value {
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact__form input,
.contact__form textarea {
  background: var(--bg-card);
  border: 1px solid rgba(91, 103, 115, 0.3);
  border-radius: 6px;
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  resize: vertical;
}

.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact__form button {
  align-self: center;
  cursor: pointer;
}

/* ---------- Footer ---------- */
.footer {
  padding: 32px 0;
  border-top: 1px solid rgba(91, 103, 115, 0.15);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer__top {
  color: var(--accent);
}

/* ---------- Reveal animation ---------- */
.section, .hero {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.is-visible, .hero.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__photo {
    order: -1;
  }

  .timeline__item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 700px) {
  .nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform var(--transition);
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav__list {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .nav__link {
    font-size: 1.3rem;
  }

  .nav__toggle {
    display: flex;
  }

  .header__actions .btn--small {
    display: none;
  }

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