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

:root {
  --navy:      #100e09;
  --navy-mid:  #1c1710;
  --slate:     #9e8e76;
  --light-slate: #c4ae94;
  --lightest-slate: #e8d5b8;
  --white:     #f5ede0;
  --accent:    #e07a2f;
  --accent-dim: rgba(224, 122, 47, 0.1);
  --font-sans: 'Inter', -apple-system, sans-serif;
  --font-serif: 'Playfair Display', serif;
  --nav-h: 70px;
  --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

body {
  font-family: var(--font-sans);
  background: var(--navy);
  color: var(--slate);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { opacity: 0.85; }

ul { list-style: none; }

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
}

section { padding: 100px 0; }

.section-title {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 700;
  color: var(--lightest-slate);
  margin-bottom: 50px;
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.section-title::after {
  content: '';
  display: block;
  width: 200px;
  height: 1px;
  background: var(--navy-mid);
  border-top: 1px solid #2e2418;
}

/* ── Navbar ── */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(100, 255, 218, 0.07);
  transition: var(--transition);
}

#navbar.scrolled {
  box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--light-slate);
  letter-spacing: 0.5px;
  counter-increment: item;
}

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

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ── Hero ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(100, 255, 218, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 80px;
}

.hero-photo-wrap {
  flex-shrink: 0;
  position: relative;
}

.hero-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent);
  border-radius: 12px;
  transform: translate(10px, 10px);
  z-index: -1;
  transition: var(--transition);
}

.hero-photo-wrap:hover::after {
  transform: translate(6px, 6px);
}

.hero-photo {
  width: 260px;
  height: 260px;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  filter: grayscale(20%) contrast(1.05);
  display: block;
}

.hero-eyebrow {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--lightest-slate);
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--slate);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: var(--navy);
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent);
  opacity: 1;
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-ghost:hover {
  background: var(--accent-dim);
  opacity: 1;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--slate);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeInUp 1s 1.5s both;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--slate), transparent);
  animation: scrollPulse 2s infinite;
}

/* ── About ── */
#about { background: var(--navy-mid); }

.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  color: var(--slate);
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.75;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: var(--navy);
  border: 1px solid #2e2418;
  border-radius: 10px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--slate);
  margin-top: 6px;
  text-align: center;
}

/* ── Experience ── */
#experience { background: var(--navy); }

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

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

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

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

.timeline-marker {
  position: absolute;
  left: -30px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--navy);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.timeline-content {
  background: var(--navy-mid);
  border: 1px solid #2e2418;
  border-radius: 12px;
  padding: 28px 32px;
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: rgba(100, 255, 218, 0.3);
  transform: translateX(4px);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.job-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--lightest-slate);
}

.job-company {
  font-size: 0.9rem;
  color: var(--accent);
  margin-top: 3px;
  font-weight: 500;
}

.job-meta {
  font-size: 0.8rem;
  color: var(--slate);
  margin-bottom: 12px;
  opacity: 0.8;
}

.job-skills {
  font-size: 0.8rem;
  color: var(--slate);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #2e2418;
}

.job-date {
  font-size: 0.8rem;
  color: var(--slate);
  background: rgba(100, 255, 218, 0.07);
  border: 1px solid rgba(100, 255, 218, 0.15);
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.sub-role {
  margin-bottom: 20px;
}

.sub-role:last-child { margin-bottom: 0; }

.sub-role h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--light-slate);
  margin-bottom: 10px;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
}

.timeline-content ul,
.sub-role ul {
  padding-left: 4px;
}

.timeline-content ul li,
.sub-role ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--slate);
}

.timeline-content ul li::before,
.sub-role ul li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ── Skills ── */
#skills { background: var(--navy-mid); }

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.skill-category {
  background: var(--navy);
  border: 1px solid #2e2418;
  border-radius: 12px;
  padding: 28px;
  transition: var(--transition);
}

.skill-category:hover {
  border-color: rgba(100, 255, 218, 0.25);
}

.skill-category h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--lightest-slate);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.skill-bar-group { display: flex; flex-direction: column; gap: 14px; }

.skill-bar-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.skill-bar-item span {
  font-size: 0.85rem;
  color: var(--light-slate);
}

.bar {
  height: 4px;
  background: #2e2418;
  border-radius: 2px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--accent), rgba(100,255,218,0.6));
  border-radius: 2px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

