
/* =========================
   GLOBAL RESET
========================= */

/* Reset default spacing and apply consistent sizing and typography. */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* Set the page background and enable smooth scrolling. */
html {
  background: #080808;
  scroll-behavior: smooth;
}

/* Define the main page colors and prevent horizontal overflow. */
body {
  background: #080808 !important;
  color: #ffffff;
  overflow-x: hidden;
  position: relative;
}



/* =========================
   NAVBAR LAYOUT
========================= */

.navbar-layout {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 88px;
  padding: 12px clamp(24px, 6.7vw, 120px);
  box-sizing: border-box;

  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 150px;
  align-items: center;
  column-gap: 28px;

  background: transparent !important;
  border: none;
  border-radius: 0;
  box-shadow: none;
  z-index: 1000;

  transition: background 0.3s ease;
}

/* =========================
   LOGO - SIGNATURE STYLE
========================= */

.navbar-layout > .logo,
.navbar-layout > .logo span {
  font-family: "Dancing Script", cursive !important;
  font-weight: 600 !important;
  font-style: normal !important;
}

.navbar-layout > .logo {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-self: start;

  width: 190px;
  min-width: 0;

  font-size: 28px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;

  color: #f2f0ee;
  text-decoration: none;
  white-space: nowrap;

  transition: opacity 0.25s ease;
}

.navbar-layout > .logo span {
  display: block;
  white-space: nowrap;
}

.navbar-layout > .logo .logo-underline {
  display: block;
  width: 78%;
  height: 12px;
  margin-top: 0;
  overflow: visible;
}

.navbar-layout > .logo .logo-underline path {
  fill: none;
  stroke: #65a9d0;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.navbar-layout > .logo:hover {
  color: #f2f0ee;
  opacity: 0.9;
}

/* =========================
   NAVIGATION CONTAINER
========================= */

.navbar-layout > nav.navbar {
  position: static;
  inset: auto;

  display: flex;
  justify-content: flex-end;
  align-items: center;

  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 0;

  background: transparent !important;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  transform: none;
  transition: none;
  white-space: nowrap;
}

.navbar-layout > nav.navbar:hover {
  transform: none;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

/* =========================
   NAVIGATION LINKS
========================= */

.navbar-layout > nav.navbar .nav-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;

  width: auto;
  min-width: 0;
  gap: clamp(22px, 2.4vw, 40px);
}

.navbar-layout > nav.navbar .nav-links a {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;

  color: #a8a8b0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;

  transition:
    color 0.25s ease,
    transform 0.25s ease,
    text-shadow 0.25s ease;
}

/* Only the hovered link turns blue */
.navbar-layout > nav.navbar .nav-links a:hover {
  color: #4f8cff;
  transform: translateY(-3px) scale(1.04);
  text-shadow: 0 0 14px rgba(79, 140, 255, 0.4);
}

/* =========================
   GET IN TOUCH - FAR RIGHT
========================= */

.navbar-layout > .nav-contact {
  justify-self: end;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 150px;
  min-height: 48px;
  padding: 10px 16px;
  box-sizing: border-box;

  background: #f0f0f0;
  color: #111;
  border: 1px solid #f0f0f0;
  border-radius: 9px;

  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.navbar-layout > .nav-contact:hover {
  background: #fff;
  color: #111;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* =========================
   KEYBOARD ACCESSIBILITY
========================= */

.navbar-layout > .logo:focus-visible,
.navbar-layout > nav.navbar .nav-links a:focus-visible,
.navbar-layout > .nav-contact:focus-visible {
  outline: 2px solid #4f8cff;
  outline-offset: 5px;
}

/* =========================
   TABLET
========================= */

@media (max-width: 1200px) {
  .navbar-layout {
    padding-inline: 28px;
    grid-template-columns: 150px minmax(0, 1fr) 135px;
    column-gap: 18px;
  }

  .navbar-layout > .logo {
    width: 145px;
    font-size: 26px !important;
  }

  .navbar-layout > nav.navbar .nav-links {
    gap: clamp(12px, 1.6vw, 22px);
  }

  .navbar-layout > nav.navbar .nav-links a {
    font-size: 13px;
  }

  .navbar-layout > .nav-contact {
    width: 135px;
    min-height: 44px;
    font-size: 13px;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 850px) {
  .navbar-layout {
    min-height: auto;
    padding: 12px 18px;

    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    row-gap: 8px;
  }

  .navbar-layout > .logo {
    width: 140px;
    font-size: 24px !important;
  }

  .navbar-layout > .logo .logo-underline {
    height: 10px;
  }

  .navbar-layout > .nav-contact {
    width: auto;
    min-height: 40px;
    padding: 9px 12px;
    font-size: 12px;
  }

  .navbar-layout > nav.navbar {
    grid-column: 1 / -1;
    width: 100%;
    overflow: hidden;
  }

  .navbar-layout > nav.navbar .nav-links {
    justify-content: flex-start;
    gap: 22px;
    overflow-x: auto;
    padding: 8px 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .navbar-layout > nav.navbar .nav-links::-webkit-scrollbar {
    display: none;
  }

  .navbar-layout > nav.navbar .nav-links a {
    font-size: 13px;
  }
}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 420px) {
  .navbar-layout {
    padding-inline: 12px;
    column-gap: 8px;
  }

  .navbar-layout > .logo {
    width: 125px;
    font-size: 22px !important;
  }

  .navbar-layout > .nav-contact {
    padding-inline: 10px;
    font-size: 11px;
  }

  .navbar-layout > nav.navbar .nav-links {
    gap: 20px;
  }
}

/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {
  .navbar-layout,
  .navbar-layout > .logo,
  .navbar-layout > nav.navbar .nav-links a,
  .navbar-layout > .nav-contact {
    transition: none;
  }

  .navbar-layout > nav.navbar .nav-links a:hover,
  .navbar-layout > .nav-contact:hover {
    transform: none;
  }
}

/* =========================
   TOUCH DEVICES
========================= */

@media (hover: none) {
  .navbar-layout > nav.navbar .nav-links a:hover {
    transform: none;
    text-shadow: none;
  }

  .navbar-layout > .nav-contact:hover {
    transform: none;
    box-shadow: none;
  }
}


/* Compact glass background behind navigation links only */
.navbar-layout > nav.navbar {
  width: fit-content;
  justify-self: end;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(18, 18, 20, 0.82) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}


/* =========================
   HERO SECTION
   Kept for compatibility
========================= */

/* Center the hero content vertically and arrange it in a row. */
.hero {
  width: 100%;
  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  /* Space between the text content and the image. */
  gap: 120px;

  /* Add spacing around the hero content. */
  padding: 120px 8%;

  box-sizing: border-box;
}

/* Limit the width of the text column. */
.hero-left {
  max-width: 700px;
}

/* Style the small introductory badge above the main heading. */
.badge {
  display: inline-block;

  padding: 10px 18px;
  border-radius: 50px;

  /* Apply the subtle glass-like appearance. */
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);

  margin-bottom: 28px;

  font-size: 14px;
  color: #c8d4ea;

  /* Keep the badge text on a single line. */
  white-space: nowrap;
}

/* Style the main hero heading. */
.hero-left h1 {
  font-size: 76px;
  line-height: 1.1;
  margin-bottom: 18px;
  color: #dfe9ff;

  /* Prevent the heading from wrapping onto multiple lines. */
  white-space: nowrap;
}

/* Style the secondary hero heading. */
.hero-left h2 {
  font-size: 34px;
  margin-bottom: 20px;
  color: #d2dcf5;

  /* Keep the secondary heading on a single line. */
  white-space: nowrap;
}

/* Style the introductory paragraph. */
.hero-left p {
  font-size: 20px;
  line-height: 1.8;
  color: #aeb8cc;
  margin-bottom: 40px;
}

/* Arrange hero action buttons and allow them to wrap if needed. */
.buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* Define the shared appearance of hero buttons. */
.btn {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 16px 24px;
  border-radius: 50px;

  text-decoration: none;
  color: white;

  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);

  transition: 0.3s ease;
}

/* Add a subtle lift and blue glow on hover. */
.btn:hover {
  transform: translateY(-5px);
  border-color: #4f8cff;
  box-shadow: 0 0 25px rgba(79, 140, 255, 0.25);
}

/* Enable 3D perspective for the hero image effect. */
.hero-right {
  perspective: 1000px;
}

/* Define the size and visual appearance of the image container. */
.image-box {
  width: 520px;
  height: 680px;

  border-radius: 32px;
  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 60px rgba(0, 76, 255, 0.18);

  /* Smooth the image tilt effect controlled by JavaScript. */
  transition: transform 0.2s ease;
}

/* Make the image fill the container without distorting its proportions. */
.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* =========================
   FOOTER
========================= */

/* Center the footer content and apply its text color and spacing. */
.footer {
  padding: 40px 20px;
  text-align: center;
  color: #8ca9d6;
}


/* =========================
   ABOUT SECTION
========================= */

/* Define the section dimensions, spacing, background, and text color. */
#about.about-section {
  width: 100%;
  min-height: 100vh;
  padding: 100px 8%;
  box-sizing: border-box;
  background: #0b0b0b;
  color: #f5f5f7;
}

/* Center the About content and limit its maximum width. */
#about .about-container {
  width: 100%;
  max-width: 1350px;
  margin: 0 auto;
}


/* =========================
   SECTION HEADING
========================= */

/* Add spacing below the About section heading. */
#about .about-heading {
  margin: 0 0 68px;
}

/* Style the small section number above the heading. */
#about .about-number {
  display: block;
  margin-bottom: 22px;
  color: #85858f;
  font-family: monospace;
  font-size: 14px;
  letter-spacing: 1px;
}

/* Style the main About heading with a responsive font size. */
#about .about-heading h2 {
  margin: 0;
  color: #f5f5f7;
  font-size: clamp(38px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1.5px;
}


/* =========================
   ABOUT LAYOUT
   IMAGE LEFT / CONTENT RIGHT
========================= */

/* Display the image and profile content in two responsive grid columns. */
#about .about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(38px, 4vw, 76px);
  width: 100%;
}


/* =========================
   PROFILE IMAGE
========================= */

/* Define the profile image container and prevent image overflow. */
#about .about-image {
  position: relative;
  width: 100%;
  height: 560px;
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #1b1b1d;
  box-shadow: 0 0 45px rgba(0, 76, 255, 0.08);
}

/* Make the profile image fill its container without distortion. */
#about .about-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.5s ease;
}

/* Slightly enlarge the profile image on hover. */
#about .about-image:hover img {
  transform: scale(1.025);
}


/* =========================
   OPEN TO WORK
========================= */

/* Position the availability badge over the profile image. */
#about .about-status {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;

  background: rgba(15, 15, 16, 0.9);
  color: #8ebce0;

  font-family: monospace;
  font-size: 11px;
  letter-spacing: 1px;
  white-space: nowrap;

  /* Blur the background behind the availability badge. */
  backdrop-filter: blur(10px);
}

/* Style the small status indicator beside the badge text. */
#about .status-dot {
  display: inline-block;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #66a9d4;
}


/* =========================
   PROFILE DETAILS
========================= */

/* Allow the profile content column to shrink without overflowing. */
#about .about-content {
  width: 100%;
  min-width: 0;
}

/* Align the profile name and availability badge. */
#about .about-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 26px;
}

/* Style the profile name with a responsive font size. */
#about .about-name-row h3 {
  margin: 0;
  color: #f5f5f7;
  font-size: clamp(24px, 2.1vw, 29px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.7px;
}

/* Style the professional role below the profile name. */
#about .about-role {
  margin: -10px 0 22px;
  color: #d8d8df;
  font-size: 17px;
  font-weight: 600;
}

/* Display the availability information as a compact inline badge. */
#about .about-availability {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  padding: 6px 10px;
  border: 1px solid rgba(102, 169, 212, 0.28);
  border-radius: 30px;

  background: rgba(102, 169, 212, 0.05);
  color: #83b8db;

  font-family: monospace;
  font-size: 10px;
  letter-spacing: 1px;
  white-space: nowrap;
}


/* =========================
   DESCRIPTION
========================= */

/* Control the paragraph spacing, readability, and text appearance. */
#about .about-description {
  margin: 0 0 20px;
  color: #a5a5ae;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.9;
}


/* =========================
   SOCIAL LINKS
========================= */

/* Arrange social links in a row and allow wrapping when needed. */
#about .about-socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

/* Style each social link as a circular icon button. */
#about .about-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  box-sizing: border-box;
  padding: 0;

  border: 1px solid #29292e;
  border-radius: 50%;

  background: transparent;
  color: #a5a5ae;

  font-size: 17px;
  text-decoration: none;
  transition: 0.25s ease;
}

