/* =========================================================
   GLOBAL
========================================================= */


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  cursor: default;

  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(253, 111, 0, 0.09),
      transparent 32%
    ),
    radial-gradient(
      circle at 90% 40%,
      rgba(253, 111, 0, 0.05),
      transparent 28%
    ),
    #121212;

  color: #f1f5f9;

  transition:
    background 0.4s ease,
    color 0.4s ease;
}

::selection {
  background: rgba(253, 111, 0, 0.4);
  color: white;
}


/* =========================================================
   COMMON SECTION HEADER
========================================================= */

.section-header {
  position: relative;
  z-index: 2;
  text-align: center;
  margin: 0 auto 40px;
  max-width: 760px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;

  padding: 5px 14px;
  margin-bottom: 9px;

  border: 1px solid rgba(253, 111, 0, 0.3);
  border-radius: 999px;

  background: rgba(253, 111, 0, 0.08);

  color: #FD6F00;

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-eyebrow::before {
  content: "✦";
  margin-right: 6px;

  color: #FD6F00;
  font-size: 10px;
}

.section-header h2 {
  margin: 0;

  font-size: 34px;
  line-height: 1.15;

  font-weight: 800;
  letter-spacing: -0.035em;

  color: #ffffff;
}

.section-header h2 span {
  color: #FD6F00;
}

/* =========================================================
   FIGMA ARCH PROFILE FRAME & 3D HOVER TILT
========================================================= */

.figma-arch-frame {
  position: relative;
  width: 100%;
  max-width: 360px;
  height: 440px;
  border-radius: 200px 200px 30px 30px;
  background: radial-gradient(circle at 50% 30%, rgba(253, 111, 0, 0.22), #1a1a1a 75%);
  border: 2px solid rgba(253, 111, 0, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}

.figma-arch-frame:hover {
  transform: translateY(-8px) rotateX(4deg) scale(1.02);
  box-shadow: 0 30px 60px rgba(253, 111, 0, 0.3), inset 0 1px 0 rgba(253, 111, 0, 0.5);
  border-color: rgba(253, 111, 0, 0.8);
}

.figma-arch-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: contrast(1.05) brightness(0.98);
}

@keyframes sectionGradient {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 250% center;
  }
}

.section-header p {
  margin: 9px auto 0;

  max-width: 650px;

  color: #7f8aa3;

  font-size: 12px;
  line-height: 1.6;
}


/* =========================================================
   MOUSE GLOW (WARM NEON ORANGE)
========================================================= */

#glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(253, 111, 0, 0.16),
    rgba(253, 111, 0, 0.04) 40%,
    transparent 70%
  );
  filter: blur(35px);
}


/* =========================================================
   LOADER
========================================================= */

#loader {
  background:
    radial-gradient(
      circle at center,
      rgba(253, 111, 0, 0.12),
      transparent 45%
    ),
    #121212;
}

#loader h1 {
  letter-spacing: -0.02em;
}


/* =========================================================
   FLOATING GLASS NAVBAR — HIGH-END REDESIGN
========================================================= */

.floating-header {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 9999;
  pointer-events: none;
}

.floating-navbar {
  position: relative;
  width: min(1150px, calc(100% - 40px));
  height: 62px;
  margin: 0 auto;
  padding: 0 12px 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(253, 111, 0, 0.3);
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  pointer-events: auto;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.floating-navbar.scrolled {
  background: rgba(14, 14, 14, 0.94);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 25px rgba(253, 111, 0, 0.15);
}


/* =========================================================
   TOP LIGHT ACCENT
========================================================= */

.floating-navbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(253, 111, 0, 0.7),
    transparent
  );
  pointer-events: none;
}


/* =========================================================
   BRAND LOGO
========================================================= */

.navbar-brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.brand-icon-wrapper {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(253, 111, 0, 0.4);
  box-shadow: 0 0 14px rgba(253, 111, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #141824;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.brand-icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.navbar-brand:hover .brand-icon-wrapper {
  transform: scale(1.08) rotate(3deg);
  border-color: #FD6F00;
  box-shadow: 0 0 20px rgba(253, 111, 0, 0.5);
}

.brand-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FD6F00;
  text-shadow: 0 0 15px rgba(253, 111, 0, 0.3);
  transition: 0.3s ease;
}

.navbar-brand:hover .brand-text {
  text-shadow: 0 0 25px rgba(253, 111, 0, 0.7);
  transform: scale(1.02);
}


/* =========================================================
   NAVIGATION LINKS
========================================================= */

.navbar-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.navbar-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  min-height: 40px;
  border-radius: 20px;
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, border 0.25s ease, transform 0.25s ease;
}

.navbar-link:hover {
  color: #ffffff;
  background: rgba(253, 111, 0, 0.12);
  transform: translateY(-1px);
}

.navbar-link.active {
  color: #FD6F00;
  background: rgba(253, 111, 0, 0.15);
  border: 1px solid rgba(253, 111, 0, 0.4);
  box-shadow: inset 0 0 15px rgba(253, 111, 0, 0.1);
}

.navbar-link.active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #FD6F00;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(253, 111, 0, 0.9);
}


/* =========================================================
   NAVBAR CONTROLS
========================================================= */

.navbar-controls {
  display: flex;
  align-items: center;

  gap: 2px;

  flex-shrink: 0;
}

.navbar-icon-button {
  height: 36px;

  min-width: 36px;

  padding: 0 8px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 5px;

  border: none;

  border-radius: 20px;

  background: transparent;

  color: #abb3cb;

  cursor: pointer;

  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.navbar-icon-button:hover {
  color: #edf2ff;

  background:
    rgba(255, 255, 255, 0.06);

  transform:
    translateY(-1px);
}


/* =========================================================
   SCROLLED NAVBAR
========================================================= */

.floating-navbar.scrolled {
  background:
    linear-gradient(
      135deg,
      rgba(25, 28, 46, 0.94),
      rgba(17, 20, 36, 0.92)
    );

  border-color:
    rgba(150, 185, 255, 0.13);

  box-shadow:
    0 15px 45px
      rgba(0, 0, 0, 0.3),
    inset 0 1px 0
      rgba(255, 255, 255, 0.05);
}


/* =========================================================
   MOBILE NAV BUTTON
========================================================= */

.mobile-navbar-button {
  width: 36px;
  height: 36px;

  display: none;

  align-items: center;
  justify-content: center;
  flex-direction: column;

  gap: 4px;

  padding: 0;

  border: 1px solid
    rgba(255, 255, 255, 0.08);

  border-radius: 12px;

  background:
    rgba(255, 255, 255, 0.03);

  cursor: pointer;
}

.mobile-navbar-button span {
  width: 15px;
  height: 1.5px;

  border-radius: 10px;

  background: #aeb9d0;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}


/* =========================================================
   MOBILE MENU
========================================================= */

.mobile-navbar-menu {
  position: absolute;

  top: calc(100% + 10px);

  left: 50%;

  width:
    min(1150px, calc(100% - 40px));

  transform:
    translateX(-50%)
    translateY(-8px);

  padding: 8px;

  display: flex;
  flex-direction: column;

  gap: 3px;

  border-radius: 18px;

  border: 1px solid
    rgba(255, 255, 255, 0.08);

  background:
    rgba(20, 24, 42, 0.96);

  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);

  box-shadow:
    0 20px 50px
    rgba(0, 0, 0, 0.3);

  opacity: 0;
  visibility: hidden;

  pointer-events: none;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease;
}

.mobile-navbar-menu.open {
  opacity: 1;

  visibility: visible;

  pointer-events: auto;

  transform:
    translateX(-50%)
    translateY(0);
}

.mobile-navbar-menu a {
  display: block;

  padding: 10px 14px;

  border-radius: 10px;

  color: #aeb5cc;

  font-size: 13px;

  text-decoration: none;

  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.mobile-navbar-menu a:hover {
  color: #e7ebfa;

  background:
    rgba(255, 255, 255, 0.05);
}


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

@media (max-width: 1050px) {

  .navbar-link {
    padding-left: 9px;
    padding-right: 9px;

    font-size: 12px;
  }

  .floating-navbar {
    gap: 10px;
  }
}


@media (max-width: 900px) {

  .floating-header {
    top: 14px;
  }

  .floating-navbar {
    width:
      calc(100% - 30px);

    height: 54px;

    padding:
      0 9px 0 16px;

    border-radius: 28px;

    gap: 8px;
  }

  .brand-text {
    font-size: 16px;
  }

  .navbar-links {
    display: none;
  }

  .navbar-controls {
    margin-left: auto;
  }

  .mobile-navbar-button {
    display: flex;
  }

  .mobile-navbar-menu {
    width:
      calc(100% - 30px);
  }

  .navbar-icon-button {
    height: 34px;
    min-width: 34px;

    padding: 0 7px;
  }
}


/* =========================================================
   RTL NAVBAR
========================================================= */

html[dir="rtl"] .floating-navbar {
  direction: rtl;

  padding:
    0 22px 0 10px;
}

html[dir="rtl"] .navbar-links {
  direction: rtl;
}

html[dir="rtl"] .navbar-controls {
  direction: rtl;
}

html[dir="rtl"] .navbar-link {
  direction: rtl;
}

html[dir="rtl"] .language-dropdown {
  right: auto;
  left: 0;
}

html[dir="rtl"] .mobile-navbar-menu {
  direction: rtl;
  text-align: right;
}

@media (max-width: 900px) {

  html[dir="rtl"] .floating-navbar {
    padding:
      0 16px 0 9px;
  }

}

/* =========================================================
   LANGUAGE
========================================================= */

.language-container {
  position: relative;
}

.globe-icon {
  font-size: 21px;

  line-height: 1;
}

#current-language {
  font-size: 11px;

  font-weight: 600;

  letter-spacing: 0.04em;
}

.language-arrow {
  font-size: 12px;

  opacity: 0.7;

  transition:
    transform 0.25s ease;
}

.language-container:has(
  .language-dropdown.show
) .language-arrow {
  transform:
    rotate(180deg);
}


/* =========================================================
   LANGUAGE DROPDOWN
========================================================= */

.language-dropdown {
  position: absolute;

  top:
    calc(100% + 12px);

  right: 0;

  width: 180px;

  padding: 8px;

  border-radius: 17px;

  border: 1px solid
    rgba(255, 255, 255, 0.08);

  background:
    rgba(28, 30, 48, 0.96);

  backdrop-filter: blur(25px);

  -webkit-backdrop-filter: blur(25px);

  box-shadow:
    0 20px 50px
    rgba(0, 0, 0, 0.3);

  opacity: 0;

  visibility: hidden;

  transform:
    translateY(-8px)
    scale(0.97);

  transform-origin:
    top right;

  transition:
    opacity 0.22s ease,
    visibility 0.22s ease,
    transform 0.22s ease;

  z-index: 100;
}

.language-dropdown.show {
  opacity: 1;

  visibility: visible;

  transform:
    translateY(0)
    scale(1);
}

.language-dropdown button {
  width: 100%;

  display: flex;

  align-items: center;

  gap: 10px;

  padding:
    10px 11px;

  border: none;

  border-radius: 10px;

  background: transparent;

  color: #aeb6cf;

  text-align: left;

  font-size: 13px;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.language-dropdown button:hover {
  background:
    rgba(255, 255, 255, 0.07);

  color: #f0f3ff;

  transform:
    translateX(2px);
}


/* =========================================================
   THEME BUTTON
========================================================= */

.theme-button {
  font-size: 21px;
}

#theme-icon {
  display: block;

  line-height: 1;

  transition:
    transform 0.4s ease;
}

.theme-button:hover #theme-icon {
  transform:
    rotate(25deg)
    scale(1.1);
}


