/**
 * === THEMEABLE, VARIABLE-DRIVEN CSS (drop-in) ===
 * To retheme, override the variables in :root (or add a .dark-theme body class).
 * No hard-coded colors; everything derives from semantic tokens.
 */

/* -------------------------------------------------
   Fonts
-------------------------------------------------- */
:root {
  --font-default: "Roboto", system-ui, -apple-system, "Segoe UI",
    "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-heading: "Raleway", sans-serif;
  --font-nav: "Poppins", sans-serif;
}

/* -------------------------------------------------
   Base Palette (neutral + brand)
   Edit these to switch themes quickly.
-------------------------------------------------- */
:root {
  /* neutral scale */
  --neutral-0: #ffffff;
  --neutral-50: #f9fafb;
  --neutral-100: #f3f4f6;
  --neutral-200: #e5e7eb;
  --neutral-300: #d1d5db;
  --neutral-400: #9ca3af;
  --neutral-500: #6b7280;
  --neutral-600: #4b5563;
  --neutral-700: #374151;
  --neutral-800: #1f2937;
  --neutral-900: #111827;

  /* brand (primary/accents) */
  --brand-50: #e7f1ff;
  --brand-100: #cfe4ff;
  --brand-200: #9ec9ff;
  --brand-300: #6daeff;
  --brand-400: #3c93ff;
  --brand-500: #0d6efd; /* primary */
  --brand-600: #0c5ed6;
  --brand-700: #0a4eaf;
  --brand-800: #083f89;
  --brand-900: #062f62;

  /* supporting accents (used in services, badges, icons) */
  --cyan-500: #0dcaf0;
  --orange-500: #fd7e14;
  --teal-500: #20c997;
  --red-500: #df1529;
  --indigo-500: #6610f2;
  --pink-500: #f3268c;
  --yellow-500: #ffc107;
  --green-500: #198754;
  --purple-500: #6f42c1;

  /* hero special */
  --hero-start: #2b2f33;
  --hero-end: #0e0f11;

  /* portfolio overlay gradient */
  --overlay-grad: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.55) 70%
  );

  /* cyber line */
  --cyber-line: rgba(0, 255, 204, 0.55);
  --cyber-line-2: rgba(0, 255, 204, 0.35);
}

/* -------------------------------------------------
   Semantic Tokens (use these in components)
-------------------------------------------------- */
:root {
  --bg: var(--neutral-0); /* page background */
  --surface: var(--neutral-0); /* cards/panels */
  --text: #272829; /* paragraph text */
  --heading: #45505b; /* h1..h6 */
  --muted: color-mix(in srgb, var(--text), transparent 50%);

  --accent: var(--brand-500); /* primary brand */
  --accent-contrast: #ffffff;

  /* nav */
  --nav-text: #45505b;
  --nav-hover: var(--brand-500);
  --nav-mobile-bg: var(--neutral-0);
  --nav-dropdown-bg: var(--neutral-0);
  --nav-dropdown-text: #212529;
  --nav-dropdown-hover: var(--brand-500);

  /* borders / subtle lines */
  --hairline: color-mix(in srgb, var(--text), transparent 90%);

  /* inputs */
  --input-bg: color-mix(in srgb, var(--bg), transparent 50%);
  --input-border: color-mix(in srgb, var(--text), transparent 80%);
  --input-placeholder: color-mix(in srgb, var(--text), transparent 70%);

  /* status */
  --error-bg: #df1529;
  --ok-bg: #059652;
}

/* Optional dark theme hook: apply on <body class="dark-theme"> */
.dark-theme {
  --bg: var(--neutral-900);
  --surface: #252525;
  --text: #e5e7eb;
  --heading: #ffffff;
  --nav-text: #e5e7eb;
  --nav-mobile-bg: var(--neutral-900);
  --nav-dropdown-bg: var(--neutral-900);
  --nav-dropdown-text: var(--text);
  --hairline: color-mix(in srgb, var(--text), transparent 85%);
  --input-bg: color-mix(in srgb, var(--bg), transparent 20%);
  --input-border: color-mix(in srgb, var(--text), transparent 70%);
  --input-placeholder: color-mix(in srgb, var(--text), transparent 60%);
}

