/* ============================================================ */
/* ========== Base ========== */
/* ============================================================= */
/* Fonts, Reset, Variables, Typography */

/* ---------- Import Web-Fonts ---------- */

/* Mandarin + English fonts */
@import url('https://fonts.googleapis.com/css2?family=LXGW+WenKai+Mono+TC&family=Zain:ital,wght@0,200;0,300;0,400;0,700;0,800;0,900;1,300;1,400&display=swap');

/* ---------- CSS Reset & Base Settings ---------- */

/* Universal box-sizing and removal of default margin/padding */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Set max-width */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Enable smooth scroll for anchor links */
html {
  scroll-behavior: smooth;
  font-size: 1.5rem; /* 1rem = 16px */
}

/* Apply default font, background and text colour to the body */
body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-width: 320px;
}

/* ---------- Design Tokens (CSS Variables) ---------- */

:root {
  /* -- Fixed Navigation Bar Height -- */
  --nav-height: 80px;

  /* -- Base Colours -- */
  --color-bg: #f0e0c0; /* Main background */
  --color-surface: #f7e9e3; /* Background for sections/cards */

  /* -- Typography Colours -- */
  --color-text: #1c1c1e; /* Default text */
  --color-heading: #0f0f0f; /* Headings */
  --color-muted: #6b5f57; /* Secondary/supporting text */

  /* -- Accent Colours -- */
  --color-primary: #bfa25f; /* Primary UI elements (e.g. buttons, links) */
  --color-secondary: #eecfc7; /* Hover or emphasis */
  --color-accent: #f8e5db; /* Highlight background */

  /* -- Utility Colours -- */
  --color-border: #e6d7ce; /* Borders and dividers */
  --color-shadow: rgba(0, 0, 0, 0.06); /* Soft shadows */

  /* -- Typography & Layout -- */
  --font-heading: 'Zain', 'LXGW WenKai Mono TC', serif;
  --font-body: 'LXGW WenKai Mono TC', serif;

  /* -- Spacing Scale -- */
  --space-xs: 0.25rem; /* Extra small spacing */
  --space-sm: 0.5rem; /* Small spacing */
  --space-md: 1rem; /* Medium spacing */
  --space-lg: 2rem; /* Large spacing */
  --space-xl: 4rem; /* Extra large spacing */

  /* -- Border Radius & Transition -- */
  --radius: 0.5rem; /* Default border radius */
  --transition: 0.3s ease; /* Default transition timing */
}

/* ---------- Headings & Links ---------- */

h2,
h3,
h4,
h5 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  margin-bottom: var(--space-md);
}

/* Anchor link default style */
a {
  color: rgba(106, 60, 0, 0.884);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

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

/* Animated underline on hover */
a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: #d87e8e;
  transition: width 0.4s ease;
}

a:hover::after {
  width: 100%;
}

/* ============================================================ */
/* ========== Preloader ========== */
/* ============================================================= */

#preloader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: hsl(0, 0%, 100%);
  z-index: 20000 !important;
}

#preloader img {
  width: 8.5rem;
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1rem;
  animation: running-wiggle 0.7s infinite linear;
}

/* Preloader Typing */
#preloader-typing {
  font-size: 1.1rem;
  color: #020202;
  text-align: center;
  margin-top: 0;
  min-width: 240px;
  min-height: 3.2em;
}

/* Preloader Caret */
#preloader-caret {
  display: inline-block;
  width: 1ch;
  color: #020202;
  font-weight: bold;
  animation: blink-caret 0.8s steps(1) infinite;
}

/* ============================================================ */
/* ========== Layout ========== */
/* ============================================================= */
/* Header, Navmenu, Social Icons, Language Switch */

/* ---------- Header Container ---------- */

/* Fixed top header with transparent background (changes on scroll) */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(221, 11, 11, 0);
  padding: var(--space-sm) 0;
  transition: background-color 0.5s ease, padding 0.5s ease;
  z-index: 1000;
}

/* Add background and shadow when scrolled */
.scrolled .header {
  background-color: #f3e7de;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ---------- Header Logo ---------- */
#header-name {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  letter-spacing: 0.15rem;
  color: #c6a679;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.25);
  margin-top: -0.7rem;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); /* for Safari */

  padding: 0 1rem;
  border-radius: 1rem;

  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.05);
}

#header-name:hover {
  color: rgba(255, 255, 255, 1);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
  transform: scale(1.05);

  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 100%
  );
}

/* ---------- Navigation Menu ---------- */

/* Centre-aligned navigation bar */
.navmenu {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex: 1;
  padding-left: 2rem;
}

/* Horizontal list for main menu */
.navmenu ul {
  list-style: none;
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
}

/* -- Nav Links -- */
.navmenu a {
  margin-top: 0.7rem;
  font-family: var(--font-body);
  font-weight: 750;
  text-transform: uppercase;
  color: #4b3d26;
  display: inline-block;
  transition: transform 0.3s ease;
}
.navmenu a:hover {
  transform: scale(1.2);
}

/* ---------- Hamburger Toggle (Mobile Only) ---------- */

/* -- Mobile Nav Toggle -- */
.mobile-nav-toggle {
  display: none;
  cursor: pointer;
}

/* ---------- Social Media Icons (Header) ---------- */

/* -- Container for social links -- */
.header-social-links {
  width: 50px;
  margin-top: 1.1rem;
  right: var(--space-lg);
  transform: translateY(-30%);
  display: flex;
  gap: var(--space-md);
}

/* -- LinkedIn Icon -- */
.header-social-links .linkedin {
  font-size: 26px;
  color: #0077b5;
}