/* =========================================================
   MOBILE NAV BUTTON
========================================================= */

.mobile-navbar-button {
  display: none;

  width: 42px;
  height: 42px;

  border-radius: 50%;

  border:
    1px solid
    rgba(255, 255, 255, 0.08);

  background:
    rgba(255, 255, 255, 0.03);

  cursor: pointer;

  padding: 0;
}

.mobile-navbar-button span {
  display: block;

  width: 17px;

  height: 2px;

  margin:
    4px auto;

  border-radius: 10px;

  background: #dce3f5;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}


/* =========================================================
   MOBILE NAV
========================================================= */

.mobile-navbar-menu {
  display: none;

  width:
    min(
      1150px,
      calc(100% - 48px)
    );

  margin:
    10px auto 0;

  padding: 10px;

  border-radius: 22px;

  border:
    1px solid
    rgba(255, 255, 255, 0.08);

  background:
    rgba(28, 30, 48, 0.95);

  backdrop-filter: blur(25px);

  -webkit-backdrop-filter: blur(25px);

  box-shadow:
    0 20px 50px
    rgba(0, 0, 0, 0.25);

  pointer-events: auto;
}

.mobile-navbar-menu.open {
  display: block;

  animation:
    mobileMenuIn
    0.25s ease;
}

.mobile-navbar-menu a {
  display: block;

  padding:
    13px 15px;

  border-radius: 12px;

  color: #aeb6ce;

  font-size: 14px;

  text-decoration: none;

  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.mobile-navbar-menu a:hover {
  color: #edf2ff;

  background:
    rgba(255, 255, 255, 0.06);

  transform:
    translateX(3px);
}

@keyframes mobileMenuIn {

  from {
    opacity: 0;

    transform:
      translateY(-8px);
  }

  to {
    opacity: 1;

    transform:
      translateY(0);
  }

}


/* =========================================================
   NAVBAR SCROLLED
========================================================= */

.floating-navbar.scrolled {
  background:
    rgba(25, 27, 45, 0.91);

  border-color:
    rgba(130, 169, 239, 0.14);

  box-shadow:
    0 18px 60px
    rgba(0, 0, 0, 0.3);
}


/* =========================================================
   MAIN
========================================================= */

main {
  position: relative;

  z-index: 1;
}

section {
  position: relative;
}


/* =========================================================
   TYPOGRAPHY
========================================================= */

.text-muted {
  color: #7f8aa3;
}

.text-primary {
  color: #7c83ff;
}

h1,
h2,
h3,
h4,
p {
  text-wrap: pretty;
}


/* =========================================================
   GRADIENT TEXT
========================================================= */

.typing-gradient {
  background:
    linear-gradient(
      90deg,
      #6366f1,
      #22d3ee,
      #a855f7,
      #6366f1
    );

  background-size:
    250% 100%;

  -webkit-background-clip: text;

  background-clip: text;

  -webkit-text-fill-color: transparent;

  animation:
    gradientMove
    5s linear infinite;
}

@keyframes gradientMove {

  0% {
    background-position:
      0% 50%;
  }

  100% {
    background-position:
      250% 50%;
  }

}

.typing-cursor {
  color: #6366f1;

  animation:
    blink 1s infinite;
}

@keyframes blink {

  0%,
  50%,
  100% {
    opacity: 1;
  }

  25%,
  75% {
    opacity: 0;
  }

}


/* =========================================================
   HERO
========================================================= */

#home {
  min-height: 720px;

  display: grid;

  align-items: center;
}

#home h1 {
  letter-spacing:
    -0.045em;
}

#home .profile-floating-card {
  position: relative;

  border:
    1px solid
    rgba(255, 255, 255, 0.08);

  background:
    linear-gradient(
      145deg,
      rgba(30, 34, 58, 0.85),
      rgba(9, 12, 27, 0.92)
    );

  box-shadow:
    0 30px 80px
    rgba(0, 0, 0, 0.35);
}


/* =========================================================
   HERO BUTTONS
========================================================= */

#home a[href="#portfolio"] {
  box-shadow:
    0 10px 30px
    rgba(99, 102, 241, 0.2);
}

#home a[href="#portfolio"]:hover {
  box-shadow:
    0 15px 40px
    rgba(99, 102, 241, 0.35);
}


/* =========================================================
   GENERIC GLASS CARD
========================================================= */

.glass-card {
  background:
    linear-gradient(
      145deg,
      rgba(25, 29, 50, 0.72),
      rgba(11, 14, 30, 0.75)
    );

  border:
    1px solid
    rgba(255, 255, 255, 0.07);

  backdrop-filter:
    blur(18px);

  -webkit-backdrop-filter:
    blur(18px);

  box-shadow:
    0 20px 60px
    rgba(0, 0, 0, 0.2);

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.glass-card:hover {
  transform:
    translateY(-5px);

  border-color:
    rgba(120, 160, 240, 0.25);

  box-shadow:
    0 25px 70px
    rgba(0, 0, 0, 0.28);
}


/* =========================================================
   SKILLS SECTION
========================================================= */

.skills-marquee-section {
  position: relative;

  width: 100%;

  margin-top: 35px;

  padding:
    35px 0 15px;

  overflow: hidden;
}


/* =========================================================
   SKILLS HEADER
========================================================= */

.skills-marquee-header {
  position: relative;

  z-index: 2;

  text-align: center;

  margin-bottom: 25px;
}

.skills-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  margin-bottom: 9px;
  border: 1px solid rgba(253, 111, 0, 0.3);
  border-radius: 999px;
  background: rgba(253, 111, 0, 0.08);
  color: #FD6F00;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.skills-eyebrow::before {
  content: "✦";
  margin-right: 6px;
  color: #FD6F00;
  font-size: 10px;
}

.skills-marquee-header h3 {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #ffffff;
}

.skills-marquee-header h3 span {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

.skills-marquee-header h3 span[data-i18n="skills.titleAccent"],
.skills-marquee-header h3 span.text-\[\#FD6F00\] {
  color: #FD6F00 !important;
  -webkit-text-fill-color: #FD6F00 !important;
  background: none !important;
}

.skills-marquee-header p {
  margin: 8px 0 0;
  color: #7f8aa3;
  font-size: 12px;
  line-height: 1.5;
}

.skills-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 12px 0 18px;
}

.skills-marquee::before,
.skills-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 5;
  pointer-events: none;
}

.skills-marquee::before {
  left: 0;
  background: linear-gradient(90deg, #050816 0%, rgba(5, 8, 22, 0.85) 30%, transparent 100%);
}

.skills-marquee::after {
  right: 0;
  background: linear-gradient(270deg, #050816 0%, rgba(5, 8, 22, 0.85) 30%, transparent 100%);
}

.skills-marquee-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  width: max-content !important;
  gap: 36px !important;
  animation: skillsMarquee 30s linear infinite !important;
  will-change: transform;
}

@keyframes skillsMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.333%);
  }
}


/* =========================================================
   SKILL ITEM
========================================================= */

.skill-tech-item {
  flex: 0 0 auto !important;
  width: 96px;
  min-width: 96px;
  padding: 12px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px;
  opacity: 0.9;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-tech-item i {
  display: block;
  font-size: 38px;
  line-height: 1;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Fix dark/black Devicons on dark theme */
body:not(.light-theme) .skill-tech-item i.devicon-express-original,
body:not(.light-theme) .skill-tech-item i.devicon-nextjs-plain,
body:not(.light-theme) .skill-tech-item i.devicon-nextjs-original,
body:not(.light-theme) .skill-tech-item i.devicon-linux-plain,
body:not(.light-theme) .skill-tech-item i.devicon-markdown-original,
body:not(.light-theme) .skill-tech-item i.devicon-vercel-original,
body:not(.light-theme) .skill-tech-item i.devicon-github-original {
  color: #ffffff !important;
  filter: brightness(1.8) contrast(1.1) drop-shadow(0 0 6px rgba(255, 255, 255, 0.3)) !important;
}

.skill-tech-item span {
  display: block;
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 1;
  text-align: center;
}

.skill-tech-item:hover {
  opacity: 1;
  transform: translateY(-4px);
  background: rgba(253, 111, 0, 0.1);
  border-color: rgba(253, 111, 0, 0.5);
  box-shadow: 0 8px 24px rgba(253, 111, 0, 0.2);
}

.skill-tech-item:hover i {
  transform: scale(1.15);
  filter: drop-shadow(0 0 14px rgba(253, 111, 0, 0.6));
}

.skill-tech-item:hover span {
  color: #FD6F00;
}


/* =========================================================
   PAUSE SKILLS ON HOVER
========================================================= */

.skills-marquee:hover
.skills-marquee-track {
  animation-play-state:
    paused;
}


/* =========================================================
   SKILL CIRCULAR GAUGES CARD & MOTION ANIMATIONS
========================================================= */
.skill-gauge-card {
  background: #141824 !important;
  border: 1px solid rgba(253, 111, 0, 0.2) !important;
  backdrop-filter: blur(12px);
  border-radius: 1.25rem !important;
  padding: 1.5rem 1rem !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(253, 111, 0, 0.05) !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.skill-gauge-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(253, 111, 0, 0.6) !important;
  box-shadow: 0 14px 35px rgba(253, 111, 0, 0.2), 0 0 20px rgba(253, 111, 0, 0.15) !important;
}

.skill-gauge-track {
  stroke: rgba(255, 255, 255, 0.1) !important;
  transition: stroke 0.3s ease;
}

.skill-gauge-progress {
  stroke: #FD6F00 !important;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
  filter: drop-shadow(0 0 6px rgba(253, 111, 0, 0.5));
}

.skill-gauge-percent {
  color: #ffffff !important;
  font-family: inherit;
  transition: color 0.3s ease;
}

.skill-gauge-label {
  color: #CBD5E1 !important;
  transition: color 0.3s ease;
}

/* Light Mode Overrides for Skill Gauge Cards */
body.light-theme .skill-gauge-card {
  background: #ffffff !important;
  border: 1px solid rgba(253, 111, 0, 0.2) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(253, 111, 0, 0.06) !important;
}

body.light-theme .skill-gauge-card:hover {
  border-color: rgba(253, 111, 0, 0.7) !important;
  box-shadow: 0 14px 35px rgba(253, 111, 0, 0.2) !important;
}

body.light-theme .skill-gauge-track {
  stroke: #E2E8F0 !important;
}

body.light-theme .skill-gauge-percent {
  color: #0F172A !important;
}

body.light-theme .skill-gauge-label {
  color: #334155 !important;
}



/* =========================================================
   SERVICE CARDS
========================================================= */

.service-card {
  position: relative;

  overflow: hidden;

  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.service-card::before {
  content: "";

  position: absolute;

  top: 0;
  left: -100%;

  width: 100%;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      #7c9eff,
      transparent
    );

  transition:
    left 0.5s ease;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform:
    translateY(-7px);

  border-color:
    rgba(99, 102, 241, 0.45);

  box-shadow:
    0 20px 50px
    rgba(0, 0, 0, 0.25);
}


/* =========================================================
   SLIDER NAV BAR
========================================================= */

.slider-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  margin: 0 auto 18px;
  padding: 0 4px;
  gap: 12px;
}

.slider-nav-label {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: #4a5568;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
}

.slider-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(253, 111, 0, 0.35);
  background: rgba(253, 111, 0, 0.07);
  color: #FD6F00;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  outline: none;
  position: relative;
  overflow: hidden;
}