/* -------------------------------------------------
   Base / Globals
-------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  background-color: var(--bg);
  font-family: var(--font-default);
}

a {
  color: #000000;
  text-decoration: none;
  transition: 0.3s;
}
a:hover {
  color: color-mix(in srgb, var(--accent), transparent 25%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading);
  font-family: var(--font-heading);
}

/* -------------------------------------------------
   Email form messages
-------------------------------------------------- */
.php-email-form .error-message {
  display: none;
  background: var(--error-bg);
  color: #fff;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}
.php-email-form .sent-message {
  display: none;
  background: var(--ok-bg);
  color: #fff;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}
.php-email-form .loading {
  display: none;
  background: var(--surface);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}
.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent);
  border-top-color: var(--surface);
  animation: php-email-form-loading 1s linear infinite;
}
@keyframes php-email-form-loading {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------
   Header / Nav
-------------------------------------------------- */
.header {
  color: var(--text);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 0 15px;
  transition: all 0.3s ease-in-out;
  overflow-y: auto;
  z-index: 997;
  min-width: 200px;
}
@media (max-width: 1199px) {
  .header {
    background: var(--bg);
    border-right: 1px solid var(--hairline);
    width: 300px;
    left: -100%;
  }
}
@media (min-width: 1200px) and (max-width: 1600px) {
  .header ~ main {
    margin-left: 160px;
  }
  .header ~ main .hero {
    margin-left: -160px;
    width: 100vw;
  }
}
.header.header-show {
  left: 0;
}

.header .header-toggle {
  color: var(--accent-contrast);
  background: #000000;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 9999;
  transition: background-color 0.3s;
}
.header .header-toggle:hover {
  background: color-mix(in srgb, var(--accent) 90%, white 15%);
}

.navmenu {
  padding: 0;
  z-index: 9997;
}
.navmenu ul {
  list-style: none;
  padding: 0 0 20px 0;
  margin: 0;
  width: 140px;
}

.navmenu a,
.navmenu a:focus {
  color: var(--nav-text);
  font-family: var(--font-nav);
  display: flex;
  align-items: center;
  padding: 10px 18px;
  margin-bottom: 8px;
  font-size: 15px;
  border-radius: 50px;
  background: color-mix(in srgb, var(--text), transparent 92%);
  height: 56px;
  width: 100%;
  overflow: hidden;
  transition: 0.3s;
}
.navmenu a i {
  font-size: 20px;
}
.navmenu a span {
  padding: 0 5px 0 7px;
}

@media (min-width: 992px) {
  .navmenu a {
    max-width: 56px;
  }
  .navmenu a span {
    display: none;
  }
}

.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus,
.navmenu li:hover > a {
  color: var(--accent-contrast);
  background: #03045e;
}
.navmenu a:hover,
.navmenu li:hover > a {
  max-width: 100%;
}
.navmenu a:hover span,
.navmenu li:hover > a span {
  display: block;
}

/* -------------------------------------------------
   Footer
-------------------------------------------------- */
.footer {
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  text-align: center;
  padding: 30px 0;
  position: relative;
}
.footer h3 {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 15px;
}
.footer p {
  font-size: 15px;
  font-style: italic;
  margin: 0 0 30px;
}
.footer .social-links {
  margin: 0 0 30px;
}
.footer .social-links a {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--accent-contrast);
  line-height: 1;
  margin: 0 4px;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}
.footer .social-links a:hover {
  background: color-mix(in srgb, var(--accent), transparent 20%);
}
.footer .copyright {
  padding-top: 25px;
  border-top: 1px solid var(--hairline);
}
.footer .credits {
  font-size: 13px;
  padding-top: 5px;
}

/* -------------------------------------------------
   Preloader
-------------------------------------------------- */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--bg);
  transition: all 0.6s ease-out;
}
#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid var(--accent-contrast);
  border-color: var(--accent) transparent var(--accent) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}
@keyframes animate-preloader {
  to {
    transform: rotate(360deg);
  }
}

/* -------------------------------------------------
   Scroll Top
-------------------------------------------------- */
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background: #000000;
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}
.scroll-top i {
  font-size: 24px;
  color: var(--accent-contrast);
  line-height: 0;
}
.scroll-top:hover {
  background: color-mix(in srgb, var(--accent), transparent 20%);
}
.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
  right: 100px;
}

