/* =========================================================
   🌿  MAGICAL NATURE THEME — Cleaned + Organized
   ========================================================= */
#bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* IMPORTANT */
  pointer-events: none; /* KEY FIX */
}
/* ---------- ROOT COLORS ---------- */
:root {
  --green-dark: #2e4632;
  --green: #4f7f5e;
  --green-light: #dff3e4;
  --beige: #f7f3ea;
  --white: #ffffff;

  --accent: #4f7f5e; /* Main theme accent */
}


/* ---------- GLOBAL RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--beige);
  color: #2c2c2c;
  line-height: 1.6;
}

/* =========================================
   🌿 NAVBAR
   ========================================= */
nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 8%;
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid #e5eadf;
}
nav {
  position: sticky;
  top: 0;
  z-index: 1000;
}
/* FIX: Prevent navbar from hiding section titles when clicked */
section {
  scroll-margin-top: 120px; /* adjust depending on navbar height */
}


.logo {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--green-dark);
  letter-spacing: 0.5px;
}

nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
}

nav ul li a {
  text-decoration: none;
  color: var(--green-dark);
  font-weight: 500;
  transition: 0.3s;
}

nav ul li a:hover {
  color: var(--green);
  transform: translateY(-1px);
}

.cv-btn {
  background: var(--green);
  color: white;
  padding: 8px 18px;
  border-radius: 25px;
  text-decoration: none;
  transition: 0.3s ease;
  font-weight: 500;
}

.cv-btn:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
}

/* =========================================
   🌿 HEADER (Hero)
   ========================================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px 8%;
  gap: 40px;
}

header .intro {
  max-width: 600px;
}

header h1 {
  font-size: 2.7rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 15px;
}

header h1 span {
  color: var(--green);
  font-weight: 800;

}

header p {
  font-size: 1.2rem;
  opacity: 0.9;
  color: #333;
}

.profile-pic {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--green);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* =========================================
   🌿 SECTION WRAPPER
   ========================================= */
@font-face {
  font-family: elene;
  src: url(fonts/LavishlyYours-Regular.ttf);
}


section {
  padding: 70px 8%;
}

section h2 {
  font-size: 2.3rem;
  color: var(--green-dark);
  text-align: center;
  margin-bottom: 25px;
  position: relative;
}

section h2::after {
  content: "";
  width: 60px;
  height: 4px;
  background: var(--green);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -8px;
  border-radius: 4px;
}

/* =========================================
   🌿 SKILLS
   ========================================= */
#skills {
  background: var(--green-light);
  border-top: 2px solid #d2e8d8;
  border-bottom: 2px solid #d2e8d8;
  padding: 80px 8%;
}

.skills-category {
  margin-bottom: 50px;
  max-width: 1000px;
  margin-inline: auto;
}

.skills-category h3 {
  font-size: 1.5rem;
  color: var(--green-dark);
  border-left: 6px solid var(--green);
  padding-left: 10px;
  margin-bottom: 20px;
}

/* skills list */
.skill-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.skill-list li {
  background: var(--white);
  padding: 18px;
  border-radius: 12px;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: 0.25s ease;
}

.skill-list li:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* =========================================
   🌿 PROJECTS
   ========================================= */
.project {
  background: var(--white);
  border: 1px solid #e7e7e7;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  transition: 0.25s;
}

.project:hover {
  transform: translateY(-3px);
  border-color: var(--green);
}

.project h3 {
  margin-bottom: 10px;
  color: var(--green-dark);
}

.project a {
  color: var(--green-dark);
  font-weight: 600;
  text-decoration: none;
}

.project-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.project-images img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  transition: 0.25s;
}

.project-images img:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* =========================================
   🌿 CERTIFICATES
   ========================================= */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.certificate {
  background: var(--white);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.certificate img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* =========================================
   🌿 ACHIEVEMENTS
   ========================================= */
.achievement {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  max-width: 1000px;
  margin: 0 auto;
}

.achievement-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.achievement-images img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  transition: 0.25s ease;
  cursor: zoom-in;
}

