/* ============================================================
   Ian Steinberg Portfolio — style.css
   Companion to index.html & about.html (Bootstrap 5)
   ============================================================ */

/* ─── Base ─── */
body {
  font-family: 'DM Sans', sans-serif;
  color: #2c2c4a;
  background: #ffffff;
  overflow-x: hidden;
}

/* ─── Shared utilities ─── */
.script-text {
  font-family: 'Dancing Script', cursive;
  color: #8b84d7;
}

.section-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6e6e9a;
  margin-bottom: 10px;
}
.section-eyebrow.lavender { color: #8b84d7; }

.btn-pill {
  border-radius: 30px !important;
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 10px 26px;
  transition: transform 0.22s ease, background 0.22s ease,
              border-color 0.22s ease, color 0.22s ease;
}
.btn-pill:hover { transform: translateY(-2px); }

.btn-primary {
  background-color: #8b84d7 !important;
  border-color: #8b84d7 !important;
  color: #ffffff !important;
}
.btn-primary:hover {
  background-color: #7a73c9 !important;
  border-color: #7a73c9 !important;
}

/* ─── NAVBAR ─── */
#mainNav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(139, 132, 215, 0.12);
  transition: box-shadow 0.22s ease;
}
#mainNav.nav-scrolled {
  box-shadow: 0 2px 20px rgba(139, 132, 215, 0.15);
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1rem;
  color: #1a1a2e !important;
  letter-spacing: 0.02em;
}

.navbar-nav .nav-link {
  font-size: 0.83rem;
  font-weight: 500;
  color: #6e6e9a !important;
  letter-spacing: 0.05em;
  transition: color 0.22s ease;
  padding: 6px 0;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: #8b84d7 !important; }

.nav-cta {
  color: #8b84d7 !important;
  font-weight: 600 !important;
}

/* ─── HERO ─── */
.hero-section {
  position: relative;
  background: #ffffff;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  top: -140px;
  right: -180px;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, #dddaf5 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.hero-text-col { position: relative; z-index: 1; }

.hero-heading {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  line-height: 1.1;
  color: #1a1a2e;
}
.hero-heading .script-text { font-size: 1.12em; }

.hero-portrait-ring {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: #dddaf5;
  padding: 0;
  box-shadow:
    0 0 0 10px #eeeaf8,
    0 0 0 20px rgba(139, 132, 215, 0.15);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero-portrait-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
}

.hero-portrait-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.portrait-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #b8b3e8, #dddaf5);
}

/* ─── ABOUT (homepage section) ─── */
.about-section {
  background: #ffffff;
  padding-top: 90px;
  padding-bottom: 90px;
}

.about-photo-wrap {
  width: 100%;
  max-width: 320px;
  height: 380px;
  border-radius: 18px;
  overflow: hidden;
  background: #eeeaf8;
}

.about-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #b8b3e8 0%, #dddaf5 100%);
}

.about-heading {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  letter-spacing: 0.1em;
  color: #8b84d7;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.about-body {
  font-size: 0.93rem;
  line-height: 1.8;
  color: #3a3a5c;
  margin-bottom: 30px;
}

/* ─── SKILLS ─── */
.skills-section {
  background: #f5f4fc;
  padding-top: 90px;
  padding-bottom: 90px;
}

.skills-heading {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: #1a1a2e;
  line-height: 1.15;
  margin-bottom: 10px;
}
.skills-heading .script-text { font-size: 1.05em; }

.skills-sub {
  font-size: 0.88rem;
  color: #6e6e9a;
  line-height: 1.65;
}