/* -------------------------------------------------
   Sections / Titles
-------------------------------------------------- */
section,
.section {
  color: var(--text);
  background: var(--bg);
  padding: 60px 0;
  overflow: clip;
}

.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}
.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}
.section-title h2:before {
  content: "";
  position: absolute;
  display: block;
  width: 160px;
  height: 1px;
  background: #03045e;
  left: 0;
  right: 0;
  bottom: 1px;
  margin: auto;
}
.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 3px;
  background: #03045e;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

/* -------------------------------------------------
   Hero
-------------------------------------------------- */
.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #0000008f 0%, #f7f7f700 100% 100%);
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}
.hero .container {
  position: relative;
  z-index: 3;
}
.hero h2 {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
  color: #fff;
}
.hero p {
  margin: 5px 0 0;
  font-size: 26px;
  color: #fff;
}
.hero p span {
  letter-spacing: 1px;
  color: #03045e;
  font-weight: 900;
}
.hero .social-links {
  margin-top: 25px;
}
.hero .social-links a {
  font-size: 20px;
  display: inline-block;
  color: rgba(255, 255, 255, 0.9);
  margin-right: 20px;
  transition: 0.3s;
}
.hero .social-links a:hover {
  color: #fff;
}
@media (max-width: 768px) {
  .hero h2 {
    font-size: 32px;
  }
  .hero p {
    font-size: 20px;
  }
}

/* cyber line overlay */
.hero-cyber-line {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.hero-cyber-line::before,
.hero-cyber-line::after {
  content: "";
  position: absolute;
  left: -20%;
  width: 140%;
  background: linear-gradient(
    90deg,
    transparent,
    var(--cyber-line),
    transparent
  );
  box-shadow: 0 0 10px var(--cyber-line),
    0 0 20px color-mix(in srgb, var(--cyber-line), transparent 30%);
  transform: rotate(12deg) translateX(-120%);
  animation: heroLineSlide 14s linear infinite;
  opacity: 0.7;
  height: 2px;
  top: 30%;
}
.hero-cyber-line::after {
  height: 1px;
  top: 65%;
  background: linear-gradient(
    90deg,
    transparent,
    var(--cyber-line-2),
    transparent
  );
  transform: rotate(-8deg) translateX(-120%);
  animation: heroLineSlide 20s linear infinite;
  animation-delay: 3s;
  opacity: 0.35;
}
@keyframes heroLineSlide {
  to {
    transform: translateX(120%) rotate(0deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cyber-line::before,
  .hero-cyber-line::after {
    animation: none;
    opacity: 0.25;
  }
}

/* -------------------------------------------------
   About
-------------------------------------------------- */
.about .content h2 {
  font-weight: 700;
  font-size: 24px;
}
.about .content ul {
  list-style: none;
  padding: 0;
}
.about .content ul li {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}
.about .content ul strong {
  margin-right: 10px;
}
.about .content ul i {
  font-size: 16px;
  margin-right: 5px;
  color: #03045e;
  line-height: 0;
}

/* -------------------------------------------------
   Stats (Lite)
-------------------------------------------------- */
.stats i {
  background: var(--accent);
  color: var(--accent-contrast);
  width: 54px;
  height: 54px;
  font-size: 24px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.stats .stats-item {
  margin-top: 10px;
  width: 100%;
  text-align: center;
}
.stats .stats-item span {
  font-size: 36px;
  display: block;
  font-weight: 700;
  color: color-mix(in srgb, var(--text), transparent 20%);
}
.stats .stats-item p {
  margin: 0;
  color: color-mix(in srgb, var(--text), transparent 50%);
  font-size: 16px;
}

/* additional "lite" framing */
.stats-lite {
  position: relative;
}
.stats-lite::before,
.stats-lite::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  opacity: 0.5;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--accent), transparent 75%),
    transparent
  );
}
.stats-lite::before {
  top: 0;
}
.stats-lite::after {
  bottom: 0;
}

