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

html {
  scroll-behavior: smooth;
}

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --primary:       #4A2F22;
  --accent:        #C17A4A;
  --accent-light:  #D9956A;
  --accent-deep:   #A05C32;
  --bg:            #FAF7F3;
  --soft:          #F3EDE6;
  --card-bg:       #FFFFFF;
  --text:          #2B1D12;
  --muted:         #7A6A5A;
  --border:        #E8DDD4;
  --hero-dark:     #3A2418;
  --hero-mid:      #7A4A2E;
}

/* ============================================================
   BODY & TYPOGRAPHY
   ============================================================ */
body {
  font-family: 'Lato', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
}

/* ============================================================
   NAVBAR
   ============================================================ */
nav {
  position: sticky;
  top: 0;
  background: rgba(74, 47, 34, 0.96);
  backdrop-filter: blur(8px);
  padding: 1rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo a {
  color: white;
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
}

.logo a span,
nav .logo span {
  color: var(--accent-light);
}

nav ul {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

nav a {
  color: #ddd;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transition: color 0.25s;
}

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

.nav-cta {
  background: var(--accent);
  color: white !important;
  padding: 0.5rem 1.2rem;
  font-size: 0.78rem !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  transition: background 0.25s !important;
}

.nav-cta:hover {
  background: var(--accent-light) !important;
  color: white !important;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 4rem;
  padding: 3.5rem 5rem 3rem;
  background: linear-gradient(140deg, var(--hero-dark) 0%, var(--hero-mid) 70%, #9A5A38 100%);
  position: relative;
  overflow: hidden;
}

/* Decorative circle accents */
.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 50px solid rgba(193,122,74,0.12);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 60px;
  left: 5%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 28px solid rgba(255,255,255,0.05);
  pointer-events: none;
}

/* Hero text */
.hero-text {
  color: white;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 6px 14px;
  font-size: 0.68rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-size: 3.2rem;
  line-height: 1.15;
  color: #FAF0E6;
  margin-bottom: 1.2rem;
}

.hero h1 em {
  color: var(--accent-light);
  font-style: italic;
}

.hero-tagline {
  color: #CCC;
  font-weight: 300;
  font-size: 1rem;
  max-width: 500px;
  line-height: 1.8;
  margin-bottom: 2rem;
}

/* CTA buttons */
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.75rem 1.8rem;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.25s;
}

.btn-primary:hover {
  background: var(--accent-light);
}

.btn-outline {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.45);
  color: white;
  padding: 0.75rem 1.8rem;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 400;
  text-decoration: none;
  transition: border-color 0.25s, background 0.25s;
}

.btn-outline:hover {
  border-color: var(--accent-light);
  background: rgba(193,122,74,0.15);
}

/* Hero profile */
.hero-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

/* New layout: stat | photo | stat side by side */
.profile-stats-layout {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-frame {
  width: 260px;
  height: 320px;
  border: 4px solid var(--accent);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  overflow: hidden;
  flex-shrink: 0;
}

.profile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Stats */
.stat-card {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  padding: 18px 20px;
  border-radius: 6px;
  text-align: center;
  min-width: 100px;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--accent-light);
  font-weight: 600;
}