/* Highlight and slightly raise social icons on hover. */
#about .about-socials a:hover {
  color: #fff;
  border-color: #66a9d4;
  background: rgba(102, 169, 212, 0.08);
  transform: translateY(-3px);
}


/* =========================
   PROFESSIONAL DETAILS GRID
========================= */

/* Display professional information in a two-column grid. */
#about .about-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;

  /* Draw the top and left edges of the details grid. */
  border-top: 1px solid #29292e;
  border-left: 1px solid #29292e;
}

/* Arrange each detail label and value vertically inside its cell. */
#about .about-detail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;

  min-width: 0;
  min-height: 86px;
  padding: 16px 18px;
  box-sizing: border-box;

  /* Complete the grid borders for each cell. */
  border-right: 1px solid #29292e;
  border-bottom: 1px solid #29292e;
}

/* Style the label for each professional detail. */
#about .about-detail span {
  color: #85858f;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
}

/* Emphasize the detail value and allow long text to wrap. */
#about .about-detail strong {
  color: #e5e5e9;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
  overflow-wrap: anywhere;
}


/* =========================
   RESPONSIVE
========================= */

/* Adjust the hero layout on medium and smaller desktop screens. */
@media (max-width: 1200px) {
  .hero {
    gap: 50px;
  }

  .hero-left h1 {
    font-size: 54px;
    white-space: normal;
  }

  .hero-left h2 {
    font-size: 28px;
    white-space: normal;
  }

  /* Reduce the image dimensions to fit narrower screens. */
  .image-box {
    width: 420px;
    max-width: 100%;
    height: 540px;
  }
}


/* Adjust navigation and About section spacing for tablets. */
@media (max-width: 950px) {
  .navbar {
    width: 95%;
    overflow-x: auto;
  }

  .nav-links {
    gap: 18px;
  }

  #about.about-section {
    padding: 80px 6%;
  }

  #about .about-layout {
    gap: 30px;
  }

  #about .about-image {
    height: 460px;
  }

  #about .about-description {
    font-size: 14px;
  }
}


/* Stack the hero and About content vertically on mobile screens. */
@media (max-width: 650px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding: 90px 6%;
  }

  .hero-left h1 {
    font-size: 42px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .hero-left h2 {
    font-size: 25px;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .hero-left p {
    font-size: 16px;
  }

  /* Center the hero action buttons. */
  .buttons {
    justify-content: center;
  }

  /* Keep the hero image within the mobile viewport. */
  .image-box {
    width: 100%;
    max-width: 360px;
    height: 440px;
  }

  /* Reduce About section spacing on mobile. */
  #about.about-section {
    padding: 65px 6%;
  }

  #about .about-heading {
    margin-bottom: 32px;
  }

  #about .about-heading h2 {
    font-size: 36px;
  }

  /* Display the profile image above the text content. */
  #about .about-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  /* Maintain the image proportions on mobile. */
  #about .about-image {
    height: auto;
    aspect-ratio: 4 / 5;
    max-height: 520px;
  }

  #about .about-name-row h3 {
    font-size: 25px;
  }

  /* Keep professional details in two columns. */
  #about .about-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #about .about-detail {
    padding: 13px 11px;
  }

  #about .about-detail strong {
    font-size: 12px;
  }
}


/* =========================
   ACCESSIBILITY
========================= */

/* Reduce decorative motion for users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
  #about .about-image img,
  #about .about-socials a,
  .skills-card,
  .skills-card h3,
  .skills-controls button {
    transition: none;
  }

  /* Disable the skills card entrance animation. */
  .skills-card {
    animation: none;
  }

  /* Disable smooth scrolling for users who prefer reduced motion. */
  html {
    scroll-behavior: auto;
  }
}



/* =========================
   STACK & TOOLS SECTION
========================= */

.skills-section {
  width: 100%;
  min-height: 100vh;
  padding: 110px 8%;
  color: #f5f5f5;
}

.skills-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* =========================
   SECTION HEADING
========================= */

.skills-subtitle {
  display: block;
  text-align: left;
  color: #8b8b95;
  font-family: monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 28px;
}

.skills-title {
  text-align: left;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -1.5px;
  color: #f5f5f5;
  margin: 0 0 16px;
}

.skills-description {
  color: #9696a0;
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 48px;
}

/* =========================
   SKILLS GRID
========================= */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 13px;
}

/* =========================
   SKILL CARD
========================= */

.skills-card {
  position: relative;
  z-index: 0;

  min-width: 0;
  min-height: 132px;
  padding: 22px 10px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;

  background: #141414;
  border: 1px solid #292929;
  border-radius: 14px;
  text-align: center;

  transform: translateY(0) scale(1);
  transform-origin: center center;

  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;

  animation: skillsFadeIn 0.35s ease both;
}

/* Pop ONLY the card being hovered */
.skills-card:hover {
  z-index: 2;
  transform: translateY(-7px) scale(1.04);

  border-color: #438cff;
  background: #191d25;

  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.25),
    0 0 18px rgba(67, 140, 255, 0.12);
}

/* =========================
   SKILL ICON
========================= */

.skills-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0;
  border: 0;
  border-radius: 9px;
  background: #20242c;

  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    background-color 0.3s ease;
}

/* Slightly pop the icon inside the hovered card */
.skills-card:hover .skills-icon {
  transform: translateY(-2px) scale(1.08);
  background: #252b36;
}

.skills-icon i {
  font-size: 21px;
  color: #60a5fa;
  transition: transform 0.3s ease;
}

.skills-card:hover .skills-icon i {
  transform: scale(1.05);
}

/* =========================
   CARD TITLE
========================= */

.skills-card h3 {
  margin: 0;
  color: #b7b7c1;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;

  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.skills-card:hover h3 {
  color: #ffffff;
  transform: translateY(-1px);
}

/* =========================
   ICON COLOR VARIATIONS
========================= */

.skills-card:nth-child(6n + 1) .skills-icon i {
  color: #60a5fa;
}

.skills-card:nth-child(6n + 2) .skills-icon i {
  color: #4ade80;
}

.skills-card:nth-child(6n + 3) .skills-icon i {
  color: #fbbf24;
}

.skills-card:nth-child(6n + 4) .skills-icon i {
  color: #c084fc;
}

.skills-card:nth-child(6n + 5) .skills-icon i {
  color: #fb923c;
}

.skills-card:nth-child(6n) .skills-icon i {
  color: #2dd4bf;
}

/* =========================
   PAGINATION
========================= */

.skills-pagination {
  grid-column: 1 / 4;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: #777780;
  font-family: monospace;
  font-size: 14px;
}

#skillsCurrent {
  color: #62b8ff;
}

/* =========================
   NAVIGATION BUTTONS
========================= */