.stat-lite {
  padding: 12px 6px;
}
.stat-lite .icon-circle {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, #fd7e14, transparent 0%);
  background: color-mix(in srgb, var(--surface), transparent 30%);
  transition: transform 0.2s ease;
}
.stat-lite .icon-circle i {
  font-size: 1.5rem;
  color: #03045e;
}
.stat-lite:hover .icon-circle {
  transform: translateY(-3px);
}
.stat-lite .suffix {
  font-size: 1rem;
  margin-left: 2px;
  font-weight: 700;
}
.stat-lite .label {
  font-size: 0.9rem;
  margin-top: 2px;
}
@media (max-width: 575.98px) {
  .stat-lite .icon-circle {
    width: 56px;
    height: 56px;
  }
}

/* -------------------------------------------------
   Skills (progress bars + flip tiles)
-------------------------------------------------- */
.skills .progress {
  height: 60px;
  background: none;
  border-radius: 0;
}
.skills .progress .skill {
  color: var(--heading);
  text-transform: uppercase;
  font-weight: 600;
  font-family: var(--font-heading);
}
.skills .progress .skill .val {
  float: right;
}
.skills .progress-bar-wrap {
  background: color-mix(in srgb, var(--text), transparent 90%);
  height: 10px;
}
.skills .progress-bar {
  width: 1px;
  height: 10px;
  transition: 0.9s;
  background: var(--accent);
}

/* Flip tiles */
.skill-tile {
  perspective: 1000px;
  height: 0;
  padding-top: 100%;
  position: relative;
}
.skill-tile .skill-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.3s ease;
  background: var(--surface);
  border-radius: 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.skill-tile:hover .skill-inner {
  transform: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}
.skill-tile .front,
.skill-tile .back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 1rem;
  transform: none;
}
.skill-tile .back {
  transform: none !important;
  display: none !important;
}
.icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--neutral-100);
}
.floating {
  animation: floatY 6s ease-in-out infinite;
}
.floating.d2 {
  animation-delay: 0.6s;
}
.floating.d3 {
  animation-delay: 1.2s;
}
@keyframes floatY {
  50% {
    transform: translateY(-8px);
  }
}

/* helper text colors */
.text-indigo {
  color: var(--indigo-500) !important;
}
.text-pink {
  color: var(--pink-500) !important;
}
.text-purple {
  color: var(--purple-500) !important;
}
.text-teal {
  color: var(--teal-500) !important;
}
.text-orange {
  color: var(--orange-500) !important;
}

/* -------------------------------------------------
   Resume
-------------------------------------------------- */
.resume .resume-title {
  color: var(--heading);
  font-size: 26px;
  font-weight: 700;
  margin: 20px 0;
}
.resume .resume-item {
  padding: 0 0 20px 20px;
  margin-top: -2px;
  border-left: 2px solid #03045e;
  position: relative;
}
.resume .resume-item h4 {
  line-height: 18px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text), transparent 20%);
  margin-bottom: 10px;
}
.resume .resume-item h5 {
  font-size: 16px;
  padding: 5px 15px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 10px;
}
.resume .resume-item ul {
  padding-left: 20px;
}
.resume .resume-item ul li {
  padding-bottom: 10px;
}
.resume .resume-item:last-child {
  padding-bottom: 0;
}
.resume .resume-item::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50px;
  left: -9px;
  top: 0;
  background: var(--bg);
  border: 2px solid #fd7e14;
}

/* -------------------------------------------------
   Portfolio (simple)
-------------------------------------------------- */
.portfolio-simple .portfolio-tile {
  display: block;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.portfolio-simple .portfolio-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}