.stat-label {
  font-size: 0.65rem;
  color: #ccc;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Certifications slider — spans full width */
.certifications-slider {
  grid-column: 1 / -1;
  margin-top: 1.5rem;
  overflow: hidden;
  padding: 0.5rem 0;
}

.certifications-track {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.cert-box {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  border-radius: 6px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}

.cert-box img {
  max-width: 70px;
  max-height: 70px;
  object-fit: contain;
  opacity: 0.92;
  transition: opacity 0.3s, transform 0.3s;
}

.cert-box:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.18);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.cert-box:hover img {
  opacity: 1;
  transform: scale(1.08);
}

@keyframes scrollCerts {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   INTRO STRIP
   ============================================================ */
.intro-strip {
  background: var(--soft);
  padding: 3rem 4rem;
  text-align: center;
  border-bottom: 2px solid var(--accent);
}

.intro-strip p {
  max-width: 820px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.9;
  font-weight: 300;
}

.intro-strip p strong {
  color: var(--accent-deep);
  font-weight: 700;
}

/* ============================================================
   SECTION HEADERS (shared)
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: 2.1rem;
  color: var(--primary);
}

.section-divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 12px auto 0;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: 6rem 4rem;
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  background: var(--card-bg);
  padding: 2rem 1.75rem;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(74,47,34,0.1);
}

.service-icon {
  width: 44px;
  height: 44px;
  background: var(--soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 0.65rem;
  font-weight: 600;
}

.service-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.75;
  font-weight: 300;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: var(--soft);
  padding: 6rem 4rem;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.about-photo {
  border: 3px solid var(--accent);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(74,47,34,0.15);
}

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

.about-content p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 1rem;
  font-weight: 300;
}

.about-content p strong {
  color: var(--primary);
  font-weight: 700;
}

/* Tags */
.skills-tags {
  margin: 1.4rem 0;
}

.tag {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 5px 12px;
  margin: 4px 4px 4px 0;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.tag.light {
  background: var(--accent);
}

/* Clients */
.clients-block {
  margin-top: 1.8rem;
}

.clients-block h4 {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.client-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.client-pill {
  display: inline-block;
  border: 1px solid var(--border);
  background: white;
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--muted);
  transition: border-color 0.25s, color 0.25s;
}

.client-pill:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

/* ============================================================
   EXPERIENCE TIMELINE
   ============================================================ */
.experience {
  background: var(--bg);
  padding: 6rem 4rem;
}

.timeline {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  padding-left: 2.5rem;
}

/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

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

/* Dot on the line */
.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
  transform: translateX(-6px);
}

.timeline-date {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
  text-decoration: none;
  -webkit-text-decoration: none;
}

.timeline-date a,
.timeline-date * {
  color: inherit;
  text-decoration: none !important;
  pointer-events: none;
}

.timeline-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 1.75rem 2rem;
  transition: box-shadow 0.3s, transform 0.3s;
}

.timeline-card:hover {
  box-shadow: 0 10px 30px rgba(74,47,34,0.09);
  transform: translateX(4px);
}

.timeline-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 9px;
  margin-bottom: 0.6rem;
}

.timeline-card h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.timeline-company {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 0.8rem;
  font-style: italic;
}

.timeline-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.78;
  font-weight: 300;
  margin-bottom: 1rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.timeline-tags span {
  background: var(--soft);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 3px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--soft);
  padding: 6rem 4rem;
}

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

.contact-intro {
  font-size: 1rem;
  color: var(--muted);
  margin-top: 1rem;
  font-weight: 300;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.25s, box-shadow 0.25s;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(74,47,34,0.09);
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.4rem;
  color: var(--accent);
}

.contact-icon svg {
  width: 19px;
  height: 19px;
}

.contact-card strong {
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
}

.contact-card a,
.contact-card span {
  font-size: 0.92rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.2s;
}

.contact-card a:hover {
  color: var(--accent);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--primary);
  color: #ccc;
  text-align: center;
  padding: 2.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

footer .logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: white;
  margin-bottom: 0.3rem;
}

footer p {
  font-size: 0.82rem;
  color: #aaa;
  font-weight: 300;
}