.slider-nav-btn svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
  position: relative;
  z-index: 1;
}

.slider-nav-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(253, 111, 0, 0.15);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.slider-nav-btn:hover {
  border-color: #FD6F00;
  background: rgba(253, 111, 0, 0.15);
  box-shadow: 0 0 20px rgba(253, 111, 0, 0.3);
  transform: scale(1.08);
  color: #fff;
}

.slider-nav-btn:hover::before {
  opacity: 1;
  transform: scale(1);
}

.slider-nav-btn:active {
  transform: scale(0.94);
  box-shadow: 0 0 10px rgba(253, 111, 0, 0.2);
}

.slider-nav-btn.nav-active {
  border-color: #FD6F00;
  background: rgba(253, 111, 0, 0.18);
  box-shadow: 0 0 22px rgba(253, 111, 0, 0.35);
  color: #fff;
}


/* =========================================================
   PROJECT / PORTFOLIO SECTION
========================================================= */

#portfolio {
  position: relative;

  overflow: hidden;

  width: 100%;
}


/* =========================================================
   PROJECT SECTION WRAPPER
========================================================= */

.portfolio-slider {
  position: relative;

  width: 100%;

  max-width: 100%;

  overflow: hidden;

  padding:
    10px 0 25px;

  isolation: isolate;
}


/* =========================================================
   PROJECT SIDE FADE
========================================================= */

.portfolio-slider::before,
.portfolio-slider::after {
  content: "";

  position: absolute;

  top: 0;
  bottom: 0;

  width: 100px;

  z-index: 5;

  pointer-events: none;
}

.portfolio-slider::before {
  left: 0;

  background:
    linear-gradient(
      to right,
      #050816 0%,
      rgba(5, 8, 22, 0.85) 35%,
      transparent 100%
    );
}

.portfolio-slider::after {
  right: 0;

  background:
    linear-gradient(
      to left,
      #050816 0%,
      rgba(5, 8, 22, 0.85) 35%,
      transparent 100%
    );
}


/* =========================================================
   PROJECT TRACK
========================================================= */

#slider-track {
  display: flex;

  align-items: stretch;

  width: max-content;

  gap: 24px;

  will-change:
    transform;

  animation:
    portfolioScroll
    32s
    linear
    infinite;
}


/* =========================================================
   PROJECT AUTO MOVEMENT
========================================================= */

@keyframes portfolioScroll {

  from {
    transform:
      translateX(0);
  }

  to {
    transform:
      translateX(
        calc(-50% - 12px)
      );
  }

}


/* =========================================================
   PAUSE PROJECT SLIDER
========================================================= */

.portfolio-slider:hover
#slider-track {
  animation-play-state:
    paused;
}


/* =========================================================
   PROJECT CARD
========================================================= */

.project-card {
  position: relative;

  flex:
    0 0 360px;

  width: 360px;

  min-width: 360px;

  display: flex;

  flex-direction: column;

  overflow: hidden;

  border:
    1px solid
    rgba(51, 65, 85, 0.8);

  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      rgba(24, 28, 48, 0.88),
      rgba(8, 11, 25, 0.94)
    );

  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.project-card:hover {
  border-color:
    rgba(112, 149, 232, 0.48);

  transform:
    translateY(-7px);

  box-shadow:
    0 25px 65px
    rgba(0, 0, 0, 0.32);
}


/* =========================================================
   PROJECT IMAGE
========================================================= */

.project-image {
  position: relative;

  width: 100%;

  height: 210px;

  flex-shrink: 0;

  overflow: hidden;

  background:
    #020617;
}

.project-image img {
  width: 100%;

  height: 100%;

  display: block;

  object-fit: cover;

  object-position:
    center center;

  transition:
    transform 0.7s
    cubic-bezier(
      0.2,
      0.8,
      0.2,
      1
    );
}

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


/* =========================================================
   PROJECT IMAGE OVERLAY
========================================================= */

.project-image-overlay {
  position: absolute;

  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      to top,
      rgba(2, 6, 23, 0.85),
      rgba(2, 6, 23, 0.08) 65%,
      transparent
    );
}


/* =========================================================
   PROJECT IMAGE SHINE
========================================================= */

.project-image::before {
  content: "";

  position: absolute;

  top: 0;

  left: -120%;

  width: 65%;

  height: 100%;

  z-index: 3;

  pointer-events: none;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.08),
      transparent
    );

  transform:
    skewX(-20deg);

  transition:
    left 0.8s ease;
}

.project-card:hover
.project-image::before {
  left: 140%;
}


/* =========================================================
   PROJECT CONTENT
========================================================= */

.project-content {
  flex: 1;

  display: flex;

  flex-direction: column;

  padding:
    20px;
}


/* =========================================================
   PROJECT TITLE
========================================================= */

.project-content h3 {
  min-width: 0;

  margin: 0;

  line-height: 1.3;

  overflow-wrap: anywhere;
}


/* =========================================================
   PROJECT DESCRIPTION
========================================================= */

.project-content > p {
  margin-top: 0;

  overflow-wrap: anywhere;
}


/* =========================================================
   PROJECT TECHNOLOGIES
========================================================= */

.project-content
.inline-flex {
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.project-content
.inline-flex:hover {
  border-color:
    rgba(130, 165, 240, 0.4);

  background:
    rgba(99, 102, 241, 0.08);

  transform:
    translateY(-1px);
}


/* =========================================================
   PROJECT BUTTONS
========================================================= */

.project-content a {
  flex-shrink: 0;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.project-content a:hover {
  transform:
    translateY(-2px);
}


/* =========================================================
   PROJECT NAVIGATION BUTTONS
========================================================= */

#prev-btn,
#next-btn {
  position: absolute;

  top: 16px;

  z-index: 20;

  width: 42px;
  height: 42px;

  padding: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  border:
    1px solid
    rgba(255, 255, 255, 0.08);

  border-radius: 50%;

  background:
    rgba(13, 17, 35, 0.85);

  backdrop-filter:
    blur(10px);

  color: #dce5fa;

  cursor: pointer;

  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

#prev-btn {
  left: 16px;
}

#next-btn {
  right: 16px;
}

#prev-btn:hover,
#next-btn:hover {
  background:
    #6366f1;

  border-color:
    #6366f1;

  transform:
    translateY(-2px)
    scale(1.05);
}


/* =========================================================
   EXPERIENCE / EDUCATION TIMELINE
========================================================= */

.timeline {
  position: relative;
}

.timeline::before {
  content: "";

  position: absolute;

  left: 10px;

  top: 5px;
  bottom: 5px;

  width: 1px;

  background:
    linear-gradient(
      to bottom,
      transparent,
      rgba(120, 155, 230, 0.4),
      transparent
    );
}

.timeline-item {
  position: relative;

  padding-left: 38px;

  margin-bottom: 30px;
}

.timeline-dot {
  position: absolute;

  left: 4px;

  top: 5px;

  width: 13px;
  height: 13px;

  border-radius: 50%;

  background:
    #7da7ff;

  border:
    3px solid
    #050816;

  box-shadow:
    0 0 0 4px
      rgba(125, 167, 255, 0.1),
    0 0 18px
      rgba(125, 167, 255, 0.5);
}


/* =========================================================
   ACHIEVEMENTS
========================================================= */

.achievement-card {
  position: relative;

  overflow: hidden;

  min-height: 260px;

  cursor: pointer;

  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.achievement-card:hover,
.achievement-card.achievement-active {
  transform:
    translateY(-8px);

  border-color:
    rgba(130, 170, 255, 0.45);

  box-shadow:
    0 25px 70px
    rgba(0, 0, 0, 0.35);
}

.achievement-certificate {
  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  opacity: 0;

  transform:
    scale(1.08);

  transition:
    opacity 0.4s ease,
    transform 0.5s ease;
}

.achievement-card:hover
.achievement-certificate,
.achievement-card.achievement-active
.achievement-certificate {
  opacity: 1;

  transform:
    scale(1);
}

.achievement-card::after {
  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(5, 8, 22, 0.95),
      rgba(5, 8, 22, 0.25),
      rgba(5, 8, 22, 0.1)
    );

  opacity: 0;

  transition:
    opacity 0.35s ease;
}

.achievement-card:hover::after,
.achievement-card.achievement-active::after {
  opacity: 1;
}

.achievement-content {
  position: relative;

  z-index: 2;

  height: 100%;

  display: flex;

  flex-direction: column;

  justify-content: flex-end;

  padding: 22px;

  transition:
    transform 0.35s ease;
}

.achievement-card:hover
.achievement-content {
  transform:
    translateY(-3px);
}


/* =========================================================
   CONTACT FORM
========================================================= */

#contact-form input,
#contact-form textarea {
  outline: none;

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

#contact-form input:focus,
#contact-form textarea:focus {
  border-color:
    rgba(99, 102, 241, 0.7);

  box-shadow:
    0 0 0 3px
    rgba(99, 102, 241, 0.08);
}

#contact-form button {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

#contact-form button:hover {
  transform:
    translateY(-2px);

  box-shadow:
    0 12px 30px
    rgba(99, 102, 241, 0.25);
}


/* =========================================================
   FOOTER
========================================================= */

footer {
  position: relative;

  background:
    linear-gradient(
      to top,
      rgba(10, 13, 28, 0.8),
      transparent
    );
}

footer a {
  transition:
    color 0.2s ease;
}

footer a:hover {
  color:
    #8db8ff;
}


/* =========================================================
   LIGHT THEME — COMPREHENSIVE OVERHAUL
========================================================= */

body.light-theme {
  background: #f4f6fb;
  color: #1e293b;
}

body.light-theme #loader {
  background: #f4f6fb;
  color: #1e293b;
}

body.light-theme #cursor { background: #FD6F00; }
body.light-theme #glow {
  background: radial-gradient(circle, rgba(253,111,0,0.08), transparent 70%);
}

