/* ============================================================
   TABLE OF CONTENTS
   1. CSS Custom Properties (Design Tokens)
   2. Reset & Base
   3. Typography
   4. Layout Utilities
   5. Components
      5a. Buttons
      5b. Section Labels
   6. Navigation
   7. Hero
   8. About
   9. Projects
   10. Experience
   11. Contact
   12. Footer
   13. Animations & Scroll Reveal
   14. Media Queries
============================================================ */


/* ============================================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
============================================================ */

:root {
  /* Colors */
  --color-bg:         #fdf8fc;
  --color-text:       #2d1f35;
  --color-muted:      #9b82a8;
  --color-accent:     #9b6dbd;
  --color-border:     #e8d9f0;
  --color-card:       #fefaff;
  --color-card-hover: #f7effe;
  --color-body-text:  #4a3358;
  --color-subtle:     #7a5c8a;

  /* Typography */
  --font-serif:  Georgia, serif;
  --font-mono:   'DM Mono', monospace;

  /* Spacing */
  --space-section-x: 5vw;
  --space-section-y: 6rem;

  /* Transitions */
  --transition-base: 0.2s ease;
  --transition-reveal: 0.7s ease;

  /* Nav height */
  --nav-height: 80px;
}

body {
  background: linear-gradient(160deg, #fdf8fc 0%, #f9f0fa 40%, #fdf0f5 100%);
  background-attachment: fixed;
}


/* ============================================================
   2. RESET & BASE
============================================================ */

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

html {
  scroll-behavior: smooth;
}

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

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

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
}


/* ============================================================
   3. TYPOGRAPHY
============================================================ */

h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}


/* ============================================================
   4. LAYOUT UTILITIES
============================================================ */

.section {
  padding: var(--space-section-y) var(--space-section-x);
  max-width: 1000px;
  margin: 0 auto;
}

.section + .section {
  border-top: 1px solid var(--color-border);
}


/* ============================================================
   5a. COMPONENTS — BUTTONS
============================================================ */

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.8rem;
  border: 1.5px solid var(--color-text);
  color: var(--color-text);
  background: transparent;
  transition: background var(--transition-base), color var(--transition-base);
  cursor: pointer;
}

.btn:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn--fill {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn--fill:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
}


/* ============================================================
   5b. COMPONENTS — SECTION LABELS
============================================================ */

.section__label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 3rem;
}

.section__label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.section__label--centered {
  justify-content: center;
}

.section__label--centered::after {
  display: none;
}


/* ============================================================
   6. NAVIGATION
============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem var(--space-section-x);
  background: rgba(253, 248, 252, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav__logo {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--color-text);
}

.nav__links {
  display: flex;
  gap: 2.5rem;
}

.nav__links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-muted);
  transition: color var(--transition-base);
}

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


/* ============================================================
   7. HERO
============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  gap: 6rem;
  padding: 0 var(--space-section-x);
  padding-top: var(--nav-height);
  max-width: 1200px;
}

.hero__left {
  flex: 0 0 auto;
}

.hero__right {
  flex: 0 0 680px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 0.5rem;
  border-left: 1px solid var(--color-border);
  padding-left: 4rem;
  opacity: 0;
  animation: fadeUp 0.7s forwards 1.0s;
}

.hero__tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.6s forwards 0.2s;
}

.hero__heading {
  opacity: 0;
  animation: fadeUp 0.7s forwards 0.4s;
}

.hero__heading em {
  font-style: italic;
  color: var(--color-accent);
}

.hero__sub {
  margin-top: 2rem;
  max-width: 480px;
  font-size: 1.05rem;
  color: var(--color-subtle);
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 0.7s forwards 0.6s;
}

.hero__quote {
  position: relative;
  padding: 2rem 2rem 2rem 2.5rem;
  border-left: 3px solid var(--color-accent);
  background: var(--color-card);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.hero__quote::before {
  content: '\201C';
  position: absolute;
  top: -0.5rem;
  left: 1.25rem;
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.2;
}

.hero__quote p {
  font-size: 0.95rem;
  color: var(--color-subtle);
  line-height: 1.85;
  font-style: italic;
  margin: 0;
}

.hero__quote cite {
  display: block;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-style: normal;
}

.hero__cta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.7s forwards 0.8s;
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
  }

  .hero__right {
    border-left: none;
    border-top: 1px solid var(--color-border);
    padding-left: 0;
    padding-top: 2rem;
    max-width: 100%;
  }
}


/* ============================================================
   8. ABOUT
============================================================ */

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.about__image-wrap {
  position: relative;
}

.about__image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--color-border);
  display: block;
}

.about__image-accent {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 60%;
  aspect-ratio: 1;
  border: 2px solid var(--color-accent);
  z-index: -1;
}

.about__text p {
  color: var(--color-body-text);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

/* Skills list */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  background: var(--color-card);
}


/* ============================================================
   9. PROJECTS
============================================================ */

.projects h2 {
  margin-bottom: 2.5rem;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5px;
  background: var(--color-border);
  border: 1.5px solid var(--color-border);
}

.project-card {
  background: var(--color-card);
  padding: 2.5rem;
  transition: background var(--transition-base);
}

.project-card:hover {
  background: var(--color-card-hover);
}

.project-card:hover .project-card__arrow {
  transform: translateX(4px);
  color: var(--color-accent);
}

.project-card__number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.project-card__title {
  margin-bottom: 0.75rem;
}

.project-card__desc {
  font-size: 0.9rem;
  color: var(--color-subtle);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.project-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-card__tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.project-card__tags li {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--color-accent);
}

.project-card__arrow {
  font-size: 1rem;
  text-decoration: none;
  color: var(--color-muted);
  transition: transform var(--transition-base), color var(--transition-base);
}


/* ============================================================
   10. EXPERIENCE
============================================================ */

.experience h2 {
  margin-bottom: 3rem;
}

.experience__resume {
  margin-top: 2.5rem;
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0;
  width: 1px;
  background: var(--color-border);
}

.timeline__item {
  position: relative;
  padding-bottom: 3rem;
}

/* Timeline dot */
.timeline__item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.6rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
}

.timeline__date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 0.4rem;
}

.timeline__role {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.timeline__company {
  font-style: italic;
  color: var(--color-accent);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.timeline__desc {
  font-size: 0.9rem;
  color: var(--color-subtle);
  max-width: 600px;
  line-height: 1.7;
}


/* ============================================================
   11. CONTACT
============================================================ */

.contact {
  text-align: center;
  padding-top: 5rem;
  padding-bottom: 8rem;
}

.contact h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.03em;
}

.contact h2 em {
  font-style: italic;
  color: var(--color-accent);
}

.contact > p {
  color: var(--color-subtle);
  max-width: 420px;
  margin: 1.5rem auto 2.5rem;
}

.contact__links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact__link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text);
  padding-bottom: 2px;
  border-bottom: 1px solid var(--color-text);
  transition: color var(--transition-base), border-color var(--transition-base);
}

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


/* ============================================================
   12. FOOTER
============================================================ */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem var(--space-section-x);
  border-top: 1px solid var(--color-border);
}

.footer span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--color-muted);
}


/* ============================================================
   13. ANIMATIONS & SCROLL REVEAL
============================================================ */

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
}

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


/* ============================================================
   14. MEDIA QUERIES
============================================================ */

@media (max-width: 700px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about__image-placeholder {
    max-width: 260px;
  }

  .nav__links {
    gap: 1.25rem;
  }
}
