/* ================================================================
   Nina Jallali Portfolio — styles.css
   nina.tarninacollection.com
   ================================================================ */

/* Design tokens — visually related to TarNina but more professional */
:root {
  --ivory:    #F8F3EC;
  --navy:     #101827;
  --navy-mid: #1c2d42;
  --gold:     #B89A63;
  --sand:     #D8C6AE;
  --charcoal: #222222;
  --white:    #FFFFFF;
  --muted:    #5a5049;

  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body:    Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;

  --radius:    2px;
  --radius-md: 6px;

  --shadow-sm: 0 2px 12px rgba(16,24,39,0.07);
  --shadow-md: 0 6px 28px rgba(16,24,39,0.12);
  --shadow-lg: 0 16px 56px rgba(16,24,39,0.2);

  --transition: 0.3s ease;
  --max-width:  1280px;
  --nav-h:      72px;
}

/* ----------------------------------------------------------------
   Reset & Base
   ---------------------------------------------------------------- */

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background-color: var(--ivory);
  color: var(--charcoal);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

.skip-link {
  position: absolute;
  top: -200%;
  left: var(--space-sm);
  background: var(--navy);
  color: var(--ivory);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  z-index: 200;
  transition: top var(--transition);
}
.skip-link:focus { top: var(--space-sm); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-md);
}

/* ----------------------------------------------------------------
   Typography
   ---------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(1.625rem, 3vw, 2.625rem); }
h3 { font-size: clamp(1.0625rem, 1.8vw, 1.5rem); }
h4 { font-size: clamp(0.875rem, 1.4vw, 1.0625rem); }
p  { font-size: clamp(0.9375rem, 1.4vw, 1.0625rem); line-height: 1.8; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
}

/* ----------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.875rem 2.25rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  border: 1.5px solid transparent;
  cursor: pointer;
}

.btn-navy {
  background-color: var(--navy);
  color: var(--ivory);
  border-color: var(--navy);
}
.btn-navy:hover { background-color: var(--navy-mid); }

.btn-outline-navy {
  background-color: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-navy:hover { background-color: var(--navy); color: var(--ivory); }

.btn-gold {
  background-color: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover { background-color: transparent; color: var(--gold); }

.btn-outline-ivory {
  background-color: transparent;
  color: var(--ivory);
  border-color: rgba(248,243,236,0.6);
}
.btn-outline-ivory:hover { background-color: var(--ivory); color: var(--navy); }

/* ----------------------------------------------------------------
   Layout
   ---------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3.5rem);
}

.section { padding-block: clamp(4rem, 8vw, 6.5rem); }

.section-header { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-header .eyebrow { margin-bottom: var(--space-sm); }
.section-header h2 { margin-bottom: var(--space-sm); }
.section-header p { max-width: 600px; margin-inline: auto; color: var(--muted); }

.gold-rule {
  display: block;
  width: 40px;
  height: 1px;
  background-color: var(--gold);
  margin: var(--space-sm) auto;
}

/* ----------------------------------------------------------------
   Header
   ---------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0; right: 0;
  inset-inline: 0;
  height: var(--nav-h);
  background-color: rgba(248,243,236,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(184,154,99,0.18);
  z-index: 100;
}

.header-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  letter-spacing: 0.06em;
  color: var(--navy);
  flex-shrink: 0;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.site-nav a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background-color: var(--gold);
  transition: width var(--transition);
}
.site-nav a:hover { color: var(--gold); }
.site-nav a:hover::after { width: 100%; }

.nav-cta-link {
  padding: 0.45rem 1rem;
  border: 1px solid rgba(184,154,99,0.5);
  border-radius: var(--radius);
  transition: all var(--transition) !important;
}
.nav-cta-link:hover {
  background-color: var(--navy) !important;
  color: var(--ivory) !important;
  border-color: var(--navy) !important;
}
.nav-cta-link:hover::after { width: 0 !important; }

.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  width: 32px; height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 4px;
  flex-shrink: 0;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 100%; height: 1.5px;
  background-color: var(--navy);
  transition: all var(--transition);
  position: relative;
}
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: '';
  position: absolute;
}
.nav-toggle-label span::before { top: -6px; }
.nav-toggle-label span::after  { top:  6px; }
.nav-toggle:checked + .nav-toggle-label span { background-color: transparent; }
.nav-toggle:checked + .nav-toggle-label span::before { transform: rotate(45deg); top: 0; }
.nav-toggle:checked + .nav-toggle-label span::after  { transform: rotate(-45deg); top: 0; }

@media (max-width: 860px) {
  .nav-toggle-label { display: flex; }
  .site-nav {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    inset-inline: 0;
    background-color: var(--ivory);
    border-bottom: 1px solid rgba(184,154,99,0.2);
    padding: var(--space-md) clamp(1.25rem, 5vw, 3.5rem);
    z-index: 99;
  }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
  .site-nav a { font-size: 0.9375rem; }
}

/* ----------------------------------------------------------------
   Hero
   ---------------------------------------------------------------- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--nav-h);
  background-color: var(--navy);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.hero-image {
  overflow: hidden;
  position: relative;
  order: -1;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(16,24,39,0.3) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 6vw, 6rem) clamp(2rem, 5vw, 5rem);
  color: var(--ivory);
}

.hero-eyebrow { color: var(--gold); margin-bottom: 1.25rem; }

.hero h1 {
  color: var(--ivory);
  line-height: 1.05;
  margin-bottom: 0.625rem;
}

.hero-title-role {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.0625rem, 2vw, 1.375rem);
  color: var(--sand);
  margin-bottom: 1.5rem;
  display: block;
}

.hero-desc {
  color: rgba(248,243,236,0.75);
  max-width: 460px;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  line-height: 1.8;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-image {
    order: 0;
    height: 65vw;
    min-height: 280px;
    max-height: 460px;
  }
  .hero-content {
    padding: var(--space-lg) var(--space-sm) var(--space-xl);
  }
}

/* ----------------------------------------------------------------
   About
   ---------------------------------------------------------------- */