/* Hover effect */
.header-social-links .linkedin:hover {
  color: #005582;
  transform: scale(1.2);
}

/* Clicked (active) effect */
.header-social-links .linkedin:active {
  color: #0c0524;
}

/* -- WhatsApp Icon 
.header-social-links .whatsapp {
  font-size: 26px;
  color: #25d366;
 
}

.header-social-links .whatsapp:hover {
  color: #006825e3;
  transform: scale(1.2);
}

.header-social-links .whatsapp:active {
  color: #041f1c;
} -- */

/* ---------- Language Switch (Navmenu) ---------- */

/* -- Language Switch Wrapper (EN / 中) -- */
.navmenu ul .lang-switch-nav {
  display: inline-flex; /* sit inline alongside the other <li> items */
  align-items: center; /* vertical center */
  margin-left: var(--space-lg); /* same gap as between other nav items */
  gap: 0.5rem; /* spacing between EN / 中 buttons */
}

/* -- Language Buttons -- */
.navmenu ul .lang-switch-nav button {
  /* match your pill-style buttons from .lang-switch */
  margin-top: 0.7rem; /* aligns with nav-link baseline */
  background: rgba(255, 245, 239, 0.35);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #3e2f25;
  border-radius: 1.5rem;
  padding: 0.3rem 0.8rem;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.navmenu ul .lang-switch-nav button:hover {
  background: rgba(255, 245, 239, 0.55);
  color: var(--color-primary);
  transform: scale(1.05);
}

/* ============================================================ */
/* ========== Dropdowns ========== */
/* ============================================================= */
/* First-level and second-level nav menu dropdowns */

/* ---------- First-Level Dropdown Container ---------- */

/* -- Dropdown container for items e.g., Work / Volunteering -- */
.navmenu li.dropdown > ul {
  display: none;
  position: absolute;
  top: 103%;
  left: 0;
  width: 200px;
  background: rgba(255, 255, 255, 0.5); /* frosted glass effect */
  backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 0;
  z-index: 1000;
}
.navmenu li.dropdown:hover > ul {
  display: block;
}

/* ---------- First-Level Dropdown Items ---------- */

/* -- Dropdown link items -- */
.navmenu li.dropdown > ul > li > a {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0 var(--space-sm) var(--space-sm);
  line-height: 1; /* Adjust line height for better vertical centering */
  color: var(--color-text);
  transition: background var(--transition), color var(--transition);
}
.navmenu li.dropdown > ul > li:hover > a {
  background: rgba(216, 164, 155, 0.8);
  color: #fff;
}

/* ---------- First-Level Arrow Icon ---------- */

/* -- Toggle icon beside dropdown items -- */
.navmenu li.dropdown > ul > li > .toggle-dropdown {
  display: inline-block;
  position: absolute;
  top: 30%;
  transform: translateY(-50%);
  right: 1rem;
  margin: 0;
  vertical-align: middle;
}

/* ---------- Second-Level Dropdown Container ---------- */

/* -- Nested dropdown (e.g., Work > IT & Engineering / Marketing & Consulting etc.) -- */
.navmenu li.dropdown > ul > li > ul {
  display: none;
  position: absolute;
  top: 0;
  left: 102%;
  min-width: 360px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(3px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: var(--space-sm);
}
.navmenu li.dropdown > ul > li:hover > ul {
  display: block;
}

/* ---------- Second-Level Dropdown Items ---------- */

/* -- Sub-items inside second-level dropdown -- */
.navmenu li.dropdown > ul > li > ul > li > a {
  display: block;
  padding: 0 var(--space-sm) var(--space-sm);
  color: var(--color-text);
  transition: background var(--transition), color var(--transition);
}
.navmenu li.dropdown > ul > li > ul > li:hover > a {
  background: rgba(216, 164, 155, 0.8);
  color: #fff;
}

/* ============================================================ */
/* ========== Section Base ========== */
/* ============================================================= */
/* Section layout, title blocks, subtitles, and alternating background */

/* ---------- Section Spacing ---------- */

/* -- Basic section padding (vertical & horizontal) -- */
.section {
  padding: var(--space-xl) 1rem;
}

/* ---------- Section Title Block ---------- */

/* -- Title wrapper with centered layout -- */
.section-title {
  position: relative;
  overflow: visible;
  text-align: center;
  margin-bottom: var(--space-lg);
}

/* -- Background oversized blurred label (behind h2) -- */
.section-title .description-title {
  color: rgba(100, 100, 100, 0.25);
  filter: blur(4px);
  mix-blend-mode: normal;
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -45%);
  font-size: 4rem;
  white-space: nowrap;
  z-index: 1;
  pointer-events: none;
}

/* -- Actual section heading text -- */
.section-title h2 {
  position: relative;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: 1px;
  margin: 0;
  z-index: 2;
}

/* -- Subtitle or tagline -- */
.section-title p {
  position: relative;
  font-size: 1.125rem;
  color: var(--color-muted);
  margin-top: var(--space-xs);
  z-index: 2;
}

/* ---------- Alternating Section Backgrounds ---------- */

/* -- Odd sections use white -- */
.section:nth-of-type(odd) {
  background-color: #ffffff;
}

/* -- Even sections use ivory -- */
.section:nth-of-type(even) {
  background-color: #f9f6f3;
}

/* ============================================================ */
/* ========== Hero Section ========== */
/* ============================================================= */
/* Fullscreen hero with background image and layered heading */

/* ---------- Hero Section Container ---------- */

/* -- Full viewport height, flex layout, centred content -- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 1rem var(--space-lg);
}

/* ---------- Hero Background Image ---------- */

/* -- Full cover background behind text -- */
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* ---------- Hero Foreground Content ---------- */

/* -- Main content wrapper on top of image -- */
.hero .container {
  position: relative;
  z-index: 2;
}

/* -- Main headline (animated or static) -- */
.hero h2 {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

/* -- Subtitle or introduction text -- */
.hero p {
  font-size: 1.125rem;
  color: rgba(58, 58, 58, 0.85);
}

/* ---------- Hero Layer Styling ---------- */

/* -- Hero glow layer -- */
.hero-glow-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(to bottom right, #ffd292, #ffe8c1),
    radial-gradient(circle at 20% 30%, rgba(255, 195, 210, 0.45) 0%, transparent 40%),
    radial-gradient(circle at 70% 50%, rgba(255, 180, 200, 0.35) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(255, 165, 185, 0.3) 0%, transparent 60%);
  border: 2px rgba(255, 105, 180, 0.5);
  border-radius: 1rem;
  animation: glowFloat 5s ease-in-out infinite alternate;
}

/* -- Floating rose -- */
.floating-rose {
  animation: pulse 8s ease-in-out infinite;
  opacity: 0.2;
}

/* ============================================================ */
/* ========== About Section ========== */
/* ============================================================= */
/* About area with profile photo, intro text and info list */

/* ---------- Row Layout ---------- */

/* -- Two-column layout: image and content -- */
#about-me .row {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

/* ---------- Text Content ---------- */

/* -- Text container on the right -- */
#about-me .content {
  flex: 1;
}

/* -- About title inside content block -- */
#about-me .content h2 {
  font-size: 1.75rem;
  margin-bottom: var(--space-sm);
}