.skills-controls {
  grid-column: 4 / -1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.skills-controls button {
  width: 42px;
  height: 42px;
  flex-shrink: 0;

  display: grid;
  place-items: center;

  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: #171719;
  color: #4f8cff;

  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;

  cursor: pointer;

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    opacity 0.25s ease;
}

.skills-controls button i {
  color: inherit;
  font-size: 16px;
  line-height: 1;
}

/* Pop each arrow independently */
.skills-controls button:hover:not(:disabled) {
  background: #222226;
  color: #75a7ff;
  border-color: rgba(79, 140, 255, 0.4);
  transform: translateY(-3px) scale(1.06);
}

.skills-controls button:disabled {
  opacity: 1;
  color: #4f8cff;
  background: #171719;
  border-color: rgba(255, 255, 255, 0.1);
  cursor: not-allowed;
  transform: none;
}

.skills-controls button:disabled i {
  color: #4f8cff;
}

/* =========================
   SKILLS ANIMATION
========================= */

@keyframes skillsFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   SKILLS RESPONSIVE
========================= */

@media (max-width: 1100px) {
  .skills-section {
    padding: 90px 6%;
  }

  .skills-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .skills-pagination {
    grid-column: 1 / 3;
  }

  .skills-controls {
    grid-column: 3 / -1;
  }
}

@media (max-width: 700px) {
  .skills-section {
    padding: 75px 5%;
  }

  .skills-title {
    font-size: 38px;
  }

  .skills-description {
    font-size: 14px;
    margin-bottom: 32px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .skills-card {
    min-height: 112px;
    padding: 18px 8px;
  }

  .skills-card h3 {
    font-size: 12px;
  }

  .skills-controls button {
    width: 40px;
    height: 40px;
  }
}

/* =========================
   ACCESSIBILITY
========================= */

@media (hover: none) {
  .skills-card:hover {
    transform: none;
    box-shadow: none;
  }

  .skills-card:hover .skills-icon,
  .skills-card:hover .skills-icon i,
  .skills-card:hover h3 {
    transform: none;
  }

  .skills-controls button:hover:not(:disabled) {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skills-card,
  .skills-icon,
  .skills-icon i,
  .skills-card h3,
  .skills-controls button {
    animation: none;
    transition: none;
  }

  .skills-card:hover,
  .skills-card:hover .skills-icon,
  .skills-card:hover .skills-icon i,
  .skills-card:hover h3,
  .skills-controls button:hover:not(:disabled) {
    transform: none;
  }
}


/* =========================
   EXPERIENCE SECTION
========================= */

/* Define the section dimensions and outer spacing. */
.experience-section {
  width: 100%;
  min-height: 100vh;
  padding: 120px 8%;
}

/* Center the experience content and limit its maximum width. */
.experience-container {
  max-width: 1450px;
  margin: auto;
}

/* Style the small introductory label above the section heading. */
.experience-subtitle {
  display: block;
  color: #4f8cff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 4px;
  margin-bottom: 20px;
}

/* Style the main experience heading with a responsive font size. */
.experience-title {
  font-size: clamp(42px, 4.5vw, 64px);
  line-height: 1.15;
  color: #eef4ff;
  margin-bottom: 75px;
}


/* =========================
   TIMELINE LAYOUT
========================= */

/* Stack timeline entries vertically with consistent spacing. */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Draw the vertical timeline line behind the timeline markers. */
.timeline::before {
  content: "";
  position: absolute;
  left: 24%;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: rgba(79, 140, 255, 0.28);
}

/* Arrange each timeline entry into date and content columns. */
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 21% minmax(0, 1fr);
  column-gap: 7%;
  align-items: start;
}


/* =========================
   DATE & LOCATION
========================= */

/* Align the date information to the right of the timeline. */
.timeline-date {
  grid-column: 1;
  grid-row: 1;
  padding-top: 12px;
  text-align: right;
  color: #aeb8cc;
  font-family: monospace;
  font-size: 15px;
  line-height: 1.8;
}

/* Display secondary date or location information on a new line. */
.timeline-date span {
  display: block;
  color: #737f95;
  font-family: inherit;
  font-size: 13px;
}


/* =========================
   TIMELINE DOT
========================= */

/* Position the circular marker over the vertical timeline line. */
.timeline-dot {
  position: absolute;
  left: calc(24% - 6px);
  top: 18px;
  z-index: 2;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4f8cff;
  box-shadow:
    0 0 0 6px rgba(79, 140, 255, 0.10),
    0 0 18px rgba(79, 140, 255, 0.45);
}


/* =========================
   EXPERIENCE CARD
========================= */

/* Define the card appearance and its hover transition. */
.timeline-card {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  padding: 30px 32px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #18181b;

  transition:
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Raise the card and highlight its border on hover. */
.timeline-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 140, 255, 0.55);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}


/* =========================
   CARD CONTENT
========================= */

/* Arrange the icon and text content horizontally. */
.timeline-content {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

/* Prevent the experience icon from shrinking. */
.timeline-content > i {
  flex-shrink: 0;
  margin-top: 7px;
  font-size: 20px;
  color: #eef4ff;
}

/* Allow the text column to use the remaining available space. */
.timeline-details {
  flex: 1;
  min-width: 0;
}

/* Style the role or position title. */
.timeline-content h3 {
  margin: 0 0 8px;
  color: #f3f5fa;
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.35;
  font-weight: 700;
}

/* Style the company name or organization. */
.timeline-company {
  margin: 0 0 16px;
  color: #aeb8cc;
  font-size: 17px;
  line-height: 1.5;
}

/* Style the experience description text. */
.timeline-content .timeline-description {
  margin: 0 0 18px;
  color: #a6a6b2;
  font-size: 16px;
  line-height: 1.8;
}


/* =========================
   SKILL BADGES
========================= */

/* Arrange experience-related skills in a wrapping row. */
.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 8px;
}

/* Style each individual skill badge. */
.timeline-tags span {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(79, 140, 255, 0.22);
  border-radius: 8px;
  background: rgba(79, 140, 255, 0.06);
  color: #b9c9e5;
  font-size: 12px;
  line-height: 1.4;

  /* Animate only the properties used by the hover effect. */
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}

/* Highlight skill badges when hovered. */
.timeline-tags span:hover {
  border-color: #4f8cff;
  background: rgba(79, 140, 255, 0.12);
  color: #ffffff;
}


/* =========================
   TABLET
========================= */

@media (max-width: 900px) {
  .experience-section {
    padding: 90px 6%;
  }

  .experience-title {
    margin-bottom: 55px;
  }

  .timeline {
    gap: 25px;
  }

  /* Move the vertical timeline line near the left edge. */
  .timeline::before {
    left: 10px;
  }

  /* Use one column and leave space for the timeline marker. */
  .timeline-item {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 38px;
  }

  /* Align the marker with the vertical line. */
  .timeline-dot {
    left: 4px;
    top: 18px;
  }

  /* Place the date above the experience card. */
  .timeline-date {
    grid-column: 1;
    grid-row: 1;
    padding: 0 0 12px;
    text-align: left;
    font-size: 13px;
  }

  /* Display secondary date information inline on smaller screens. */
  .timeline-date span {
    display: inline;
    margin-left: 8px;
    font-size: 12px;
  }

  /* Place the experience card below the date. */
  .timeline-card {
    grid-column: 1;
    grid-row: 2;
    padding: 25px;
  }

  .timeline-content h3 {
    font-size: 23px;
  }

  .timeline-company {
    font-size: 16px;
  }

  .timeline-content .timeline-description {
    font-size: 15px;
  }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {
  .experience-section {
    padding: 75px 5%;
  }

  .experience-title {
    font-size: 38px;
    margin-bottom: 42px;
  }

  /* Reduce the space reserved for the timeline marker. */
  .timeline-item {
    padding-left: 30px;
  }

  /* Keep the vertical line aligned with the marker. */
  .timeline::before {
    left: 7px;
  }

  .timeline-dot {
    left: 1px;
    width: 12px;
    height: 12px;
  }

  /* Reduce card padding and corner radius on mobile. */
  .timeline-card {
    padding: 21px 18px;
    border-radius: 18px;
  }

  .timeline-content {
    gap: 12px;
  }

  .timeline-content > i {
    font-size: 17px;
  }

  .timeline-content h3 {
    font-size: 20px;
  }

  .timeline-company {
    margin-bottom: 12px;
    font-size: 15px;
  }

  .timeline-content .timeline-description {
    font-size: 14px;
    line-height: 1.75;
  }

  .timeline-tags {
    gap: 7px;
  }

  .timeline-tags span {
    padding: 6px 9px;
    font-size: 11px;
  }
}


/* =========================
   ACCESSIBILITY
========================= */

/* Respect the user's reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
  .timeline-card,
  .timeline-tags span {
    transition: none;
  }

  .timeline-card:hover {
    transform: none;
  }
}


/* =========================
   PROJECTS SECTION
========================= */

/* Define the main projects section layout and spacing. */
.projects-section {
  width: 100%;
  padding: 120px 6%;
  background: transparent;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Center the projects content and limit its maximum width. */
.projects-container {
  max-width: 1600px;
  margin: auto;
}

/* Style the small introductory label above the section title. */
.projects-subtitle {
  display: block;
  text-align: center;
  color: #4f8cff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 5px;
  margin-bottom: 18px;
}

/* Style the main projects heading. */
.projects-title {
  text-align: center;
  font-size: clamp(44px, 5vw, 72px);
  color: #f5f5f7;
  margin: 0 0 50px;
}


/* =========================
   PROJECT FILTERS
========================= */

/* Arrange filter buttons in a flexible row. */
.project-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

/* Define the default appearance of each filter button. */
.project-filter-btn {
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  background: #171719;
  color: #b8b8c4;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

/* Highlight the selected filter and hovered filter buttons. */
.project-filter-btn:hover,
.project-filter-btn.active {
  color: #fff;
  background: #242630;
  border-color: #4f8cff;
  box-shadow: 0 0 18px rgba(79, 140, 255, 0.12);
}


/* =========================
   PROJECT CAROUSEL CONTROLS
========================= */

/* Align carousel navigation buttons to the right. */
.projects-carousel-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

/* Style the circular previous and next buttons. */
.project-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: #171719;
  color: #4f8cff;
  font-size: 16px;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

/* Highlight enabled navigation buttons on hover. */
.project-arrow:hover:not(:disabled) {
  background: #4f8cff;
  color: #fff;
  border-color: #4f8cff;
  transform: translateY(-2px);
}

/* Visually indicate disabled navigation buttons. */
.project-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}


/* =========================
   PROJECTS GRID
========================= */

/* Display two cards per page on desktop, matching the JavaScript carousel. */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  width: 100%;
}

/* Make each project card fill its grid cell. */
.projects-grid > .project-card {
  width: 100%;
  min-width: 0;
  height: 100%;
  box-sizing: border-box;
}

/* Ensure cards hidden by JavaScript remain hidden. */
.project-card[hidden] {
  display: none !important;
}


/* =========================
   PROJECT CARD
========================= */

/* Define the card layout and default appearance. */
.project-card {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;

  background: #151517;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;

  transition:
    opacity 0.7s ease,
    transform 0.45s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

/* Set the initial state for cards when JavaScript is enabled. */
.js-enabled .project-card {
  opacity: 0;
  transform: translateY(25px);
}

/* Reveal cards when JavaScript adds the visibility class. */
.js-enabled .project-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   PROJECT IMAGE
========================= */

/* Establish a positioning context for the image icon. */
.project-image-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

/* Make the project image fill its container. */
.project-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.10s ease;
}

/* =========================
   PROJECT IMAGE ICON
========================= */

/* Position the icon in the top-right corner of the image. */
.project-image-icon {
  position: absolute;
  z-index: 1;
  top: 14px;
  right: 14px;

  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;

  color: #65b8ff;
  font-size: 20px;

  border: 1px solid rgba(101, 184, 255, 0.65);
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.65);

  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}


/* =========================
   PROJECT CARD HOVER
========================= */

/* Highlight the card when the pointer hovers over it. */
.project-card:hover {
  border-color: rgba(79, 140, 255, 0.5);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
}

/* Slightly enlarge the project image on hover. */
.project-card:hover .project-image {
  transform: scale(1.04);
}

/* Change the image icon appearance on hover. */
.project-card:hover .project-image-icon {
  background: #4f8cff;
  color: #fff;
  transform: rotate(45deg);
}


/* =========================
   PROJECT CONTENT
========================= */

/* Arrange the project information vertically inside the card. */
.project-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 24px;
}

/* Style the project category label. */
.project-category {
  color: #9ca3af;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  line-height: 1.6;
  margin-bottom: 14px;
}

/* Style the project title and allow long words to wrap. */
.project-card h3 {
  width: 100%;
  color: #f5f5f7;
  font-size: 22px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  margin: 0 0 14px;
}

/* Style the project description. */
.project-card p {
  color: #a6a6b1;
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 22px;
}


/* =========================
   TECHNOLOGY TAGS
========================= */

/* Arrange technology tags in a wrapping row. */
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
}

/* Define the appearance of individual technology tags. */
.project-tech span {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 5px;

  background: #0d0d0f;
  border: 1px solid rgba(255, 255, 255, 0.05);

  color: #c0c0ca;
  font-size: 11px;
  line-height: 1.4;

  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    transform 0.25s ease;
}

/* Highlight technology tags on hover. */
.project-tech span:hover {
  color: #fff;
  border-color: rgba(79, 140, 255, 0.45);
  background: rgba(79, 140, 255, 0.12);
  transform: translateY(-2px);
}


/* =========================
   VIEW PROJECT LINK
========================= */

/* Align the project link and keep it at the bottom of the card. */
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-top: auto;
  padding-top: 4px;

  color: #e5b341;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;

  transition:
    color 0.25s ease,
    gap 0.25s ease;
}

/* Keep the arrow ready for its hover animation. */
.project-link span {
  display: inline-block;
  transition: transform 0.25s ease;
}

/* Change the link color and increase the icon spacing on hover. */
.project-link:hover {
  color: #ffd36b;
  gap: 12px;
}

/* Move the link arrow slightly to the right on hover. */
.project-link:hover span {
  transform: translateX(4px);
}


/* =========================
   TABLET
========================= */

@media (max-width: 1000px) {
  .projects-section {
    padding: 90px 5%;
  }

  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .project-image-wrapper {
    height: 230px;
  }

  .project-content {
    padding: 22px;
  }

  .project-card h3 {
    font-size: 23px;
  }

  .project-card p {
    font-size: 14px;
  }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {
  .projects-section {
    padding: 75px 6%;
  }

  .projects-title {
    font-size: 38px;
    margin-bottom: 35px;
  }

  .project-filters {
    gap: 8px;
  }

  .project-filter-btn {
    padding: 10px 14px;
    font-size: 12px;
  }

  /* Match the one-card-per-page mobile behavior in JavaScript. */
  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .projects-carousel-controls {
    margin-bottom: 16px;
  }

  .project-image-wrapper {
    height: 240px;
  }

  .project-content {
    padding: 22px;
  }

  .project-card h3 {
    font-size: 24px;
  }

  .project-card p {
    font-size: 15px;
    line-height: 1.8;
  }

  .project-tech span {
    font-size: 12px;
  }
}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 420px) {
  .projects-title {
    font-size: 34px;
  }

  .project-image-wrapper {
    height: 210px;
  }

  .project-content {
    padding: 19px;
  }

  .project-card h3 {
    font-size: 22px;
  }

  .project-tech {
    gap: 7px;
  }

  .project-tech span {
    font-size: 11px;
    padding: 7px 9px;
  }
}


/* =========================
   REDUCED MOTION ACCESSIBILITY
========================= */

/* Reduce animations for users who prefer less motion. */
@media (prefers-reduced-motion: reduce) {
  .project-card,
  .project-image,
  .project-image-icon,
  .project-link,
  .project-link span,
  .project-tech span {
    transition: none !important;
    animation: none !important;
  }

  /* Keep cards visible without the entrance animation. */
  .js-enabled .project-card {
    opacity: 1;
    transform: none;
  }

  .js-enabled .project-card.is-visible {
    opacity: 1;
    transform: none;
  }
}


/* =========================
   PROJECTS - DARK MODE
========================= */

/* Keep the projects section background transparent in dark mode. */
body.dark-mode .projects-section {
  background: transparent;
}

/* Style section number and title when those classes are present. */
body.dark-mode .projects-section .section-number {
  color: #4f8cff;
}

body.dark-mode .projects-section .section-title {
  color: #f5f5f7;
}

/* Define dark mode project card colors. */
body.dark-mode .projects-section .project-card {
  background: #151517;
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .projects-section .project-card h3 {
  color: #f5f5f7;
}

body.dark-mode .projects-section .project-card p {
  color: #a6a6b1;
}

body.dark-mode .projects-section .project-category {
  color: #9ca3af;
}

body.dark-mode .projects-section .project-tech span {
  background: #0d0d0f;
  color: #c0c0ca;
  border-color: rgba(255, 255, 255, 0.05);
}

/* =========================
   CERTIFICATES SECTION
========================= */

.certificates-section {
  padding: 120px 8%;
}

.certificates-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* =========================
   SECTION TITLE
========================= */

.section-subtitle {
  display: block;
  margin-bottom: 18px;

  color: #4f8cff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
}

.section-title {
  margin-bottom: 40px;

  color: #dfe9ff;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

/* =========================
   CERTIFICATE FILTER BUTTONS
========================= */

.certificate-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;

  margin-bottom: 50px;
}

.filter-btn {
  padding: 12px 22px;

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;

  background: rgba(255, 255, 255, 0.03);
  color: #c8d4ea;

  font: inherit;
  font-size: 14px;

  cursor: pointer;

  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  color: #fff;
  border-color: #4f8cff;

  box-shadow: 0 0 20px rgba(79, 140, 255, 0.25);
}

/* Keyboard accessibility */

.filter-btn:focus-visible {
  outline: 2px solid #4f8cff;
  outline-offset: 4px;
}

/* =========================
   CERTIFICATES GRID
========================= */

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 30px;
}

/* Keep filtered certificates hidden */

.certificate-card[hidden] {
  display: none !important;
}

/* =========================
   CERTIFICATE CARD
========================= */

