/* ==============================
   COLOR SYSTEM
   ============================== */
:root {
  --deep-olive: #212B1F;
  --deep-olive-alt: #334230;
  --sage: #7A9974;
  --cream: #ECE9D8;
  --text-light: #F7F7F2;
  --text-cream: #ECE9D8;
  --text-dark: #222222;

  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.28);
  --radius-card: 18px;
}

/* ==============================
   RESET & BASE
   ============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--deep-olive);
  color: var(--text-light);
  line-height: 1.6;
}

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

/* Containers */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ==============================
   HERO
   ============================== */
.hero {
  background: var(--deep-olive);
  padding: 80px 0 90px;
}

.hero-inner {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-text {
  max-width: 540px;
}

.hero-kicker {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: rgba(247, 247, 242, 0.7);
  margin-bottom: 6px;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-cream);
  margin-bottom: 8px;
}

.hero-title {
  font-size: 1.3rem;
  font-weight: 500;
  color: rgba(247, 247, 242, 0.9);
  margin-bottom: 18px;
}

.hero-body {
  font-size: 1rem;
  color: rgba(247, 247, 242, 0.9);
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--sage);
  color: var(--deep-olive);
  box-shadow: var(--shadow-soft);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--sage);
  color: var(--sage);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

/* Hero image */
.hero-image-wrap {
  flex-shrink: 0;
}

.hero-image {
  width: 380px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

/* ==============================
   SECTIONS
   ============================== */
.section {
  padding: 70px 0;
}

.section-light {
  background: var(--cream);
  color: var(--text-dark);
}

.section-dark {
  background: var(--deep-olive);
  color: var(--text-light);
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 24px;
}

/* ==============================
   ABOUT
   ============================== */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 40px;
}

.about-grid p + p {
  margin-top: 10px;
}

.about-side h3 {
  margin-bottom: 10px;
}

.about-side ul {
  list-style: none;
  padding-left: 0;
}

.about-side li + li {
  margin-top: 6px;
}

.about-side li::before {
  content: "•";
  color: var(--sage);
  margin-right: 6px;
}

/* ==============================
   EXPERIENCE
   ============================== */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
}

.exp-card {
  background: var(--cream);
  color: var(--text-dark);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
}

.exp-header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}

.company-logo {
  max-height: 40px;
  width: auto;
}

.exp-role {
  font-size: 0.9rem;
  color: #444;
}

.exp-card ul {
  padding-left: 18px;
  margin-top: 8px;
}

/* ==============================
   PROJECTS
   ============================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  background: var(--deep-olive-alt);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  color: var(--cream); /* ← Add this line */
}

.card h3 {
  margin-bottom: 8px;
  color: var(--cream); /* ← Optional: ensures headings also match */
}

.card-meta {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--cream); /* ← Change this from #555 */
}


/* ==============================
   CERTIFICATIONS
   ============================== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
}

.cert-item {
  background: rgba(0, 0, 0, 0.18);
  border-radius: var(--radius-card);
  padding: 18px 18px 20px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cert-item img {
  max-height: 90px;
  margin: 0 auto 10px;
}

.cert-item h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.cert-item p {
  font-size: 0.9rem;
}

.cert-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  background: rgba(0, 0, 0, 0.25);
}

/* ==============================
   CONTACT
   ============================== */
.contact-section {
  background: var(--cream);
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px; /* brings button closer to the text */
}

.contact-inner .btn-primary {
  margin-left: auto; /* pushes button neatly to the right */
}


.contact-inner p {
  max-width: 520px;
}

/* ==============================
   RESUME DOWNLOAD
   ============================== */
.resume-container {
  text-align: center;
  max-width: 700px;
}

.resume-container p {
  margin-bottom: 20px;
  color: var(--text-dark);
}

.resume-download-btn {
  font-size: 1.05rem;
  padding: 12px 26px;
}

.resume-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
}

.resume-inner .btn-primary {
  margin-left: auto; /* lines up with Contact Me button */
}


/* ==============================
   FOOTER
   ============================== */
.site-footer {
  background: #192714;
  color: rgba(247, 247, 242, 0.8);
  text-align: center;
  padding: 18px 12px;
  font-size: 0.9rem;
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    width: 260px;
  }

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

  .contact-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== CONTACT SECTION CENTERED ===== */
.contact-section {
  background: var(--cream);
  text-align: center;
}

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

/* ===== RESUME SECTION CENTERED ===== */
.resume-section {
  background: var(--cream);
  text-align: center;
  padding-top: 40px;
}

.resume-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Center buttons */
.contact-inner .btn-primary,
.resume-inner .btn-primary {
  margin: 0 auto;
}


/* ==============================
   UPDATED CERTIFICATION TILE COLORS
   ============================== */

.cert-item {
  background: var(--deep-olive-alt) !important;
  color: var(--cream) !important;
}

.cert-item h3,
.cert-item p {
  color: var(--cream) !important;
}


/* DARK SECTIONS → TEXT SHOULD BE CREAM */
.section-dark,
.section-dark h2,
.section-dark h3,
.section-dark p,
.section-dark li {
  color: var(--cream) !important;
}

/* LIGHT SECTIONS → TEXT SHOULD BE DEEP OLIVE */
.section-light,
.section-light h2,
.section-light h3,
.section-light p,
.section-light li {
  color: var(--deep-olive) !important;
}


/* CONTACT SPACING FIXES */
.contact-section {
  padding-top: 80px;
  padding-bottom: 40px;
}

/* RESUME SPACING FIXES */
.resume-section {
  padding-top: 60px;
  padding-bottom: 80px;
}

/* SPACE ABOVE FOOTER */
.site-footer {
  margin-top: 60px;
}

/* ==============================
   TILE COLOR LOGIC (FINAL FIX)
   ============================== */

/* Cream tiles → deep-olive text */
.exp-card,
.contact-tile-light, /* in case you add light tiles later */
.any-cream-tile {
  background: var(--cream) !important;
  color: var(--deep-olive) !important;
}

.exp-card h3,
.exp-card p,
.exp-card li {
  color: var(--deep-olive) !important;
}

/* Dark tiles → cream text */
.card,
.cert-item,
.any-dark-tile {
  background: var(--deep-olive-alt) !important;
  color: var(--cream) !important;
}

.card h3,
.card p,
.card li,
.cert-item h3,
.cert-item p {
  color: var(--cream) !important;
}