.achievement-images img:hover {
  transform: scale(1.05);
}

/* =========================================
   🌿 CONTACT
   ========================================= */
#contact a {
  color: var(--green-dark);
  text-decoration: none;
}

#contact a:hover {
  text-decoration: underline;
}

/* =========================================
   🌿 FOOTER
   ========================================= */
footer {
  text-align: center;
  padding: 25px;
  background: var(--green-light);
  color: var(--green-dark);
  margin-top: 40px;
  font-weight: 500;
}
/* ACHIEVEMENTS SECTION GRID FIXED */

.achievement-block {
  margin-bottom: 60px;
}

.achievement-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #1a3c25; /* dark green */
}

.achievement-description {
  font-size: 17px;
  margin: 15px 0 25px 0;
  line-height: 1.6;
}

/* GRID OF SQUARE IMAGES */
.achievement-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 25px;
}

.achievement-grid a {
  display: block;
  width: 160px;
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
  background: #0f2618; /* dark green frame */
  padding: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: transform 0.25s ease;
}

.achievement-grid a:hover {
  transform: scale(1.05);
}

/* Make image fit inside frame perfectly */
.achievement-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .achievement-grid a {
    width: 140px;
    height: 140px;
  }
}

@media (max-width: 600px) {
  .achievement-grid a {
    width: 46%;
    height: 150px;
  }
}
/* ============================
   ACHIEVEMENTS — FINAL FIXED
   ============================ */

/* Main card container */
.achievement,
.achievement-box,
.achievement-card {
  background: #fff;
  border-radius: 14px;
  padding: 25px;
  margin: 40px auto;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  max-width: 1100px;
}

/* Titles */
.achievement h3,
.achievement-box h2,
.achievement-card h3 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: #1a3c25;
  font-weight: 700;
}

/* Description */
.achievement-description {
  text-align: center;
  line-height: 1.6;
  color: #333;
  max-width: 900px;
  margin: 0 auto 25px auto;
}

/* ============================
   SQUARE IMAGE GRIDS CLEAN
   ============================ */

.image-grid,
.image-row {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 10px;
}

/* Square framed images */
.image-grid img,
.image-row img {
  width: 190px;
  height: 190px;
  object-fit: cover;
  border-radius: 10px;
  border: 6px solid #14301d; /* dark green frame */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

/* Hover effect */
.image-grid img:hover,
.image-row img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* Make the clickable <a> wrap images properly */
.image-grid a,
.image-row a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
}

@media (max-width: 600px) {
  .image-grid img,
  .image-row img {
    width: 150px;
    height: 150px;
  }
}
.cert-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.cert-row a {
  display: block;
}

.cert-thumb {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border: 6px solid #0f2d1f; /* dark green frame */
  border-radius: 12px;
  box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.cert-thumb:hover {
  transform: scale(1.03);
}
.cert-row {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 15px !important;
  width: 100%;
  flex-wrap: nowrap !important;
}

.cert-thumb {
  width: 170px !important;
  height: 170px !important;
  object-fit: cover !important;
  border: 6px solid #0f2d1f !important;
  border-radius: 12px !important;
  box-shadow: 0px 3px 10px rgba(0,0,0,0.15) !important;
}
/* Make ONLY the Pearson card wider */
.certificate-card.pearson-wide {
  width: 100%;
  max-width: 1200px;   /* adjust wider/narrower if needed */
  margin: 0 auto;
}

/* Keep images in a clean horizontal row */
.pearson-wide .cert-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
}