.certificate-card {
  min-width: 0;

  position: relative;
  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;

  background: rgba(255, 255, 255, 0.03);

  cursor: pointer;

  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.certificate-card:hover {
  transform: translateY(-10px);

  border-color: #4f8cff;

  box-shadow: 0 0 35px rgba(79, 140, 255, 0.18);
}

/* =========================
   CERTIFICATE IMAGE
========================= */

.certificate-card img {
  display: block;

  width: 100%;
  height: 280px;

  object-fit: cover;

  transition: transform 0.5s ease;
}

.certificate-card:hover img {
  transform: scale(1.05);
}

/* =========================
   CERTIFICATE INFORMATION
========================= */

.certificate-info {
  padding: 24px;
}

.certificate-info span {
  display: inline-block;

  margin-bottom: 18px;
  padding: 8px 14px;

  border-radius: 30px;

  background: rgba(79, 140, 255, 0.12);
  color: #4f8cff;

  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
}

.certificate-info h3 {
  margin-bottom: 12px;

  color: #f3f7ff;
  font-size: 28px;
  line-height: 1.3;

  overflow-wrap: anywhere;
}

.certificate-info p {
  color: #9eb0cc;
  font-size: 16px;
  line-height: 1.7;
}

/* =========================
   RESPONSIVE DESIGN
========================= */

/* Tablets */

@media (max-width: 900px) {
  .certificates-section {
    padding: 90px 6%;
  }

  .section-title {
    font-size: clamp(36px, 6vw, 48px);
  }

  .certificate-info h3 {
    font-size: 22px;
  }

  .certificate-card img {
    height: 220px;
  }

  .certificates-grid {
    gap: 24px;
  }
}

/* Mobile devices */

@media (max-width: 600px) {
  .certificates-section {
    padding: 70px 5%;
  }

  .section-subtitle {
    font-size: 12px;
    letter-spacing: 2px;
  }

  .section-title {
    margin-bottom: 30px;
    font-size: clamp(32px, 8vw, 42px);
  }

  .certificate-filters {
    gap: 10px;
    margin-bottom: 32px;
  }

  .filter-btn {
    padding: 10px 16px;
    font-size: 13px;
  }

  .certificates-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .certificate-card {
    border-radius: 22px;
  }

  .certificate-card img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .certificate-info {
    padding: 20px;
  }

  .certificate-info h3 {
    font-size: 21px;
  }

  .certificate-info p {
    font-size: 14px;
  }
}

/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {
  .certificate-card,
  .certificate-card img,
  .filter-btn {
    transition: none;
  }

  .certificate-card:hover {
    transform: none;
  }

  .certificate-card:hover img {
    transform: none;
  }
}

/* =========================
   EDUCATION SECTION
========================= */

.education-section {
  padding: 120px 8%;
}

.education-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* =========================
   EDUCATION CARD
========================= */

.education-card {
  display: flex;
  align-items: flex-start;
  gap: 30px;

  margin-top: 50px;
  padding: 40px;

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;

  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 40px rgba(0, 76, 255, 0.10);

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* Highlight the card on hover */

.education-card:hover {
  transform: translateY(-8px);

  border-color: #2f6bff;
  box-shadow: 0 0 50px rgba(47, 107, 255, 0.18);
}

/* =========================
   EDUCATION ICON
========================= */

.education-icon {
  display: flex;
  flex: 0 0 64px;
  align-items: center;
  justify-content: center;

  width: 64px;
  height: 64px;

  border-radius: 18px;

  background: #0f2147;
  color: #ffffff;

  font-size: 24px;
}

/* =========================
   EDUCATION CONTENT
========================= */

.education-content {
  flex: 1;
  min-width: 0;
}

/* Education degree or qualification */

.education-content h3 {
  margin-bottom: 12px;

  color: #e8eeff;
  font-size: 38px;
  line-height: 1.3;

  overflow-wrap: anywhere;
}

/* Institution name */

.education-content h4 {
  margin-bottom: 18px;

  color: #9eb0d1;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;

  overflow-wrap: anywhere;
}

/* Education description */

.education-content p {
  margin-bottom: 12px;

  color: #b7c4dd;
  font-size: 18px;
  line-height: 1.7;

  overflow-wrap: anywhere;
}

/* =========================
   GRADUATION PROJECT
========================= */

.graduation-project {
  margin-top: 30px;
  padding-top: 25px;

  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Project category label */

.graduation-project span {
  display: inline-block;

  margin-bottom: 18px;
  padding: 8px 16px;

  border-radius: 30px;

  background: #10244d;
  color: #4f8cff;

  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Graduation project title */

.graduation-project h5 {
  margin-bottom: 10px;

  color: #ffffff;
  font-size: 28px;
  line-height: 1.4;

  overflow-wrap: anywhere;
}

/* Graduation project description */

.graduation-project p {
  color: #8fb0ff;
  font-weight: 600;
  line-height: 1.7;

  overflow-wrap: anywhere;
}

/* =========================
   RESPONSIVE DESIGN
========================= */

/* Tablets */

@media (max-width: 900px) {
  .education-section {
    padding: 90px 6%;
  }

  .education-card {
    gap: 24px;
    padding: 32px;
  }

  .education-content h3 {
    font-size: 32px;
  }

  .education-content h4 {
    font-size: 18px;
  }

  .education-content p {
    font-size: 16px;
  }

  .graduation-project h5 {
    font-size: 24px;
  }
}

/* Mobile devices */

@media (max-width: 600px) {
  .education-section {
    padding: 70px 5%;
  }

  .education-card {
    flex-direction: column;
    gap: 22px;

    margin-top: 35px;
    padding: 24px;

    border-radius: 24px;
  }

  .education-icon {
    flex-basis: 56px;
    width: 56px;
    height: 56px;

    border-radius: 16px;
    font-size: 22px;
  }

  .education-content h3 {
    font-size: clamp(25px, 6vw, 30px);
  }

  .education-content h4 {
    font-size: 17px;
  }

  .education-content p {
    font-size: 15px;
  }

  .graduation-project {
    margin-top: 24px;
    padding-top: 22px;
  }

  .graduation-project span {
    font-size: 12px;
    letter-spacing: 0.5px;
  }

  .graduation-project h5 {
    font-size: 22px;
  }

  .graduation-project p {
    font-size: 14px;
  }
}

/* Small mobile devices */

@media (max-width: 380px) {
  .education-card {
    padding: 18px;
  }

  .education-content h3 {
    font-size: 24px;
  }

  .graduation-project h5 {
    font-size: 20px;
  }
}

/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {
  .education-card {
    transition: none;
  }

  .education-card:hover {
    transform: none;
  }
}


/* =========================
   EDUCATION RESPONSIVE
========================= */

@media (max-width: 900px) {
  .education-card {
    flex-direction: column;
  }

  .education-content h3 {
    font-size: 28px;
  }

  .graduation-project h5 {
    font-size: 22px;
  }
}



/* =========================
   CONTACT SECTION
========================= */

.contact-section {
  min-height: 650px;
  padding: 120px 8% 140px;
  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: center;

  text-align: center;
}

.contact-container {
  width: 100%;
  max-width: 850px;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hide CONTACT subtitle */

.contact-container .section-subtitle {
  display: none;
}

/* =========================
   CONTACT HEADING
========================= */

.contact-container .section-title {
  max-width: 760px;
  margin: 0 auto 28px;

  color: #f2f0ee;
  font-size: clamp(38px, 4.2vw, 66px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1.5px;
}

/* =========================
   CONTACT INTRODUCTION
========================= */

.contact-text {
  max-width: 620px;
  margin: 0 auto 58px;

  color: #a8a8b0;
  font-size: 18px;
  line-height: 1.9;
  text-align: center;

  overflow-wrap: anywhere;
}

/* =========================
   CONTACT ICONS
========================= */

.contact-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;

  width: 100%;
  gap: 30px;
}

/* Circular social icons */

.contact-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  padding: 0;
  box-sizing: border-box;

  color: #a8a8b0;
  background: transparent;

  border: 1px solid rgba(168, 168, 176, 0.6);
  border-radius: 50%;

  text-decoration: none;

  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

/* Icon appearance */

.contact-card i {
  display: inline-block;
  color: inherit;
  font-size: 24px;
  line-height: 1;
}

/* Hide old card text if any remains in HTML */

.contact-card > div {
  display: none;
}

/* Hover effect */

.contact-card:hover {
  color: #f2f0ee;
  border-color: #4f8cff;
  background: rgba(79, 140, 255, 0.06);
  transform: translateY(-3px);
}

/* Keyboard accessibility */

.contact-card:focus-visible {
  outline: 2px solid #4f8cff;
  outline-offset: 5px;
}

/* =========================
   TABLET
========================= */

@media (max-width: 900px) {
  .contact-section {
    min-height: 580px;
    padding: 100px 6%;
  }

  .contact-container .section-title {
    font-size: clamp(36px, 5.5vw, 52px);
    letter-spacing: -1px;
  }

  .contact-text {
    max-width: 580px;
    margin-bottom: 44px;
    font-size: 17px;
  }

  .contact-links {
    gap: 22px;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {
  .contact-section {
    min-height: 520px;
    padding: 90px 6%;
  }

  .contact-container .section-title {
    font-size: clamp(32px, 8vw, 44px);
    line-height: 1.25;
    letter-spacing: -0.7px;
  }

  .contact-text {
    max-width: 480px;
    margin-bottom: 38px;
    font-size: 16px;
    line-height: 1.8;
  }

  .contact-links {
    gap: 18px;
  }

  .contact-card {
    flex-basis: 54px;
    width: 54px;
    height: 54px;
  }

  .contact-card i {
    font-size: 21px;
  }
}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 380px) {
  .contact-section {
    padding-inline: 5%;
  }

  .contact-container .section-title {
    font-size: 30px;
  }

  .contact-text {
    font-size: 15px;
  }

  .contact-links {
    gap: 14px;
  }

  .contact-card {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
  }
}

/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {
  .contact-card {
    transition: none;
  }

  .contact-card:hover {
    transform: none;
  }
}

/* =========================
   FOOTER
========================= */


.footer {
  margin-top: 0;
  padding: 35px 20px;

  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);

  text-align: center;
}


/* Footer text */

.footer p {
  margin: 0;

  color: #9eb0cc;
  font-size: 17px;
  line-height: 1.8;

  overflow-wrap: anywhere;
}

/* =========================
   SCROLL TO TOP BUTTON
========================= */

#scrollTopBtn {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 58px;
  height: 58px;
  padding: 0;

  border: none;
  border-radius: 50%;

  background: #0f2147;
  color: #ffffff;

  font-size: 20px;

  cursor: pointer;

  box-shadow: 0 0 25px rgba(79, 140, 255, 0.35);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(20px);

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* Show the button when the page is scrolled */

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: translateY(0);
}

/* Hover state */

#scrollTopBtn:hover {
  transform: translateY(-6px);

  background: #1d3d7a;

  box-shadow: 0 0 35px rgba(79, 140, 255, 0.5);
}

/* Keyboard focus */

#scrollTopBtn:focus-visible {
  outline: 2px solid #4f8cff;
  outline-offset: 5px;
}

/* =========================
   LOADING SCREEN
========================= */

#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;

  width: 100%;
  height: 100vh;
  height: 100dvh;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #ffffff;
}

/* Main loader layout */

.loader-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  width: 90%;
  max-width: 1500px;
  height: 80%;
  min-height: 0;
}

/* =========================
   LOADER TYPOGRAPHY
========================= */

/* Brand name and title wrapper */

.loader-brand {
  display: flex;
  flex-direction: column;
  align-items: center;

  color: #111111;
  text-align: center;
}

/* Loader name */

.loader-name {
  color: #111111;

  font-family: "Inter", sans-serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.8px;

  overflow-wrap: anywhere;
}

/* Loader job title */

.loader-title {
  margin-top: 10px;

  color: #a1a5af;

  font-family: "Inter", sans-serif;
  font-size: clamp(16px, 2.3vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;

  /* Initial animation state */

  opacity: 0;
  transform: translateY(10px);
  clip-path: inset(0 100% 0 0);

  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    clip-path 0.1s linear;
}

/* =========================
   LOADER PERCENTAGE
========================= */

.loader-percentage {
  color: #111111;

  font-family: "Poppins", sans-serif;
  font-size: clamp(80px, 18vw, 260px);
  font-weight: 700;
  line-height: 1;

  letter-spacing: clamp(-10px, -0.7vw, -3px);
}

/* Percentage symbol */

.loader-percentage span:last-child {
  color: #9ca3af;

  font-size: 0.25em;
  letter-spacing: 0;
}

/* =========================
   LOADER BOTTOM AREA
========================= */

.loader-bottom {
  width: 100%;
}

/* =========================
   LOADER PROGRESS LINE
========================= */

.loader-line {
  width: 100%;
  height: 3px;

  overflow: hidden;

  background: #e5e7eb;
}

/* Animated progress indicator */

#loader-progress {
  width: 0%;
  height: 100%;

  background: #111111;

  transition: width 0.1s linear;
}

/* =========================
   LOADER INFORMATION
========================= */

.loader-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  margin-top: 12px;

  color: #9ca3af;

  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* =========================
   RESPONSIVE DESIGN
========================= */

/* Tablets */

@media (max-width: 900px) {
  .footer {
    margin-top: 60px;
  }

  #scrollTopBtn {
    right: 24px;
    bottom: 24px;

    width: 52px;
    height: 52px;
  }

  .loader-content {
    width: 88%;
    height: 75%;
  }

  .loader-percentage {
    font-size: clamp(90px, 20vw, 180px);
  }
}