.about { background-color: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.about-portrait {
  position: relative;
}
.about-portrait img {
  width: 100%;
  height: clamp(320px, 45vw, 560px);
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
}
.about-portrait-frame {
  position: absolute;
  inset: 12px -12px -12px 12px;
  border: 1px solid rgba(184,154,99,0.3);
  border-radius: var(--radius);
  z-index: -1;
}

.about-text .eyebrow { margin-bottom: 1rem; }
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { color: var(--muted); margin-bottom: 1rem; }
.about-text p:last-of-type { margin-bottom: 0; }

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .about-portrait-frame { display: none; }
  .about-portrait img { height: 65vw; min-height: 220px; }
}

/* ----------------------------------------------------------------
   Strengths
   ---------------------------------------------------------------- */

.strengths { background-color: var(--ivory); }

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.strength-card {
  background-color: var(--white);
  border: 1px solid rgba(184,154,99,0.2);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.strength-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(184,154,99,0.5);
}

.strength-icon {
  width: 36px; height: 36px;
  background-color: rgba(184,154,99,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.strength-icon::after {
  content: '';
  display: block;
  width: 10px; height: 10px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg) translate(-1px, 1px);
}

.strength-card h3 {
  font-size: 0.9375rem;
  color: var(--navy);
  margin-bottom: 0.375rem;
}
.strength-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 960px) { .strengths-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .strengths-grid { grid-template-columns: 1fr; } }

/* ----------------------------------------------------------------
   Experience Timeline
   ---------------------------------------------------------------- */

.experience { background-color: var(--white); }

.timeline {
  position: relative;
  max-width: 860px;
  margin-inline: auto;
}

/* vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 156px;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(184,154,99,0.4) 5%, rgba(184,154,99,0.4) 95%, transparent);
}

.timeline-item {
  display: grid;
  grid-template-columns: 156px 1fr;
  gap: 2.5rem;
  padding-bottom: var(--space-xl);
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }

/* dot on the line */
.timeline-item::after {
  content: '';
  position: absolute;
  left: 150px;
  top: 6px;
  width: 13px; height: 13px;
  background-color: var(--white);
  border: 2px solid var(--gold);
  border-radius: 50%;
}

.timeline-meta {
  text-align: right;
  padding-top: 3px;
}

.timeline-period {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.25rem;
}

.timeline-location {
  font-size: 0.8125rem;
  color: rgba(34,34,34,0.5);
  font-style: italic;
}

.timeline-content { padding-top: 0; }

.timeline-role {
  font-family: var(--font-heading);
  font-size: clamp(1.0625rem, 1.8vw, 1.3125rem);
  color: var(--navy);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.timeline-company {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.875rem;
  display: block;
}

.timeline-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.timeline-content li {
  font-size: 0.9375rem;
  color: var(--muted);
  padding-left: 1rem;
  position: relative;
  line-height: 1.65;
}
.timeline-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px; height: 4px;
  background-color: var(--gold);
  border-radius: 50%;
}