/* Ensure the thumbnails fit nicely */
.pearson-wide .cert-thumb {
  width: 280px;      /* adjust size if needed */
  height: auto;
  border: 6px solid #0a3d2e;
  border-radius: 12px;
}
/* Makes ONLY Pearson section wide */
.pearson-wide {
  width: 100%;
  max-width: 1350px;
  margin: 40px auto;
  padding: 30px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Inside image row */
.pearson-wide .cert-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

/* Pearson certificate thumbnails */
.pearson-wide .cert-thumb {
  width: 260px;
  height: auto;
  border: 6px solid #0b3d2e;
  border-radius: 12px;
}
/* Make only the Pearson block span 2 columns */
.pearson-wide {
  grid-column: span 2;
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Image row */
.pearson-wide .cert-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

/* Certificate thumbnails */
.pearson-wide .cert-thumb {
  width: 260px;
  border: 6px solid #0b3d2e;
  border-radius: 12px;
}
/* Make all certificate images inside normal cards stay consistent */
.certificate img {
  width: 260px;
  border-radius: 12px;
  border: 6px solid #0b3d2e;
  display: block;
  margin: 0 auto;
}


/* Fix the OpenLearn image which is too huge */
.openlearn img {
  width: 380px;
}
/* Tabs */
.skill-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 25px;
}

.tab-button {
  background: #5a3b1e; /* brown */
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 20px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.tab-button.active {
  background: #8a5b32;
}

/* Hidden content */
.skills-content {
  display: none;
}
.skills-content.active {
  display: block;
}

/* Skill list */
.skill-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 700px;
}

.skill-list > li {
  margin: 15px 0;
  padding: 15px;
  background: #ffffff;
  border-radius: 10px;
  font-size: 22px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

/* Sub-skill items */
.sub-skill-list {
  list-style: none;
  padding: 0;
  margin-top: 10px;
  display: none;
}

.sub-skill-list li {
  background: #f5f5f5;
  padding: 10px;
  margin: 6px 0;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 400;
}

/* Dropdown styling */
.dropdown::after {
  content: "▼";
  float: right;
  font-size: 18px;
  opacity: 0.7;
}
.dropdown.open::after {
  content: "▲";
}
h1 span {
  white-space: nowrap;
  /* font-family: elene; */
}
#experience, #languages {
  padding: 80px 0;
  text-align: center;
}

#experience h2, #languages h2 {
  font-size: 38px;
  color: #335f47;
  margin-bottom: 40px;
}

.experience-container,
.languages-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* Your name */
.name {
    font-size: 60px;
    font-weight: 800;
    color: #4f7f5e; /* burgundy */
    margin: 0;
}

/* Navigation centered below name */
.nav {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 35px;
    background: #004000;
    padding: 12px 20px;
}

.nav a {
    color: white;
    font-size: 20px;
    text-decoration: none;
    font-weight: 600;
}

/* CV button aligned RIGHT */
.cv-btn {
    display: inline-block;
    margin-top: 25px;
    margin-left: auto;
    background: #270e00; /* brown */
    color: white;
    padding: 12px 28px;
    border-radius: 35px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    float: right;
}
.experience-entry {
    margin-bottom: 25px;
}

.experience-entry h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.experience-date {
    font-style: italic;
    margin-bottom: 10px;
}

.experience-description {
    line-height: 1.6;
}
/* FULL-WIDTH PORTRAIT IMAGE FOR EXPERIENCE SECTION */
.experience-full-wrapper {
    display: block;
    width: 100%;
    max-width: 600px;      /* how wide the portrait appears */
    margin: 30px auto;     /* center it */
    border-radius: 18px;
    overflow: hidden;
}