/* Mobile devices */

@media (max-width: 700px) {
  .footer {
    margin-top: 50px;
    padding: 28px 16px;
  }

  .footer p {
    font-size: 15px;
  }

  #scrollTopBtn {
    right: 18px;
    bottom: 18px;

    width: 48px;
    height: 48px;

    font-size: 18px;
  }

  .loader-content {
    width: 90%;
    height: 70%;
  }

  .loader-name {
    font-size: clamp(26px, 7vw, 38px);
    letter-spacing: -1px;
  }

  .loader-title {
    font-size: clamp(15px, 4vw, 21px);
  }

  .loader-percentage {
    font-size: clamp(75px, 21vw, 145px);
    letter-spacing: -4px;
  }

  .loader-info {
    font-size: 12px;
    letter-spacing: 0.2px;
  }
}

/* Small mobile devices */

@media (max-width: 380px) {
  .loader-content {
    width: 92%;
    height: 65%;
  }

  .loader-name {
    font-size: 25px;
  }

  .loader-title {
    font-size: 14px;
  }

  .loader-percentage {
    font-size: 72px;
    letter-spacing: -3px;
  }

  .loader-info {
    gap: 8px;
    font-size: 10px;
  }
}

/* Short screens in landscape orientation */

@media (max-height: 500px) {
  .loader-content {
    height: 85%;
  }

  .loader-name {
    font-size: 28px;
  }

  .loader-title {
    margin-top: 5px;
    font-size: 16px;
  }

  .loader-percentage {
    font-size: clamp(60px, 15vh, 100px);
  }
}

/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {
  #scrollTopBtn,
  .loader-title,
  #loader-progress {
    transition: none;
  }

  #scrollTopBtn:hover {
    transform: none;
  }
}



/* ========================================
   LOADER TYPOGRAPHY
======================================== */

/* Loader brand name */

.loader-name {
  font-family: "Inter", sans-serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -1.8px;
  line-height: 1.05;

  color: #111111;
  text-align: center;

  overflow-wrap: anywhere;
}

/* Loader job title */

.loader-title {
  margin-top: 10px;

  font-family: "Inter", sans-serif;
  font-size: clamp(16px, 2.3vw, 26px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.3;

  color: #a1a5af;
  text-align: center;

  /* Initial animation state */
  opacity: 0;
  transform: translateY(10px);
  clip-path: inset(0 100% 0 0);

  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    clip-path 0.1s linear;
}

/* ========================================
   RESPONSIVE LOADER
======================================== */

/* Tablets and mobile devices */

@media (max-width: 700px) {
  .loader-content {
    width: 88%;
    height: 75%;
  }

  .loader-name {
    font-size: clamp(25px, 6vw, 34px);
    letter-spacing: -0.5px;
    line-height: 1.15;
  }

  .loader-title {
    margin-top: 8px;

    font-size: clamp(14px, 3.5vw, 18px);
    letter-spacing: 0;
    line-height: 1.4;
  }

  .loader-percentage {
    font-size: clamp(80px, 25vw, 150px);
    letter-spacing: -6px;
  }

  .loader-info {
    font-size: 12px;
  }
}

/* Small mobile devices */

@media (max-width: 380px) {
  .loader-content {
    width: 92%;
    height: 70%;
  }

  .loader-name {
    font-size: 25px;
    letter-spacing: 0;
  }

  .loader-title {
    font-size: 14px;
  }

  .loader-percentage {
    font-size: 72px;
    letter-spacing: -3px;
  }

  .loader-info {
    gap: 8px;
    font-size: 10px;
  }
}

/* ========================================
   THEME TOGGLE
======================================== */

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;
  padding: 0;

  border: 1px solid #d8d8dc;
  border-radius: 50%;

  background: #ffffff;
  color: #111111;

  font-size: 24px;
  line-height: 1;

  cursor: pointer;

  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

/* Theme toggle hover */

.theme-toggle:hover {
  transform: scale(1.05);
}

/* Theme icon alignment */

#theme-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  line-height: 1;

  transition: transform 0.3s ease;
}

/* Keyboard accessibility */

.theme-toggle:focus-visible {
  outline: 2px solid #4f8cff;
  outline-offset: 4px;
}

/* ========================================
   DARK MODE - THEME TOGGLE
======================================== */

body.dark-mode .theme-toggle {
  background: #171719;
  color: #ffffff;
  border-color: #3a3a3d;
}

body.dark-mode #theme-icon {
  transform: rotate(-20deg);
}

/* ========================================
   DARK MODE - GLOBAL
======================================== */

body.dark-mode {
  background:
    radial-gradient(
      circle at top left,
      #1b1b1f 0%,
      #151518 45%,
      #101012 100%
    );

  color: #ffffff;
}

/* ========================================
   DARK MODE - NAVBAR
======================================== */

body.dark-mode .navbar {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .logo {
  color: #ffffff;
}

body.dark-mode .nav-links a {
  color: #9b9ba3;
}

body.dark-mode .nav-links a:hover {
  color: #ffffff;
}

/* ========================================
   DARK MODE - SECTION TITLES
======================================== */

body.dark-mode .hero-left h1,
body.dark-mode .about-title,
body.dark-mode .skills-title,
body.dark-mode .experience-title,
body.dark-mode .projects-title,
body.dark-mode .section-title {
  color: #f2f2f4;
}

body.dark-mode .hero-left h2 {
  color: #d7d7dc;
}

/* ========================================
   DARK MODE - SECONDARY TEXT
======================================== */

body.dark-mode .hero-left p,
body.dark-mode .about-text-box p,
body.dark-mode .skills-card ul li,
body.dark-mode .timeline-content p,
body.dark-mode .project-card p,
body.dark-mode .certificate-info p,
body.dark-mode .education-content h4,
body.dark-mode .education-content p,
body.dark-mode .contact-text,
body.dark-mode .contact-card p {
  color: #a7a7b0;
}

/* ========================================
   DARK MODE - CARDS
======================================== */

body.dark-mode .about-card,
body.dark-mode .about-text-box,
body.dark-mode .skills-card,
body.dark-mode .timeline-card,
body.dark-mode .project-card,
body.dark-mode .certificate-card,
body.dark-mode .education-card,
body.dark-mode .contact-card {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.08);
}

/* ========================================
   DARK MODE - ICONS
======================================== */

body.dark-mode .education-icon,
body.dark-mode .contact-card i {
  background: #202026;
}

/* ========================================
   DARK MODE - FOOTER
======================================== */

body.dark-mode .footer {
  background: rgba(255, 255, 255, 0.02);
  border-top-color: rgba(255, 255, 255, 0.08);
}

/* ========================================
   DARK MODE - THEME TOGGLE
======================================== */

body.dark-mode .theme-toggle {
  background: #171719;
  color: #ffffff;
  border-color: #3a3a3d;
}

/* ========================================
   REDUCED MOTION
======================================== */

@media (prefers-reduced-motion: reduce) {
  .loader-title,
  .theme-toggle,
  #theme-icon {
    transition: none;
  }

  .theme-toggle:hover {
    transform: none;
  }
}

/* ========================================
   DARK MODE - GLOBAL
======================================== */

body.dark-mode {
  background: #111113;
  color: #ffffff;

  transition:
    background-color 0.4s ease,
    color 0.4s ease;
}

/* ========================================
   DARK MODE - NAVBAR
======================================== */

body.dark-mode .navbar {
  background: rgba(17, 17, 19, 0.82);
  border-color: rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(14px);
}

body.dark-mode .logo {
  color: #ffffff;
}

body.dark-mode .nav-links a {
  color: #a3a3ab;
}

body.dark-mode .nav-links a:hover {
  color: #ffffff;
}

/* ========================================
   DARK MODE - HERO
======================================== */

body.dark-mode .badge {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.09);
  color: #b8b8c0;
}

body.dark-mode .hero-left h1 {
  color: #f5f5f7;
}

body.dark-mode .hero-left h2 {
  color: #d8d8de;
}

body.dark-mode .hero-left p {
  color: #9f9fa8;
}

/* ========================================
   DARK MODE - SOCIAL BUTTONS
======================================== */

body.dark-mode .btn {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.10);
  color: #f2f2f4;
}

body.dark-mode .btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* ========================================
   DARK MODE - SECTION TITLES
======================================== */

body.dark-mode .about-title,
body.dark-mode .skills-title,
body.dark-mode .experience-title,
body.dark-mode .projects-title,
body.dark-mode .section-title {
  color: #f5f5f7;
}

body.dark-mode .about-subtitle,
body.dark-mode .skills-subtitle,
body.dark-mode .experience-subtitle,
body.dark-mode .projects-subtitle,
body.dark-mode .section-subtitle {
  color: #8daff5;
}

/* ========================================
   DARK MODE - CARDS
======================================== */

body.dark-mode .about-card,
body.dark-mode .about-text-box,
body.dark-mode .skills-card,
body.dark-mode .timeline-card,
body.dark-mode .project-card,
body.dark-mode .certificate-card,
body.dark-mode .education-card,
body.dark-mode .contact-card {
  background: #18181b;
  border-color: rgba(255, 255, 255, 0.08);

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

/* ========================================
   DARK MODE - CARD HOVER
======================================== */

body.dark-mode .about-card:hover,
body.dark-mode .skills-card:hover,
body.dark-mode .timeline-card:hover,
body.dark-mode .project-card:hover,
body.dark-mode .certificate-card:hover,
body.dark-mode .education-card:hover,
body.dark-mode .contact-card:hover {
  border-color: rgba(79, 140, 255, 0.55);
}

/* ========================================
   DARK MODE - CARD TITLES
======================================== */

body.dark-mode .about-card h3,
body.dark-mode .skills-card h3,
body.dark-mode .timeline-content h3,
body.dark-mode .project-card h3,
body.dark-mode .certificate-info h3,
body.dark-mode .education-content h3,
body.dark-mode .graduation-project h5,
body.dark-mode .contact-card h3 {
  color: #f2f2f4;
}

/* ========================================
   DARK MODE - CARD TEXT
======================================== */

body.dark-mode .about-text-box p,
body.dark-mode .skills-card ul li,
body.dark-mode .timeline-content p,
body.dark-mode .project-card p,
body.dark-mode .certificate-info p,
body.dark-mode .education-content h4,
body.dark-mode .education-content p,
body.dark-mode .contact-text,
body.dark-mode .contact-card p {
  color: #a5a5ae;
}

/* ========================================
   DARK MODE - EDUCATION / CONTACT ICONS
======================================== */

body.dark-mode .education-icon,
body.dark-mode .contact-card i {
  background: #222226;
  color: #eeeeef;
}

/* ========================================
   DARK MODE - GRADUATION PROJECT LABEL
======================================== */

body.dark-mode .graduation-project span {
  background: #222b3d;
  color: #8daff5;
}

/* ========================================
   DARK MODE - TIMELINE
======================================== */

body.dark-mode .timeline::before {
  background: rgba(141, 175, 245, 0.22);
}

/* ========================================
   DARK MODE - CERTIFICATE FILTERS
======================================== */

body.dark-mode .filter-btn {
  background: #18181b;
  border-color: rgba(255, 255, 255, 0.08);
  color: #a5a5ae;
}

body.dark-mode .filter-btn:hover,
body.dark-mode .filter-btn.active {
  background: #222226;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
}

/* ========================================
   DARK MODE - FOOTER
======================================== */

body.dark-mode .footer {
  background: rgba(255, 255, 255, 0.02);
  border-top-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .footer p {
  color: #9eb0cc;
}

/* ========================================
   DARK MODE - SCROLL TO TOP
======================================== */

body.dark-mode #scrollTopBtn {
  background: #0f2147;
  color: #ffffff;
}

body.dark-mode #scrollTopBtn:hover {
  background: #1d3d7a;
}

/* ========================================
   DARK MODE - THEME TOGGLE
======================================== */

body.dark-mode .theme-toggle {
  background: #171719;
  color: #ffffff;
  border-color: #3a3a3d;
}

body.dark-mode #theme-icon {
  transform: rotate(-20deg);
}

/* ========================================
   REDUCED MOTION
======================================== */

@media (prefers-reduced-motion: reduce) {
  body.dark-mode {
    transition: none;
  }
}


/* ========================================
   DARK MODE - FOOTER
======================================== */

