@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;500;700;800&display=swap');

:root {
  /* New Green Palette */
  --primary: #84B179;
  --primary-hover: #A2CB8B;
  --accent-light: #C7EABB;
  --bg-light: #E8F5BD;

  /* Neutral Tones */
  --bg-main: #f7faf2;
  --bg-surface: #ffffff;
  --text-main: #1a2e1a;
  --text-muted: #5a7155;
  --text-light: #8aab85;

  /* Glass / Card */
  --glass-bg: rgba(196, 234, 187, 0.15);
  --glass-border: rgba(132, 177, 121, 0.2);
  --card-bg: #ffffff;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(132, 177, 121, 0.1);
  --shadow-md: 0 6px 20px rgba(132, 177, 121, 0.15);
  --shadow-lg: 0 12px 35px rgba(132, 177, 121, 0.2);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

p {
  text-align: justify;
  hyphens: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

ul {
  list-style: none;
}

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

/* ======================
   GLASS CARD
   ====================== */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-hover);
}

/* ======================
   BUTTONS
   ====================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  background: var(--accent-light);
  border-color: var(--primary-hover);
  color: var(--text-main);
}

/* ======================
   TEXT HELPERS
   ====================== */
.text-primary {
  color: var(--primary);
}

.text-accent {
  color: var(--primary-hover);
}

/* Legacy compatibility for HTML that uses text-cyan or text-violet */
.text-cyan {
  color: var(--primary);
}

.text-violet {
  color: var(--text-muted);
}

/* ======================
   HEADER & NAV
   ====================== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(247, 250, 242, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  height: 70px;
  display: flex;
  align-items: center;
}

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

.mobile-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-main);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-main);
  flex-shrink: 0;
}

.logo .text-cyan {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

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

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

.section-title {
  font-size: 3rem;
  margin-bottom: 48px;
  text-align: center;
  color: var(--text-main);
}

.section-title span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.5rem;
}

/* ======================
   HERO SECTION
   ====================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 20px 0;
  background: linear-gradient(160deg, #ffffff 0%, var(--bg-light) 100%);
}

.hero .container {
  padding: 80px 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--text-main);
}

.hero-content .subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 560px;
  line-height: 1.7;
}

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

/* Profile Image – Circular, professional, no glow */
.hero-image-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.hero-image-inner {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background-color: var(--accent-light);
}

.hero-image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  border-radius: 50%;
}

/* ======================
   BENTO GRID
   ====================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.bento-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
}

.bento-card h3 i {
  color: var(--primary);
}

.bento-card p {
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.highlight-stat {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  display: block;
  margin-top: 1rem;
  color: var(--primary);
}

/* ======================
   EXPERIENCE TIMELINE
   ====================== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background: var(--accent-light);
  top: 0;
  bottom: 0;
  left: 20px;
  margin-left: -1px;
}

.timeline-item {
  padding: 0 0 3rem 4rem;
  position: relative;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--bg-main);
  border: 2px solid var(--primary);
  border-radius: 50%;
  left: 13px;
  top: 5px;
  z-index: 1;
}

.timeline-date {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: block;
  font-weight: 600;
  letter-spacing: 0.8px;
}

.timeline-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}

.timeline-content h4 {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 1rem;
}

.timeline-content ul li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 1.5rem;
}

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

/* ======================
   PROJECT CARD
   ====================== */
.project-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2.5rem;
}

.project-info h3 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

.project-info p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.project-features {
  margin-bottom: 1.5rem;
}

.project-features li {
  margin-bottom: 0.5rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-features li i {
  color: var(--primary);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tech-tag {
  background: var(--accent-light);
  color: var(--text-main);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-family: var(--font-heading);
  border: 1px solid var(--glass-border);
  font-weight: 500;
}

.project-visual {
  width: 100%;
  height: 240px;
  background: var(--bg-light);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
  flex-shrink: 0;
}

.project-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 600px) {
  .project-visual {
    height: 180px;
  }
}

/* ======================
   TECHNICAL ARSENAL – MARQUEE
   ====================== */

/* One labelled row wrapper */
.marquee-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.6rem 0;
  overflow: hidden;
}

/* Left badge label */
.marquee-label {
  flex-shrink: 0;
  width: 160px;
  text-align: right;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  padding-right: 1.2rem;
  border-right: 2px solid var(--glass-border);
}

.marquee-label i {
  color: var(--primary);
  font-size: 1rem;
}

/* Scrolling viewport — hides overflow + adds fade edges */
.marquee-track {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right,
      transparent 0%,
      #000 8%,
      #000 92%,
      transparent 100%);
  mask-image: linear-gradient(to right,
      transparent 0%,
      #000 8%,
      #000 92%,
      transparent 100%);
}

/* The scrolling inner strip */
.marquee-inner {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-duration: 30s;
}

/* Direction variants */
.marquee-ltr {
  animation-name: scroll-ltr;
}

.marquee-rtl {
  animation-name: scroll-rtl;
}

/* Pause on hover */
.marquee-track:hover .marquee-inner {
  animation-play-state: paused;
}