.skill-name {
  font-size: 0.85rem;
  font-style: italic;
  color: #2c2c4a;
}
.skill-pct {
  font-size: 0.8rem;
  color: #6e6e9a;
  font-weight: 500;
}
.skill-track {
  height: 6px;
  background: rgba(139, 132, 215, 0.18);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
}
.skill-fill {
  height: 100%;
  background: #8b84d7;
  border-radius: 3px;
  transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.tags-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6e6e9a;
}
.tags-label.lavender { color: #8b84d7; }

.tag {
  display: inline-block;
  background: #eeeaf8;
  color: #3a3a5c;
  font-size: 0.76rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid #b8b3e8;
  white-space: nowrap;
}

/* ─── CONTACT ─── */
.contact-section {
  background: #dddaf5;
  padding-top: 90px;
  padding-bottom: 90px;
}

.contact-heading {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #1a1a2e;
  margin-bottom: 14px;
  line-height: 1.15;
}
.contact-heading .script-text { font-size: 1.05em; }

.contact-sub {
  font-size: 0.9rem;
  color: #3a3a5c;
  line-height: 1.75;
}

.contact-input {
  background: rgba(255, 255, 255, 0.75) !important;
  border: 1.5px solid rgba(139, 132, 215, 0.3) !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  font-size: 0.88rem !important;
  color: #2c2c4a !important;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.contact-input::placeholder { color: #6e6e9a !important; }
.contact-input:focus {
  border-color: #8b84d7 !important;
  box-shadow: 0 0 0 3px rgba(139, 132, 215, 0.18) !important;
  background: #ffffff !important;
  outline: none !important;
}

textarea.contact-input { resize: vertical; min-height: 130px; }

.contact-form .btn-outline-dark {
  border-color: #1a1a2e !important;
  color: #1a1a2e !important;
}
.contact-form .btn-outline-dark:hover {
  background: #1a1a2e !important;
  color: #ffffff !important;
}

/* ─── ABOUT PAGE ─── */
.about-page-hero {
  background: #1a1a2e;
  padding-top: 110px;
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.about-page-hero::before,
.about-page-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: #8b84d7;
  opacity: 0.85;
  pointer-events: none;
}
.about-page-hero::before {
  width: 220px; height: 220px;
  top: -60px; left: -70px;
}
.about-page-hero::after {
  width: 180px; height: 180px;
  top: 20px; right: -60px;
}

.about-hero-bubble {
  position: absolute;
  border-radius: 50%;
  background: #8b84d7;
  opacity: 0.8;
  pointer-events: none;
}
.about-hero-bubble.b1 { width: 130px; height: 130px; bottom: -40px; left: 10px; }
.about-hero-bubble.b2 { width: 160px; height: 160px; bottom: -60px; right: -40px; }

.about-hero-portrait {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  background: #dddaf5;
  border: 6px solid #8b84d7;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.about-hero-portrait img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.about-hero-portrait .portrait-placeholder {
  border-radius: 50%;
}

.about-page-body {
  background: #ffffff;
  padding: 70px 0 80px;
}

.about-page-heading {
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem;
  letter-spacing: 0.1em;
  color: #8b84d7;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.about-page-text p {
  font-size: 0.92rem;
  line-height: 1.85;
  color: #3a3a5c;
  margin-bottom: 18px;
}
.about-page-text p:last-child { margin-bottom: 0; }

/* ─── Responsive tweaks ─── */
@media (max-width: 991.98px) {
  .hero-section { padding-top: 100px; }
  .hero-portrait-ring { width: 240px; height: 240px; }
  .about-photo-wrap { max-width: 100%; height: 300px; }
}

@media (max-width: 575.98px) {
  .hero-heading { font-size: 2.2rem; }
  .hero-portrait-ring { width: 200px; height: 200px; }
  .contact-heading { font-size: 1.8rem; }
}

/* ─── WORK PAGE ─── */
.work-page-hero {
  background: #ffffff;
  padding-top: 120px;
  padding-bottom: 50px;
}

.work-hero-banner {
  background: #8b84d7;
  border-radius: 28px;
  padding: 48px 40px;
  text-align: center;
}

.work-hero-banner h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: #1a1a2e;
  line-height: 1.1;
  margin: 0;
}

.work-hero-banner h1 .script-text {
  font-family: 'Dancing Script', cursive;
  color: #ffffff;
  font-size: 1.05em;
}

/* Project grid */
.work-grid-section {
  background: #ffffff;
  padding: 20px 0 80px;
}

.project-card {
  border-radius: 14px;
  overflow: hidden;
  background: #f5f4fc;
  aspect-ratio: 4 / 3;
  position: relative;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(139, 132, 215, 0.25);
}

.project-card img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.project-card-placeholder {
  width: 100%;
  height: 100%;
  background: #d6d6d6;
}

/* Work page footer bar */
.work-footer-bar {
  background: #8b84d7;
  height: 60px;
}

/* ─── EXPERIENCE PAGE ─── */
.experience-page {
  background: #ffffff;
  padding-top: 110px;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
}

.experience-page .container-sm {
  flex: 0 0 auto;
}

.timeline {
  position: relative;
  padding-left: 40px;
  display: inline-block;
  width: 100%;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 50px;
  width: 3px;
  background: #8b84d7;
  border-radius: 2px;
}

/* Each timeline entry */
.timeline-item {
  position: relative;
  margin-bottom: 60px;
}
.timeline-item:last-child { margin-bottom: 0; padding-bottom: 50px; }

/* The dash/tick that pokes out of the line */
.timeline-item::before {
  content: '—';
  position: absolute;
  left: -52px;
  top: 4px;
  color: #8b84d7;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

/* Year label */
.timeline-year {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  color: #1a1a2e;
  margin-bottom: 14px;
  line-height: 1;
}

/* Description text */
.timeline-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: #3a3a5c;
  line-height: 1.75;
  padding-left: 4px;
}

/* ─── PROJECT CARD TITLE ─── */
.project-wrap {
  display: flex;
  flex-direction: column;
}

.project-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1rem;
  color: #1a1a2e;
  margin-top: 10px;
  padding-left: 2px;
}

.project-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  color: #6e6e9a;
  margin-top: 2px;
  padding-left: 2px;
}

/* ─── EXPERIENCE FOOTER ─── */
.exp-footer {
  background: #8b84d7;
  padding: 50px 0;
  text-align: center;
}

.exp-footer-heading {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #ffffff;
  margin-bottom: 14px;
  line-height: 1.2;
}

.exp-footer-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.75;
  margin-bottom: 20px;
}

.exp-footer-email {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}
.exp-footer-email:hover {
  opacity: 0.75;
  color: #ffffff;
}