body.dark-mode .footer {
  background: #0d0d0f;
  border-top-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .footer p {
  color: #85858e;
}

/* ========================================
   DARK MODE - SCROLL TO TOP
======================================== */

body.dark-mode #scrollTopBtn {
  background: #222226;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ========================================
   DARK MODE - THEME TOGGLE
======================================== */

body.dark-mode .theme-toggle {
  background: #171719;
  color: #ffffff;
  border-color: #3a3a3d;
}

/* ========================================
   PREMIUM PORTFOLIO LOADER
======================================== */

#loader {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(37, 99, 235, 0.13) 0%,
      rgba(11, 13, 20, 0) 42%
    ),
    linear-gradient(
      135deg,
      #0b0d14 0%,
      #10131d 55%,
      #080a10 100%
    );

  color: #ffffff;
}

/* Main loader container */

#loader .loader-content {
  position: relative;

  width: min(82%, 850px);
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;

  margin: 0 auto;
}

/* ========================================
   LOADER BRAND
======================================== */

#loader .loader-brand {
  position: absolute;

  top: 7%;
  left: 50%;
  transform: translateX(-50%);

  display: block;

  width: 100%;
  max-width: 800px;

  text-align: center;
  z-index: 2;
}

/* Name displayed in the loader */

#loader .loader-name {
  display: block;
  width: 100%;

  margin: 0;

  font-family: "Poppins", sans-serif;
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.6px;

  color: #ffffff;
  text-align: center;

  opacity: 1;
  visibility: visible;

  overflow-wrap: anywhere;
}

/* Job title displayed below the name */

#loader .loader-title {
  display: block;
  width: 100%;

  margin-top: 10px;

  font-family: "Poppins", sans-serif;
  font-size: clamp(15px, 1.7vw, 21px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.3px;

  color: #75a7ff;
  text-align: center;

  opacity: 1;
  visibility: visible;

  transform: translateY(0);
  clip-path: inset(0 0 0 0);

  overflow-wrap: anywhere;
}

/* ========================================
   LOADER PERCENTAGE
======================================== */

#loader .loader-percentage {
  position: absolute;

  top: 43%;
  left: 50%;
  transform: translate(-50%, -50%);

  display: flex;
  align-items: baseline;
  justify-content: center;

  width: 100%;

  font-family: "Poppins", sans-serif;
  font-size: clamp(100px, 17vw, 175px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -7px;

  color: #ffffff;
  white-space: nowrap;
}

/* Percentage symbol */

#loader .loader-percentage > span:last-child {
  margin-left: 7px;

  font-size: 0.3em;
  font-weight: 700;
  letter-spacing: 0;

  color: #75a7ff;
}

/* ========================================
   LOADER PROGRESS AREA
======================================== */

#loader .loader-bottom {
  position: absolute;

  left: 0;
  bottom: 7%;

  width: 100%;
}

/* Progress track */

#loader .loader-line {
  width: 100%;
  height: 4px;

  overflow: hidden;

  background: #292e3b;
  border-radius: 50px;
}

/* Progress fill - width controlled by JavaScript */

#loader #loader-progress {
  display: block;

  width: 0%;
  height: 100%;

  background: linear-gradient(
    90deg,
    #477cf5,
    #75a7ff,
    #a5c5ff
  );

  border-radius: inherit;

  box-shadow: 0 0 12px rgba(117, 167, 255, 0.35);
}

/* ========================================
   LOADER INFORMATION
======================================== */

#loader .loader-info {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;
  margin-top: 14px;

  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;

  color: #a1a7b5;
}

/* Numeric loading counter */

#loader #loader-counter {
  color: #75a7ff;
  font-variant-numeric: tabular-nums;
}

/* ========================================
   LOADER RESPONSIVE DESIGN
======================================== */

/* Tablets and mobile devices */

@media (max-width: 600px) {
  #loader .loader-content {
    width: 88%;
  }

  #loader .loader-brand {
    top: 9%;
  }

  #loader .loader-name {
    font-size: clamp(24px, 6vw, 32px);
    letter-spacing: -0.3px;
  }

  #loader .loader-title {
    font-size: clamp(14px, 3.8vw, 17px);
  }

  #loader .loader-percentage {
    top: 44%;

    font-size: clamp(90px, 22vw, 135px);
    letter-spacing: -5px;
  }

  #loader .loader-bottom {
    bottom: 8%;
  }

  #loader .loader-info {
    font-size: 10px;
  }
}

/* Small mobile devices */

@media (max-width: 380px) {
  #loader .loader-content {
    width: 92%;
  }

  #loader .loader-name {
    font-size: 24px;
    letter-spacing: 0;
  }

  #loader .loader-title {
    font-size: 14px;
  }

  #loader .loader-percentage {
    font-size: 78px;
    letter-spacing: -3px;
  }

  #loader .loader-info {
    gap: 8px;
    font-size: 9px;
  }
}

/* Short screens in landscape orientation */

@media (max-height: 500px) {
  #loader .loader-brand {
    top: 4%;
  }

  #loader .loader-name {
    font-size: 24px;
  }

  #loader .loader-title {
    margin-top: 4px;
    font-size: 14px;
  }

  #loader .loader-percentage {
    top: 48%;
    font-size: clamp(60px, 15vh, 100px);
  }

  #loader .loader-bottom {
    bottom: 4%;
  }
}

/* ========================================
   CERTIFICATE LIGHTBOX
======================================== */

.certificate-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 60px 24px;

  background: rgba(0, 0, 0, 0.92);
}

/* Visible lightbox state */

.certificate-lightbox.active {
  display: flex;
}

/* Enlarged certificate image */

.certificate-lightbox img {
  display: block;

  width: auto;
  height: auto;

  max-width: 90vw;
  max-height: 85vh;
  max-height: 85dvh;

  object-fit: contain;

  border-radius: 8px;

  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* Close button */

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  z-index: 2;

  padding: 4px;

  border: none;
  background: transparent;
  color: #ffffff;

  font-size: 42px;
  line-height: 1;

  cursor: pointer;

  transition: color 0.2s ease;
}

/* Close button hover and keyboard focus */

.lightbox-close:hover {
  color: #6ea5ff;
}

.lightbox-close:focus-visible {
  outline: 2px solid #6ea5ff;
  outline-offset: 4px;
}

/* Indicate that certificate images can be enlarged */

.certificate-card img {
  cursor: zoom-in;
}

/* ========================================
   LIGHTBOX RESPONSIVE DESIGN
======================================== */

@media (max-width: 600px) {
  .certificate-lightbox {
    padding: 55px 12px 20px;
  }

  .certificate-lightbox img {
    max-width: 96vw;
    max-height: 80vh;
    max-height: 80dvh;
  }

  .lightbox-close {
    top: 12px;
    right: 16px;

    font-size: 36px;
  }
}

/* ========================================
   REDUCED MOTION
======================================== */

@media (prefers-reduced-motion: reduce) {
  .lightbox-close {
    transition: none;
  }
}

/* ========================================
   PREMIUM LOADER - BRAND ENHANCEMENT
======================================== */

/* Brand container */

#loader .loader-brand {
  position: absolute;
  top: 7%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;

  width: 95%;
  max-width: 900px;

  overflow: visible;
  text-align: center;
}

/* Name */

#loader .loader-name {
  display: block;
  width: 100%;

  margin: 0 0 8px;

  font-family: "Poppins", sans-serif;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.7px;

  color: #ffffff;
  text-align: center;

  opacity: 1;
  visibility: visible;

  overflow-wrap: anywhere;
}

/* Job title */

#loader .loader-title {
  display: block;
  width: 100%;

  margin-top: 6px;

  font-family: "Poppins", sans-serif;
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.2px;

  color: #69a0ff;
  text-align: center;

  opacity: 1;
  visibility: visible;

  transform: translateY(0);
  clip-path: inset(0 0 0 0);

  overflow-wrap: anywhere;
}

/* ========================================
   LOADER TAGLINE
======================================== */

#loader .loader-tagline {
  display: block;
  width: 100%;

  margin-top: 14px;

  font-family: "Poppins", sans-serif;
  font-size: clamp(15px, 1.6vw, 21px);
  font-weight: 500;
  line-height: 1.7;

  color: #e2e8f0;
  text-align: center;

  opacity: 1;
  visibility: visible;

  overflow-wrap: anywhere;
}

/* ========================================
   LOADER SKILLS
======================================== */

#loader .loader-skills {
  display: block;
  width: 100%;
  max-width: 700px;

  margin-top: 10px;

  font-family: "Poppins", sans-serif;
  font-size: clamp(12px, 1.25vw, 16px);
  font-weight: 500;
  line-height: 1.8;

  color: #b8c4d8;
  text-align: center;

  opacity: 1;
  visibility: visible;

  overflow-wrap: anywhere;
}

/* Blue separators between skills */

#loader .loader-skills span {
  margin: 0 7px;

  color: #60a5fa;
}

/* ========================================
   LOADER RESPONSIVE DESIGN
======================================== */

/* Mobile devices */

@media (max-width: 600px) {
  #loader .loader-brand {
    top: 9%;
    width: 94%;
  }

  #loader .loader-name {
    font-size: clamp(24px, 6vw, 30px);
    letter-spacing: -0.3px;
  }

  #loader .loader-title {
    margin-top: 6px;
    font-size: clamp(15px, 4vw, 19px);
  }

  #loader .loader-tagline {
    margin-top: 14px;
    font-size: clamp(15px, 4vw, 17px);
    line-height: 1.6;
  }

  #loader .loader-skills {
    max-width: 320px;
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.8;
  }

  #loader .loader-skills span {
    margin: 0 4px;
  }
}

/* Small mobile devices */

@media (max-width: 380px) {
  #loader .loader-brand {
    top: 7%;
    width: 92%;
  }

  #loader .loader-name {
    font-size: 23px;
  }

  #loader .loader-title {
    font-size: 14px;
  }

  #loader .loader-tagline {
    font-size: 14px;
  }

  #loader .loader-skills {
    font-size: 11px;
  }
}

/* Short screens */

@media (max-height: 500px) {
  #loader .loader-brand {
    top: 4%;
  }

  #loader .loader-name {
    font-size: 24px;
  }

  #loader .loader-title {
    font-size: 14px;
  }

  #loader .loader-tagline {
    margin-top: 8px;
    font-size: 14px;
  }

  #loader .loader-skills {
    margin-top: 5px;
    font-size: 11px;
  }
}

/* ========================================
   SKILLS PAGINATION FIX
======================================== */

/* Hide cards excluded by the pagination script */

#skillsGrid .skills-card[hidden] {
  display: none !important;
}

/* Keep pagination controls visible */

#skillsGrid .skills-pagination,
#skillsGrid .skills-controls {
  display: flex;
}

/* ========================================
   ABOUT SECTION - FINAL POLISH
======================================== */

/* Spacing below the About heading */

#about .about-heading {
  margin-bottom: 48px;
}

/* Main About layout */

#about .about-layout {
  grid-template-columns:
    minmax(0, 0.82fr)
    minmax(0, 1.18fr);

  gap: clamp(32px, 4.5vw, 70px);
  align-items: center;
}

/* ========================================
   ABOUT PROFILE IMAGE
======================================== */

#about .about-image {
  height: 620px;
  border-radius: 18px;
  overflow: hidden;
}

/* Adjust the visible part of the profile image */

#about .about-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center 25%;
}

/* ========================================
   ABOUT CONTENT
======================================== */

#about .about-content {
  min-width: 0;
  max-width: 680px;
}

/* Name and status row */

#about .about-name-row {
  margin-bottom: 24px;
}

/* About description */

#about .about-description {
  margin-bottom: 18px;

  font-size: 15px;
  line-height: 1.95;

  overflow-wrap: anywhere;
}

/* Social links */

#about .about-socials {
  gap: 10px;
  margin: 26px 0 24px;
}

/* ========================================
   ABOUT DETAILS
======================================== */

/* Detail cards */

#about .about-detail {
  min-height: 90px;
  padding: 17px 20px;
}

/* Detail labels and values */

#about .about-detail strong {
  font-size: 13px;
  line-height: 1.75;

  overflow-wrap: anywhere;
}

/* ========================================
   ABOUT RESPONSIVE DESIGN
======================================== */

/* Laptop and tablet */

@media (max-width: 1100px) {
  #about .about-layout {
    gap: 32px;
  }

  #about .about-image {
    height: 540px;
  }
}

/* Mobile devices */

@media (max-width: 650px) {
  #about .about-heading {
    margin-bottom: 32px;
  }

  #about .about-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  #about .about-image {
    height: auto;
    aspect-ratio: 4 / 5;
    max-height: 560px;
  }

  #about .about-content {
    max-width: none;
  }

  #about .about-detail {
    min-height: 0;
    padding: 15px;
  }
}

/* ========================================
   REDUCED MOTION
======================================== */

@media (prefers-reduced-motion: reduce) {
  #loader .loader-title {
    transition: none;
  }
}


