/* ============================================================
   Daniel Portnov Portfolio — style.css  (Classic Professional)
   ============================================================ */

:root {
  --bg:       #F8F4EE;
  --bg-2:     #EEE8DC;
  --card:     #FFFFFF;
  --card-h:   #F5F1EB;
  --navy:     #1B3054;
  --navy-l:   #2a4a7f;
  --gold:     #9A7B2C;
  --gold-l:   rgba(154,123,44,0.12);
  --border:   rgba(0,0,0,0.09);
  --border-n: rgba(27,48,84,0.18);
  --txt:      #1C1711;
  --muted:    #6B5B45;
  --mono:     'Fira Code', monospace;
  --sans:     'Inter', sans-serif;
  --nav-h:    68px;
  --ease:     cubic-bezier(0.4,0,0.2,1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--txt);
  line-height: 1.65;
  overflow-x: hidden;
}

.accent { color: var(--navy); }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 5.5rem 0; }

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--txt);
}
.section-title .accent { color: var(--navy); }

/* ---- REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal-stagger {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s var(--ease) 0.12s, transform 0.55s var(--ease) 0.12s;
}
.reveal.in, .reveal-stagger.in { opacity: 1; transform: none; }

/* ============================================================
   NAV
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 900;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
#navbar.scrolled {
  background: rgba(248,244,238,0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--txt);
  text-decoration: none;
  letter-spacing: -0.04em;
}
.nav-logo .accent { color: var(--navy); }
.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--txt); background: var(--bg-2); }
.nav-links .nav-cta {
  color: var(--navy);
  border: 1.5px solid var(--border-n);
}
.nav-links .nav-cta:hover { background: var(--gold-l); color: var(--navy); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--txt);
  border-radius: 2px;
  transition: all 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--nav-h) 2rem 4rem;
  background: var(--bg);
}

/* Subtle warm dot pattern */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(154,123,44,0.18) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 5rem;
  align-items: center;
  max-width: 1080px;
  width: 100%;
}

/* Copy */
.hero-copy { animation: fadeIn 0.8s 0.1s both; }

.hero-greeting {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}
.hero-name {
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.06;
  margin-bottom: 0.9rem;
  color: var(--navy);
}
.hero-role {
  font-family: var(--mono);
  font-size: clamp(0.88rem, 1.6vw, 1rem);
  color: var(--muted);
  margin-bottom: 1.3rem;
  display: flex;
  align-items: center;
  gap: 2px;
}
.role-bracket { color: var(--gold); }
#typed { color: var(--navy); }
.cursor-blink {
  color: var(--navy);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-bio {
  color: var(--muted);
  font-size: 1rem;
  max-width: 460px;
  line-height: 1.78;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 1.65rem;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(27,48,84,0.25);
}
.btn-primary:hover {
  background: var(--navy-l);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27,48,84,0.32);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem 1.65rem;
  border-radius: 10px;
  border: 1.5px solid var(--border-n);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.btn-outline:hover { background: var(--gold-l); transform: translateY(-2px); }

.hero-socials {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.social-pill:hover {
  color: var(--navy);
  border-color: var(--border-n);
  background: var(--bg-2);
}

/* Photo */
.hero-photo-wrap {
  position: relative;
  animation: fadeIn 0.9s 0.25s both;
}
.hero-photo-wrap::before {
  content: '';
  position: absolute;
  inset: 14px -14px -14px 14px;
  background: var(--navy);
  border-radius: 20px;
  opacity: 0.1;
  z-index: 0;
}
.hero-photo {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center 12%;
  border-radius: 20px;
  display: block;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(27,48,84,0.14);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: fadeIn 1s 1.8s both;
}
.mouse-icon {
  width: 22px;
  height: 34px;
  border: 2px solid rgba(107,91,69,0.4);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
  margin: 0 auto;
}
.wheel {
  width: 2px;
  height: 5px;
  background: var(--muted);
  border-radius: 2px;
  animation: scrollWheel 2s infinite;
}
@keyframes scrollWheel {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

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

/* ============================================================
   ABOUT
   ============================================================ */
#about { background: var(--bg-2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.about-text strong { color: var(--navy); font-weight: 600; }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 1.25rem 1.25rem;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.stat-card:hover {
  border-color: var(--border-n);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(27,48,84,0.1);
}
.stat-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1px;
  margin-bottom: 0.4rem;
}
.stat-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-prefix, .stat-suffix {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}
.stat-card p {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   EXPERIENCE
   ============================================================ */
#experience { background: var(--bg); }

.timeline {
  display: flex;
  flex-direction: column;
}
.tl-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1.5rem;
}
.tl-logo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tl-logo-wrap {
  width: 70px;
  height: 64px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.co-logo {
  max-width: 100%;
  max-height: 42px;
  object-fit: contain;
}
.tl-line {
  width: 2px;
  flex: 1;
  min-height: 1.5rem;
  background: linear-gradient(to bottom, rgba(27,48,84,0.2), transparent);
  margin: 6px auto 0;
}
.tl-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.tl-card:hover {
  border-color: var(--border-n);
  box-shadow: 0 6px 24px rgba(27,48,84,0.09);
}
.tl-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.tl-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--txt);
  margin-bottom: 0.15rem;
}
.tl-company {
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
}
.tl-date {
  font-family: var(--mono);
  font-size: 0.77rem;
  color: var(--muted);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.28rem 0.65rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.tl-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.tl-bullets li {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
  padding-left: 1.15rem;
  position: relative;
}
.tl-bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--gold);
  font-size: 0.75rem;
}
.tl-bullets code {
  font-family: var(--mono);
  font-size: 0.83em;
  color: var(--navy);
  background: rgba(27,48,84,0.07);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}