/* ---------- Profile Image ---------- */

/* -- Image container on the left -- */
#about-me .about-me-img {
  flex: 0 0 40%;
}

/* -- Rounded and shadowed profile photo -- */
#about-me .about-me-img img {
  width: 100%;
  border-radius: 25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-radius: 5rem;
}

/* ---------- Expanded Decorative Image (Optional) ---------- */

/* -- Enlarged, offset image (used if needed) -- */
img.img-fluid {
  border-radius: 20px;
  margin-top: -18rem;
  margin-left: -5rem;
  max-width: 100%;
  height: auto;
  width: 130%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ---------- Personal Information Row ---------- */

/* -- Flex row for email + icons -- */
.about-me-info {
  white-space: nowrap;
}

/* ---------- Info List Styling ---------- */

/* -- Remove default bullet style -- */
#about-me ul {
  list-style: none;
  padding-left: 0;
}

/* -- Align icon + text in each list item -- */
#about-me .content ul li {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

/* ============================================================ */
/* ========== Education Section ========== */
/* ============================================================= */
/* Vertical timeline and card layout for academic history */

/* ---------- Timeline Item Layout ---------- */

/* ---------- Education Section Title Styling ---------- */
.education-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: #a8652f;
  text-align: left;
  position: relative;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition), transform var(--transition);
  animation: heartbeat 10s ease-in-out infinite;
}

.education-title::after {
  content: '';
  position: absolute;
  left: 7rem;
  bottom: -0.15rem;
  width: 140px;
  height: 4px;
  background: linear-gradient(to right, #dcb088, #f3d5b5, #ffe5ca);
  border-radius: 2px;
  opacity: 0.9;
}

.education-title:hover {
  color: var(--color-primary);
}

/* -- Each entry in education timeline -- */
#education .education-item {
  position: relative;
  padding-left: var(--space-md);
  margin-bottom: var(--space-lg);
}

/* -- Vertical line to represent timeline -- */
#education .education-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 4px;
  height: calc(100% - 1rem);
  background: var(--accent-color);
  border-radius: var(--radius);
}

/* ---------- Date Styling ---------- */

/* -- Display date under degree title -- */
#education .date {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

/* ============================================================ */
/* ========== NTU / NTCUST Cards ========== */
/* ============================================================= */
/* Card-based layout for event highlights */

/* ---------- Vertical Stacked Layout ---------- */

/* -- Stack cards vertically -- */
#ntu-cards .row,
#ntcust-cards .row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* ---------- Override Bootstrap Column Width ---------- */

/* -- Narrow fixed-width wrapper for each card -- */
#ntu-cards .row > [class*='col-'],
#ntcust-cards .row > [class*='col-'] {
  flex: 0 0 auto; /* Don’t grow or shrink */
  width: 50rem;
}

/* ---------- Card Fill Control ---------- */

/* -- Ensure card fills entire wrapper -- */
#ntu-cards .row .card,
#ntcust-cards .row .card {
  width: 100%;
}

/* ---------- Card Title Styling ---------- */

/* -- Heading for each card -- */
.card-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: bold;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

.card-title:hover {
  color: #b5651d;
  transform: scale(1.05);
  transition: color var(--transition), transform var(--transition);
}

/* ============================================================ */
/* ==========  Experience Section ========== */
/* ============================================================= */
/* Interactive card grid with toggleable content panels */

/* ---------- Grid Layout ---------- */

/* -- Grid layout for clickable experience cards -- */
.experience-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: auto;
  gap: var(--space-lg) var(--space-md);
  margin-bottom: var(--space-lg);
}

/* ---------- Experience Cards ---------- */

/* -- Individual category cards (e.g. IT, Marketing, etc.) -- */
.experience-cards .card {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: var(--radius);
  padding: var(--space-md);
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: box-shadow var(--transition), border var(--transition);
  cursor: pointer;
}

