/* ============================================================
   TEODORA MILOS — Portfolio Stylesheet
   ============================================================ */

/* 1. CSS Custom Properties */
:root {
  --white:  #FFFFFF;
  --grey:   #F2F0EB;
  --cherry: #86000E;
  --blush:  #EBA2B1;
  --dark:   #2C2C2C;
  --mid:    #6b6b6b;
  --border: #ddd8d0;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', system-ui, sans-serif;

  --nav-h:    76px;
  --radius:   3px;
  --ease:     0.25s ease;
  --container: min(1140px, 92%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--dark);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

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

ul {
  list-style: none;
}

main {
  flex: 1;
  padding-top: var(--nav-h);
}

/* 3. Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
}

h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }

p {
  margin-bottom: 1.1em;
  font-size: 1.05rem;
}
p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 1rem;
}

.italic-cherry {
  font-style: italic;
  color: var(--cherry);
}

/* 4. Layout Utilities */
.container {
  width: var(--container);
  margin-inline: auto;
}

.section-white {
  background: var(--white);
  padding: 100px 0;
}

.section-grey {
  background: var(--grey);
  padding: 100px 0;
}

/* 5. Navigation */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  display: flex;
  align-items: center;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--container);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--cherry);
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.73rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dark);
  transition: color var(--ease);
  position: relative;
  padding-bottom: 3px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--cherry);
  transition: width var(--ease);
}

.nav-links a:hover {
  color: var(--cherry);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--cherry);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--dark);
  transition: var(--ease);
}

/* 6. Footer */
.site-footer {
  background: var(--grey);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--mid);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.73rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color var(--ease);
}

.footer-links a:hover {
  color: var(--cherry);
}

/* 7. Image Placeholders */
.img-placeholder {
  background: var(--grey);
  border: 2px dashed var(--blush);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blush);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 400;
}

/* 8. Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 18px 48px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--ease);
}

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

.btn-primary:hover {
  background: #6b000b;
  border-color: #6b000b;
}

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

.btn-outline:hover {
  background: var(--cherry);
  color: var(--white);
}

/* 9. Page Hero Heading */
.page-hero {
  padding: 80px 0 64px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

/* ============================================================
   10. HOME PAGE
   ============================================================ */
.home-hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--white);
  padding: 40px 24px;
}

.home-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 1.6rem;
}

.home-name {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 600;
  line-height: 0.95;
  margin-bottom: 3rem;
}

.home-name .first {
  display: block;
  color: var(--dark);
}

.home-name .last {
  display: block;
  font-style: italic;
  color: var(--cherry);
}

.home-cta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   11. ABOUT PAGE
   ============================================================ */
.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 72px;
  align-items: start;
}

.about-intro-text h1 {
  margin-bottom: 1.6rem;
}

.about-intro-text p {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--dark);
}

.about-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

/* Hobby cards */
.hobby-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.hobby-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--ease);
}

.hobby-card:hover {
  box-shadow: 0 6px 32px rgba(134, 0, 14, 0.1);
}

.hobby-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0;
  border: none;
  border-bottom: 2px dashed var(--blush);
}

.hobby-body {
  padding: 24px 26px 28px;
}

.hobby-body h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.hobby-body p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--mid);
  margin-bottom: 0;
}

/* Values / closing statement */
.values-text {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.values-text p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-style: italic;
  color: var(--cherry);
  line-height: 1.5;
}

