/* ══════════════════════════════════════════════════════
   MELISSA GARRIDO — PORTFOLIO STYLES
   Structure:
     1. CSS Variables & Reset
     2. Header
     3. Home Layout
     4. Titles (shared)
     5. About Page
     6. Contact Page
     7. Pets Page
     8. Responsive — Tablet  (≤ 1024px)
     9. Responsive — Mobile  (≤ 768px)
    10. Responsive — Small   (≤ 480px)
   ══════════════════════════════════════════════════════ */


/* ─── 1. CSS VARIABLES & RESET ───────────────────────── */
:root {
  --primary:       #7C3AED;
  --primary-light: #C4B5FD;
  --text:          #444444;
  --border:        #E5E7EB;
  --bg:            #FFFFFF;
  --radius:        8px;
  --shadow:        0 8px 20px rgba(181, 127, 228, 0.15);
  --hover-shadow:  0 20px 50px rgba(181, 127, 228, 0.20);
  --text-shadow:   2px 2px 4px rgba(0, 0, 0, 0.3);
  --header-height: 70px;
}

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

body {
  margin: 0;
  padding-top: var(--header-height); /* always offset fixed header */
  color: var(--text);
  background: var(--bg);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


/* ─── 2. HEADER ──────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding: 0.5rem 1rem;
  background: var(--bg);
  box-shadow: 0 1px 0 var(--border);
  z-index: 100;
}

.headerbtn {
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.headerbtn:hover {
  color: var(--primary-light);
}

.headerbtn.active {
  font-weight: 600;
  color: var(--text);
  border-bottom: 2px solid var(--primary);
}

.lang-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.lang-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}


/* ─── 3. HOME LAYOUT ─────────────────────────────────── */
.layout {
  display: grid;
  grid-template-columns: 50% 50%;
  min-height: calc(100dvh - var(--header-height));
  align-items: center;
}

.personal-information {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 29px;
  margin: 20px;
  
}

.presentation {
  font-size: 15px;
}

.center-subtitle {
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-title {
  font-size: clamp(2rem, 4vw, 62px);
  font-weight: 1000;
  line-height: 1.05;
  text-shadow: var(--text-shadow);
  margin: 0;
}

.highlight {
  color: var(--primary);
}

.index-description {
  font-size: 12px;
  color: var(--text);
  max-width: 520px;
}

.skill-box {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.skills {
  font-size: 20px;
  text-shadow: var(--text-shadow);
  transition: transform 0.2s ease;
}

.skills:hover {
  transform: translateY(-2px);
}


/* CTA Buttons (LinkedIn, GitHub, Resume) */
.buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

/* Filled variant — primary actions */
.cta-btn.filled {
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
}

.cta-btn.filled:hover {
  background: #6d28d9;
  border-color: #6d28d9;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Outlined variant — secondary actions */
.cta-btn.outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.cta-btn.outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Photo column */
.photo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo img {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  object-fit: cover;
  padding: 30px;
  border: 2px solid #e8d5ff;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.photo img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(181, 127, 228, 0.35);
  border-color: var(--primary-light);
}


/* ─── 4. TITLES (shared across pages) ───────────────── */
.title {
  font-size: clamp(2rem, 8vw, 5rem);
  font-weight: bold;
  text-shadow: var(--text-shadow);
}

.center-title {
  font-size: clamp(2rem, 8vw, 5rem);
  font-weight: bold;
  text-shadow: var(--text-shadow);
  text-align: center;
}


/* ─── 5. ABOUT PAGE ──────────────────────────────────── */
.about-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px 100px;
}

/* Hero */
.about-hero {
  margin-bottom: 56px;
}

.about-hero .title {
  margin: 0;
}

/* Bio + Photo two-column grid */
.about-bio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.about-bio-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  margin: 0 0 20px;
}

.about-bio-text p:last-child {
  margin-bottom: 0;
}

.about-photo {
  display: flex;
  justify-content: center;
}

#photo-code {
  width: 100%;
  max-width: 480px;
  height: 340px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

#photo-code:hover {
  transform: translateY(-4px);
  box-shadow: var(--hover-shadow);
}

/* Skills section */
.about-skills-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: bold;
  text-shadow: var(--text-shadow);
  margin: 0 0 40px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-category {
  background: #faf8ff;
  border: 1px solid #ede9fe;
  border-radius: 14px;
  padding: 28px 24px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.skill-category:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.skill-cat-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-cat-title i {
  font-size: 1rem;
}

.skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skill-list li {
  font-size: 0.95rem;
  color: var(--text);
  padding-left: 14px;
  position: relative;
}

.skill-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-light);
}