/* -- Active state of selected card -- */
.experience-cards .card.active {
  position: relative;
  overflow: hidden;
  border: 5px solid var(--color-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.experience-cards .card.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 200%;
  height: 100%;
  background: linear-gradient(135deg, #f6f6f6, #e1dede, #fbeec1, #ffe084, #ffd967);
  transform: skewX(-25deg);
  animation: shineBackground 2.5s infinite;
  z-index: -1;
}

/* ---------- Section Title Inside Card ---------- */

/* -- Title style inside experience panel -- */
.experience-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: bold;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition);
  animation: pulse 3s ease-in-out infinite;
}

.experience-title:hover {
  color: #b5651d;
  transform: scale(1.1);
  transition: color var(--transition), transform var(--transition);
}

/* ---------- Date Styling ---------- */

/* -- Date below job title -- */
#experience .date {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

/* ---------- Content Panels ---------- */

/* -- Default: hide all content panels -- */
.experience-content .panel {
  display: none;
  padding: var(--space-md);
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
/* -- Active: only the selected category panel -- */
.experience-content .panel.active {
  display: block;
}

/* ============================================================ */
/* ========== Achievements in Experience Section ========== */
/* ============================================================= */
/* Animated feature cards for awards, milestones, and events */

/* ---------- Achievement Card Base ---------- */

.achievement {
  position: relative;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  background-color: #f8e9dd;
  transition: transform 0.3s ease, box-shadow 0.4s ease;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  animation: float-in 0.6s ease forwards;
  opacity: 0;
}

.achievement:hover {
  transform: scale(1.02);
  border-color: #d98c6a;
  box-shadow: 0 6px 18px rgba(217, 140, 106, 0.3);
}

/* ---------- Gradient Overlay ---------- */
.achievement::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  border: 2px solid transparent;
  background: linear-gradient(120deg, #d98c6a, #f6b3b3);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.achievement:hover::before {
  opacity: 0.25;
}

.achievement strong {
  color: #8c5a5a;
  font-weight: bold;
  transition: color 0.3s ease;
}

.achievement:hover strong {
  color: #d98c6a;
}

/* ============================================================ */
/* ========== Projects Section ========== */
/* ============================================================= */

/* ---------- Project Buttons ---------- */

.project-btn:hover {
  background-color: linear-gradient(135deg, #fbecd0, #e08918) !important;
}

.btn-tiny {
  padding: 2px 6px;
  font-size: 0.6rem;
  line-height: 1.2;
}

/* ============================================================ */
/* ========== Skills Section ========== */
/* ============================================================= */
/* Skillset display: certifications, language bars, competence bars */

/* ---------- Skill Card Container ---------- */
.skill-card {
  background-color: var(--color-surface);
  border-radius: var(--radius);
  padding: var(--space-md);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  scroll-margin-top: calc(var(--nav-height) + 60px);
}

/* ---------- Skill Card Animation (Certifications, Languages & Competence) ---------- */

/* -- Base Slide-In Animation -- */
.skill-card {
  opacity: 0;
  animation: slideIn 0.8s ease forwards;
}

/* ---------- Skills Section Titles ---------- */

#skills .certification-badges,
#skills .languages-bars {
  background-color: #f0f0e3;
  padding: var(--space-md);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  height: 100%;
}

/* ---------- Badge List (Certifications) ---------- */
.certification-badges .badge-list {
  list-style: none;
  padding-left: 0;
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.certification-badges .badge-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.05rem;
  color: var(--color-text);
  border-left: 4px solid var(--color-border);
  padding-left: 1rem;
  position: relative;
}

.certification-badges .badge-list li i {
  color: var(--color-primary);
  font-size: 1.2rem;
}

.certification-badges .badge-list .date {
  margin-left: auto;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* ---------- Skill Section Headings (Certifications, Languages, Competence) ---------- */
h3.certifications,
h3.languages {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: #b5651d;
  text-align: center;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
  animation: float 3s ease-in-out infinite;
}

/* -- Hover effect for better interactivity -- */
h3.certifications:hover,
h3.languages:hover {
  color: var(--color-primary);
}
/* ---------- Date Styling ---------- */

/* -- Date next to certification title -- */
#skills .date {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

/* ---------- Progress Bars Shared Structure ---------- */

/* -- Wrapper group: used by Languages and Competence -- */
.bar-group {
  margin-bottom: var(--space-lg);
}

/* -- Title above bar -- */
.bar-group h4 {
  margin-bottom: var(--space-xs);
}

/* ---------- Progress Bar Style ---------- */
.progress {
  height: 0.5rem;
  background: var(--surface-color);
  border-radius: var(--radius);
  overflow: hidden;
}
.progress .progress-bar {
  background: var(--accent-color);
  height: 100%;
  border-radius: 1rem;
  transition: width 0.6s ease;
}

/* -- Colour codes -- */
.bg-success {
  background-color: #ae4949 !important;
}

.bg-primary {
  background-color: #d98c6a !important;
}

.bg-secondary {
  background-color: #f2b95c !important;
}

.bg-danger {
  background-color: #ecd4ad !important;
}

/* ============================================================ */
/* ==========  Contact Section ========== */
/* ============================================================= */

/* ---------- Form Styling ---------- */

/* -- Base form input appearance -- */
#contact form .form-control {
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}
/* -- Input focus effect -- */
#contact form .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(209, 164, 154, 0.3);
}
/* -- Submit button spacing -- */
#contact form button {
  margin-top: var(--space-md);
}

/* -- Contact Form status messages -- */
#contact .loading,
#contact .error-message,
#contact .sent-message {
  display: none;
}

/* -- Mini popup image styling -- */
.mini-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1050;
  text-align: center;
  max-width: 750px;
  height: auto;
  background: linear-gradient(to bottom, #f6f1e7, #f3f2ed, #e5e4e1);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  font-size: 0.95rem;
  pointer-events: none;
}
.mini-popup img {
  width: 250px;
  margin-bottom: 0.5rem;
}