/* ============================================================
   12. PROJECTS PAGE
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  padding-top: 16px;
}

.project-card {
  cursor: pointer;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--ease), transform var(--ease);
  position: relative;
}

.project-card:hover {
  box-shadow: 0 10px 40px rgba(134, 0, 14, 0.12);
  transform: translateY(-3px);
}

.project-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
}

.project-card-img .img-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  border-bottom: 2px dashed var(--blush);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(134, 0, 14, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--ease);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay span {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
}

.project-card-body {
  padding: 28px 30px 34px;
}

.tag {
  display: inline-block;
  background: var(--blush);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.project-card-body h3 {
  font-size: 1.7rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.project-card-body p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--mid);
  margin-bottom: 0;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44, 44, 44, 0.75);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.22s ease;
}

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

.modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--mid);
  cursor: pointer;
  line-height: 1;
  transition: color var(--ease);
  z-index: 1;
}

.modal-close:hover {
  color: var(--cherry);
}

.modal-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.modal-img-wrap .img-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  border-bottom: 2px dashed var(--blush);
}

.modal-content {
  padding: 36px 40px 44px;
}

.modal-content h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  margin-top: 12px;
}

.modal-desc {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--mid);
  margin-bottom: 24px;
}

.modal-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.modal-year {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  margin-right: 6px;
}

.skill-pill {
  display: inline-block;
  background: transparent;
  border: 1.5px solid var(--cherry);
  color: var(--cherry);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
}

/* ============================================================
   13. RESUME PAGE
   ============================================================ */
.resume-download-bar {
  padding: 40px 0 0;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.resume-section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--cherry);
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cherry);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1.5px var(--cherry);
}

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

.timeline-title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--dark);
}

.timeline-place {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--cherry);
  display: block;
  margin-top: 3px;
}

.timeline-date {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--mid);
  white-space: nowrap;
  padding-top: 3px;
}

.timeline-desc {
  font-size: 1rem;
  line-height: 1.78;
  color: var(--mid);
  margin-top: 10px;
  margin-bottom: 0;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Bullet lists within timeline items */
.timeline-bullets {
  list-style: none;
  margin-top: 12px;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-bullets li {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--mid);
  padding-left: 20px;
  position: relative;
}

.timeline-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blush);
}

/* Simple list for certifications, awards, volunteering */
.simple-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.simple-list li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--dark);
  padding-left: 20px;
  position: relative;
}

.simple-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cherry);
}

.simple-list li strong {
  font-weight: 500;
}

/* Side-by-side resume subsections */
.resume-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 768px) {
  .resume-two-col {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ============================================================
   14. CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: start;
}

.contact-info p {
  font-size: 1.05rem;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 48px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item .contact-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 5px;
}

.contact-item .contact-value {
  font-size: 1.05rem;
  color: var(--dark);
}

.contact-item .contact-value a {
  color: var(--dark);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color var(--ease), border-color var(--ease);
}

.contact-item .contact-value a:hover {
  color: var(--cherry);
  border-color: var(--cherry);
}

/* Form */
.form-group {
  margin-bottom: 28px;
}

.form-group label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--dark);
  padding: 14px 16px;
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--cherry);
  box-shadow: 0 0 0 3px rgba(134, 0, 14, 0.08);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--cherry);
}

.field-error {
  display: block;
  font-size: 0.82rem;
  color: var(--cherry);
  margin-top: 7px;
  letter-spacing: 0.03em;
}

.success-msg {
  display: none;
  background: rgba(235, 162, 177, 0.15);
  border: 1.5px solid var(--blush);
  border-radius: var(--radius);
  padding: 24px 28px;
  font-size: 1rem;
  color: var(--dark);
  margin-top: 20px;
  text-align: center;
}

.success-msg.visible {
  display: block;
}

@keyframes shake {
  0%,  100% { transform: translateX(0); }
  20%        { transform: translateX(-7px); }
  40%        { transform: translateX(7px); }
  60%        { transform: translateX(-4px); }
  80%        { transform: translateX(4px); }
}

.shake {
  animation: shake 0.36s ease;
}

/* ============================================================
   15. Responsive
   ============================================================ */
@media (max-width: 900px) {
  .about-intro-grid {
    grid-template-columns: 1fr;
  }

  .about-photo {
    position: static;
    max-width: 380px;
    width: 100%;
  }

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

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 15px 28px;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-toggle {
    display: flex;
  }

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

  .section-white,
  .section-grey {
    padding: 64px 0;
  }

  .home-name {
    font-size: clamp(4rem, 18vw, 7rem);
  }

  .site-footer .container {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .home-cta {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .home-cta .btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .modal-content {
    padding: 28px 22px 36px;
  }
}