/* =========================
   STAR BACKGROUND
========================= */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;

  pointer-events: none;

  background-image:
    radial-gradient(2px 2px at 8% 18%, #ffffff80 50%, transparent 100%),
    radial-gradient(1px 1px at 18% 72%, #ffffff70 50%, transparent 100%),
    radial-gradient(2px 2px at 32% 35%, #ffffff60 50%, transparent 100%),
    radial-gradient(1px 1px at 45% 85%, #ffffff80 50%, transparent 100%),
    radial-gradient(2px 2px at 58% 22%, #ffffff70 50%, transparent 100%),
    radial-gradient(1px 1px at 68% 62%, #ffffff80 50%, transparent 100%),
    radial-gradient(2px 2px at 78% 12%, #ffffff60 50%, transparent 100%),
    radial-gradient(1px 1px at 89% 48%, #ffffff80 50%, transparent 100%),
    radial-gradient(2px 2px at 95% 88%, #ffffff70 50%, transparent 100%);

  background-size: 420px 320px;
  background-repeat: repeat;
}

/* Keep page content above the decorative star background.
   Check existing stacking contexts before adding more z-index rules. */

/* =========================
   PROJECTS HEADING CONTRAST
========================= */

#projects .section-heading .section-title {
  color: #f5f5f7;
}

#projects .section-heading .section-number {
  color: #4f8cff;
}

/* =========================
   UNIFIED SECTION LABELS
========================= */

.section-number,
.section-subtitle,
.about-subtitle,
.skills-subtitle,
.experience-subtitle,
.projects-subtitle,
.certificates-subtitle,
.education-subtitle,
.contact-subtitle {
  color: #4f8cff;

  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.6;
}

/* =========================
   UNIFIED SECTION NUMBERS
========================= */

.section-number,
.about-number {
  display: block;

  margin-bottom: 14px;

  color: #4f8cff;

  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1.6;
}

/* =========================
   CERTIFICATE ACTIONS
========================= */

.certificate-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;

  margin-top: auto;
  padding-top: 16px;
}

/* Shared button styles */

.certificate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 40px;
  padding: 10px 15px;

  border: 1px solid #4f8cff;
  border-radius: 7px;

  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;

  cursor: pointer;

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

/* Download certificate button */

.download-btn {
  background: transparent;
  color: #4f8cff;
}

.download-btn:hover {
  background: #4f8cff;
  color: #ffffff;

  transform: translateY(-2px);
}

/* View certificate button */

.view-btn {
  background: #4f8cff;
  color: #ffffff;
}

.view-btn:hover {
  background: #3676ed;
  border-color: #3676ed;

  transform: translateY(-2px);
}

/* Button icons */

.certificate-btn i {
  font-size: 13px;
}

/* Keyboard focus */

.certificate-btn:focus-visible {
  outline: 2px solid #4f8cff;
  outline-offset: 4px;
}

/* =========================
   CERTIFICATE CARD LAYOUT
========================= */

.certificate-card {
  display: flex;
  flex-direction: column;

  height: 100%;
  min-width: 0;
}

/* Certificate preview image */

.certificate-card > img {
  display: block;

  width: 100%;
  aspect-ratio: 4 / 3;

  object-fit: cover;
  flex-shrink: 0;
}

/* Certificate information */

.certificate-info {
  display: flex;
  flex-direction: column;
  flex: 1;

  min-width: 0;
}

/* Keep certificate titles visually consistent */

.certificate-info h3 {
  min-height: 2.6em;
  overflow-wrap: anywhere;
}

/* Certificate description */

.certificate-info p {
  min-height: 1.5em;
  overflow-wrap: anywhere;
}

/* =========================
   CERTIFICATE RESPONSIVE
========================= */

@media (max-width: 600px) {
  .certificate-actions {
    gap: 8px;
  }

  .certificate-btn {
    flex: 1 1 auto;
    padding: 10px 12px;
  }
}

/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {
  .certificate-btn {
    transition: none;
  }

  .download-btn:hover,
  .view-btn:hover {
    transform: none;
  }
}

/* ========================================
   CERTIFICATES CAROUSEL
======================================== */

/* Carousel navigation controls */

.certificates-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;

  margin-bottom: 20px;
}

/* Previous and next buttons */

.certificate-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 42px;

  width: 42px;
  height: 42px;
  padding: 0;

  border: 1px solid #2a2a30;
  border-radius: 50%;

  background: #17171b;
  color: #4f8cff;

  font-size: 15px;
  cursor: pointer;

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

/* Arrow hover state */

.certificate-arrow:hover {
  background: #4f8cff;
  color: #ffffff;
  border-color: #4f8cff;

  transform: translateY(-2px);
}

/* Keyboard accessibility */

.certificate-arrow:focus-visible {
  outline: 2px solid #4f8cff;
  outline-offset: 4px;
}

/* ========================================
   CERTIFICATES HORIZONTAL TRACK
======================================== */

.certificates-grid {
  display: flex;
  align-items: stretch;
  gap: 24px;

  width: 100%;
  min-width: 0;

  overflow-x: auto;
  overflow-y: hidden;

  padding: 2px 2px 18px;

  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;

  scrollbar-width: none;
}

/* Hide the horizontal scrollbar in WebKit browsers */

.certificates-grid::-webkit-scrollbar {
  display: none;
}

/* ========================================
   CERTIFICATE CAROUSEL CARDS
======================================== */

/* Four cards visible on desktop */

.certificates-grid .certificate-card {
  flex: 0 0 calc((100% - 72px) / 4);

  width: auto;
  min-width: 0;
  height: auto;

  scroll-snap-align: start;
}

/* Preserve filtered card visibility when JavaScript uses hidden */

.certificates-grid .certificate-card[hidden] {
  display: none !important;
}

/* Tablet: two cards visible */

@media (max-width: 1000px) {
  .certificates-grid {
    gap: 24px;
  }

  .certificates-grid .certificate-card {
    flex-basis: calc((100% - 24px) / 2);
  }
}

/* Mobile: one card with a partial preview of the next */

@media (max-width: 600px) {
  .certificates-carousel-controls {
    gap: 10px;
    margin-bottom: 16px;
  }

  .certificate-arrow {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .certificates-grid {
    gap: 16px;
    padding-bottom: 14px;
  }

  .certificates-grid .certificate-card {
    flex-basis: 85%;
  }
}

/* ========================================
   PORTFOLIO PRELOADER
======================================== */

/* Full-screen loading overlay */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100vh;
  height: 100dvh;

  box-sizing: border-box;
  overflow: hidden;

  /* Match the website's dark starry background */
  background-color: #080808;

  background-image:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.55) 1px,
      transparent 1.8px
    ),
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.35) 1px,
      transparent 1.8px
    ),
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.22) 1px,
      transparent 1.8px
    );

  background-size:
    180px 180px,
    260px 260px,
    340px 340px;

  background-position:
    0 0,
    70px 100px,
    130px 40px;

  color: #f5f5f5;

  transition:
    opacity 0.8s ease,
    visibility 0.8s ease;
}


/* Hidden state controlled by JavaScript */

#preloader.loader-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ========================================
   PRELOADER BRAND
======================================== */

#preloader .loader-logo {
  max-width: 90%;

  text-align: center;
  transform: translateY(-10px);
}

/* Brand name */

#preloader .loader-logo span {
  font-family: "Dancing Script", cursive;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1.3;

  overflow-wrap: anywhere;
}

/* Animated underline */

#preloader .loader-underline {
  width: 120px;
  height: 2px;

  margin: 16px 0 0 auto;

  background: #4f8cff;

  transform-origin: left;

  animation: underlineReveal 1.2s ease forwards;
}

/* ========================================
   PRELOADER STATUS
======================================== */

#preloader .loader-status {
  position: absolute;
  top: 6%;
  right: 3%;

  font-family: monospace;
  font-size: 9px;
  letter-spacing: 2px;

  color: #999999;
}

/* Status indicator */

#preloader .loader-status::before {
  content: "";

  display: inline-block;

  width: 6px;
  height: 6px;

  margin-right: 9px;

  border-radius: 50%;
  background: #4f8cff;
}

/* ========================================
   PRELOADER PROGRESS AREA
======================================== */

#preloader .loader-bottom {
  position: absolute;

  right: 3%;
  bottom: 5%;
  left: 3%;

  width: auto;
  box-sizing: border-box;
}

/* Progress track */

#preloader .loader-progress {
  width: 100%;
  height: 2px;

  overflow: hidden;

  background: #303030;
}

/* Progress bar updated by JavaScript */

#preloader #loader-progress-bar {
  width: 0%;
  height: 100%;

  background: #70b7e8;

  transition: width 0.08s linear;
}

/* ========================================
   PRELOADER FOOTER
======================================== */

#preloader .loader-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;

  width: 100%;
  margin-top: 12px;

  box-sizing: border-box;

  font-family: monospace;
  font-size: 9px;
  letter-spacing: 1px;

  color: #777777;
}

/* Loading percentage */

#preloader #loader-percentage {
  color: #f5f5f5;

  font-family: Arial, sans-serif;
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 800;
  line-height: 1;

  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
}

/* ========================================
   PRELOADER RESPONSIVE DESIGN
======================================== */

/* Mobile devices */

@media (max-width: 600px) {
  #preloader .loader-logo span {
    font-size: 30px;
  }

  #preloader .loader-underline {
    width: 100px;
    margin-top: 16px;
  }

  #preloader .loader-status {
    font-size: 9px;
  }

  #preloader #loader-percentage {
    font-size: 36px;
    letter-spacing: -1px;
  }

  #preloader .loader-footer {
    font-size: 9px;
    letter-spacing: 0.5px;
  }
}

/* Small mobile devices */

@media (max-width: 380px) {
  #preloader .loader-logo span {
    font-size: 27px;
  }

  #preloader .loader-underline {
    width: 85px;
  }

  #preloader .loader-footer {
    gap: 8px;
    font-size: 8px;
  }

  #preloader #loader-percentage {
    font-size: 32px;
  }
}

/* ========================================
   PRELOADER ANIMATION
======================================== */

@keyframes underlineReveal {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

/* Respect the user's motion preferences */

@media (prefers-reduced-motion: reduce) {
  #preloader {
    transition: none;
  }

  #preloader .loader-underline {
    animation: none;
    transform: scaleX(1);
  }

  #preloader #loader-progress-bar {
    transition: none;
  }

  .certificates-grid {
    scroll-behavior: auto;
  }

  .certificate-arrow {
    transition: none;
  }

  .certificate-arrow:hover {
    transform: none;
  }
}


/* =========================
   CONTACT SECTION
========================= */

/* Center the contact content and limit its width */
.contact-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Contact section heading */
.contact-section .section-title {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.2;
  margin-bottom: 28px;
}

/* Contact introduction text */
.contact-section .contact-text {
  max-width: 800px;
  font-size: 18px;
  line-height: 1.8;
}

/* Space between contact cards */
.contact-section .contact-links {
  gap: 24px;
}

/* Contact card dimensions */
.contact-section .contact-card {
  min-height: 130px;
  padding: 26px 30px;
}

/* Contact card title */
.contact-section .contact-card h3 {
  font-size: 26px;
  margin-bottom: 8px;
}

/* Contact card description */
.contact-section .contact-card p {
  font-size: 17px;
  overflow-wrap: anywhere;
}

/* Contact card icons */
.contact-section .contact-card i {
  font-size: 26px;
}

/* =========================
   HERO SECTION
========================= */

/* Main hero section layout */
.hero-section {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 100px 8% 80px;
  box-sizing: border-box;
}

/* Center and constrain hero content */
.hero-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Small introductory label above the heading */
.hero-eyebrow {
  color: #85858f;
  font-family: monospace;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

/* Main hero heading */
.hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: clamp(42px, 5.5vw, 76px);
  line-height: 1.08;
  letter-spacing: -2.5px;
  font-weight: 800;
  margin: 0 0 28px;
}

/* Primary heading line */
.hero-title span:first-child {
  color: #f5f5f5;
}

/* Muted heading line */
.hero-title-muted {
  color: #85858f;
}

/* Hero introduction paragraph */
.hero-description {
  max-width: 540px;
  color: #aaaab4;
  font-size: 17px;
  line-height: 1.9;
  margin: 0 0 38px;
}

/* Arrange hero action buttons */
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* Shared hero button styles */
.hero-btn {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 7px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

/* Lift buttons slightly on hover */
.hero-btn:hover {
  transform: translateY(-3px);
}

/* Primary hero button */
.hero-btn-primary {
  color: #111;
  background: #f5f5f5;
}

/* Secondary hero button */
.hero-btn-secondary {
  color: #fff;
  background: #609fc3;
}

/* Text-only hero button */
.hero-btn-text {
  color: #f5f5f5;
  background: transparent;
}

/* Additional specialties below the hero description */
.hero-specialties {
  color: #85858f;
  font-size: 13px;
  letter-spacing: 0.5px;
  margin: -20px 0 35px;
}

/* Highlight specialty separators */
.hero-specialties span {
  color: #609fc3;
  padding: 0 6px;
}

/* =========================
   PROJECTS SECTION
========================= */

/* Center the projects section and control its width */
.projects-container {
  width: 100%;
  max-width: 1450px;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}

/* Display two project cards side by side on desktop */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  width: 100%;
  align-items: stretch;
}