/* ── NAVBAR ── */
body.light-theme .floating-navbar {
  background: rgba(255,255,255,0.9);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  backdrop-filter: blur(20px);
}
body.light-theme .floating-navbar.scrolled {
  background: rgba(255,255,255,0.97);
}
body.light-theme .brand-text { color: #FD6F00 !important; }
body.light-theme .navbar-link { color: #475569; }
body.light-theme .navbar-link:hover { color: #0f172a; background: rgba(0,0,0,0.04); }
body.light-theme .navbar-link.active {
  color: #FD6F00;
  background: rgba(253,111,0,0.08);
  border-color: rgba(253,111,0,0.25);
}
body.light-theme .navbar-icon-button { color: #64748b; }
body.light-theme .navbar-icon-button:hover { color: #0f172a; background: rgba(0,0,0,0.05); }

/* ── MOBILE MENU ── */
body.light-theme .mobile-navbar-button { border-color: rgba(0,0,0,0.1); background: rgba(0,0,0,0.03); }
body.light-theme .mobile-navbar-button span { background: #334155; }
body.light-theme .mobile-navbar-menu {
  background: rgba(255,255,255,0.98);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}
body.light-theme .mobile-navbar-menu a { color: #475569; }
body.light-theme .mobile-navbar-menu a:hover { color: #0f172a; background: rgba(0,0,0,0.04); }

/* ── LANGUAGE DROPDOWN ── */
body.light-theme .language-dropdown {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}
body.light-theme .language-dropdown button { color: #64748b; }
body.light-theme .language-dropdown button:hover { background: rgba(0,0,0,0.04); color: #0f172a; }

/* ── SECTION HEADERS ── */
body.light-theme .section-header h2,
body.light-theme .section-header h2 span:first-child { color: #0f172a !important; }
body.light-theme .section-header h2 span:last-child { color: #FD6F00 !important; }
body.light-theme .section-header p { color: #64748b; }
body.light-theme .section-eyebrow {
  color: #FD6F00;
  border-color: rgba(253,111,0,0.3);
  background: rgba(253,111,0,0.06);
}

/* ── HERO (PREMIUM LIGHT THEME OVERHAUL) ── */
body.light-theme #home {
  background: radial-gradient(circle at 10% 20%, rgba(253, 111, 0, 0.05), transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(253, 111, 0, 0.03), transparent 35%);
}
body.light-theme .hero-greeting {
  color: #64748b !important;
  font-weight: 700 !important;
}
body.light-theme .hero-author-name {
  color: #0f172a !important;
  font-weight: 800 !important;
}
body.light-theme #home h1 {
  color: #FD6F00 !important;
}
body.light-theme #home h1 span {
  color: #FD6F00 !important;
}
body.light-theme #hero-description {
  color: #334155 !important;
  font-size: 0.975rem !important;
  line-height: 1.7 !important;
}

/* Social Buttons */
body.light-theme .social-btn {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #475569 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}
body.light-theme .social-btn:hover {
  background: #fff7ed !important;
  border-color: #FD6F00 !important;
  color: #FD6F00 !important;
  box-shadow: 0 6px 20px rgba(253, 111, 0, 0.25) !important;
  transform: translateY(-2px);
}

/* Download CV Button */
body.light-theme .download-cv-btn {
  background: #ffffff !important;
  border: 2px solid rgba(15, 23, 42, 0.2) !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}
body.light-theme .download-cv-btn:hover {
  background: rgba(253, 111, 0, 0.08) !important;
  border-color: #FD6F00 !important;
  color: #FD6F00 !important;
  box-shadow: 0 8px 24px rgba(253, 111, 0, 0.2) !important;
  transform: translateY(-1px);
}

/* Hero Stats Card Container */
body.light-theme .hero-stats-card {
  background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%) !important;
  border: 1px solid rgba(253, 111, 0, 0.22) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.06), 0 0 25px rgba(253, 111, 0, 0.08) !important;
  backdrop-filter: blur(12px);
}

/* Hero Stat Boxes inside Stats Card */
body.light-theme .hero-stat-box {
  background: #ffffff !important;
  border: 1px solid rgba(253, 111, 0, 0.18) !important;
  box-shadow: 0 4px 12px rgba(253, 111, 0, 0.05) !important;
}
body.light-theme .hero-stat-box:hover {
  border-color: #FD6F00 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(253, 111, 0, 0.15) !important;
}
body.light-theme .hero-stat-value {
  color: #FD6F00 !important;
  font-weight: 800 !important;
  font-size: 1.25rem !important;
}
body.light-theme .hero-stat-label {
  color: #475569 !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
}

/* Arch Frame Glow in Light Mode */
body.light-theme .figma-arch-frame {
  border: 3px solid rgba(253, 111, 0, 0.25) !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08), 0 0 35px rgba(253, 111, 0, 0.12) !important;
}


/* ── PROFILE CARD (ABOUT) ── */
body.light-theme #about {
  border-color: rgba(0, 0, 0, 0.08) !important;
}
body.light-theme #about h2 {
  color: #0f172a !important;
  font-weight: 800 !important;
}
body.light-theme #about p.text-slate-400 {
  color: #64748b !important;
  font-weight: 600 !important;
}
body.light-theme #about-content p {
  color: #334155 !important;
  font-size: 0.95rem !important;
  line-height: 1.7 !important;
}
body.light-theme .profile-floating-card {
  background: linear-gradient(135deg, #ffffff, #f8faff);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
body.light-theme .profile-name { color: #0f172a; }
body.light-theme .profile-role { color: #64748b; }
body.light-theme .profile-stat-value { color: #0f172a; }
body.light-theme .profile-stat-label { color: #94a3b8; }

/* About Circular Skill Percentage Gauges */
body.light-theme #about svg circle:first-child {
  stroke: rgba(0, 0, 0, 0.08) !important;
}
body.light-theme #about .group span.text-white {
  color: #0f172a !important;
  font-weight: 800 !important;
}
body.light-theme #about .group span.text-slate-200 {
  color: #475569 !important;
  font-weight: 700 !important;
}

/* ── SERVICES CARDS ── */
body.light-theme #services {
  border-color: rgba(0, 0, 0, 0.08) !important;
}
body.light-theme #services .grid > div,
body.light-theme .service-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04) !important;
}
body.light-theme #services .grid > div:hover,
body.light-theme .service-card:hover {
  border-color: rgba(253, 111, 0, 0.4) !important;
  box-shadow: 0 14px 35px rgba(253, 111, 0, 0.12) !important;
  transform: translateY(-4px);
}
body.light-theme #services h3,
body.light-theme .service-card h3 {
  color: #FD6F00 !important;
  font-weight: 800 !important;
}
body.light-theme #services p.text-slate-400,
body.light-theme .service-card p {
  color: #475569 !important;
  font-size: 0.85rem !important;
  line-height: 1.6 !important;
}
body.light-theme #services .w-14.h-14 {
  background: rgba(253, 111, 0, 0.08) !important;
  border-color: rgba(253, 111, 0, 0.2) !important;
  color: #FD6F00 !important;
}
body.light-theme #services .group:hover .w-14.h-14 {
  background: #FD6F00 !important;
  color: #ffffff !important;
}

/* ── SKILLS SECTION ── */
body.light-theme .skills-marquee-section { background: transparent !important; }
body.light-theme .skills-eyebrow {
  color: #FD6F00 !important;
  border-color: rgba(253,111,0,0.25) !important;
  background: rgba(253,111,0,0.06) !important;
}
body.light-theme .skills-marquee-header h3 { color: #0f172a !important; }
body.light-theme .skills-marquee-header h3 span { color: #0f172a !important; -webkit-text-fill-color: #0f172a !important; }
body.light-theme .skills-marquee-header h3 span[data-i18n="skills.titleAccent"] {
  color: #FD6F00 !important;
  -webkit-text-fill-color: #FD6F00 !important;
}
body.light-theme .skills-marquee-header p { color: #475569 !important; }
body.light-theme .skills-marquee::before {
  background: linear-gradient(90deg, #f8fafc 0%, rgba(248,250,252,0.85) 35%, transparent 100%) !important;
}
body.light-theme .skills-marquee::after {
  background: linear-gradient(270deg, #f8fafc 0%, rgba(248,250,252,0.85) 35%, transparent 100%) !important;
}
body.light-theme .skill-tech-item {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04) !important;
}
body.light-theme .skill-tech-item i {
  color: #0f172a !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08)) !important;
}
body.light-theme .skill-tech-item span { color: #334155 !important; font-weight: 600 !important; }
body.light-theme .skill-tech-item:hover {
  background: #fff7ed !important;
  border-color: #FD6F00 !important;
  box-shadow: 0 6px 20px rgba(253,111,0,0.2) !important;
}
body.light-theme .skill-tech-item:hover span { color: #FD6F00 !important; }

/* Light theme overrides for monochrome Devicons (Next.js, Vercel, Linux, Markdown, Express, GitHub) */
body.light-theme .skill-tech-item i.devicon-express-original,
body.light-theme .skill-tech-item i.devicon-express-original::before,
body.light-theme .skill-tech-item i.devicon-express-original.colored::before,
body.light-theme .skill-tech-item i.devicon-nextjs-plain,
body.light-theme .skill-tech-item i.devicon-nextjs-plain::before,
body.light-theme .skill-tech-item i.devicon-nextjs-plain.colored::before,
body.light-theme .skill-tech-item i.devicon-nextjs-original,
body.light-theme .skill-tech-item i.devicon-nextjs-original::before,
body.light-theme .skill-tech-item i.devicon-nextjs-original.colored::before,
body.light-theme .skill-tech-item i.devicon-linux-plain,
body.light-theme .skill-tech-item i.devicon-linux-plain::before,
body.light-theme .skill-tech-item i.devicon-linux-plain.colored::before,
body.light-theme .skill-tech-item i.devicon-markdown-original,
body.light-theme .skill-tech-item i.devicon-markdown-original::before,
body.light-theme .skill-tech-item i.devicon-markdown-original.colored::before,
body.light-theme .skill-tech-item i.devicon-vercel-original,
body.light-theme .skill-tech-item i.devicon-vercel-original::before,
body.light-theme .skill-tech-item i.devicon-vercel-original.colored::before,
body.light-theme .skill-tech-item i.devicon-github-original,
body.light-theme .skill-tech-item i.devicon-github-original::before,
body.light-theme .skill-tech-item i.devicon-github-original.colored::before,
body.light-theme .skill-tech-item i.devicon-apple-original,
body.light-theme .skill-tech-item i.devicon-apple-original::before,
body.light-theme .skill-tech-item i.devicon-apple-original.colored::before {
  color: #0f172a !important;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.15)) !important;
}

body.light-theme .skill-tech-item:hover i.devicon-express-original,
body.light-theme .skill-tech-item:hover i.devicon-express-original::before,
body.light-theme .skill-tech-item:hover i.devicon-express-original.colored::before,
body.light-theme .skill-tech-item:hover i.devicon-nextjs-plain,
body.light-theme .skill-tech-item:hover i.devicon-nextjs-plain::before,
body.light-theme .skill-tech-item:hover i.devicon-nextjs-plain.colored::before,
body.light-theme .skill-tech-item:hover i.devicon-nextjs-original,
body.light-theme .skill-tech-item:hover i.devicon-nextjs-original::before,
body.light-theme .skill-tech-item:hover i.devicon-nextjs-original.colored::before,
body.light-theme .skill-tech-item:hover i.devicon-linux-plain,
body.light-theme .skill-tech-item:hover i.devicon-linux-plain::before,
body.light-theme .skill-tech-item:hover i.devicon-linux-plain.colored::before,
body.light-theme .skill-tech-item:hover i.devicon-markdown-original,
body.light-theme .skill-tech-item:hover i.devicon-markdown-original::before,
body.light-theme .skill-tech-item:hover i.devicon-markdown-original.colored::before,
body.light-theme .skill-tech-item:hover i.devicon-vercel-original,
body.light-theme .skill-tech-item:hover i.devicon-vercel-original::before,
body.light-theme .skill-tech-item:hover i.devicon-vercel-original.colored::before,
body.light-theme .skill-tech-item:hover i.devicon-github-original,
body.light-theme .skill-tech-item:hover i.devicon-github-original::before,
body.light-theme .skill-tech-item:hover i.devicon-github-original.colored::before,
body.light-theme .skill-tech-item:hover i.devicon-apple-original,
body.light-theme .skill-tech-item:hover i.devicon-apple-original::before,
body.light-theme .skill-tech-item:hover i.devicon-apple-original.colored::before {
  color: #FD6F00 !important;
  filter: drop-shadow(0 0 10px rgba(253, 111, 0, 0.4)) !important;
}


/* ── PROJECT SLIDER ── */
body.light-theme #portfolio {
  border-color: rgba(0, 0, 0, 0.08) !important;
}
body.light-theme .portfolio-slider::before {
  background: linear-gradient(to right, #f8fafc 0%, rgba(248,250,252,0.9) 35%, transparent 100%) !important;
}
body.light-theme .portfolio-slider::after {
  background: linear-gradient(to left, #f8fafc 0%, rgba(248,250,252,0.9) 35%, transparent 100%) !important;
}
body.light-theme .project-card {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05) !important;
}
body.light-theme .project-card:hover {
  border-color: rgba(253,111,0,0.35) !important;
  box-shadow: 0 16px 48px rgba(253,111,0,0.12) !important;
}
body.light-theme .project-image { background: #e8ecf5 !important; }
body.light-theme .project-image-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent 65%) !important;
}
body.light-theme .project-content h3 { color: #0f172a !important; font-weight: 800 !important; }
body.light-theme .project-content > p,
body.light-theme .project-content .text-muted { color: #475569 !important; }
/* Live Button Default & Hover */
body.light-theme .project-live-button {
  background: #FD6F00 !important;
  border: 1px solid #FD6F00 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(253, 111, 0, 0.28) !important;
}
body.light-theme .project-live-button *,
body.light-theme .project-live-button span {
  color: #ffffff !important;
  fill: #ffffff !important;
}
body.light-theme .project-live-button:hover {
  background: #FD6F00 !important;
  border-color: #FD6F00 !important;
  color: #000000 !important;
  box-shadow: 0 8px 25px rgba(253, 111, 0, 0.45) !important;
  transform: translateY(-2px) !important;
}
body.light-theme .project-live-button:hover *,
body.light-theme .project-live-button:hover span {
  color: #000000 !important;
  fill: #000000 !important;
}

/* GitHub Button Default & Hover */
body.light-theme .project-github-button {
  background: #ffffff !important;
  border: 1.5px solid rgba(15, 23, 42, 0.18) !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}
body.light-theme .project-github-button *,
body.light-theme .project-github-button span,
body.light-theme .project-github-button svg {
  color: #0f172a !important;
  fill: #0f172a !important;
}
body.light-theme .project-github-button:hover {
  background: #FD6F00 !important;
  border-color: #FD6F00 !important;
  color: #000000 !important;
  box-shadow: 0 8px 25px rgba(253, 111, 0, 0.45) !important;
  transform: translateY(-2px) !important;
}
body.light-theme .project-github-button:hover *,
body.light-theme .project-github-button:hover span,
body.light-theme .project-github-button:hover svg,
body.light-theme .project-github-button:hover path {
  color: #000000 !important;
  fill: #000000 !important;
}

body.light-theme .tech-tag {
  background: #fff7ed !important;
  border: 1px solid rgba(253, 111, 0, 0.25) !important;
  color: #c2410c !important;
  font-weight: 700 !important;
}

/* ── SLIDER NAV BUTTONS ── */
body.light-theme .slider-nav-btn {
  border-color: rgba(253,111,0,0.35) !important;
  background: #ffffff !important;
  color: #FD6F00 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
}
body.light-theme .slider-nav-btn:hover {
  background: #FD6F00 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(253,111,0,0.3) !important;
}
body.light-theme .slider-nav-label { color: #64748b !important; font-weight: 600 !important; }

/* ── ACHIEVEMENTS ── */
body.light-theme #achievements {
  border-color: rgba(0, 0, 0, 0.08) !important;
}
body.light-theme .achievements-slider::before {
  background: linear-gradient(to right, #f8fafc 0%, rgba(248,250,252,0.9) 35%, transparent 100%) !important;
}
body.light-theme .achievements-slider::after {
  background: linear-gradient(to left, #f8fafc 0%, rgba(248,250,252,0.9) 35%, transparent 100%) !important;
}
body.light-theme .achievement-card {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05) !important;
  backdrop-filter: none;
}
body.light-theme .achievement-card:hover {
  border-color: rgba(253,111,0,0.35) !important;
  box-shadow: 0 16px 48px rgba(253,111,0,0.12) !important;
}
body.light-theme .achievement-category {
  background: rgba(253,111,0,0.08) !important;
  border-color: rgba(253,111,0,0.2) !important;
  color: #c2410c !important;
  font-weight: 700 !important;
}
body.light-theme .achievement-title { color: #0f172a !important; font-weight: 800 !important; }
body.light-theme .achievement-organization { color: #0284c7 !important; font-weight: 700 !important; }
body.light-theme .achievement-period { color: #64748b !important; }
body.light-theme .achievement-description { color: #475569 !important; }

/* ── EXPERIENCE / TIMELINE ── */
body.light-theme #resume {
  border-color: rgba(0, 0, 0, 0.08) !important;
}
body.light-theme #resume h3 { color: #0f172a !important; font-weight: 800 !important; }
body.light-theme #resume p.text-muted { color: #64748b !important; }
body.light-theme .timeline-dot { border-color: #f8fafc !important; background: #FD6F00 !important; }
body.light-theme .timeline-line,
body.light-theme .timeline::before { background: rgba(0,0,0,0.1) !important; }
body.light-theme .experience-card,
body.light-theme .education-card,
body.light-theme .glass-card {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04) !important;
}
body.light-theme .experience-card:hover,
body.light-theme .education-card:hover,
body.light-theme .glass-card:hover {
  border-color: rgba(253,111,0,0.3) !important;
  box-shadow: 0 12px 30px rgba(253,111,0,0.1) !important;
}
body.light-theme .experience-title,
body.light-theme .education-degree { color: #0f172a !important; font-weight: 800 !important; }
body.light-theme .experience-company,
body.light-theme .education-institution { color: #FD6F00 !important; font-weight: 700 !important; }
body.light-theme .experience-period,
body.light-theme .education-period { color: #64748b !important; font-weight: 600 !important; }
body.light-theme .experience-description,
body.light-theme .education-description { color: #334155 !important; line-height: 1.6 !important; }
body.light-theme .skill-tag {
  background: #fff7ed !important;
  border: 1px solid rgba(253, 111, 0, 0.28) !important;
  color: #c2410c !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(253, 111, 0, 0.06) !important;
}

/* ── OFFICIAL BRAND COLORS FOR SOCIAL ICONS ── */
.social-facebook, a[href*="facebook.com"] {
  background-color: #1877F2 !important;
  border-color: #1877F2 !important;
  color: #ffffff !important;
}
.social-linkedin, a[href*="linkedin.com"] {
  background-color: #0A66C2 !important;
  border-color: #0A66C2 !important;
  color: #ffffff !important;
}
.social-github, a[href*="github.com"] {
  background-color: #24292E !important;
  border-color: #24292E !important;
  color: #ffffff !important;
}
.social-email, a[href^="mailto:"] {
  background-color: #EA4335 !important;
  border-color: #EA4335 !important;
  color: #ffffff !important;
}
.social-whatsapp, a[href*="wa.me"], a[href*="whatsapp.com"] {
  background-color: #25D366 !important;
  border-color: #25D366 !important;
  color: #ffffff !important;
}
.social-instagram, a[href*="instagram.com"] {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important;
  border-color: #e6683c !important;
  color: #ffffff !important;
}
.social-upwork, a[href*="upwork.com"] {
  background-color: #14A800 !important;
  border-color: #14A800 !important;
  color: #ffffff !important;
}
.social-fiverr, a[href*="fiverr.com"] {
  background-color: #1DBF73 !important;
  border-color: #1DBF73 !important;
  color: #ffffff !important;
}
.social-twitter, a[href*="x.com"], a[href*="twitter.com"] {
  background-color: #000000 !important;
  border-color: #333333 !important;
  color: #ffffff !important;
}
.social-telegram, a[href*="t.me"], a[href*="telegram"] {
  background-color: #26A5E4 !important;
  border-color: #26A5E4 !important;
  color: #ffffff !important;
}
.social-behance, a[href*="behance.net"] {
  background-color: #1769FF !important;
  border-color: #1769FF !important;
  color: #ffffff !important;
}
.social-discord, a[href*="discord"] {
  background-color: #5865F2 !important;
  border-color: #5865F2 !important;
  color: #ffffff !important;
}

/* ── CONTACT SECTION ── */
body.light-theme #contact {
  border-color: rgba(0, 0, 0, 0.08) !important;
}
body.light-theme .contact-info-card,
body.light-theme .contact-form-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04) !important;
}
body.light-theme .contact-info-card h3,
body.light-theme .contact-form-card h3 {
  color: #0f172a !important;
  font-weight: 800 !important;
}
body.light-theme .contact-info-card p,
body.light-theme .contact-form-card p {
  color: #64748b !important;
}
body.light-theme .contact-social-item {
  background: #f8fafc !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #334155 !important;
}
body.light-theme .contact-social-item:hover {
  background: #fff7ed !important;
  border-color: #FD6F00 !important;
  color: #FD6F00 !important;
  box-shadow: 0 6px 18px rgba(253, 111, 0, 0.18) !important;
}
body.light-theme .contact-social-name {
  color: #334155 !important;
  font-weight: 600 !important;
}
body.light-theme .contact-social-item:hover .contact-social-name {
  color: #FD6F00 !important;
}
body.light-theme #contact-form label {
  color: #334155 !important;
  font-weight: 700 !important;
}
body.light-theme #contact-form input,
body.light-theme #contact-form textarea {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  color: #0f172a !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
}
body.light-theme #contact-form input:focus,
body.light-theme #contact-form textarea:focus {
  border-color: #FD6F00 !important;
  box-shadow: 0 0 0 3px rgba(253, 111, 0, 0.15) !important;
}
body.light-theme #contact-form input::placeholder,
body.light-theme #contact-form textarea::placeholder {
  color: #94a3b8 !important;
}
body.light-theme #contact-form button[type="submit"] {
  background: #FD6F00 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(253, 111, 0, 0.3) !important;
}

/* ── FOOTER ── */
body.light-theme footer {
  background: #f1f5f9 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}
body.light-theme .footer-brand { color: #FD6F00 !important; font-weight: 800 !important; }
body.light-theme footer p,
body.light-theme footer a { color: #64748b !important; }
body.light-theme footer a:hover { color: #FD6F00 !important; }
body.light-theme .footer-divider { background: rgba(0,0,0,0.08) !important; }

/* ── BORDERS / DIVIDERS ── */
body.light-theme .border-t,
body.light-theme .border-slate-800 { border-color: rgba(0,0,0,0.07) !important; }

/* ── ACHIEVEMENT / SECTION HEADINGS ── */
body.light-theme #achievements h2,
body.light-theme #portfolio h2 { color: #0f172a !important; font-weight: 800 !important; }
body.light-theme #achievements h2 span,
body.light-theme #portfolio h2 span { color: #FD6F00 !important; }


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

@media (max-width: 1050px) {

  .navbar-link {
    padding-left:
      10px;

    padding-right:
      10px;

    font-size:
      13px;
  }

}


/* =========================================================
   TABLET / SMALL LAPTOP
========================================================= */

@media (max-width: 900px) {

  .floating-navbar {
    width:
      calc(100% - 30px);

    height:
      66px;

    padding:
      0 10px 0 20px;
  }

  .navbar-links {
    display:
      none;
  }

  .navbar-controls {
    margin-left:
      auto;
  }

  .mobile-navbar-button {
    display:
      block;
  }

  .mobile-navbar-menu {
    width:
      calc(100% - 30px);
  }

  #home {
    min-height:
      auto;
  }


  /* -----------------------------------------------
     PROJECTS TABLET
  ----------------------------------------------- */

  .portfolio-slider {
    padding:
      8px 0 22px;
  }

  #slider-track {
    gap:
      20px;

    animation-duration:
      28s;
  }

  .project-card {
    flex-basis:
      320px;

    width:
      320px;

    min-width:
      320px;
  }

  .project-image {
    height:
      190px;
  }

  .project-content {
    padding:
      18px;
  }

  .portfolio-slider::before,
  .portfolio-slider::after {
    width:
      65px;
  }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 768px) {

  body {
    cursor:
      auto;
  }

  #cursor {
    display:
      none;
  }

  #glow {
    display:
      none;
  }

  #home {
    padding-top:
      90px;
  }


  /* -----------------------------------------------
     PROJECTS
  ----------------------------------------------- */

  #portfolio {
    overflow:
      hidden;
  }

  .portfolio-slider {
    width:
      100vw;

    max-width:
      100vw;

    margin-left:
      calc(50% - 50vw);

    padding:
      8px 0 20px;
  }

  #slider-track {
    gap:
      16px;

    animation-duration:
      25s;
  }

  .project-card {
    flex:
      0 0 285px;

    width:
      285px;

    min-width:
      285px;

    border-radius:
      16px;
  }

  .project-image {
    height:
      170px;
  }

  .project-content {
    padding:
      16px;
  }

  .project-content h3 {
    font-size:
      16px;
  }

  .project-content > p {
    font-size:
      11px;
  }

  .project-content
  .inline-flex {
    font-size:
      9px;
  }

  .project-content a {
    width:
      34px;

    height:
      34px;
  }


  /* -----------------------------------------------
     PROJECT FADE
  ----------------------------------------------- */

  .portfolio-slider::before,
  .portfolio-slider::after {
    width:
      45px;
  }


  /* -----------------------------------------------
     PROJECT BUTTONS
  ----------------------------------------------- */

  #prev-btn,
  #next-btn {
    top:
      10px;

    width:
      38px;

    height:
      38px;
  }

  #prev-btn {
    left:
      10px;
  }

  #next-btn {
    right:
      10px;
  }


  /* -----------------------------------------------
     SKILLS
  ----------------------------------------------- */

  .skills-marquee-section {
    margin-top:
      25px;

    padding:
      25px 0 10px;
  }

  .skills-marquee-header {
    margin-bottom:
      18px;
  }

  .skills-marquee-header h3 {
    font-size:
      27px;
  }

  .skills-marquee-header p {
    font-size:
      10px;

    padding:
      0 15px;
  }

  .skills-eyebrow {
    font-size:
      8px;

    padding:
      4px 10px;
  }

  .skills-marquee {
    padding:
      8px 0 12px;
  }

  .skills-marquee-track {
    gap:
      30px;

    animation-duration:
      20s;
  }

  .skill-tech-item {
    width: 80px;
    min-width: 80px;
    padding: 10px 8px;
  }

  .skill-tech-item i {
    font-size: 32px;
  }

  .skill-tech-item span {
    font-size: 10px;
  }

  .skills-marquee::before,
  .skills-marquee::after {
    width:
      60px;
  }


  /* -----------------------------------------------
     ACHIEVEMENTS
  ----------------------------------------------- */

  .achievement-card {
    min-height:
      230px;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

  .floating-header {
    top:
      15px;
  }

  .floating-navbar {
    width:
      calc(100% - 24px);

    height:
      62px;

    border-radius:
      32px;

    padding:
      0 9px 0 17px;
  }

  .brand-text {
    font-size:
      17px;
  }

  .navbar-icon-button {
    min-width:
      37px;

    height:
      37px;

    padding:
      0 7px;
  }

  .globe-icon {
    font-size:
      19px;
  }

  #current-language {
    display:
      none;
  }

  .language-arrow {
    display:
      none;
  }

  .mobile-navbar-menu {
    width:
      calc(100% - 24px);

    border-radius:
      18px;
  }


  /* -----------------------------------------------
     PROJECTS
  ----------------------------------------------- */

  .portfolio-slider {
    padding:
      5px 0 18px;
  }

  #slider-track {
    gap:
      14px;

    animation-duration:
      22s;
  }

  .project-card {
    flex:
      0 0 270px;

    width:
      270px;

    min-width:
      270px;

    border-radius:
      15px;
  }

  .project-image {
    height:
      160px;
  }

  .project-content {
    padding:
      15px;
  }

  .project-content h3 {
    font-size:
      15px;

    line-height:
      1.25;
  }

  .project-content > p {
    font-size:
      10px;

    line-height:
      1.6;
  }

  .project-content
  .inline-flex {
    padding:
      5px 7px;

    font-size:
      8px;
  }

  .project-content a {
    width:
      32px;

    height:
      32px;

    font-size:
      11px;
  }

  .portfolio-slider::before,
  .portfolio-slider::after {
    width:
      30px;
  }


  /* -----------------------------------------------
     HOME
  ----------------------------------------------- */

  #home h1 {
    font-size:
      2.25rem;

    line-height:
      1.1;
  }


  /* -----------------------------------------------
     ACHIEVEMENTS
  ----------------------------------------------- */

  .achievement-card {
    min-height:
      210px;
  }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

  .floating-navbar {
    width:
      calc(100% - 20px);
  }

  .brand-text {
    font-size:
      16px;
  }


  /* -----------------------------------------------
     PROJECTS
  ----------------------------------------------- */

  .portfolio-slider {
    width:
      100vw;

    margin-left:
      calc(50% - 50vw);
  }

  #slider-track {
    gap:
      12px;

    animation-duration:
      20s;
  }

  .project-card {
    flex:
      0 0 250px;

    width:
      250px;

    min-width:
      250px;
  }

  .project-image {
    height:
      145px;
  }

  .project-content {
    padding:
      14px;
  }

  .project-content h3 {
    font-size:
      14px;
  }

  .project-content > p {
    font-size:
      9px;

    margin-bottom:
      12px;
  }

  .project-content
  .inline-flex {
    padding:
      4px 6px;

    font-size:
      7px;
  }

  .project-content a {
    width:
      30px;

    height:
      30px;
  }

  .portfolio-slider::before,
  .portfolio-slider::after {
    width:
      22px;
  }


  /* -----------------------------------------------
     SKILLS
  ----------------------------------------------- */

  .skills-marquee-header h3 {
    font-size:
      24px;
  }

  .skills-marquee-header p {
    font-size:
      9px;
  }

  .skills-marquee-track {
    gap:
      25px;

    animation-duration:
      18s;
  }

  .skill-tech-item {
    width: 75px;
    min-width: 75px;
    padding: 8px 6px;
  }

  .skill-tech-item i {
    font-size: 28px;
  }

  .skill-tech-item span {
    font-size: 9.5px;
  }


  /* -----------------------------------------------
     HOME
  ----------------------------------------------- */

  #home h1 {
    font-size:
      2rem;
  }

}