.tl-bullets strong { color: var(--txt); font-weight: 600; }

/* ============================================================
   SKILLS
   ============================================================ */
#skills { background: var(--bg-2); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.skill-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.skill-card:hover {
  border-color: var(--border-n);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(27,48,84,0.1);
}
.skill-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}
.skill-icon svg { width: 20px; height: 20px; }
.skill-icon.ai    { background: rgba(27,48,84,0.1);   color: var(--navy); }
.skill-icon.cloud { background: rgba(154,123,44,0.12); color: var(--gold); }
.skill-icon.data  { background: rgba(52,168,83,0.1);  color: #2d7a3e; }
.skill-icon.code  { background: rgba(66,133,244,0.1); color: #1a5fb4; }
.skill-icon.auto  { background: rgba(220,53,69,0.1);  color: #a61c2e; }
.skill-icon.tools { background: rgba(107,91,69,0.12); color: var(--muted); }

.skill-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
  color: var(--txt);
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.tag-list span {
  font-family: var(--mono);
  font-size: 0.73rem;
  padding: 0.22rem 0.6rem;
  border-radius: 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.tag-list span:hover {
  background: rgba(27,48,84,0.08);
  border-color: var(--border-n);
  color: var(--navy);
}

/* ============================================================
   EDUCATION
   ============================================================ */
#education { background: var(--bg); }

.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.edu-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.edu-card:hover {
  border-color: var(--border-n);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(27,48,84,0.09);
}
.edu-badge {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 900;
  flex-shrink: 0;
}
.edu-badge.gt { background: linear-gradient(135deg, #b3a369, #8f7e44); color: #fff; }
.edu-badge.uw { background: linear-gradient(135deg, #c5050c, #8b0000); color: #fff; }

.edu-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.edu-degree { color: var(--navy); font-size: 0.875rem; font-weight: 600; margin-bottom: 0.2rem; }
.edu-date   { color: var(--muted); font-size: 0.8rem; margin-bottom: 0.75rem; }
.edu-desc   { color: var(--muted); font-size: 0.88rem; line-height: 1.7; }

/* ============================================================
   CONTACT
   ============================================================ */
#contact {
  background: var(--bg-2);
  text-align: center;
}
.contact-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}
.contact-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.contact-card {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.contact-card svg { width: 18px; height: 18px; flex-shrink: 0; }
.contact-card:not(.static):hover {
  border-color: var(--border-n);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27,48,84,0.1);
}
.contact-card.static { cursor: default; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy);
  text-align: center;
  padding: 1.75rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
}
footer .accent { color: rgba(255,255,255,0.9); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr 340px; gap: 3rem; }
}
@media (max-width: 900px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(248,244,238,0.97);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    backdrop-filter: blur(12px);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.6rem 0.5rem; font-size: 1rem; }
  .hamburger { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .hero-photo-wrap { order: -1; max-width: 300px; margin: 0 auto; }
  .hero-photo { height: 380px; }
  .hero-photo-wrap::before { display: none; }
  .hero-bio { margin-left: auto; margin-right: auto; }
  .hero-ctas, .hero-socials { justify-content: center; }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }

  .tl-item { grid-template-columns: 1fr; }
  .tl-logo-col { flex-direction: row; align-items: center; gap: 1rem; margin-bottom: 0.5rem; }
  .tl-logo-wrap { width: 56px; height: 50px; }
  .tl-line { display: none; }

  .skills-grid { grid-template-columns: 1fr; }
  .edu-grid    { grid-template-columns: 1fr; }

  .contact-cards { flex-direction: column; align-items: center; }
  .contact-card  { width: 100%; max-width: 360px; justify-content: center; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .edu-card   { flex-direction: column; }
}