/* Keyframes — move exactly 50% (since items are duplicated) */
@keyframes scroll-ltr {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes scroll-rtl {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

/* Individual pill tags */
.m-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  padding: 0.5rem 1.1rem;
  border-radius: 99px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  cursor: default;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.m-pill i {
  color: var(--primary);
  font-size: 1rem;
}

.m-pill:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 10px rgba(132, 177, 121, 0.2);
}

/* Variant – security row (slightly different bg) */
.m-pill--sec {
  background: #f0faf0;
}

.m-pill--sec i {
  color: #7aaa6e;
}

/* Variant – accent row */
.m-pill--accent {
  background: var(--accent-light);
  border-color: rgba(132, 177, 121, 0.3);
}

.m-pill--accent i {
  color: var(--primary);
}

/* Section skills wrapper still needed for top padding */
#skills {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

#skills .section-title {
  margin-bottom: 3rem;
}


/* Each category card */
.skill-category {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.skill-category:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* Header row: icon + title */
.skill-category h3 {
  font-size: 1.15rem;
  font-family: var(--font-heading);
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
}

.skill-category h3 i {
  color: var(--primary);
  font-size: 1.25rem;
}

/* List of skill bars */
.skill-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* A single skill row */
.skill-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  gap: 1rem;
}

.skill-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Track (grey background) */
.skill-bar-container {
  height: 8px;
  background: var(--bg-light);
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

/* Animated fill */
.skill-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
  border-radius: 99px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Triggered by JS when visible */
.skill-category.active .skill-bar,
.skill-category .skill-bar {
  width: var(--target-width, 0%);
}

/* Tools & Platforms tag-cloud card */
.tools-tags {
  padding: 2rem 2.5rem;
}

.tools-tags h3 {
  font-size: 1.1rem;
  font-family: var(--font-heading);
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
}

.tools-tags h3 i {
  color: var(--primary);
  font-size: 1.2rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ======================
   SALESFORCE TRAILHEAD SECTION
   ====================== */
.trailhead-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
}

.trailhead-content .subtitle {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 24px;
  font-weight: 500;
}

.trailhead-stats {
  display: flex;
  gap: 32px;
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.trailhead-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.trailhead-badge-wrapper {
  max-width: 320px;
  transition: transform 0.3s ease;
}

.trailhead-badge-wrapper:hover {
  transform: scale(1.05);
}

.trailhead-badge-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(132, 177, 121, 0.2));
}

/* ======================
   ACHIEVEMENTS
   ====================== */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.achievement-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.achievement-icon {
  color: var(--primary);
  font-size: 1.4rem;
  margin-top: 0.15rem;
}

.achievement-content h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--text-main);
}

.achievement-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ======================
   CERTIFICATIONS
   ====================== */
.certifications-container {
  margin-top: 2.5rem;
}

.certifications-container h3 {
  color: var(--text-main);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.cert-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.cert-card h4 {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.4;
}

.cert-org {
  color: var(--primary);
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.cert-year {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.cert-preview {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.95);
  width: 90%;
  max-width: 580px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  background: var(--card-bg);
  padding: 1rem;
  border: 1px solid var(--glass-border);
}

.cert-card:hover .cert-preview {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.cert-preview img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* ======================
   FOOTER
   ====================== */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  background: var(--card-bg);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-info h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.footer-info p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 400px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.contact-links a:hover {
  color: var(--primary);
}

.contact-links a i {
  color: var(--primary);
  font-size: 1.4rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
  color: var(--text-light);
  font-size: 0.9rem;
}

.back-to-top {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--glass-border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.back-to-top:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ======================
   UTILITIES
   ====================== */
.mt-4 {
  margin-top: 2rem;
}

/* ======================
   REVEAL ANIMATIONS
   ====================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ======================
   RESPONSIVE
   ====================== */

/* Tablet */
@media (max-width: 1024px) {
  .nav-content {
    padding: 0 32px;
  }

  .hero-grid {
    gap: 32px;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-image-inner {
    width: 220px;
    height: 220px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  header {
    height: auto;
    padding: 16px 0;
  }

  .nav-content {
    padding: 0 16px;
    flex-wrap: wrap;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 16px;
    padding: 24px 0 16px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 16px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 8px 0;
  }

  .hero .container {
    padding: 50px 16px;
  }

  .hero-grid,
  .bento-grid,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 24px;
  }

  .hero-content {
    text-align: center;
    order: 1;
  }

  .hero-visual {
    order: 2;
    display: flex;
    justify-content: center;
  }

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

  .hero-image-wrapper {
    justify-content: center;
  }

  .hero-image-inner {
    width: 200px;
    height: 200px;
    margin-top: 24px;
  }

  .hero-content .subtitle {
    margin-left: auto;
    margin-right: auto;
  }

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

  .marquee-label {
    width: 110px;
    font-size: 0.72rem;
  }

  /* Trailhead Mobile */
  .trailhead-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .trailhead-content h2 {
    text-align: center !important;
  }

  .trailhead-stats {
    justify-content: center;
    gap: 24px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

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

  .timeline-item {
    padding-left: 2.5rem;
  }

  .timeline::after {
    left: 8px;
  }

  .timeline-item::after {
    left: 0;
  }

  .hero-image-inner {
    width: 180px;
    height: 180px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }
}