/* =========================================================
   EXTRA SMALL DEVICES
========================================================= */

@media (max-width: 360px) {

  .brand-text {
    font-size:
      15px;
  }

  .navbar-icon-button {
    min-width:
      34px;

    width:
      34px;

    height:
      34px;

    padding:
      0 5px;
  }


  /* -----------------------------------------------
     PROJECTS
  ----------------------------------------------- */

  .project-card {
    flex:
      0 0 235px;

    width:
      235px;

    min-width:
      235px;
  }

  .project-image {
    height:
      135px;
  }

  .project-content {
    padding:
      12px;
  }

  .project-content h3 {
    font-size:
      13px;
  }

  .project-content > p {
    font-size:
      8px;
  }

  .project-content a {
    width:
      28px;

    height:
      28px;

    font-size:
      10px;
  }

  #slider-track {
    gap:
      10px;

    animation-duration:
      18s;
  }
  
  /* =========================================================
   PROJECT ACTION BUTTONS
========================================================= */

.project-actions {
  width: 100%;

  display: flex !important;
  flex-direction: row !important;

  align-items: center !important;

  gap: 10px;

  margin-top: auto;
  padding-top: 18px;

  flex-wrap: nowrap !important;
}


/* =========================================================
   LIVE + GITHUB BUTTON
========================================================= */