.portfolio-simple .thumb img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.portfolio-simple .portfolio-tile:hover .thumb img {
  transform: scale(1.05);
}
.portfolio-simple .title-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  color: #fff;
  background: var(--overlay-grad);
}
.portfolio-simple .title-bar h3 {
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.portfolio-simple .title-bar i {
  opacity: 0.9;
}

.portfolio .portfolio-filters {
  padding: 0;
  margin: 0 auto 20px;
  list-style: none;
  text-align: center;
}
.portfolio .portfolio-filters li {
  cursor: pointer;
  display: inline-block;
  padding: 8px 20px 10px;
  margin: 0 0 5px 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  border-radius: 50px;
  transition: 0.3s;
  font-family: var(--font-heading);
}
.portfolio .portfolio-filters li:hover,
.portfolio .portfolio-filters li.filter-active {
  color: var(--accent-contrast);
  background: #03045e;
}

.portfolio .portfolio-item {
  position: relative;
  overflow: hidden;
}
.portfolio .portfolio-item .portfolio-info {
  opacity: 0;
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -100%;
  z-index: 3;
  transition: all 0.5s ease-in-out;
  background: color-mix(in srgb, var(--bg), transparent 10%);
  padding: 15px;
}
.portfolio .portfolio-item .portfolio-info h4 {
  font-size: 18px;
  font-weight: 600;
  padding-right: 50px;
}
.portfolio .portfolio-item .portfolio-info p {
  color: color-mix(in srgb, var(--text), transparent 30%);
  font-size: 14px;
  margin-bottom: 0;
  padding-right: 50px;
}
.portfolio .portfolio-item .portfolio-info .preview-link,
.portfolio .portfolio-item .portfolio-info .details-link {
  position: absolute;
  right: 50px;
  font-size: 24px;
  top: calc(50% - 14px);
  color: color-mix(in srgb, var(--text), transparent 30%);
  transition: 0.3s;
  line-height: 0;
}
.portfolio .portfolio-item .portfolio-info .preview-link:hover,
.portfolio .portfolio-item .portfolio-info .details-link:hover {
  color: var(--accent);
}
.portfolio .portfolio-item .portfolio-info .details-link {
  right: 14px;
  font-size: 28px;
}
.portfolio .portfolio-item:hover .portfolio-info {
  opacity: 1;
  bottom: 0;
}

/* -------------------------------------------------
   Services
-------------------------------------------------- */
.services .service-item {
  background: var(--surface);
  box-shadow: 0 5px 90px rgba(0, 0, 0, 0.1);
  height: 100%;
  padding: 60px 30px;
  text-align: center;
  transition: 0.3s;
  border-radius: 5px;
}
.services .service-item .icon {
  margin: 0 auto;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease-in-out;
  position: relative;
}
.services .service-item .icon i {
  font-size: 36px;
  transition: 0.5s;
  position: relative;
}
.services .service-item .icon svg {
  position: absolute;
  top: 0;
  left: 0;
}
.services .service-item .icon svg path {
  transition: 0.5s;
  fill: color-mix(in srgb, var(--text), transparent 95%);
}
.services .service-item h3 {
  font-weight: 700;
  margin: 10px 0 15px;
  font-size: 22px;
}
.services .service-item p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}
.services .service-item:hover {
  box-shadow: 0 5px 35px rgba(0, 0, 0, 0.1);
}

/* colored variants */
.services .service-item.item-cyan i {
  color: var(--cyan-500);
}
.services .service-item.item-cyan:hover .icon i {
  color: #fff;
}
.services .service-item.item-cyan:hover .icon path {
  fill: var(--cyan-500);
}

.services .service-item.item-orange i {
  color: var(--orange-500);
}
.services .service-item.item-orange:hover .icon i {
  color: #fff;
}
.services .service-item.item-orange:hover .icon path {
  fill: var(--orange-500);
}

.services .service-item.item-teal i {
  color: var(--teal-500);
}
.services .service-item.item-teal:hover .icon i {
  color: #fff;
}
.services .service-item.item-teal:hover .icon path {
  fill: var(--teal-500);
}

.services .service-item.item-red i {
  color: var(--red-500);
}
.services .service-item.item-red:hover .icon i {
  color: #fff;
}
.services .service-item.item-red:hover .icon path {
  fill: var(--red-500);
}

.services .service-item.item-indigo i {
  color: var(--indigo-500);
}
.services .service-item.item-indigo:hover .icon i {
  color: #fff;
}
.services .service-item.item-indigo:hover .icon path {
  fill: var(--indigo-500);
}

.services .service-item.item-pink i {
  color: var(--pink-500);
}
.services .service-item.item-pink:hover .icon i {
  color: #fff;
}
.services .service-item.item-pink:hover .icon path {
  fill: var(--pink-500);
}

/* -------------------------------------------------
   Testimonials
-------------------------------------------------- */
.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
}