/* ============================================================ */
/* ========== Buttons ========== */
/* ============================================================= */
/* Primary buttons for actions, submit, and mobile navigation */

/* ---------- Primary Buttons ---------- */
button,
.btn-primary {
  display: inline-block;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius);
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition);
}
button:hover,
.btn-primary:hover {
  background: linear-gradient(to right, #ffe9b3, #ffd699, #ffdab3);
  color: #cc5500;
}

/* ============================================================ */
/* ========== Cards ========== */
/* ============================================================= */
/* Reusable card containers and project image wrappers */

/* ---------- Generic Card ---------- */
.card {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.4s var(--transition), box-shadow 0.4s var(--transition);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* ============================================================ */
/* ========== Links Hover ========== */
/* ============================================================= */
/* Underline grow effect for interactive anchor links */

a {
  position: relative;
}
a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}
a:hover::after {
  width: 100%;
}

/* ============================================================ */
/* ========== Scrollbar ========== */
/* ============================================================= */
/* Custom Webkit scrollbar styling for elegant UI */

/* ---------- Scrollbar Base ---------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
/* ---------- Track ---------- */
::-webkit-scrollbar-track {
  background: transparent;
}
/* ---------- Thumb ---------- */
::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  transition: background-color 0.3s;
}
::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.4);
}

/* ============================================================ */
/* ========== Chatbot ========== */
/* ============================================================= */
/* Floating chatbot with collapsible box, typing area and animated replies */

/* ---------- Chatbot Main Container ---------- */

/* -- Fixed position, bottom-right chatbot icon -- */
#chatbot {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 9999;
}

/* ---------- Chatbot Box States ---------- */

/* -- Box outer shell -- */
.chatbot-box {
  position: fixed;
  bottom: 0.5rem;
  right: 0.5rem;
  width: 500px;
  max-height: 80vh;
  height: 80vh;
  background-color: var(--color-bg);
  border-radius: 1rem;
  box-shadow: 0 8px 24px var(--color-shadow);
  overflow: visible;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, opacity 0.3s ease;
  font-family: var(--font-body);
  color: var(--color-text);
  z-index: 10000;
}

/* -- Collapsed: show only avatar */
.chatbot-box.collapsed {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  padding: 0; /* Ring thickness */
  margin: 0;
  overflow: hidden;
  background-clip: content-box;
}

/* -- Hide content when collapsed -- */
.chatbot-box.collapsed .chatbot-content,
.chatbot-box.collapsed .chatbot-input,
.chatbot-box.collapsed .btn-minimise {
  display: none;
}

/* ---------- Header (Top Row) ---------- */

/* -- Avatar and minimise button container -- */
.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  padding: 0;
}

/* -- Avatar image -- */
.chatbot-avatar-header {
  display: block;
  width: 100%;
  height: 100%;
  justify-content: space-between;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 0.1px solid grey;
  background: linear-gradient(#c79b50 0%, #d87e8e 100%);
  padding: 0;
  margin: 0;
}

/* -- Hide title & minimise button when collapsed -- */
.chatbot-box.collapsed .chatbot-header {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  border-radius: 50%;
  display: block;
  align-items: center;
  justify-content: center;
}

/* -- Expanded header layout -- */
.chatbot-box.expanded .chatbot-header {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
}

/* -- Expanded avatar size -- */
.chatbot-box.expanded .chatbot-avatar-header {
  order: 1;
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
  margin: 0;
}

/* -- Expanded title layout -- */
.chatbot-box.expanded .chatbot-header .chatbot-title {
  order: 2;
  flex: 1;
  font-size: 0.9rem;
}

/* -- Expanded minimise button layout -- */
.chatbot-box.expanded .chatbot-header .btn-minimise {
  order: 3;
  margin-left: auto;
  font-size: 1.25rem;
}

/* -- Minimise button appearance -- */
.btn-minimise {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}

/* ---------- Message Bubble Area ---------- */

/* -- Chat message content area -- */
.chatbot-content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 1rem;
  padding: 1rem;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  overflow-y: auto;
}

/* -- Bot message bubble -- */
.chatbot-bubble.bot {
  background: #ffffff;
  align-self: flex-start;
  margin: 0.5rem auto 0.5rem 0;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 80%;
  font-size: 0.85rem;
  line-height: 1.4;
  text-align: left;
}

/* -- User message bubble -- */
.chatbot-bubble.user {
  background: #f3e2c7;
  align-self: flex-end;
  margin: 0.5rem 0 0.5rem auto;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  max-width: 80%;
  font-size: 0.85rem;
  line-height: 1.4;
  text-align: left;
}

/* ---------- Input Row ---------- */