.experience-full {
    width: 100%;
    height: auto;
    max-height: 800px;     /* keeps portrait shape without stretching */
    object-fit: cover;

    border: 8px solid #0f2d1f; /* dark green frame */
    border-radius: 18px;

    box-shadow: 0px 8px 25px rgba(0,0,0,0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: zoom-in;
}

.experience-full:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
/* =======================
   LANGUAGES SECTION
   ======================= */
.languages-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.language-card {
    background: #ffffff;
    padding: 22px;
    border-radius: 14px;
    border: 4px solid #0f2d1f; /* dark forest green */
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.language-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

.language-card h3 {
    font-size: 1.4rem;
    color: #1a3c25;
    margin-bottom: 8px;
}

.language-card .proficiency {
    font-size: 1rem;
    color: #333;
    opacity: 0.9;
}
.contact-links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.contact-links a {
    font-size: 20px;
    font-weight: 600;
    color: #335f47; /* your theme green */
    text-decoration: none;
    background: #dff3e4;
    padding: 10px 20px;
    border-radius: 12px;
    transition: 0.3s ease;
}

.contact-links a:hover {
    background: #4f7f5e;
    color: white;
    transform: translateY(-2px);
}
/* Vanta Background */
#bg {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Content that goes above the background */
.content {
    position: relative;
    z-index: 1;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  color: #333;
  text-decoration: none;
  margin-bottom: 12px;
}

.contact-link:hover {
  opacity: 0.7;
}

.contact-link svg {
  flex-shrink: 0;
}
.footer {
  background: #0e1407;
  color: #fff;
  text-align: center;
  padding: 3rem 1rem;
}

.footer-logo {
  width: 260px;
  margin-bottom: 1rem;
}

.footer-name {
  font-family: 'Cinzel', serif; /* matches your logo style */
  font-size: 1.8rem;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.footer-contact p {
  opacity: 0.85;
  margin: 0.3rem 0;
}
section, header {
  position: relative;
  z-index: 1;
}

/*BUTTON*/
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
  margin-left: 20px;
}

.theme-toggle img {
  width: 18px;
  height: 18px;
}

/* BRANCHES */
.floating-branch {
  pointer-events: none;
}
.floating-branch {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.dark-mode .floating-branch {
  opacity: 0.75;
}

/* top-left branch */
.branch-left {
  top: 110px;
  left: -40px;
  width: 180px;
}

/*SEARCH BAR */
/* ============================
   SEARCH BAR
   ============================ */
.search-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 20px auto 10px;
  padding: 0 20px;
  flex-wrap: wrap;
}

#siteSearch {
  width: 100%;
  max-width: 420px;
  padding: 14px 18px;
  border: 2px solid #d6e4d8;
  border-radius: 30px;
  outline: none;
  font-size: 16px;
  background: #ffffff;
  color: #2c2c2c;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
}

#siteSearch:focus {
  border-color: #4f7f5e;
  box-shadow: 0 4px 14px rgba(79, 127, 94, 0.18);
}

#searchBtn {
  padding: 13px 22px;
  border: none;
  border-radius: 30px;
  background: #4f7f5e;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

#searchBtn:hover {
  background: #2e4632;
  transform: translateY(-2px);
}

/* highlight found section */
.search-highlight {
  animation: searchFlash 1.5s ease;
}

@keyframes searchFlash {
  0% {
    box-shadow: 0 0 0 rgba(79, 127, 94, 0);
    background-color: transparent;
  }
  30% {
    box-shadow: 0 0 20px rgba(79, 127, 94, 0.25);
    background-color: rgba(223, 243, 228, 0.75);
  }
  100% {
    box-shadow: 0 0 0 rgba(79, 127, 94, 0);
    background-color: transparent;
  }
}

/* mobile */
@media (max-width: 600px) {
  .search-container {
    flex-direction: column;
  }

  #siteSearch {
    max-width: 100%;
  }

  #searchBtn {
    width: 100%;
    max-width: 220px;
  }
}
/* ============================
   SEARCH BAR + AUTOCOMPLETE
   ============================ */
.search-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 20px auto 10px;
  padding: 0 20px;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 560px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

#siteSearch {
  flex: 1;
  min-width: 240px;
  padding: 14px 18px;
  border: 2px solid #d6e4d8;
  border-radius: 30px;
  outline: none;
  font-size: 16px;
  background: #ffffff;
  color: #2c2c2c;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
}

#siteSearch:focus {
  border-color: #4f7f5e;
  box-shadow: 0 4px 14px rgba(79, 127, 94, 0.18);
}

#searchBtn {
  padding: 13px 22px;
  border: none;
  border-radius: 30px;
  background: #4f7f5e;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