.footer-copy {
  font-size: 0.75rem !important;
  color: #888 !important;
  margin-top: 0.25rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero {
    padding: 5rem 3rem 3rem;
    column-gap: 2.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  nav {
    padding: 1rem 2rem;
  }

  .nav-cta {
    display: none;
  }

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

/* ============================================================
   MOBILE HAMBURGER MENU
   ============================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: transform 0.3s, opacity 0.3s;
}

.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); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(58,36,24,0.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: #eee;
  text-decoration: none;
  font-size: 1.5rem;
  font-family: 'Playfair Display', serif;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--accent-light); }

.mobile-menu .close-btn {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ============================================================
   TABLET — max 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .hero {
    padding: 3rem 3rem 2.5rem;
    column-gap: 2.5rem;
  }

  .hero h1 { font-size: 2.6rem; }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-inner {
    gap: 3rem;
  }
}

/* ============================================================
   MOBILE — max 700px
   ============================================================ */
@media (max-width: 700px) {

  /* NAV */
  nav {
    padding: 0.9rem 1.25rem;
  }

  nav ul { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }

  /* HERO */
  .hero {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.25rem 2rem;
    text-align: center;
    row-gap: 2rem;
  }

  .hero::before,
  .hero::after { display: none; }

  .hero-eyebrow { font-size: 0.62rem; }

  .hero h1 {
    font-size: 1.85rem;
    line-height: 1.2;
  }

  .hero-tagline {
    font-size: 0.9rem;
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
    gap: 0.75rem;
  }

  .btn-primary, .btn-outline {
    padding: 0.65rem 1.2rem;
    font-size: 0.75rem;
  }

  /* PROFILE — stack vertically on mobile */
  .hero-profile { align-items: center; }

  .profile-stats-layout {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .profile-frame {
    width: 200px;
    height: 240px;
    order: -1;
  }

  .stat-card {
    width: 160px;
    padding: 12px 16px;
  }

  /* CERTIFICATIONS */
  .certifications-slider { margin-top: 1rem; }

  .certifications-track {
    gap: 10px;
    justify-content: center;
  }

  .cert-box {
    width: 72px;
    height: 72px;
    padding: 10px;
  }

  .cert-box img {
    max-width: 48px;
    max-height: 48px;
  }

  /* INTRO */
  .intro-strip {
    padding: 2rem 1.25rem;
  }

  .intro-strip p { font-size: 0.92rem; }

  /* SERVICES */
  .services {
    padding: 3rem 1.25rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .service-card { padding: 1.5rem 1.25rem; }

  /* ABOUT */
  .about {
    padding: 3rem 1.25rem;
  }

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

  .about-photo {
    height: 260px;
  }

  .section-header h2 { font-size: 1.6rem; }

  /* SKILLS TAGS */
  .tag {
    font-size: 0.68rem;
    padding: 4px 9px;
  }

  /* EXPERIENCE */
  .experience {
    padding: 3rem 1.25rem;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline::before { left: 0; }

  .timeline-dot {
    left: -1.5rem;
    width: 12px;
    height: 12px;
    transform: translateX(-5px);
  }

  .timeline-card {
    padding: 1.25rem;
  }

  .timeline-card h3 { font-size: 1rem; }

  .timeline-key-projects { padding: 0.75rem; }

  .timeline-key-projects ul li { font-size: 0.8rem; }

  .timeline-tags span { font-size: 0.68rem; }

  /* CONTACT */
  .contact {
    padding: 3rem 1.25rem;
  }

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

  .contact-card { padding: 1.25rem; }

  /* FOOTER */
  footer { padding: 2rem 1.25rem; }
  footer p { font-size: 0.75rem; }
}

/* ============================================================
   SMALL PHONES — max 400px
   ============================================================ */
@media (max-width: 400px) {
  .hero h1 { font-size: 1.6rem; }

  .profile-frame {
    width: 170px;
    height: 210px;
  }

  .cert-box {
    width: 60px;
    height: 60px;
    padding: 8px;
  }

  .cert-box img {
    max-width: 40px;
    max-height: 40px;
  }
}

/* ============================================================
   TIMELINE KEY PROJECTS & CLIENTS (resume update)
   ============================================================ */
.timeline-key-projects {
  margin: 0.8rem 0 1rem;
  padding: 0.9rem 1.1rem;
  background: var(--soft);
  border-left: 2px solid var(--accent);
}

.timeline-key-projects h4 {
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.6rem;
  font-family: 'Lato', sans-serif;
}

.timeline-key-projects ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.timeline-key-projects ul li {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.65;
  padding-left: 1rem;
  position: relative;
}

.timeline-key-projects ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 1rem;
  line-height: 1.4;
}

.timeline-key-projects ul li strong {
  color: var(--primary);
  font-weight: 700;
}

.timeline-clients {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
  font-style: italic;
}

.timeline-clients strong {
  color: var(--accent-deep);
  font-style: normal;
  font-weight: 700;
}