.testimonials .testimonial-item .testimonial-content {
  border-left: 3px solid var(--accent);
  padding-left: 30px;
}
.testimonials .testimonial-item .testimonial-img {
  border-radius: 50%;
  border: 4px solid var(--bg);
  margin: 0 auto;
}
.testimonials .testimonial-item h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 10px 0 5px;
}
.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: color-mix(in srgb, var(--text), transparent 40%);
  margin: 0 0 10px;
}

span.position-absolute.start-0.end-0 {
  background: #03045e !important;
}

/* Resume download button (drop this in your main.css) */
.hero .btn-resume {
  /* use your theme vars so it matches the site */
  --btn-bg: var(--accent-color);
  --btn-fg: var(--contrast-color);
  --btn-bg-hover: color-mix(in srgb, var(--accent-color), white 12%);
  --btn-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);

  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 20px;
  background: #03045e;
  color: white;
  border: none;
  border-radius: 14px;

  padding: 12px 18px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;

  box-shadow: var(--btn-shadow);
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.hero .btn-resume:hover {
  background: var(--btn-bg-hover);
  color: var(--btn-fg);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.hero .btn-resume:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.hero .btn-resume:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px
      color-mix(in srgb, var(--contrast-color), transparent 70%),
    0 0 0 6px color-mix(in srgb, var(--accent-color), transparent 35%),
    var(--btn-shadow);
}

/* Icon sizing inside the button */
.hero .btn-resume i {
  font-size: 1.25rem; /* bootstrap icon */
  line-height: 1;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero .btn-resume {
    transition: none;
  }
}

.img-fluid {
  border-radius: 10px;
}

/* ===== Contact Section ===== */
.contact-section {
  padding: clamp(32px, 6vw, 72px) 16px;
}

.contact-container {
  max-width: 1120px;
  margin: 0 auto;
}

.contact-head {
  text-align: center;
  margin-bottom: 48px;
}

.contact-title {
  font-size: clamp(28px, 4.2vw, 40px);
  font-weight: 700;
  color: #1f2937; /* gray-800 */
  margin: 0 0 8px;
}

.contact-subtitle {
  color: #64748b; /* slate-500/600 */
  font-size: 1.0625rem;
  max-width: 720px;
  margin: 0 auto;
}

/* Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Cards */
.contact-card {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform-style: preserve-3d;
  overflow: hidden;
}

.contact-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Top gradient bar */
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  border-radius: 8px 8px 0 0;
}

.whatsapp-card::before {
  background: linear-gradient(90deg, #25d366, #128c7e);
}
.phone-card::before {
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}
.email-card::before {
  background: linear-gradient(90deg, #ec4899, #be185d);
}

/* Card header */
.card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 20px;
}

.icon-green {
  background: #e7f7ef;
  color: #16a34a;
}
.icon-blue {
  background: #e8f1ff;
  color: #2563eb;
}
.icon-pink {
  background: #fde7f0;
  color: #db2777;
}

.card-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827; /* gray-900 */
}

.card-text {
  color: #6b7280; /* gray-500/600 */
  margin: 0 0 16px;
  min-height: 48px; /* keeps heights similar across cards */
}

/* Action row */
.card-action {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc; /* slate-50 */
  border-radius: 10px;
  padding: 12px 14px;
  border: 1px solid #eef2f7;
}

.action-value {
  font-weight: 600;
  color: #334155; /* slate-700 */
  word-break: break-all;
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.copy-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
  text-decoration: none;
}