/* ─── 6. CONTACT PAGE ────────────────────────────────── */
#contacttitle {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  font-size: clamp(3rem, 10vw, 100px);
  font-weight: bold;
  text-shadow: var(--text-shadow);
}

#form {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 50px;
}

.contact-form {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

#submitbtn {
  width: 100%;
  height: 48px;
  border-radius: var(--radius);
  background: var(--primary);
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#submitbtn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.success-msg {
  display: none;
  background: rgba(184, 255, 87, 0.07);
  padding: 1.2rem 1.5rem;
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.6;
}


/* ─── 7. PETS PAGE ───────────────────────────────────── */
.petslayout {
  display: grid;
  grid-template-rows: auto auto;
  grid-template-areas:
    "title"
    "cards";
  min-height: 100vh;
  padding-bottom: 40px;
}

.cardcontainer {
  grid-area: cards;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  justify-items: center;
}

.petcard {
  width: 300px;
  height: 400px;
  perspective: 1000px;
}

.cardinner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.petcard:hover .cardinner {
  transform: rotateY(180deg);
}

.cardfront,
.cardback {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 25px;
  backface-visibility: hidden;
}

.cardfront {
  background-color: var(--primary-light);
  border-radius: 25px;
  overflow: hidden;
}

.cardback {
  background-color: #e8d5ff;
  transform: rotateY(180deg);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.petphoto {
  width: 100%;
  height: 100%;
}

.petphoto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}


/* ══════════════════════════════════════════════════════
   8. RESPONSIVE — TABLET (≤ 1024px)
   ══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {

  .header {
    gap: 24px;
  }

  .headerbtn {
    font-size: 15px;
  }

  /* Home: stack columns */
  .layout {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .personal-information {
    display: flex;
    gap: 5px;
    margin: 5px;
    order: 2;
  }

  .photo {
    order: 1;
    padding-top: 20px;
  }

  .photo img {
    width: 250px;
    height: 250px;
  }

  /* Pets: 2 columns */
  .cardcontainer {
    grid-template-columns: repeat(2, 1fr);
  }

  /* About */
  .about-page {
    padding: 40px 24px 80px;
  }

  .about-bio-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-photo {
    order: -1;
  }

  #photo-code {
    height: 300px;
    max-width: 100%;
    border-radius: 16px;
  }

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


/* ══════════════════════════════════════════════════════
   9. RESPONSIVE — MOBILE (≤ 768px)
   ══════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  :root {
    --header-height: 110px; /* header wraps to ~2 rows */
  }

  .header {
    height: auto;
    padding: 0.6rem 1rem;
    gap: 10px 20px;
  }

  .headerbtn {
    font-size: 10px;
  }

  /* Home */
  .personal-information {
    display: flex;
    text-align: center;
    align-items: center;
    gap: 30px;
    margin: 8px;
    order: 2;
  }

  .main-title {
    font-size: clamp(2rem, 8vw, 5rem);
    font-weight: bold;
    text-shadow: var(--text-shadow);
  }

  .presentation,
  .index-description {
    font-size: 14px;
  }

  .photo img {
    width: 400px;
    height: 400px;
    padding: 16px;
  }

  .skills {
    font-size: 20px;
  }

  .buttons {
    gap: 8px;
  }

  .cta-btn {
    padding: 9px 16px;
    font-size: 10px;
  }

  /* Titles */
  .title,
  .center-title {
    font-size: clamp(2rem, 10vw, 3.5rem);
    margin-bottom: 16px;
  }

  /* Pets */
  .cardcontainer {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 10px;
  }

  .petcard {
    width: 100%;
    max-width: 260px;
    height: 320px;
  }

  /* Contact */
  #form {
    padding: 20px 10px;
    align-items: flex-start;
  }

  .contact-form {
    max-width: 100%;
  }

  /* About */
  .about-page {
    padding: 32px 16px 60px;
  }

  #photo-code {
    height: 240px;
    border-radius: 12px;
  }

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