.project-action-button {
  flex: 1 1 0 !important;

  width: auto !important;
  min-width: 0 !important;

  height: 38px !important;
  min-height: 38px !important;

  display: inline-flex !important;

  flex-direction: row !important;

  align-items: center !important;
  justify-content: center !important;

  gap: 7px !important;

  margin: 0 !important;
  padding: 8px 14px !important;

  border: 1px solid
    rgba(71, 85, 105, 0.65) !important;

  border-radius: 9px !important;

  background:
    rgba(15, 23, 42, 0.55) !important;

  color: #94a3b8 !important;

  font-size: 11px !important;
  font-weight: 600 !important;

  line-height: 1 !important;

  text-decoration: none !important;

  white-space: nowrap !important;

  cursor: pointer;

  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}


/* =========================================================
   REMOVE GENERIC LINK EFFECTS
========================================================= */

.project-actions a::before,
.project-actions a::after {
  content: none !important;
  display: none !important;
}

.project-actions .project-action-button:hover {
  transform: translateY(-2px) !important;
}


/* =========================================================
   LIVE BUTTON HOVER
========================================================= */

.project-live-button:hover {
  color: #9ec5ff !important;

  background:
    rgba(99, 102, 241, 0.10) !important;

  border-color:
    rgba(99, 102, 241, 0.75) !important;

  box-shadow:
    0 0 20px
    rgba(99, 102, 241, 0.12) !important;
}