/* Featured items (Montblanc, Dupont) */
.timeline-item--featured .timeline-content {
  padding: 1.5rem 1.75rem;
  background-color: var(--ivory);
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
}

@media (max-width: 640px) {
  .timeline::before { display: none; }
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0.375rem;
    padding-bottom: var(--space-lg);
  }
  .timeline-item::after { display: none; }
  .timeline-meta { text-align: left; }
  .timeline-item--featured .timeline-content { border-left-width: 2px; }
}

/* ----------------------------------------------------------------
   TarNina Project
   ---------------------------------------------------------------- */

.tarnina-project {
  background-color: var(--navy);
  overflow: hidden;
}

.tarnina-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.tarnina-media { overflow: hidden; }
.tarnina-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}

.tarnina-content {
  padding: clamp(3rem, 6vw, 6rem) clamp(2rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--ivory);
}

.tarnina-content .eyebrow { color: var(--sand); margin-bottom: 1rem; }
.tarnina-content h2 { color: var(--ivory); margin-bottom: 1.5rem; }
.tarnina-content p { color: rgba(248,243,236,0.75); margin-bottom: 1rem; max-width: 460px; }
.tarnina-content p:last-of-type { margin-bottom: 0; }

.tarnina-cta { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-top: var(--space-md); }

@media (max-width: 768px) {
  .tarnina-grid { grid-template-columns: 1fr; min-height: auto; }
  .tarnina-media { height: 56vw; min-height: 220px; }
}

/* ----------------------------------------------------------------
   Education & Languages
   ---------------------------------------------------------------- */

.education { background-color: var(--ivory); }

.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}

.edu-subheading {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: var(--space-md);
}

.edu-item {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(184,154,99,0.2);
}
.edu-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.edu-degree {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.edu-institution {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.375rem;
  display: block;
}

.edu-year {
  font-size: 0.8125rem;
  color: var(--muted);
  font-style: italic;
}

.edu-thesis {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.375rem;
  line-height: 1.6;
}

.lang-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.lang-flag {
  width: 8px; height: 8px;
  background-color: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.lang-name {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  color: var(--navy);
  min-width: 80px;
}

.lang-note {
  font-size: 0.8125rem;
  color: var(--muted);
  font-style: italic;
}

@media (max-width: 640px) {
  .edu-grid { grid-template-columns: 1fr; gap: var(--space-md); }
}

/* ----------------------------------------------------------------
   Contact
   ---------------------------------------------------------------- */

.contact { background-color: var(--white); }

.contact-inner {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
.contact-inner .eyebrow { margin-bottom: var(--space-sm); }
.contact-inner h2 { margin-bottom: var(--space-sm); }
.contact-inner > p {
  color: var(--muted);
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.contact-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.contact-card {
  flex: 1 1 200px;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.75rem 1.25rem;
  border: 1px solid rgba(184,154,99,0.3);
  border-radius: var(--radius);
  transition: all var(--transition);
  color: var(--charcoal);
}
.contact-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
  background-color: var(--ivory);
}

.contact-label {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.contact-value {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  color: var(--navy);
  text-align: center;
  word-break: break-word;
}

.contact-note {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 1.5rem;
}

.cv-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-md);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid rgba(184,154,99,0.4);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}
.cv-download:hover { color: var(--navy); border-color: var(--navy); }

/* ----------------------------------------------------------------
   Footer
   ---------------------------------------------------------------- */

.site-footer {
  background-color: var(--navy);
  padding-block: clamp(3rem, 6vw, 5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.footer-brand .site-logo { font-size: 1.125rem; color: var(--ivory); }
.footer-brand p {
  color: rgba(248,243,236,0.55);
  font-size: 0.9375rem;
  max-width: 280px;
  margin-top: 0.875rem;
  line-height: 1.7;
}

.footer-heading {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  display: block;
}

.footer-links li { margin-bottom: 0.625rem; }
.footer-links a {
  font-size: 0.9375rem;
  color: rgba(248,243,236,0.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--ivory); }

.footer-bottom {
  border-top: 1px solid rgba(248,243,236,0.1);
  padding-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
}
.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(248,243,236,0.3);
}
.footer-bottom a {
  font-size: 0.8125rem;
  color: rgba(248,243,236,0.4);
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--gold); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-md); }
}