/* ══════════════════════════════════════════════════════
   10. RESPONSIVE — SMALL PHONES (≤ 480px)
   ══════════════════════════════════════════════════════ */
@media (max-width: 480px) {

  :root {
    --header-height: 130px;
  }

  .header {
    gap: 8px 14px;
  }

  .headerbtn {
    font-size: 12px;
  }

  /* Home */
  .personal-information {
    display: flex;
    text-align: center;
    align-items: center;
    gap: 30px;
    margin: 8px;
    order: 2;
  }

  .main-title {
    font-size: clamp(2rem, 8vw, 48px);
  }

  .presentation,
  .index-description {
    font-size: 12px;
  }

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

  .photo img {
    width: 250px;
    height: 250px;
    padding: 12px;
  }

  .skills {
    font-size: 20px;
  }

  /* Pets: single column */
  .cardcontainer {
    grid-template-columns: 1fr;
  }

  .petcard {
    width: 100%;
    max-width: 320px;
    height: 360px;
  }

  /* About */
  #photo-code {
    height: 200px;
    border-radius: 10px;
  }
}


/* ══════════════════════════════════════════════════════
   11. HOME PAGE — SECTIONS (Projects, Experience, Certs)
   ══════════════════════════════════════════════════════ */

.home-section {
  padding: 80px 0;
}

.home-section-alt {
  background: #faf8ff;
  border-top: 1px solid #ede9fe;
  border-bottom: 1px solid #ede9fe;
}

.home-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.home-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
}

.home-section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: bold;
  text-shadow: var(--text-shadow);
  margin: 0;
}

.section-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.section-link:hover {
  gap: 10px;
}

/* ── Home Project Cards ── */
.home-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.home-project-card {
  background: #fff;
  border: 1px solid #ede9fe;
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.project-image {
  width: 100%;
  height: 100%;
  min-height: 220px;
  max-height: 240px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image {
  transform: scale(1.03);
}

.hpc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hpc-icon {
  width: 44px;
  height: 44px;
  background: #f3f0ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--primary);
}

.hpc-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--primary);
  background: #f3f0ff;
  padding: 4px 10px;
  border-radius: 20px;
}

.hpc-title {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  margin: 0;
}

.hpc-desc {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

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

.hpc-tags span {
  font-size: 0.75rem;
  background: #f3f0ff;
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 20px;
}

.hpc-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  transition: gap 0.2s ease;
}

.hpc-link:hover {
  gap: 10px;
}