/* =========================================================
   GITHUB BUTTON HOVER
========================================================= */

.project-github-button:hover {
  color: #f1f5f9 !important;

  background:
    rgba(148, 163, 184, 0.08) !important;

  border-color:
    rgba(148, 163, 184, 0.70) !important;

  box-shadow:
    0 0 20px
    rgba(148, 163, 184, 0.10) !important;
}


/* =========================================================
   GITHUB ICON
========================================================= */

.project-action-button svg {
  display: block !important;

  width: 16px !important;
  height: 16px !important;

  min-width: 16px !important;

  flex: 0 0 16px !important;

  margin: 0 !important;

  transform: none !important;

  transition:
    transform 0.25s ease;
}


.project-github-button:hover svg {
  transform: scale(1.08) !important;
}


/* =========================================================
   PROJECT CONTENT
========================================================= */

.project-content {
  flex: 1;

  display: flex;

  flex-direction: column;

  min-height: 0;
}


/* =========================================================
   PROJECT TECHNOLOGIES
========================================================= */

.project-technologies {
  display: flex !important;

  flex-wrap: wrap !important;

  align-items: center !important;

  gap: 7px !important;
}


/* =========================================================
   PREVENT OLD RESPONSIVE LINK SIZING
========================================================= */

.project-content a.project-action-button {
  width: auto !important;
  height: 38px !important;

  max-width: none !important;
}


  /* -----------------------------------------------
     SKILLS
  ----------------------------------------------- */

  .skills-marquee-track {
    gap:
      20px;
  }

  .skill-tech-item {
    width: 70px;
    min-width: 70px;
    padding: 8px 4px;
  }

  .skill-tech-item i {
    font-size: 26px;
  }

  .skill-tech-item span {
    font-size: 9px;
  }

}


/* =========================================================
   RTL PROJECT SLIDER
========================================================= */

html[dir="rtl"]
#slider-track {
  direction:
    ltr;
}

html[dir="rtl"]
.project-card {
  direction:
    rtl;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (
  prefers-reduced-motion: reduce
) {

  *,
  *::before,
  *::after {
    scroll-behavior:
      auto !important;

    animation-duration:
      0.01ms !important;

    animation-iteration-count:
      1 !important;

    transition-duration:
      0.01ms !important;
  }

}



/* =========================================================
   FINAL PROJECT ACTION BUTTON FIX
   Keep this at the VERY END of the CSS file
========================================================= */

.project-card .project-content .project-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: stretch !important;

  width: 100% !important;

  gap: 10px !important;

  margin-top: 18px !important;
  padding: 0 !important;
}


/* Live + GitHub */

.project-card .project-content .project-actions
.project-action-button {
  display: inline-flex !important;

  flex: 1 1 0 !important;

  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;

  height: 38px !important;
  min-height: 38px !important;

  flex-direction: row !important;

  align-items: center !important;
  justify-content: center !important;

  gap: 7px !important;

  margin: 0 !important;
  padding: 8px 14px !important;

  box-sizing: border-box !important;

  border: 1px solid rgba(71, 85, 105, 0.65) !important;
  border-radius: 9px !important;

  background: rgba(15, 23, 42, 0.55) !important;

  color: #94a3b8 !important;

  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1 !important;

  text-decoration: none !important;
  white-space: nowrap !important;
}


/* Remove any old pseudo elements */

.project-card .project-content .project-actions
.project-action-button::before,

.project-card .project-content .project-actions
.project-action-button::after {
  display: none !important;
  content: none !important;
}


/* GitHub icon */

.project-card .project-content .project-actions
.project-action-button svg {
  display: block !important;

  width: 16px !important;
  height: 16px !important;

  min-width: 16px !important;
  max-width: 16px !important;

  flex: 0 0 16px !important;

  margin: 0 !important;

  position: static !important;

  transform: none !important;
}


/* Live hover */

.project-card .project-content
.project-live-button:hover {
  color: #9ec5ff !important;

  background: rgba(99, 102, 241, 0.10) !important;

  border-color: rgba(99, 102, 241, 0.75) !important;

  box-shadow:
    0 0 20px rgba(99, 102, 241, 0.12) !important;

  transform: translateY(-2px) !important;
}


/* GitHub hover */

.project-card .project-content
.project-github-button:hover {
  color: #f1f5f9 !important;

  background: rgba(148, 163, 184, 0.08) !important;

  border-color: rgba(148, 163, 184, 0.70) !important;

  box-shadow:
    0 0 20px rgba(148, 163, 184, 0.10) !important;

  transform: translateY(-2px) !important;
}


/* GitHub icon hover */

.project-card .project-content
.project-github-button:hover svg {
  transform: scale(1.08) !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

  .project-card .project-content
  .project-actions {
    display: flex !important;

    flex-direction: row !important;

    gap: 8px !important;
  }


  .project-card .project-content
  .project-action-button {
    width: auto !important;

    height: 36px !important;
    min-height: 36px !important;

    padding: 7px 10px !important;

    font-size: 10px !important;
  }


  .project-card .project-content
  .project-action-button svg {
    width: 14px !important;
    height: 14px !important;

    min-width: 14px !important;

    flex-basis: 14px !important;
  }

}


/* =========================================================
   PROJECT CARD — FIXED BUTTON POSITION
========================================================= */

.project-card {
  display: flex !important;
  flex-direction: column !important;
  flex: 0 0 340px !important;
  width: 340px !important;
  min-width: 340px !important;
  max-width: 340px !important;
  height: 430px !important;
  max-height: 430px !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: rgba(18, 24, 38, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.project-image {
  position: relative !important;
  width: 100% !important;
  height: 180px !important;
  min-height: 180px !important;
  max-height: 180px !important;
  overflow: hidden !important;
}

.achievement-card {
  display: flex !important;
  flex-direction: column !important;
  flex: 0 0 340px !important;
  width: 340px !important;
  min-width: 340px !important;
  max-width: 340px !important;
  height: 280px !important;
  max-height: 280px !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

/* Ensure images never breach card bounds */
.project-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  max-width: 100% !important;
  display: block !important;
}

.achievement-hover-certificate img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  max-width: 100% !important;
  display: block !important;
}

/* Project content fills the remaining card height */
.project-card .project-content {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  padding: 16px !important;
  min-height: 0 !important;
}


/* Technologies stay above the buttons */

.project-card .project-technologies {
  margin-top: auto !important;
}


/* Buttons always stay at the bottom */

.project-card .project-content .project-actions {
  display: flex !important;

  flex-direction: row !important;

  align-items: center !important;

  width: 100% !important;

  gap: 10px !important;

  margin-top: 18px !important;

  flex-shrink: 0 !important;
}


/* Both buttons have exactly the same size */

.project-card .project-content .project-action-button {
  flex: 1 1 0 !important;

  width: 50% !important;

  height: 38px !important;
  min-height: 38px !important;

  display: inline-flex !important;

  align-items: center !important;
  justify-content: center !important;

  gap: 7px !important;

  margin: 0 !important;

  box-sizing: border-box !important;

  border-radius: 9px !important;

  text-decoration: none !important;

  white-space: nowrap !important;
}


/* GitHub icon */

.project-card
.project-action-button
.github-button-icon {
  width: 16px !important;
  height: 16px !important;

  flex: 0 0 16px !important;

  display: block !important;

  margin: 0 !important;
}


/* =========================================================
   PROJECT CARD CONTENT CONSISTENCY
========================================================= */

.project-card .project-title-wrapper {
  min-height: 28px;
}


.project-card .project-content > p {
  min-height: 38px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

  .project-card .project-content .project-actions {
    gap: 8px !important;

    margin-top: 16px !important;
  }


  .project-card .project-content .project-action-button {
    height: 36px !important;
    min-height: 36px !important;

    font-size: 10px !important;
  }

}

/* =========================================================
   SECTION HEADER RESPONSIVE
========================================================= */

@media (max-width: 600px) {

  .section-header {
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .section-header h2 {
    font-size: 26px;
  }

  .section-header p {
    font-size: 10px;
    line-height: 1.6;
  }

  .section-eyebrow {
    font-size: 8px;
    padding: 4px 10px;
  }

}


/* =========================================================
   CONTACT INFORMATION CARD
========================================================= */

.contact-info-card,
.contact-form-card {
  position: relative;

  padding: 24px;

  border-radius: 18px;

  border: 1px solid
    rgba(255, 255, 255, 0.07);

  background:
    linear-gradient(
      145deg,
      rgba(25, 29, 50, 0.72),
      rgba(8, 12, 28, 0.78)
    );

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow:
    0 20px 60px
    rgba(0, 0, 0, 0.18);
}


/* =========================================================
   SOCIAL GRID
========================================================= */

.contact-social-grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 10px;
}


/* =========================================================
   SOCIAL ITEM
========================================================= */

.contact-social-item {
  display: flex;

  align-items: center;

  gap: 11px;

  min-height: 58px;

  padding: 10px 12px;

  border-radius: 12px;

  border: 1px solid
    rgba(255, 255, 255, 0.05);

  background:
    rgba(255, 255, 255, 0.018);

  text-decoration: none;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}


.contact-social-item:hover {
  transform: translateY(-2px);

  border-color:
    rgba(99, 102, 241, 0.35);

  background:
    rgba(99, 102, 241, 0.06);

  box-shadow:
    0 8px 25px
    rgba(0, 0, 0, 0.15);
}


/* =========================================================
   SOCIAL ICON
========================================================= */

.contact-social-icon {
  width: 36px;
  height: 36px;

  min-width: 36px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 10px;

  border: 1px solid
    rgba(99, 102, 241, 0.2);

  background:
    rgba(99, 102, 241, 0.08);

  color: #8fa8ff;

  font-size: 15px;

  transition:
    transform 0.25s ease,
    color 0.25s ease,
    background 0.25s ease;
}


.contact-social-item:hover
.contact-social-icon {

  transform: scale(1.08);

  color: #63c8f5;

  background:
    rgba(99, 102, 241, 0.16);
}


/* =========================================================
   SOCIAL NAME
========================================================= */

.contact-social-name {

  color: #c7d0e5;

  font-size: 13px;

  font-weight: 500;

  transition:
    color 0.2s ease;
}


.contact-social-item:hover
.contact-social-name {

  color: #8dc8ff;
}


/* =========================================================
   CONTACT FORM CARD
========================================================= */

.contact-form-card {
  height: 100%;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

  .contact-info-card,
  .contact-form-card {
    padding: 20px;
  }

}


@media (max-width: 600px) {

  .contact-social-grid {
    grid-template-columns: 1fr;
  }

  .contact-social-item {
    min-height: 54px;
  }

}


/* =========================================================
   ACHIEVEMENTS SLIDER
========================================================= */

.achievements-slider {

  position: relative;

  width: 100%;

  overflow: hidden;

  padding: 10px 0 25px;

}


/* =========================================================
   TRACK
========================================================= */

.achievements-slider-track {

  display: flex;

  width: max-content;

  gap: 24px;

  animation:
    achievements-scroll
    35s linear infinite;

  will-change: transform;

}


/* =========================================================
   ACHIEVEMENT CARD
========================================================= */

.achievement-card {

  position: relative;

  flex: 0 0 360px;

  width: 360px;

  height: 300px;

  overflow: hidden;

  border-radius: 18px;

  border: 1px solid
    rgba(255, 255, 255, 0.07);

  background:
    rgba(15, 20, 38, 0.72);

  backdrop-filter:
    blur(14px);

  -webkit-backdrop-filter:
    blur(14px);

  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;

}


/* =========================================================
   CARD HOVER
========================================================= */

.achievement-card:hover {

  transform:
    translateY(-6px);

  border-color:
    rgba(99, 102, 241, 0.45);

  box-shadow:
    0 25px 60px
    rgba(0, 0, 0, 0.35);

}


/* =========================================================
   NORMAL CONTENT
========================================================= */

.achievement-content {

  position: relative;

  z-index: 2;

  height: 100%;

  padding: 28px;

  display: flex;

  flex-direction: column;

  justify-content: center;

}


/* =========================================================
   CATEGORY
========================================================= */

.achievement-category {

  display: inline-flex;

  align-items: center;

  width: fit-content;

  padding: 5px 10px;

  margin-bottom: 15px;

  border-radius: 999px;

  background:
    rgba(99, 102, 241, 0.10);

  border:
    1px solid
    rgba(99, 102, 241, 0.22);

  color:
    #8fa8ff;

  font-size: 9px;

  font-weight: 600;

  text-transform: uppercase;

  letter-spacing: 0.08em;

}


/* =========================================================
   TITLE
========================================================= */

.achievement-title {

  margin: 0 0 8px;

  color:
    #e5eaf5;

  font-size: 17px;

  line-height: 1.4;

  font-weight: 600;

}


/* =========================================================
   ORGANIZATION
========================================================= */

.achievement-organization {

  margin: 0 0 5px;

  color:
    #65c7f4;

  font-size: 12px;

  font-weight: 500;

}


/* =========================================================
   PERIOD
========================================================= */

.achievement-period {

  margin: 0 0 12px;

  color:
    #687592;

  font-size: 10px;

}


/* =========================================================
   DESCRIPTION
========================================================= */

.achievement-description {

  margin: 0;

  color:
    #8994ac;

  font-size: 11px;

  line-height: 1.7;

}


/* =========================================================
   CERTIFICATE HOVER LAYER
========================================================= */

.achievement-hover-certificate {

  position: absolute;

  inset: 0;

  z-index: 5;

  opacity: 0;

  visibility: hidden;

  transform:
    scale(1.08);

  transition:
    opacity 0.35s ease,
    transform 0.45s ease,
    visibility 0.35s ease;

  background:
    #080d1c;

}


/* =========================================================
   SHOW CERTIFICATE ON HOVER
========================================================= */

.achievement-card:hover
.achievement-hover-certificate {

  opacity: 1;

  visibility: visible;

  transform:
    scale(1);

}


/* =========================================================
   CERTIFICATE IMAGE
========================================================= */

.achievement-hover-certificate img {

  width: 100%;

  height: 100%;

  display: block;

  object-fit: contain;

  padding: 12px;

  background:
    #080d1c;

}


/* =========================================================
   CERTIFICATE DARK OVERLAY
========================================================= */

.achievement-hover-overlay {

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      to top,
      rgba(4, 8, 20, 0.88),
      rgba(4, 8, 20, 0.05) 60%
    );

  pointer-events: none;

}