/* -- Input field and send button container -- */
.chatbot-input {
  display: flex;
  position: sticky;
  bottom: 0;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

/* -- Input field -- */
.chatbot-input input {
  flex: 1;
  padding: 0.35rem 0.6rem;
  height: auto;
  line-height: 1;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.75rem;
  outline: none;
}

/* -- Send button -- */
.chatbot-input button {
  padding: 0.3rem 0.8rem;
  font-size: 0.8rem;
  line-height: 1;
  height: auto;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.chatbot-input button:hover {
  background: rgb(222, 115, 133);
}

/* ---------- Quick Replies ---------- */

/* -- Quick reply container -- */
.chatbot-quick-replies {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  width: fit-content;
  max-width: 200px;
}

/* -- Quick reply button -- */
.chatbot-quick-replies .option-btn {
  width: auto;
  padding: 0.4rem 0.3rem;
  background: var(--color-secondary);
  border: none;
  border-radius: 0.3rem;
  color: #312d25f2;
  cursor: pointer;
  font-size: 0.7rem;
  white-space: nowrap;
  transition: background 0.3s ease;
  text-align: center;
}

.chatbot-quick-replies .option-btn:hover {
  background: var(--color-primary);
}

/* ---------- Chatbot Hint Bubble ---------- */

#chat-hint {
  position: fixed;
  bottom: 4.5rem;
  right: 1.5rem;
  background: radial-gradient(circle at 20% 30%, rgba(173, 216, 230, 0.4) 0%, transparent 40%),
    radial-gradient(circle at 70% 20%, rgba(135, 206, 250, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(0, 191, 255, 0.2) 0%, transparent 60%),
    linear-gradient(to bottom right, rgba(240, 248, 255, 0.3), rgba(70, 130, 180, 0.2));
  color: #1c3b5a;
  border-radius: 1.5rem;
  border: rgba(255, 255, 255, 0.65) 6px;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 999;
  animation: fadeIn 0.5s ease forwards;
  opacity: 0;
  backdrop-filter: blur(4px);
}

#chat-hint::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 2rem;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(173, 216, 230, 0.4);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.6);
}

/* ---------- FAQ Suggestion List Style ---------- */

/* Defines styling for autocomplete suggestion dropdown */
.faq-suggestions {
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1001;
  list-style: none;
  margin: 0;
  padding: 0.1rem;
  background: transparent;
  border-radius: 5px;
}
.faq-suggestions .suggestion-item {
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 5px;
  padding: 0.1rem 0.2rem;
  cursor: pointer;
}
.faq-suggestions .suggestion-item:hover {
  background: #faf9f8b4;
}

/* ============================================================ */
/* ========== Footer ========== */
/* ============================================================= */
/* Footer with sitename and copyright details */

/* ---------- Footer Container ---------- */
.footer {
  background: var(--color-bg);
  color: var(--color-muted);
  padding: var(--space-sm) var(--space-sm);
  font-size: 0.75rem;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

/* ---------- Footer Paragraph ---------- */
.footer p {
  margin-top: var(--space-sm);
}

/* ---------- Site Name Styling ---------- */
.footer .sitename {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--color-heading);
  margin-top: var(--space-sm);
}

/* ---------- Copyright Notice ---------- */
.footer .copyright {
  margin-top: 0;
  font-size: 0.7rem;
  color: var(--color-muted);
}

/* ============================================================ */
/* ==========  Scroll-To-Top ========== */
/* ============================================================= */
/* Floating scroll button with icon animation */

/* ---------- Scroll Button Base ---------- */
.scroll-top {
  position: fixed;
  bottom: -0.5rem;
  left: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* ---------- Scroll Button Visible ---------- */
.scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}

/* ---------- Scroll Button Icon ---------- */
.scroll-top i {
  transition: transform 0.3s ease, color 0.3s ease;
  font-size: 3.5rem;
  color: var(--color-primary);
  animation: floatUpDown 1.2s ease-in-out infinite;
}

.scroll-top:hover i {
  color: rgba(214, 105, 15, 0.925);
}

/* ---------- Prevent Extra Pseudo Elements ---------- */
.scroll-top i::after,
.scroll-top::after {
  content: none !important;
}

/* ============================================================ */
/* ========== Animation ========== */
/* ============================================================= */
/* Global keyframe definitions and animation helper classes */

/* ---------- Keyframes ---------- */

/* -- Fade in from 0 → 1 -- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* -- Slide up from below -- */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -- Gentle pop (scale) -- */
@keyframes gentlePop {
  0% {
    transform: scale(0.95);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

/* -- Infinite Float -- */
@keyframes float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-15px) scale(1.12);
  }
}

/* -- Float in from below -- */
@keyframes float-in {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* -- Slide in from left -- */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* -- Up-down floating loop -- */
@keyframes floatUpDown {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.2);
  }
}

/* -- Shine Behind Words -- */
@keyframes shineBackground {
  0% {
    left: -150%;
  }
  100% {
    left: 150%;
  }
}

/* -- Glow Float -- */
@keyframes glowFloat {
  0% {
    opacity: 0.3;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0.7;
    transform: translateY(-15px) scale(1.05);
  }
}

/* -- Pulse (Normal-Big-Normal) -- */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* -- Slow Heartbeat -- */
@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.3);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.3);
  }
  70% {
    transform: scale(1);
  }
}

/* -- Tying -- */
@keyframes blink-caret {
  0%,
  60% {
    opacity: 1;
  }
  61%,
  100% {
    opacity: 0;
  }
}

/* -- Running -- */
@keyframes running-wiggle {
  0% {
    transform: translateX(0) rotate(-4deg);
  }
  20% {
    transform: translateX(10px) rotate(6deg);
  }
  40% {
    transform: translateX(0) rotate(2deg);
  }
  60% {
    transform: translateX(-10px) rotate(-6deg);
  }
  80% {
    transform: translateX(0) rotate(-2deg);
  }
  100% {
    transform: translateX(0) rotate(-4deg);
  }
}

/* ---------- Animation Utility Classes ---------- */

/* -- Fade in element -- */
.fade-in {
  animation: fadeIn var(--anim-medium) var(--easing) both;
}

/* -- Slide up into view -- */
.slide-up {
  animation: slideUp var(--anim-medium) var(--easing) both;
}

/* -- Pop in with scale effect -- */
.pop {
  animation: gentlePop var(--anim-fast) var(--easing) both;
}

/* ============================================================ */
/* ========== Responsive Design ========== */
/* ============================================================= */

/* -------------------------------
   Mobile (≤767.98px)
-------------------------------- */