/* ── Experience Snapshot ── */
.exp-snapshot {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

.exp-snap-role {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exp-snap-year {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.exp-snap-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: #222;
}

.exp-snap-company {
  font-size: 0.9rem;
  color: #888;
}

.exp-snap-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exp-snap-bullets li {
  font-size: 0.95rem;
  color: var(--text);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.exp-snap-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* ── Certs Row ── */
.home-certs-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.home-cert-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid #ede9fe;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #444;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-cert-pill i {
  color: var(--primary);
}

.home-cert-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.home-currently-learning {
  font-size: 0.9rem;
  color: #777;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.currently-label {
  font-weight: 700;
  color: var(--primary);
}

.currently-items {
  font-style: italic;
}


/* ══════════════════════════════════════════════════════
   12. PROJECTS PAGE
   ══════════════════════════════════════════════════════ */

.projects-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px 100px;
}

.projects-hero {
  margin-bottom: 16px;
}

.projects-hero .title {
  margin: 0 0 12px;
}

.projects-subtitle {
  font-size: 1rem;
  color: #777;
  margin: 0 0 56px;
}

.projects-section {
  margin-bottom: 72px;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Featured grid: 1 card wide on first, 2 below */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.featured-grid .featured-card:first-child {
  grid-column: 1 / -1; /* first card spans full width */
}

.project-card {
  background: #fff;
  border: 1px solid #ede9fe;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hover-shadow);
}

.project-card-header {
  position: relative;
  background: #f3f0ff;
}

.placeholder-screenshot {
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--primary-light);
}

.placeholder-icon {
  font-size: 3rem;
}

.placeholder-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b8a9e0;
}

/* Wide first card gets taller screenshot */
.featured-card:first-child .placeholder-screenshot {
  height: 240px;
}

.project-badge {
  position: absolute;
  bottom: 12px;
  left: 16px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
}

.project-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #222;
  margin: 0;
}

.project-description {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.65;
  margin: 0;
}

.project-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-highlights li {
  font-size: 0.88rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.project-highlights li i {
  color: var(--primary);
  margin-top: 2px;
  flex-shrink: 0;
}

.project-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.step {
  font-size: 0.75rem;
  font-weight: 600;
  background: #f3f0ff;
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
}

.step-arrow {
  color: #ccc;
  font-size: 0.7rem;
}

.project-links {
  margin-top: 4px;
}

/* Mini project cards (category grid) */
.category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cat-tab {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-tab.active,
.cat-tab:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.mini-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mini-card {
  background: #fff;
  border: 1px solid #ede9fe;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.mini-card-icon {
  width: 40px;
  height: 40px;
  background: #f3f0ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
  flex-shrink: 0;
}

.mini-card-body {
  flex: 1;
}

.mini-card-body h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: #222;
}

.mini-card-body p {
  font-size: 0.82rem;
  color: #777;
  margin: 0 0 10px;
  line-height: 1.5;
}

.mini-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.mini-tags span {
  font-size: 0.7rem;
  background: #f3f0ff;
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 10px;
}

.mini-link {
  color: #ccc;
  font-size: 1.1rem;
  text-decoration: none;
  transition: color 0.2s ease;
  flex-shrink: 0;
  padding-top: 2px;
}

.mini-link:hover {
  color: var(--primary);
}


/* ══════════════════════════════════════════════════════
   13. EXPERIENCE PAGE
   ══════════════════════════════════════════════════════ */

.exp-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 40px 100px;
}

.exp-hero {
  margin-bottom: 56px;
}

.exp-hero .title {
  margin: 0;
}

.exp-section {
  margin-bottom: 64px;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 2px solid #ede9fe;
}

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

.timeline-marker {
  position: absolute;
  left: -40px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary-light);
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.timeline-date {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.timeline-company {
  font-size: 0.85rem;
  font-weight: 600;
  color: #888;
  background: #f3f0ff;
  padding: 2px 12px;
  border-radius: 20px;
}

.timeline-role {
  font-size: 1.2rem;
  font-weight: 700;
  color: #222;
  margin: 0;
}

.timeline-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-bullets li {
  font-size: 0.93rem;
  color: var(--text);
  padding-left: 16px;
  position: relative;
  line-height: 1.55;
}

.timeline-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-light);
}

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

.timeline-tags span {
  font-size: 0.74rem;
  background: #f3f0ff;
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}

/* Certs grid */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.cert-card {
  background: #fff;
  border: 1px solid #ede9fe;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.cert-icon {
  width: 48px;
  height: 48px;
  background: #f3f0ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  flex-shrink: 0;
}

.cert-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cert-body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #222;
  margin: 0;
}