#searchBtn:hover {
  background: #2e4632;
  transform: translateY(-2px);
}

.search-suggestions {
  position: absolute;
  top: 60px;
  left: 0;
  width: calc(100% - 110px);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border: 1px solid #dfe8e1;
  display: none;
  z-index: 2000;
  max-height: 260px;
  overflow-y: auto;
}

.search-suggestions li {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.2s ease;
}

.search-suggestions li:hover,
.search-suggestions li.active {
  background: #edf7ef;
}

.search-highlight {
  animation: searchFlash 1.5s ease;
}

@keyframes searchFlash {
  0% {
    box-shadow: 0 0 0 rgba(79, 127, 94, 0);
    background-color: transparent;
  }
  30% {
    box-shadow: 0 0 20px rgba(79, 127, 94, 0.25);
    background-color: rgba(223, 243, 228, 0.75);
  }
  100% {
    box-shadow: 0 0 0 rgba(79, 127, 94, 0);
    background-color: transparent;
  }
}

@media (max-width: 600px) {
  .search-box {
    flex-direction: column;
    align-items: stretch;
  }

  #siteSearch {
    width: 100%;
  }

  #searchBtn {
    width: 100%;
  }

  .search-suggestions {
    width: 100%;
    left: 0;
    top: 60px;
  }
}
/* ============================
   PRO SEARCH
   ============================ */
.search-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 20px auto 12px;
  padding: 0 20px;
}

.search-box {
  position: relative;
  width: 100%;
  max-width: 650px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

#siteSearch {
  flex: 1;
  min-width: 240px;
  padding: 14px 18px;
  border: 2px solid #d6e4d8;
  border-radius: 30px;
  outline: none;
  font-size: 16px;
  background: #ffffff;
  color: #2c2c2c;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
}

#siteSearch:focus {
  border-color: #4f7f5e;
  box-shadow: 0 4px 14px rgba(79, 127, 94, 0.18);
}

#searchBtn {
  padding: 13px 22px;
  border: none;
  border-radius: 30px;
  background: #4f7f5e;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

#searchBtn:hover {
  background: #2e4632;
  transform: translateY(-2px);
}

.search-suggestions {
  position: absolute;
  top: 62px;
  left: 0;
  width: calc(100% - 115px);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border: 1px solid #dfe8e1;
  display: none;
  z-index: 2000;
  max-height: 280px;
  overflow-y: auto;
}

.search-suggestions li {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.2s ease;
}

.search-suggestions li:hover,
.search-suggestions li.active {
  background: #edf7ef;
}

.search-result-type {
  display: block;
  font-size: 12px;
  opacity: 0.65;
  margin-top: 3px;
}

.search-highlight {
  animation: sectionFlash 1.6s ease;
}

@keyframes sectionFlash {
  0% {
    box-shadow: 0 0 0 rgba(79, 127, 94, 0);
    background-color: transparent;
  }
  35% {
    box-shadow: 0 0 20px rgba(79, 127, 94, 0.22);
    background-color: rgba(223, 243, 228, 0.75);
  }
  100% {
    box-shadow: 0 0 0 rgba(79, 127, 94, 0);
    background-color: transparent;
  }
}

mark.search-mark {
  background: #cdeccf;
  color: #17301f;
  padding: 0 3px;
  border-radius: 4px;
}

@media (max-width: 600px) {
  .search-box {
    flex-direction: column;
    align-items: stretch;
  }

  #siteSearch,
  #searchBtn,
  .search-suggestions {
    width: 100%;
  }

  .search-suggestions {
    left: 0;
    top: 60px;
  }
}

/* CONTACT FORM */
/* ============================
   CONTACT FORM
   ============================ */
.contact-form-wrapper {
  max-width: 700px;
  margin: 35px auto 0;
  background: #ffffff;
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid #dff3e4;
}