/* =========================================================
   VIEW CERTIFICATE
========================================================= */

.achievement-view-certificate {

  position: absolute;

  left: 50%;

  bottom: 22px;

  transform:
    translateX(-50%)
    translateY(10px);

  display: flex;

  align-items: center;

  gap: 8px;

  padding: 9px 14px;

  border-radius: 999px;

  background:
    rgba(99, 102, 241, 0.18);

  border:
    1px solid
    rgba(129, 140, 248, 0.4);

  color:
    #c7d2fe;

  font-size: 10px;

  white-space: nowrap;

  opacity: 0;

  transition:
    opacity 0.35s ease,
    transform 0.35s ease;

}


/* =========================================================
   SHOW VIEW BUTTON
========================================================= */

.achievement-card:hover
.achievement-view-certificate {

  opacity: 1;

  transform:
    translateX(-50%)
    translateY(0);

}


/* =========================================================
   ICON
========================================================= */

.achievement-view-certificate i {

  font-size: 11px;

}


/* =========================================================
   SLIDER ANIMATION
========================================================= */

@keyframes achievements-scroll {

  from {

    transform:
      translateX(0);

  }

  to {

    transform:
      translateX(
        calc(-50% - 12px)
      );

  }

}


/* =========================================================
   PAUSE ON HOVER
========================================================= */

.achievements-slider:hover
.achievements-slider-track {

  animation-play-state:
    paused;

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

  .achievement-card {

    flex-basis: 330px;

    width: 330px;

    height: 290px;

  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

  .achievements-slider {

    padding-left: 4px;

    padding-right: 4px;

  }


  .achievements-slider-track {

    gap: 16px;

    animation-duration:
      30s;

  }


  .achievement-card {

    flex-basis:
      min(82vw, 330px);

    width:
      min(82vw, 330px);

    height: 285px;

    border-radius: 16px;

  }


  .achievement-content {

    padding: 22px;

  }


  .achievement-title {

    font-size: 15px;

  }


  .achievement-description {

    font-size: 10.5px;

  }

}


/* =========================================================
   REDUCE MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

  .achievements-slider-track {

    animation: none;

  }

}

/* =========================================================
   FINAL RTL / LTR SLIDER FIX
   Keep slider mechanics LTR while card content follows
   the page language direction.
========================================================= */

/* Page direction */
html[dir="rtl"] {
  direction: rtl;
}

html[dir="ltr"] {
  direction: ltr;
}

html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] body {
  direction: ltr;
  text-align: left;
}

/* ---------------------------------------------------------
   ACHIEVEMENTS SLIDER
   IMPORTANT: never let RTL change the slider's flex axis.
--------------------------------------------------------- */
html[dir="rtl"] .achievements-slider {
  direction: ltr;
  overflow: hidden;
  width: 100%;
}

html[dir="rtl"] .achievements-slider-track {
  direction: ltr;
  display: flex;
  flex-direction: row;
  width: max-content;
  margin: 0;
}

html[dir="rtl"] .achievement-card {
  direction: rtl;
  text-align: right;
  unicode-bidi: plaintext;
}

html[dir="rtl"] .achievement-content {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .achievement-category {
  direction: rtl;
  text-align: right;
}

/* Keep the animation identical in Arabic and English. */
html[dir="rtl"] .achievements-slider-track {
  animation-name: achievements-scroll;
}

/* ---------------------------------------------------------
   PROJECT SLIDER
--------------------------------------------------------- */
html[dir="rtl"] .portfolio-slider {
  direction: ltr;
  overflow: hidden;
}

html[dir="rtl"] #slider-track {
  direction: ltr;
  display: flex;
  flex-direction: row;
  width: max-content;
}

html[dir="rtl"] .project-card {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .project-content {
  direction: rtl;
  text-align: right;
}

/* ---------------------------------------------------------
   SKILLS MARQUEE
--------------------------------------------------------- */
html[dir="rtl"] .skills-marquee {
  direction: ltr;
  overflow: hidden;
}

html[dir="rtl"] .skills-marquee-track {
  direction: ltr;
  display: flex;
  flex-direction: row;
  width: max-content;
}

html[dir="rtl"] .skill-tech-item {
  direction: rtl;
}

/* ---------------------------------------------------------
   SECTION HEADERS
--------------------------------------------------------- */
html[dir="rtl"] .section-header,
html[dir="rtl"] .skills-marquee-header {
  direction: rtl;
  text-align: center;
}

/* ---------------------------------------------------------
   SERVICES / ABOUT / RESUME / CONTACT CONTENT
--------------------------------------------------------- */
html[dir="rtl"] .service-card,
html[dir="rtl"] .glass-card,
html[dir="rtl"] .timeline,
html[dir="rtl"] #about,
html[dir="rtl"] #resume,
html[dir="rtl"] #contact {
  direction: rtl;
}

html[dir="rtl"] .service-card,
html[dir="rtl"] .timeline-item {
  text-align: right;
}

/* ---------------------------------------------------------
   FORMS
--------------------------------------------------------- */
html[dir="rtl"] #contact-form input,
html[dir="rtl"] #contact-form textarea {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] #contact-form input[type="email"] {
  direction: ltr;
  text-align: left;
}

/* ---------------------------------------------------------
   NAVIGATION / LANGUAGE MENU
--------------------------------------------------------- */
html[dir="rtl"] .floating-navbar {
  direction: rtl;
}

html[dir="rtl"] .navbar-links {
  direction: rtl;
}

html[dir="rtl"] .language-dropdown {
  right: auto;
  left: 0;
  transform-origin: top left;
}

html[dir="rtl"] .language-dropdown button {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .mobile-navbar-menu a {
  direction: rtl;
  text-align: right;
}

/* ---------------------------------------------------------
   TIMELINE
--------------------------------------------------------- */
html[dir="rtl"] .timeline::before {
  left: auto;
  right: 10px;
}

html[dir="rtl"] .timeline-item {
  padding-left: 0;
  padding-right: 38px;
}

html[dir="rtl"] .timeline-dot {
  left: auto;
  right: 4px;
}

/* ---------------------------------------------------------
   PROJECT CONTROLS
   Keep the visual controls on the expected Arabic sides.
--------------------------------------------------------- */
html[dir="rtl"] #prev-btn {
  left: auto;
  right: 16px;
}

html[dir="rtl"] #next-btn {
  right: auto;
  left: 16px;
}

/* ---------------------------------------------------------
   RESPONSIVE RTL SLIDERS
--------------------------------------------------------- */
@media (max-width: 768px) {
  html[dir="rtl"] .portfolio-slider,
  html[dir="rtl"] .achievements-slider,
  html[dir="rtl"] .skills-marquee {
    direction: ltr;
    overflow: hidden;
  }

  html[dir="rtl"] .project-card,
  html[dir="rtl"] .achievement-card,
  html[dir="rtl"] .skill-tech-item {
    direction: rtl;
  }
}

/* ---------------------------------------------------------
   PREVENT RTL CONTENT FROM CREATING HORIZONTAL PAGE SCROLL
--------------------------------------------------------- */
html[dir="rtl"],
html[dir="rtl"] body {
  max-width: 100%;
  overflow-x: hidden;
}