.cert-provider {
  font-size: 0.8rem;
  color: #888;
}

.cert-status {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 10px;
  width: fit-content;
}

.cert-status.completed {
  background: #dcfce7;
  color: #16a34a;
}

.cert-status.in-progress {
  background: #fef9c3;
  color: #ca8a04;
}

/* Currently Learning row */
.learning-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.learning-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #fff;
  border: 1px solid #ede9fe;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #444;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.learning-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}


/* ══════════════════════════════════════════════════════
   14. RESPONSIVE ADDITIONS for new sections
   ══════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .home-projects-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .featured-card:first-child {
    grid-column: auto;
  }

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

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

  .exp-snapshot {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .home-section-inner,
  .projects-page,
  .exp-page {
    padding-left: 20px;
    padding-right: 20px;
  }

  .home-projects-grid {
    grid-template-columns: 1fr;
  }

  .mini-projects-grid {
    grid-template-columns: 1fr;
  }

  .home-section {
    padding: 56px 0;
  }

  .home-section-header {
    flex-wrap: wrap;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .category-tabs {
    gap: 6px;
  }

  .cat-tab {
    padding: 6px 14px;
    font-size: 0.78rem;
  }

  .home-cert-pill {
    font-size: 0.8rem;
    padding: 8px 14px;
  }
}

/* ══════════════════════════════════════════════════════
   SUBTLE PORTFOLIO ANIMATIONS
   Replace ONLY animation-related sections with this
   ══════════════════════════════════════════════════════ */

/* ─── Smooth Page Fade ─────────────────────────────── */
body {
  animation: pageFade 0.8s ease;
}

@keyframes pageFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ─── Gentle Upward Entrance Animation ────────────── */
.personal-information,
.photo,
.home-project-card,
.project-card,
.mini-card,
.skill-category,
.cert-card,
.learning-item,
.exp-snapshot,
.timeline-item {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s ease forwards;
}

/* Staggered entrance */
.photo {
  animation-delay: 0.1s;
}

.home-project-card:nth-child(1),
.project-card:nth-child(1),
.mini-card:nth-child(1),
.skill-category:nth-child(1),
.cert-card:nth-child(1) {
  animation-delay: 0.1s;
}

.home-project-card:nth-child(2),
.project-card:nth-child(2),
.mini-card:nth-child(2),
.skill-category:nth-child(2),
.cert-card:nth-child(2) {
  animation-delay: 0.2s;
}

.home-project-card:nth-child(3),
.project-card:nth-child(3),
.mini-card:nth-child(3),
.skill-category:nth-child(3),
.cert-card:nth-child(3) {
  animation-delay: 0.3s;
}

.home-project-card:nth-child(4),
.project-card:nth-child(4),
.mini-card:nth-child(4),
.timeline-item:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Softer Hover Animations ─────────────────────── */
.skills,
.cta-btn,
.home-project-card,
.project-card,
.mini-card,
.skill-category,
.cert-card,
.learning-item,
.photo img,
.project-image {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease,
    color 0.35s ease;
}

/* Gentle hover lift */
.home-project-card:hover,
.project-card:hover,
.mini-card:hover,
.skill-category:hover,
.cert-card:hover,
.learning-item:hover,
.photo img:hover {
  transform: translateY(-6px);
}

/* Skill icon floating */
.skills:hover {
  transform: translateY(-4px) scale(1.05);
}

/* Buttons */
.cta-btn:hover {
  transform: translateY(-3px);
}

/* Project image subtle zoom */
.project-card:hover .project-image {
  transform: scale(1.04);
}

/* ─── Floating Profile Image ──────────────────────── */
.photo img {
  animation:
    fadeUp 1s ease forwards,
    floatImage 5s ease-in-out infinite;
}

@keyframes floatImage {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* ─── Smooth Scroll ───────────────────────────────── */
html {
  scroll-behavior: smooth;
}

/* ─── Reduce Motion Accessibility ─────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}