.contact-form-wrapper h3 {
  text-align: center;
  color: #1a3c25;
  margin-bottom: 20px;
  font-size: 1.6rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #d9e7dc;
  border-radius: 12px;
  font-size: 16px;
  outline: none;
  background: #fff;
  color: #2c2c2c;
  transition: 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #4f7f5e;
  box-shadow: 0 0 0 4px rgba(79, 127, 94, 0.12);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form button {
  background: #4f7f5e;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.contact-form button:hover {
  background: #2e4632;
  transform: translateY(-2px);
}

.contact-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  margin-top: 16px;
  text-align: center;
  font-weight: 600;
  min-height: 24px;
}

.form-status.success {
  color: #1d6b38;
}

.form-status.error {
  color: #b42318;
}
/* OWL */
.theme-owl {
  position: fixed;
  right: 5px;
  bottom: 40px;
  width: 140px;
  z-index: 9998;
  opacity: 0;
  transition: right 0.6s ease, opacity 0.6s ease;
  pointer-events: none;
}

.theme-owl.show {
  right: 20px;
  opacity: 1;
}
.theme-owl:hover {
  transform: scale(1.05);
}

#adminLoginBtn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10001;
}

#adminCounter {
  position: fixed;
  right: 20px;
  bottom: 70px;
  z-index: 10001;
}
.menu-toggle {
  display: none;
}


/* =========================================
   TABLET RESPONSIVE FIXES
   ========================================= */
@media (max-width: 1024px) {
  /* General spacing */
  body {
    overflow-x: hidden;
  }

  section {
    padding: 55px 5%;
  }

  /* Theme button */
  .theme-toggle {
    position: fixed;
    top: 14px;
    right: 14px;
    margin-left: 0;
    z-index: 2001;
    padding: 10px 14px;
    font-size: 14px;
  }

  .theme-toggle img {
    width: 16px;
    height: 16px;
  }

  /* Decorative branch */
  .branch-left {
    top: 95px;
    left: -30px;
    width: 130px;
  }

  /* Top navigation */
  .nav {
    gap: 14px;
    padding: 14px 16px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav a {
    font-size: 16px;
    padding: 6px 10px;
  }

  /* Name + CV area */
  .white-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 24px 20px 10px;
  }

  .name {
    font-size: 42px;
    line-height: 1.1;
  }

  .cv-btn {
    float: none;
    margin: 0;
    padding: 11px 22px;
    font-size: 17px;
  }

  /* Search bar */
  .search-container {
    padding: 0 16px;
    margin: 18px auto;
  }

  .search-box {
    width: 100%;
    max-width: 720px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
  }

  #siteSearch {
    max-width: none;
    flex: 1;
  }

  #searchBtn {
    flex-shrink: 0;
    padding: 14px 18px;
  }

  .search-suggestions {
    width: 100%;
    left: 0;
    top: calc(100% + 8px);
  }

  /* Hero */
  header {
    padding: 55px 5%;
    gap: 28px;
    align-items: center;
  }

  header .intro {
    max-width: 100%;
  }

  header h1 {
    font-size: 2.1rem;
    line-height: 1.2;
  }

  header p {
    font-size: 1.05rem;
  }

  .profile-pic {
    width: 220px;
    height: 220px;
    flex-shrink: 0;
  }

  /* Skills tabs */
  .skill-tabs {
    flex-wrap: wrap;
    gap: 12px;
  }

  .tab-button {
    font-size: 16px;
    padding: 10px 14px;
  }

  .skill-list {
    max-width: 100%;
  }

  .skill-list > li {
    font-size: 19px;
    padding: 14px;
  }

  .sub-skill-list li {
    font-size: 16px;
  }

  /* Projects */
  .project-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-images img {
    height: 180px;
  }

  /* Achievement / certificate images */
  .image-row,
  .image-grid,
  .cert-row {
    flex-wrap: wrap !important;
    justify-content: center;
    overflow-x: visible;
  }

  .image-row img,
  .image-grid img {
    width: 160px;
    height: 160px;
  }

  .cert-thumb,
  .pearson-wide .cert-thumb,
  .certificate img,
  .openlearn img {
    width: min(100%, 220px) !important;
    height: auto !important;
  }

  /* Pearson wide section should stop behaving extra-wide on tablet */
  .pearson-wide {
    grid-column: span 1;
    max-width: 100%;
    padding: 22px;
  }

  /* Experience / languages */
  #experience,
  #languages {
    padding: 60px 5%;
  }

  #experience h2,
  #languages h2 {
    font-size: 32px;
  }

  .experience-full-wrapper {
    max-width: 420px;
  }

  /* Safer text wrapping */
  h1 span,
  .name,
  .achievement h3,
  .achievement-card h3,
  .achievement-box h2 {
    white-space: normal;
    word-break: break-word;
  }
 .theme-owl{
  display: none !important;
 }
 .menu-toggle {
  display: none;
}

}
/* =========================================
   📱 PHONE ONLY (iPhone 14, etc.)
   ========================================= */