@media (max-width: 767.98px) {
  html {
    font-size: 14px;
  }

  /* ---------- Header & Hamburger Toggle ---------- */

  /* -- Adjust header padding -- */
  .header {
    padding: 1.2rem 0;
  }
  /* -- Hamburger icon positioning -- */
  .mobile-nav-toggle {
    display: block;
    position: fixed;
    top: 0.5rem;
    left: 1rem;
    font-size: 1.5rem;
    z-index: 2000;
  }

  /* ---------- Mobile Sidebar Nav with Lists ---------- */

  /* -- Sidebar container -- */
  .navmenu {
    position: fixed;
    top: 0;
    left: -100vw;
    width: 75vw;
    box-shadow: 0.5px 0 0 rgba(0.2, 0.5, 0.2, 0.5);
    transform: none;
    transition: left 0.3s ease;
    z-index: 1999;
  }
  /* -- Vertical nav list -- */
  .navmenu ul {
    margin: 0;
    padding: 0 2rem;
    gap: var(--space-sm);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    height: auto;
  }
  /* -- Sidebar open state -- */
  body.mobile-nav-active .navmenu {
    padding-top: 2rem;
    margin-top: 0;
    gap: 0;
    left: 0;
    font-size: 15px;
    width: 100vw;
    height: 85vw;
    background: linear-gradient(to bottom right, #f9e4e4, #f6d0c5, #eec1a4, #d6a77a, #c39a6b);
  }

  /* ---------- Social Icons ---------- */

  .header-social-links {
    display: none !important;
  }

  /* -- Show icons in nav when open -- */
  body.mobile-nav-active .header-social-links {
    display: flex !important;
    position: fixed !important;
    bottom: calc(100vh - 70vw + 2rem) !important;
    right: 2rem !important;
    padding: 0 2rem 1.5rem 0 !important;
    background: transparent !important;
    gap: var(--space-md) !important;
    align-items: center !important;
    z-index: 2000 !important;
  }

  /* ---------- Language Switch Buttons  ---------- */
  .navmenu ul .lang-switch-nav {
    position: fixed;
    top: 0;
    right: 0.8rem;
  }

  /* ---------- First-Level Dropdown Menus ---------- */

  .navmenu li.dropdown > ul {
    display: none;
    width: 125px !important;
  }
  /* -- Dropdown items -- */
  .navmenu li.dropdown > ul > li > a {
    display: inline-block;
    text-align: left;
  }
  /* -- Each dropdown item container -- */
  .navmenu li.dropdown > ul > li {
    position: relative;
  }
  /* -- Dropdown arrow icon -- */
  .navmenu li.dropdown > ul > li > .toggle-dropdown {
    display: inline-block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 1rem;
    margin: 0;
    vertical-align: middle;
  }
  /* -- Dropdown visible when active -- */
  .navmenu li.dropdown.active > ul {
    display: block;
    width: 125px !important;
  }

  /* ---------- Second-Level Dropdown Menus ---------- */

  /* -- Submenu hidden by default -- */
  .navmenu li.dropdown > ul > li > ul {
    display: none;
    min-width: 155px !important;
  }
  /* -- Submenu visible when active -- */
  .navmenu li.dropdown > ul > li.active > ul {
    display: block;
    position: absolute;
    min-width: 155px !important;
    z-index: 1000;
  }
  /* -- Dropdown Submenu items -- */
  .navmenu li.dropdown > ul > li > ul > li > a {
    display: block;
    text-align: left;
    padding: 0.5rem 1rem;
  }

  /* ---------- Section Adjustments ---------- */

  /* -- About section layout -- */
  #about-me .col-lg-4,
  #about-me .col-lg-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  #about-me .col-lg-4 {
    text-align: center;
  }

  #about-me .col-lg-4 img.img-fluid {
    max-width: 250px;
    margin: 1rem auto;
  }

  .section-title .description-title {
    font-size: 3.2rem;
  }

  /* -- NTCUST Button -- */
  #btn-ntcust {
    margin-bottom: 3rem;
  }

  /* -- Experience cards stacked layout -- */
  .experience-cards {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .experience-cards .card {
    font-size: 1rem;
    padding: 1rem;
  }

  /* -- Skill Section Date (Certifications) -- */
  #skills .date {
    font-size: 0.5rem;
  }

  /* ---------- Achievements Section ---------- */

  .achievement {
    position: relative;
    padding: 1rem 2rem;
    margin-right: 2rem;
  }

  /* ---------- Chatbot Adjustments ---------- */

  /* -- Chatbot full width -- */
  .chatbot-box {
    width: 100%;
    max-width: 100vw;
    max-height: 70vh;
    font-size: 13px;
    bottom: 0;
    right: 0;
    border-radius: 10px;
  }

  /* -- Avatar size for mobiles -- */
  .chatbot-box.expanded .chatbot-avatar-header {
    width: 60px;
    height: 60px;
  }

  .chatbot-box.collapsed {
    width: 60px;
    height: 60px;
  }

  .chatbot-box.expanded .chatbot-header {
    padding: 0.1rem 0.5rem;
  }

  /* -- Message and input sizing -- */
  .chatbot-input button,
  .chatbot-input input,
  .chatbot-bubble.bot,
  .chatbot-bubble.user {
    font-size: 1.4rem;
  }

  /* -- Quick reply button size -- */
  .chatbot-quick-replies .option-btn {
    font-size: 1.2rem;
  }

  /* ---------- Animation & Transition ---------- */

  .hero-glow-layer,
  .education-title,
  .experience-title,
  h3.certifications,
  h3.languages,
  .scroll-top {
    animation: none !important;
  }
  h3.certifications,
  h3.languages,
  .progress .progress-bar {
    transition: none !important;
  }
}