.tag {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(100, 255, 218, 0.07);
  border: 1px solid rgba(100, 255, 218, 0.2);
  color: var(--accent);
  letter-spacing: 0.3px;
}

/* AI skill card */
.ai-skill-card {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--navy) 0%, rgba(100,255,218,0.04) 100%);
  border-color: rgba(100, 255, 218, 0.3) !important;
}

.ai-badge-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.ai-icon {
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-description {
  font-size: 0.93rem;
  color: var(--slate);
  line-height: 1.65;
  margin-bottom: 16px;
}

.ai-tags { margin-bottom: 14px; }

.tag-ai {
  background: rgba(100, 255, 218, 0.12);
  border-color: rgba(100, 255, 218, 0.35);
}

.ai-proof {
  font-size: 0.8rem;
  color: var(--slate);
  opacity: 0.7;
}

/* ── Education ── */
#education { background: var(--navy); }

.edu-card {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--navy-mid);
  border: 1px solid #2e2418;
  border-radius: 12px;
  padding: 36px 40px;
  max-width: 620px;
  transition: var(--transition);
}

.edu-card:hover {
  border-color: rgba(100, 255, 218, 0.3);
  transform: translateY(-3px);
}

.edu-logo {
  width: 70px;
  min-width: 70px;
  height: 70px;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 5px;
  overflow: hidden;
  box-sizing: border-box;
}

.edu-logo-img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 60px;
  max-height: 60px;
  object-fit: contain;
}

.edu-details h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--lightest-slate);
  margin-bottom: 4px;
}

.edu-degree {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 500;
}

.edu-minor {
  font-size: 0.87rem;
  color: var(--slate);
  margin-top: 3px;
}

.edu-dates {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--slate);
  background: rgba(100, 255, 218, 0.07);
  border: 1px solid rgba(100, 255, 218, 0.15);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ── Recommendations ── */
#recommendations { background: var(--navy-mid); }

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.testimonial-card {
  background: var(--navy);
  border: 1px solid #2e2418;
  border-radius: 12px;
  padding: 32px;
  position: relative;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(100, 255, 218, 0.3);
  transform: translateY(-4px);
}

.quote-mark {
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: -12px;
}

.testimonial-text {
  font-size: 0.97rem;
  color: var(--light-slate);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-info { display: flex; flex-direction: column; }

.author-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--lightest-slate);
}

.author-title {
  font-size: 0.78rem;
  color: var(--slate);
}

/* ── Contact ── */
#contact { background: var(--navy); text-align: center; }

.contact-inner { max-width: 600px; margin: 0 auto; }

.contact-sub {
  font-size: 1.05rem;
  color: var(--slate);
  margin-bottom: 40px;
  line-height: 1.7;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--light-slate);
  background: var(--navy-mid);
  border: 1px solid #2e2418;
  border-radius: 8px;
  padding: 14px 28px;
  width: 100%;
  max-width: 400px;
  justify-content: center;
  transition: var(--transition);
}

.contact-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.contact-link-linkedin {
  border-color: rgba(100, 255, 218, 0.2);
  color: var(--accent);
}

/* ── Footer ── */
footer {
  background: var(--navy-mid);
  text-align: center;
  padding: 24px;
  font-size: 0.82rem;
  color: var(--slate);
  border-top: 1px solid #2e2418;
}

footer a { color: var(--accent); }

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .container { padding: 0 24px; }
  section { padding: 70px 0; }

  .nav-links { display: none; }
  .hamburger { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--navy-mid);
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 99;
  }

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

  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding-top: 40px;
  }

  .hero-photo { width: 180px; height: 180px; }
  .hero-cta { justify-content: center; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-stats { grid-template-columns: 1fr 1fr; }

  .skills-grid { grid-template-columns: 1fr; }
  .ai-skill-card { grid-column: 1; }

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

  .job-header { flex-direction: column; }
  .section-title::after { width: 60px; }

  .edu-card { flex-direction: column; text-align: center; padding: 28px 24px; }

  .hero-scroll-hint { display: none; }
}

@media (max-width: 480px) {
  .hero-name { font-size: 2.4rem; }
  .timeline { padding-left: 16px; }
  .timeline-content { padding: 20px; }
}