/* Project card layout */
.project-card {
  width: 100%;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Allow project content to fill the available card height */
.project-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Keep the project link at the bottom of the content */
.project-link {
  margin-top: auto;
  align-self: flex-start;
}

/* Project image container */
.project-image-wrapper {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #101014;
  border-radius: 12px 12px 0 0;
}

/* Show the entire project image without cropping */
.project-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Hide project cards filtered out by JavaScript */
.projects-grid .project-card[hidden] {
  display: none !important;
}

/* Keep visible project cards in a vertical content layout */
.projects-grid .project-card:not([hidden]) {
  display: flex;
  min-width: 0;
}

/* =========================
   PROJECT FILTERS
========================= */

/* Arrange filter buttons in a responsive row */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 32px 0 24px;
}

/* Project filter button appearance */
.project-filter-btn {
  padding: 12px 22px;
  border: 1px solid #2b2b31;
  border-radius: 30px;
  background: #171719;
  color: #aaaab4;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

/* Hover and active filter states */
.project-filter-btn:hover,
.project-filter-btn.active {
  color: #fff;
  background: #24242b;
  border-color: #4f8cff;
  box-shadow: 0 0 18px #4f8cff18;
}

/* =========================
   PROJECT CAROUSEL CONTROLS
========================= */

/* Align carousel arrows to the right */
.projects-carousel-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
}

/* Circular project navigation buttons */
.project-arrow {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2b2b31;
  border-radius: 50%;
  background: #171719;
  color: #4f8cff;
  cursor: pointer;
  font-size: 15px;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

/* Arrow hover effect */
.project-arrow:hover:not(:disabled) {
  background: #24242b;
  border-color: #4f8cff;
  transform: translateY(-2px);
}

/* Visible keyboard focus for accessibility */
.project-arrow:focus-visible,
.project-filter-btn:focus-visible,
.hero-btn:focus-visible {
  outline: 2px solid #4f8cff;
  outline-offset: 4px;
}

/* Disabled carousel navigation button */
.project-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

/* =========================
   CERTIFICATE IMAGES
========================= */

/* Prevent certificate content from overflowing its card */
.certificates-grid .certificate-card {
  min-width: 0;
  overflow: hidden;
}

/* Keep certificate images fully visible */
.certificates-grid .certificate-card > img {
  display: block;
  width: 100%;
  height: 275px;
  object-fit: contain;
  object-position: center;
  background: #101014;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   TABLET RESPONSIVE STYLES
========================= */

@media (max-width: 900px) {
  /* Reduce horizontal space around the projects */
  .projects-container {
    padding: 0 22px;
  }

  /* Reduce spacing between project cards */
  .projects-grid {
    gap: 20px;
  }
}

/* =========================
   MOBILE RESPONSIVE STYLES
========================= */

@media (max-width: 768px) {
  /* Contact section adjustments */
  .contact-section .section-title {
    font-size: 36px;
  }

  .contact-section .contact-text {
    font-size: 16px;
  }

  .contact-section .contact-card {
    padding: 20px;
  }

  .contact-section .contact-card h3 {
    font-size: 22px;
  }

  .contact-section .contact-card p {
    font-size: 15px;
  }

  /* Certificate image dimensions */
  .certificates-grid .certificate-card > img {
    height: 230px;
  }
}

@media (max-width: 700px) {
  /* Use one project card per row on mobile */
  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  /* Adjust project images for smaller screens */
  .project-image-wrapper {
    height: 220px;
  }

  /* Compact filter buttons */
  .project-filter-btn {
    padding: 10px 15px;
  }
}

@media (max-width: 600px) {
  /* Reduce hero section spacing */
  .hero-section {
    min-height: 75vh;
    padding: 90px 6% 65px;
  }

  /* Scale down the hero heading */
  .hero-title {
    font-size: clamp(36px, 9vw, 48px);
    letter-spacing: -1.5px;
    line-height: 1.12;
  }

  /* Improve readability of hero text */
  .hero-description {
    font-size: 15px;
    line-height: 1.8;
  }

  /* Reduce spacing between hero buttons */
  .hero-actions {
    gap: 10px;
  }

  /* Compact hero buttons */
  .hero-btn {
    padding: 0 14px;
    font-size: 12px;
  }

  /* Narrow project container padding */
  .projects-container {
    padding: 0 16px;
  }

  /* Adjust project image height on small screens */
  .project-image-wrapper {
    height: 220px;
  }
}

@media (max-width: 480px) {
  /* Reduce certificate image height on small phones */
  .certificates-grid .certificate-card > img {
    height: 200px;
  }
}

/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {
  .hero-btn,
  .project-arrow,
  .project-filter-btn {
    transition: none;
  }

  .hero-btn:hover,
  .project-arrow:hover:not(:disabled) {
    transform: none;
  }
}


/* =========================
   CUSTOM CURSOR
========================= */

/* Enable the custom cursor only on devices with a precise pointer */
@media (hover: hover) and (pointer: fine) {

  /* Hide the default cursor on desktop */
  html,
  body,
  body * {
    cursor: none !important;
  }

  /* Small cursor dot */
  body .custom-cursor {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: #4f8cff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000000;
    opacity: 1;
    transform: translate(-50%, -50%);
  }

  /* Outer cursor ring */
  body .custom-cursor-ring {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(79, 140, 255, 0.85);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    opacity: 0;
    transform: translate(-50%, -50%);

    /* Smooth ring appearance and hover scaling */
    transition:
      opacity 0.25s ease,
      width 0.45s cubic-bezier(0.34, 1.32, 0.5, 1),
      height 0.45s cubic-bezier(0.34, 1.32, 0.5, 1);
  }

  /* Show the ring when activated by JavaScript */
  body .custom-cursor-ring.is-visible {
    opacity: 1;
  }
}

/* =========================
   TOUCH DEVICE FALLBACK
========================= */

/* Keep the native cursor behavior on touch devices */
@media (hover: none), (pointer: coarse) {

  body .custom-cursor,
  body .custom-cursor-ring {
    display: none !important;
  }

  html,
  body,
  body * {
    cursor: auto !important;
  }
}

/* =========================
   REDUCED MOTION
========================= */

/* Remove cursor ring animations when reduced motion is preferred */
@media (prefers-reduced-motion: reduce) {
  body .custom-cursor-ring {
    transition: none !important;
  }
}

/* =========================
   SECTION TITLES - POP EFFECT
========================= */

.section-title,
.about-heading h2 {
  display: block;
  width: fit-content;
  transform: translateY(0) scale(1);
  transform-origin: left center;

  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    color 0.3s ease,
    text-shadow 0.3s ease;
}

/* Pop only the main title */
.section-title:hover,
.about-heading h2:hover {
  transform: translateY(-4px) scale(1.035);
  color: #ffffff;
  text-shadow: 0 8px 25px rgba(79, 140, 255, 0.18);
}

/* Keep section numbers in their original position */
.section-number,
.about-number {
  display: block;
  width: fit-content;
  transition: color 0.25s ease;
}

.section-number:hover,
.about-number:hover {
  color: #75a7ff;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .section-title,
  .about-heading h2,
  .section-number,
  .about-number {
    transition: none;
  }

  .section-title:hover,
  .about-heading h2:hover {
    transform: none;
    text-shadow: none;
  }
}

/* =========================
   NAVBAR - POP ITEMS ONLY
========================= */

/* Keep the entire navbar fixed and unchanged on hover */
.navbar,
.navbar:hover {
  transform: translateX(-50%);
  background: rgba(18, 18, 22, 0.78);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

/* Pop the logo only */
.navbar .logo {
  display: inline-block;
  transition: transform 0.25s ease, color 0.25s ease;
}

.navbar .logo:hover {
  transform: translateY(-2px) scale(1.05);
  color: #60a5fa;
}

/* Pop each navigation link independently */
.navbar .nav-links a {
  display: inline-block;
  transition:
    transform 0.25s ease,
    color 0.25s ease,
    text-shadow 0.25s ease;
}

.navbar .nav-links a:hover {
  transform: translateY(-3px) scale(1.07);
  color: #fff;
  text-shadow: 0 0 12px rgba(79, 140, 255, 0.3);
}

/* Keyboard accessibility */
.navbar .logo:focus-visible,
.navbar .nav-links a:focus-visible {
  outline: 2px solid #4f8cff;
  outline-offset: 4px;
}

/* Disable hover animations on touch devices */
@media (hover: none) {
  .navbar .logo:hover,
  .navbar .nav-links a:hover {
    transform: none;
    text-shadow: none;
  }
}

/* =========================
   HERO TITLE - POP EFFECT
========================= */

.hero-title {
  transform-origin: left center;
}

.hero-title span {
  display: block;
  width: fit-content;
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    text-shadow 0.3s ease;
  transform-origin: left center;
}

/* Pop each title line independently */
.hero-title span:hover {
  transform: translateY(-3px) scale(1.035);
  text-shadow: 0 8px 25px rgba(79, 140, 255, 0.12);
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-title span,
  .hero-title span:hover {
    transition: none;
    transform: none;
    text-shadow: none;
  }
}

/* ========================================
   ABOUT — NAME & INFO CARDS POP EFFECT
======================================== */

/* 1. Pop animation for your name */
.about-name-row h3 {
  display: inline-block;
  transform-origin: left center;
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    color 0.3s ease,
    text-shadow 0.3s ease;
}

.about-name-row h3:hover {
  transform: translateY(-4px) scale(1.04);
  color: #ffffff;
  text-shadow: 0 0 18px rgba(79, 140, 255, 0.22);
}

/* 2. Pop effect for the four information cards */
.about-detail {
  position: relative;
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* Lift and highlight each card independently */
.about-detail:hover {
  z-index: 2;
  transform: translateY(-4px) scale(1.015);
  background-color: #111318;
  border-color: rgba(79, 140, 255, 0.55);
  box-shadow: 0 8px 24px rgba(79, 140, 255, 0.09);
}

/* Smooth text highlight inside each card */
.about-detail strong {
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.about-detail:hover strong {
  color: #ffffff;
}

/* Keyboard accessibility */
.about-name-row h3:focus-visible,
.about-detail:focus-visible {
  outline: 2px solid #4f8cff;
  outline-offset: 4px;
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .about-name-row h3,
  .about-detail,
  .about-detail strong {
    transition: none;
  }

  .about-name-row h3:hover,
  .about-detail:hover {
    transform: none;
  }
}

/* Disable hover pop on touch-only devices */
@media (hover: none) {
  .about-name-row h3:hover,
  .about-detail:hover {
    transform: none;
    box-shadow: none;
  }
}

/* =========================
   NAVIGATION LINKS HOVER
========================= */

.nav-links a:hover {
  color: #4f8cff !important;
  transform: translateY(-3px) scale(1.06);
  text-shadow: 0 0 14px rgba(79, 140, 255, 0.45);
}

/* =========================
   CONTACT ICONS - PERFECT CIRCLES
========================= */

#contact .contact-links {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 30px !important;
}

#contact .contact-card {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  flex: 0 0 64px !important;
  width: 64px !important;
  min-width: 64px !important;
  max-width: 64px !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;

  padding: 0 !important;
  box-sizing: border-box !important;

  border: 1px solid rgba(168, 168, 176, 0.6) !important;
  border-radius: 50% !important;

  background: transparent !important;
  color: #a8a8b0 !important;
  aspect-ratio: 1 / 1 !important;
}

#contact .contact-card i {
  display: block !important;
  margin: 0 !important;
  font-size: 24px !important;
  line-height: 1 !important;
}

#contact .contact-card > div {
  display: none !important;
}

#contact .contact-card:hover {
  color: #f2f0ee !important;
  border-color: #4f8cff !important;
  background: rgba(79, 140, 255, 0.06) !important;
  transform: translateY(-3px) !important;
}

@media (max-width: 700px) {
  #contact .contact-links {
    gap: 18px !important;
  }

  #contact .contact-card {
    flex-basis: 54px !important;
    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
  }

  #contact .contact-card i {
    font-size: 21px !important;
  }
}



/* Logo Pop Effect */
.navbar-layout > .logo {
  transform-origin: center;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.navbar-layout > .logo:hover {
  transform: scale(1.12) translateY(-2px);
  filter: drop-shadow(0 0 8px rgba(101, 169, 208, 0.35));
}


/* Keep the footer at the actual end of the page */
.footer {
  margin-bottom: 0;
}

/* Prevent extra space after the final page section */
html,
body {
  margin-bottom: 0;
}