/* -------------------------------
   Tablet (768px–1199.98px)
-------------------------------- */

@media (min-width: 768px) and (max-width: 1199.98px) {
  html {
    font-size: 15px;
  }

  /* ---------- Header & Hamburger Toggle ---------- */

  /* -- Adjust header padding -- */
  .header {
    padding: 1.3rem 0;
  }

  /* -- Hamburger icon positioning -- */
  .mobile-nav-toggle {
    display: block;
    position: fixed;
    top: 0.5rem;
    left: 1rem;
    font-size: 1.5rem;
    z-index: 2000;
  }

  /* ---------- Tablet Sidebar Nav with Lists ---------- */

  /* -- Sidebar container -- */
  .navmenu {
    position: fixed;
    top: 0;
    left: -75vw;
    width: 75vw;
    box-shadow: 0.5px 0 0 rgba(0.2, 0.5, 0.2, 0.5);
    transform: none;
    transition: left 0.3s ease;
    z-index: 1999;
  }
  /* -- Vertical nav list -- */
  .navmenu ul {
    margin: 0;
    padding: 0 3rem;
    gap: var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    height: auto;
  }
  /* -- Sidebar open state -- */
  body.mobile-nav-active .navmenu {
    padding-top: 2rem;
    margin-top: 0;
    left: 0;
    font-size: 22px;
    width: 100vw;
    height: 65vw;
    background: linear-gradient(to bottom right, #f9e4e4, #f6d0c5, #eec1a4, #d6a77a, #c39a6b);
  }

  /* ---------- Social Icons ---------- */
  .header-social-links {
    display: none !important;
  }

  body.mobile-nav-active .header-social-links {
    display: flex !important;
    position: fixed !important;
    bottom: calc(100vh - 70vw + 5rem) !important;
    right: 2rem !important;
    padding: 0 2rem 0 0 !important;
    background: transparent !important;
    gap: var(--space-md) !important;
    align-items: center !important;
    z-index: 2000 !important;
  }
  /* ---------- Language Switch Buttons  ---------- */
  .navmenu ul .lang-switch-nav {
    position: fixed;
    top: 0;
    right: 1rem;
  }

  /* ---------- First-Level Dropdown Menus ---------- */

  .navmenu li.dropdown > ul {
    display: none;
  }
  /* -- Dropdown items -- */
  .navmenu li.dropdown > ul > li > a {
    display: inline-block;
    text-align: left;
  }
  /* -- Each dropdown item container -- */
  .navmenu li.dropdown > ul > li {
    position: relative;
  }
  /* -- Dropdown arrow icon -- */
  .navmenu li.dropdown > ul > li > .toggle-dropdown {
    display: inline-block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 1rem;
    margin: 0;
    vertical-align: middle;
  }
  /* -- Dropdown visible when active -- */
  .navmenu li.dropdown.active > ul {
    display: block;
  }

  /* ---------- Second-Level Dropdown Menus ---------- */

  /* -- Submenu hidden by default -- */
  .navmenu li.dropdown > ul > li > ul {
    display: none;
  }
  /* -- Submenu visible when active -- */
  .navmenu li.dropdown > ul > li.active > ul {
    display: block;

    z-index: 1000;
  }
  /* -- Dropdown Submenu items -- */
  .navmenu li.dropdown > ul > li > ul > li > a {
    display: block;
    text-align: left;
    padding: 0.5rem 1rem;
  }

  /* ---------- Section Adjustments ---------- */

  /* -- About section layout -- */
  #about-me .col-lg-4,
  #about-me .col-lg-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  #about-me .col-lg-4 {
    text-align: center;
  }

  #about-me .col-lg-4 img.img-fluid {
    max-width: 390px;
    margin: 1rem auto;
  }

  /* -- Experience cards stacked layout -- */
  .experience-cards {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .experience-cards .card {
    font-size: 1rem;
    padding: 1rem;
  }

  /* -- Project content size -- */
  .project-description {
    font-size: 12px;
  }
  /* ---------- Achievements Section ---------- */

  .achievement {
    position: relative;
    padding: 1rem 2rem;
    margin-right: 2rem;
  }

  /* ---------- Chatbot Adjustments ---------- */

  /* -- Chatbot full width -- */
  .chatbot-box {
    width: 60vw;
    bottom: 1rem;
    right: 1rem;
    border-radius: 20px;
  }

  /* -- Avatar size for tablets -- */
  .chatbot-box.expanded .chatbot-header {
    padding: 0.1rem 0.5rem;
  }

  .chatbot-box.collapsed {
    width: 75px;
    height: 75px;
  }
  .chatbot-box.expanded .chatbot-avatar-header {
    width: 75px;
    height: 75px;
  }

  /* -- Message and input sizing -- */
  .chatbot-input button,
  .chatbot-input input,
  .chatbot-bubble.bot,
  .chatbot-bubble.user {
    font-size: 1.2rem;
  }

  /* -- Quick reply button size -- */
  .chatbot-quick-replies .option-btn {
    font-size: 0.95rem;
  }

  /* -- Chatbot hint bubble -- */
  #chat-hint {
    bottom: 7rem !important;
  }
}

/* -------------------------------
   Desktop (1200px-1640px)
-------------------------------- */

@media (min-width: 1200px) and (max-width: 1745px) {
  html {
    font-size: 16px;
  }
  /* -- About section picture -- */
  #about-me .about-me-img img {
    margin-top: 0.5rem;
    margin-left: 0.5rem;
  }

  /* -- Chatbot hint bubble -- */
  #chat-hint {
    bottom: 7rem !important;
  }
}