.copy-btn:hover {
  transform: scale(1.08);
  color: #0ea5e9; /* default hover accent */
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Fine-tune per card */
.whatsapp-card .copy-btn:hover {
  color: #16a34a;
}
.phone-card .copy-btn:hover {
  color: #2563eb;
}
.email-card .copy-btn:hover {
  color: #db2777;
}

/* Copied message */
.copied-message {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #16a34a;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.copied-message.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.copied-message.is-hidden {
  opacity: 0;
  transform: translateY(6px);
}

/* Socials */
.contact-social {
  text-align: center;
  margin-top: 48px;
}

.social-text {
  color: #6b7280;
  margin: 0 0 12px;
}

.social-list {
  display: inline-flex;
  gap: 14px;
}

.social-link {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  font-size: 1.25rem;
  transition: transform 0.15s ease, color 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease;
  text-decoration: none;
}

.social-link:hover {
  transform: translateY(-2px);
  color: #111827;
  border-color: #d1d5db;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* ===== References Section ===== */
#references.refs {
  --accent: #6610f2; /* change once for your theme */
  --ink: #1f2937;
  --muted: #6b7280;
  --card-bg: #ffffff;
  --card-brd: #e5e7eb;

  padding: 56px 16px;
}

.refs__head {
  max-width: 920px;
  margin: 0 auto 28px auto;
  text-align: center;
}

.refs__title {
  margin: 0 0 6px 0;
  font-size: 28px;
  line-height: 1.2;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.2px;
}

.refs__subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.refs__grid {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* two columns on medium+, three if you add more people and want it tighter */
@media (min-width: 768px) {
  .refs__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ref-card {
  background: var(--card-bg);
  border: 1px solid var(--card-brd);
  border-top: 4px solid #03045e;
  border-radius: 14px;
  padding: 18px 18px 16px;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ref-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.08);
}

.ref-card__name {
  margin: 0 0 2px 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
}

.ref-card__role {
  margin: 0 0 10px 0;
  color: #03045e;
  font-weight: 600;
  font-size: 14px;
}

.ref-card__line {
  display: flex;
  gap: 8px;
  margin: 4px 0;
  font-size: 14px;
  color: var(--ink);
  align-items: baseline;
}

.ref-card__label {
  color: var(--muted);
  min-width: 56px; /* keeps labels aligned */
  font-weight: 600;
}

.ref-card__value {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.2s ease;
  word-break: break-word;
}

.ref-card__value:hover {
  border-color: var(--accent);
}
/* ===== /References Section ===== */

#constellation-bg {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  z-index: 0;
  pointer-events: none; /* lets clicks pass to your UI */
}

#constellation-bg canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* --- Resume dropdown (HTML-only, no JS) --- */
.hero .resume-menu {
  position: relative;
  display: inline-block;
}

/* Make <summary> look like your existing button (your .btn-resume styles already apply) */
.hero .resume-menu summary {
  list-style: none; /* hide default marker */
  cursor: pointer;
}
.hero .resume-menu summary::-webkit-details-marker {
  display: none;
}

/* Panel */
.hero .resume-dd {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #0f1533; /* matches your dark button vibe */
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px;
  min-width: 260px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  z-index: 50;

  /* closed state */
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 120ms ease, transform 120ms ease;
}

/* open state driven by <details open> */
.hero .resume-menu[open] .resume-dd {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Items */
.hero .resume-dd__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  line-height: 1.1;
}
.hero .resume-dd__item:hover,
.hero .resume-dd__item:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

/* Optional stronger focus ring for accessibility */
.hero .resume-menu:focus-within .resume-dd {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1),
    0 12px 30px rgba(0, 0, 0, 0.35);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero .resume-dd {
    transition: none;
  }
}

/* Language switcher (fixed, top-center) */
.lang-switcher {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 9999;
  pointer-events: auto;
}

/* Button with transparent background */
.flag-btn {
  display: grid;
  place-items: center;
  background: transparent; /* ← no white fill */
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.flag-btn:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: #ffffff00;
}
.flag-btn.is-active {
  outline: 1px solid #0d6dfd00;
}

/* Ensure flag images keep their original colors */
.lang-switcher img {
  display: block;
  border-radius: 3px;
  filter: none !important; /* ← kill grayscale/filters */
  -webkit-filter: none !important;
  mix-blend-mode: normal !important; /* ← avoid blending with backgrounds */
  opacity: 1 !important;
  height: 33px;
  border: 1px solid white;
  border-radius: 100px;
  box-shadow: 5px 5px 10px rgb(0 0 0 / 34%);
}

.lang-switcher img:hover {
  border-color: #000000;
}

.lang-switcher img.is-active {
  border-color: #03045e;
  border: 2px solid;
  border-radius: 100px;
}

/* Dark mode friendly border */
@media (prefers-color-scheme: dark) {
  .flag-btn {
    border-color: #00000000;
  }
}
