/* ============================================================
   DANI L. GORDON — PERSONAL LANDING PAGE
   css/stylesheet.css
   ============================================================ */

/* ---- CSS Custom Properties --------------------------------- */
:root {
  --color-bg:          #fdf6f9;
  --color-bg-alt:      #f5e6ee;
  --color-text:        #1a1a2e;
  --color-text-muted:  #5a5a72;
  --color-accent:      #b5547a;
  --color-accent-dark: #8c3d5e;
  --color-accent-pale: #f0c6d8;
  --color-border:      #e8cedd;
  --color-card-bg:     #ffffff;
  --color-nav-bg:      rgba(253, 246, 249, 0.95);

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --max-width:    820px;
  --section-pad:  64px;
  --radius-card:  12px;
  --radius-pill:  100px;

  --shadow-card:  0 2px 16px rgba(181, 84, 122, 0.08);
  --shadow-card-hover: 0 6px 24px rgba(181, 84, 122, 0.16);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-nav-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  align-items: center;
  justify-content: flex-end;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: 4px 2px;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--color-accent);
  text-decoration: none;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(160deg, var(--color-bg-alt) 0%, var(--color-bg) 60%);
  padding: 72px 24px 80px;
  text-align: center;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.headshot {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 4px solid var(--color-accent);
  box-shadow: 0 4px 24px rgba(181, 84, 122, 0.18);
  margin-bottom: 8px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

.tagline {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.02em;
}

.hero-location {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.btn-primary {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 32px;
  background-color: var(--color-accent);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 10px rgba(181, 84, 122, 0.25);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--color-accent-dark);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(181, 84, 122, 0.35);
}

/* ============================================================
   SECTIONS — SHARED
   ============================================================ */
.section {
  padding: var(--section-pad) 0;
}

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

.section h2 {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 32px;
  position: relative;
  padding-bottom: 14px;
}

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

/* ============================================================
   BIO
   ============================================================ */
#about p {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--color-text);
  max-width: 680px;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-group {
  margin-bottom: 28px;
}

.skills-group:last-child {
  margin-bottom: 0;
}

.skills-group h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.tag {
  display: inline-block;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1;
}

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

.tag-secondary {
  background-color: var(--color-accent-pale);
  color: var(--color-accent-dark);
}

.tag-tertiary {
  background-color: #f0eaf4;
  color: #5c3d6b;
  border: 1px solid #d9c8e8;
}

/* ============================================================
   WORK EXPERIENCE
   ============================================================ */
.exp-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease;
}

.exp-card:last-child {
  margin-bottom: 0;
}

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

.exp-header {
  margin-bottom: 20px;
}

.exp-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2px;
}

.exp-location {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.exp-role {
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.exp-role:first-of-type {
  border-top: none;
  padding-top: 0;
}

.exp-role-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

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

.role-date {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.exp-role ul {
  list-style: disc;
  padding-left: 20px;
  color: var(--color-text);
}

.exp-role ul li {
  margin-bottom: 6px;
  font-size: 0.98rem;
  line-height: 1.6;
}

.exp-role ul li:last-child {
  margin-bottom: 0;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.project-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.project-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.project-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 14px;
  background-color: var(--color-accent-pale);
  color: var(--color-accent-dark);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.project-tech {
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 500;
}

.project-card p:not(.project-tech) {
  font-size: 0.96rem;
  color: var(--color-text);
  line-height: 1.65;
}

/* ============================================================
   EDUCATION
   ============================================================ */
.edu-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

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

.edu-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.edu-degree {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 4px;
}

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

.edu-date {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  padding-top: 4px;
}

.edu-details {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
}

.edu-details li {
  font-size: 0.96rem;
  color: var(--color-text);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-container {
  text-align: center;
}

.contact-container h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.contact-intro {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  list-style: none;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background-color: var(--color-card-bg);
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-card);
}

.contact-badge:hover,
.contact-badge:focus-visible {
  background-color: var(--color-accent);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(181, 84, 122, 0.3);
}

.contact-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--color-text);
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
  padding: 24px;
  font-size: 0.85rem;
}

/* ============================================================
   RESPONSIVE — TABLET (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --section-pad: 48px;
  }

  .hero {
    padding: 56px 20px 64px;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

  .exp-card,
  .edu-card {
    padding: 22px 20px;
  }

  .nav-links {
    gap: 4px 14px;
  }

  .nav-links a {
    font-size: 0.85rem;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (max 480px)
   ============================================================ */
@media (max-width: 480px) {
  :root {
    --section-pad: 40px;
  }

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

  .nav-inner {
    flex-direction: column;
    height: auto;
    padding: 12px 16px;
    gap: 8px;
  }

  .nav-links {
    justify-content: center;
    gap: 4px 12px;
  }

  .headshot {
    width: 170px;
    height: 170px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .section h2 {
    font-size: 1.55rem;
  }

  .exp-role-title {
    flex-direction: column;
    gap: 2px;
  }

  .edu-header {
    flex-direction: column;
  }

  .contact-badge {
    width: 100%;
    justify-content: center;
  }

  .contact-links {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE (max 375px)
   ============================================================ */
@media (max-width: 375px) {
  body {
    font-size: 1rem;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

  .headshot {
    width: 148px;
    height: 148px;
  }

  .hero h1 {
    font-size: 1.55rem;
  }

  .btn-primary {
    padding: 10px 24px;
    font-size: 0.9rem;
  }

  .tag {
    font-size: 0.82rem;
    padding: 5px 14px;
  }
}