@media (max-width: 768px) {

  body {
    overflow-x: hidden;
  }

  /* SHOW BURGER */
  .menu-toggle {
    display: block;
  }
.menu-toggle {
    display: block;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 9999;
    background: #004000;
    color: white;
    font-size: 24px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
  }

  /* SIDE MENU */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;              /* 👈 SMALL WIDTH */
    height: 100vh;
    background: #004000;

    display: flex;
    flex-direction: column;
    align-items: flex-start;  
    padding: 70px 20px;
    gap: 18px;

    transform: translateX(-100%); 
    transition: transform 0.3s ease;

    z-index: 9998;
  }

  /* OPEN STATE */
  .nav.active {
    transform: translateX(0);
  }

  .nav a {
    color: white;
    font-size: 16px;
  }

  /* NAME + HEADER BOX */
  .white-box {
    padding: 20px 15px;
    text-align: center;
  }

  .name {
    font-size: 30px;
    line-height: 1.2;
  }

  .cv-btn {
    float: none;
    margin: 10px auto 0;
    display: block;
    width: fit-content;
    font-size: 16px;
    padding: 10px 18px;
  }

  /* SEARCH */
  .search-box {
    flex-direction: column;
    gap: 8px;
  }

  #siteSearch {
    width: 100%;
  }

  #searchBtn {
    width: 100%;
  }

  /* HERO SECTION */
  header {
    flex-direction: column;
    text-align: center;
    padding: 40px 5%;
  }

  header h1 {
    font-size: 1.7rem;
  }

  header p {
    font-size: 0.95rem;
  }

  .profile-pic {
    width: 170px;
    height: 170px;
    margin-top: 15px;
  }

  /* SECTIONS */
  section {
    padding: 50px 5%;
  }

  section h2 {
    font-size: 1.8rem;
  }

  /* SKILLS */
  .skill-tabs {
    flex-direction: column;
    align-items: center;
  }

  .tab-button {
    width: 100%;
    max-width: 320px;
    font-size: 15px;
    padding: 10px;
  }

  .skill-list > li {
    font-size: 17px;
    padding: 12px;
  }

  .sub-skill-list li {
    font-size: 14px;
  }

  /* PROJECTS */
  .project-images {
    grid-template-columns: 1fr;
  }

  .project-images img {
    height: 160px;
  }

  /* ACHIEVEMENTS IMAGES */
  .image-row,
  .image-grid,
  .cert-row {
    flex-wrap: wrap !important;
    gap: 10px;
    justify-content: center;
  }

  .image-row img,
  .image-grid img {
    width: 130px;
    height: 130px;
  }

  /* CERTIFICATES */
  .cert-thumb,
  .pearson-wide .cert-thumb,
  .certificate img,
  .openlearn img {
    width: 100% !important;
    max-width: 260px;
    height: auto !important;
  }

  /* FIX WIDE SECTIONS */
  .pearson-wide {
    grid-column: span 1;
    padding: 20px;
  }

  /* TEXT FIXES */
  h1 span,
  .name {
    white-space: normal;
  }
 .theme-owl{
  display: none !important;
 }

}
