/*-----------------------------------*\
  #style.css - Light Mode Version with Dark Mode Toggle
\*-----------------------------------*/

/**
 * Light Mode Portfolio CSS with Dark Mode Support
 */

/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/

:root {

  /**
   * colors
   */

  /* gradient */

  --bg-gradient-onyx: linear-gradient(
    to bottom right, 
    hsl(0, 0%, 95%) 3%, 
    hsl(0, 0%, 98%) 97%
  );
  --bg-gradient-jet: linear-gradient(
    to bottom right, 
    hsla(0, 0%, 100%, 0.8) 0%, 
    hsla(0, 0%, 95%, 0.3) 100%
  ), hsl(0, 0%, 97%);
  --bg-gradient-yellow-1: linear-gradient(
    to bottom right, 
    hsl(200, 100%, 70%) 0%, 
    hsla(200, 100%, 65%, 0) 50%
  );
  --bg-gradient-yellow-2: linear-gradient(
    135deg, 
    hsla(200, 100%, 70%, 0.251) 0%, 
    hsla(200, 100%, 65%, 0) 59.86%
  ), hsl(0, 0%, 97%);
  --border-gradient-onyx: linear-gradient(
    to bottom right, 
    hsl(0, 0%, 85%) 0%, 
    hsla(0, 0%, 85%, 0) 50%
  );
  --text-gradient-yellow: linear-gradient(
    to right, 
    hsl(200, 100%, 50%), 
    hsl(200, 100%, 60%)
  );

  /* solid */

  --jet: hsl(0, 0%, 90%);
  --onyx: hsl(0, 0%, 95%);
  --eerie-black-1: hsl(0, 0%, 98%);
  --eerie-black-2: hsl(0, 0%, 100%);
  --smoky-black: hsl(0, 0%, 97%);
  --white-1: hsl(0, 0%, 15%);
  --white-2: hsl(0, 0%, 20%);
  --orange-yellow-crayola: hsl(200, 100%, 55%);
  --vegas-gold: hsl(200, 54%, 45%);
  --light-gray: hsl(0, 0%, 40%);
  --light-gray-70: hsla(0, 0%, 40%, 0.7);
  --bittersweet-shimmer: hsl(0, 43%, 51%);

  /**
   * typography
   */

  /* font-family */
  --ff-poppins: 'Poppins', sans-serif;
  --ff-inter: 'Inter', sans-serif;

  /* font-size */
  --fs-1: 24px;
  --fs-2: 18px;
  --fs-3: 17px;
  --fs-4: 16px;
  --fs-5: 15px;
  --fs-6: 14px;
  --fs-7: 13px;
  --fs-8: 11px;

  /* font-weight */
  --fw-300: 300;
  --fw-400: 400;
  --fw-500: 500;
  --fw-600: 600;
  --fw-700: 700;

  /**
   * shadow
   */
  
  --shadow-1: 0 4px 12px hsla(0, 0%, 0%, 0.1);
  --shadow-2: 0 8px 20px hsla(0, 0%, 0%, 0.08);
  --shadow-3: 0 8px 25px hsla(0, 0%, 0%, 0.1);
  --shadow-4: 0 12px 30px hsla(0, 0%, 0%, 0.08);
  --shadow-5: 0 16px 40px hsla(0, 0%, 0%, 0.1);

  /**
   * transition
   */

  --transition-1: 0.25s ease;
  --transition-2: 0.5s ease-in-out;
  --transition-3: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/*-----------------------------------*\
  #DARK MODE THEME
\*-----------------------------------*/

[data-theme="dark"] {
  /**
   * colors - Dark Mode (keeping yellow)
   */

  /* gradient */
  --bg-gradient-onyx: linear-gradient(to bottom right, hsl(240, 1%, 25%) 3%, hsl(0, 0%, 19%) 97%);
  --bg-gradient-jet: linear-gradient(to bottom right, hsla(240, 1%, 18%, 0.251) 0%, hsla(240, 2%, 11%, 0) 100%), hsl(240, 2%, 13%);
  --bg-gradient-yellow-1: linear-gradient(to bottom right, hsl(45, 100%, 71%) 0%, hsla(36, 100%, 69%, 0) 50%);
  --bg-gradient-yellow-2: linear-gradient(135deg, hsla(45, 100%, 71%, 0.251) 0%, hsla(35, 100%, 68%, 0) 59.86%), hsl(240, 2%, 13%);
  --border-gradient-onyx: linear-gradient(to bottom right, hsl(0, 0%, 25%) 0%, hsla(0, 0%, 25%, 0) 50%);
  --text-gradient-yellow: linear-gradient(to right, hsl(45, 100%, 72%), hsl(35, 100%, 68%));

  /* solid */
  --jet: hsl(0, 0%, 22%);
  --onyx: hsl(240, 1%, 17%);
  --eerie-black-1: hsl(240, 2%, 13%);
  --eerie-black-2: hsl(240, 2%, 12%);
  --smoky-black: hsl(0, 0%, 7%);
  --white-1: hsl(0, 0%, 100%);
  --white-2: hsl(0, 0%, 98%);
  --orange-yellow-crayola: hsl(45, 100%, 72%);
  --vegas-gold: hsl(45, 54%, 58%);
  --light-gray: hsl(0, 0%, 84%);
  --light-gray-70: hsla(0, 0%, 84%, 0.7);
  --bittersweet-shimmer: hsl(0, 43%, 51%);

  /**
   * shadow
   */
  --shadow-1: -4px 8px 24px hsla(0, 0%, 0%, 0.25);
  --shadow-2: 0 16px 30px hsla(0, 0%, 0%, 0.25);
  --shadow-3: 0 16px 40px hsla(0, 0%, 0%, 0.25);
  --shadow-4: 0 25px 50px hsla(0, 0%, 0%, 0.15);
  --shadow-5: 0 24px 80px hsla(0, 0%, 0%, 0.25);
}

[data-theme="dark"] .navbar {
  background: hsla(240, 1%, 17%, 0.75);
}

[data-theme="dark"] .select-item button:hover { 
  background: hsl(240, 2%, 20%); 
}

/*-----------------------------------*\
  #THEME TOGGLE BUTTON
\*-----------------------------------*/

.theme-toggle {
  position: fixed;
  top: calc(20px + env(safe-area-inset-top));
  right: calc(20px + env(safe-area-inset-right));
  background: var(--border-gradient-onyx);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-1);
  z-index: 1000;
  box-shadow: var(--shadow-2);
}

.theme-toggle::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
  transition: var(--transition-1);
}

.theme-toggle:hover {
  background: var(--bg-gradient-yellow-1);
  transform: scale(1.1);
}

.theme-toggle:hover::before {
  background: var(--bg-gradient-yellow-2);
}

.theme-toggle ion-icon {
  font-size: 24px;
  color: var(--orange-yellow-crayola);
  transition: var(--transition-1);
}

/* Hide/show icons based on theme */
.theme-toggle .sun-icon {
  display: block;
}

.theme-toggle .moon-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: block;
}

/*-----------------------------------*\
  #BACK TO TOP BUTTON
\*-----------------------------------*/

.back-to-top {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom));
  right: calc(20px + env(safe-area-inset-right));
  background: var(--border-gradient-onyx);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-2);
  z-index: 1000;
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
 
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
  transition: var(--transition-1);
}

.back-to-top:hover {
  background: var(--bg-gradient-yellow-1);
  transform: translateY(-3px) scale(1.1);
  box-shadow: var(--shadow-3);
}

.back-to-top:hover::before {
  background: var(--bg-gradient-yellow-2);
}

.back-to-top ion-icon {
  font-size: 20px;
  color: var(--orange-yellow-crayola);
  transition: var(--transition-1);
}

.back-to-top:hover ion-icon {
  transform: translateY(-2px);
}

/*-----------------------------------*\
  #MOBILE THEME TOGGLE BUTTON - MOVED TO NAVBAR
\*-----------------------------------*/

.theme-toggle-mobile {
  display: none;
  background: var(--border-gradient-onyx);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-1);
  box-shadow: var(--shadow-2);
  position: relative;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle-mobile::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
  transition: var(--transition-1);
}

.theme-toggle-mobile:hover,
.theme-toggle-mobile:focus {
  background: var(--bg-gradient-yellow-1);
  transform: scale(1.1);
}

.theme-toggle-mobile:hover::before,
.theme-toggle-mobile:focus::before {
  background: var(--bg-gradient-yellow-2);
}

.theme-toggle-mobile ion-icon {
  font-size: 20px;
  color: var(--orange-yellow-crayola);
  transition: var(--transition-1);
}

/* Hide/show icons based on theme */
.theme-toggle-mobile .sun-icon {
  display: block;
}

.theme-toggle-mobile .moon-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle-mobile .sun-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle-mobile .moon-icon {
  display: block;
}

/*-----------------------------------*\
  #CV DOWNLOAD BUTTON - FIXED CENTERING
\*-----------------------------------*/

.cv-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px auto 0 auto; /* FIXED: Added auto margins for centering */
  padding: 8px 16px;
  background: var(--border-gradient-onyx);
  color: var(--orange-yellow-crayola);
  font-size: var(--fs-7);
  font-weight: var(--fw-500);
  text-decoration: none;
  border-radius: 10px;
  box-shadow: var(--shadow-1);
  position: relative;
  transition: var(--transition-1);
  z-index: 1;
}

.cv-download-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
  transition: var(--transition-1);
}

.cv-download-btn:hover {
  background: var(--bg-gradient-yellow-1);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.cv-download-btn:hover::before {
  background: var(--bg-gradient-yellow-2);
}

.cv-download-btn ion-icon {
  font-size: 16px;
  transition: var(--transition-1);
}

.cv-download-btn:hover ion-icon {
  transform: translateY(-1px);
}

/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a { text-decoration: none; }

li { list-style: none; }

img, ion-icon, a, button, time, span { display: block; }

button {
  font: inherit;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

input, textarea {
  display: block;
  width: 100%;
  background: none;
  font: inherit;
}

::selection {
  background: var(--orange-yellow-crayola);
  color: var(--eerie-black-2);
}

:focus { outline-color: var(--orange-yellow-crayola); }

html {
  font-family: var(--ff-inter);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--smoky-black);
  color: var(--white-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern", "liga", "calt";
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/*-----------------------------------*\
  #LOADING SCREEN
\*-----------------------------------*/

.loading-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  /* iOS Safari fix: 100vh includes the dynamic URL bar.
     Layer fallbacks so older browsers still get a full-screen overlay. */
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: -webkit-fill-available;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
           env(safe-area-inset-bottom) env(safe-area-inset-left);
  background:
    radial-gradient(120% 80% at 50% 0%,
      hsla(200, 100%, 60%, 0.10) 0%,
      hsla(200, 100%, 60%, 0) 60%),
    var(--eerie-black-1);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  -webkit-tap-highlight-color: transparent;
}

[data-theme="dark"] .loading-screen {
  background:
    radial-gradient(120% 80% at 50% 0%,
      hsla(45, 100%, 65%, 0.10) 0%,
      hsla(45, 100%, 65%, 0) 60%),
    var(--eerie-black-1);
}

.loading-aurora {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(40% 40% at 20% 30%, hsla(200, 100%, 60%, 0.18), transparent 60%),
    radial-gradient(35% 35% at 80% 70%, hsla(200, 90%, 55%, 0.14), transparent 60%);
  filter: blur(40px);
  opacity: 0.85;
  animation: auroraDrift 8s ease-in-out infinite alternate;
  pointer-events: none;
}

[data-theme="dark"] .loading-aurora {
  background:
    radial-gradient(40% 40% at 20% 30%, hsla(45, 100%, 65%, 0.18), transparent 60%),
    radial-gradient(35% 35% at 80% 70%, hsla(35, 100%, 60%, 0.14), transparent 60%);
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  position: relative;
  text-align: center;
  padding: 0 24px;
  max-width: 360px;
  width: 100%;
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.loading-logo {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-logo img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 10px 30px hsla(0, 0%, 0%, 0.18),
    0 0 0 1px hsla(0, 0%, 100%, 0.06) inset;
  position: relative;
  z-index: 2;
}

.loading-logo-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--orange-yellow-crayola) 0deg,
    transparent 120deg,
    var(--orange-yellow-crayola) 360deg
  );
  -webkit-mask: radial-gradient(circle, transparent 46px, #000 47px);
          mask: radial-gradient(circle, transparent 46px, #000 47px);
  animation: ringSpin 2.4s linear infinite;
  opacity: 0.9;
}

.loading-text h2 {
  font-family: var(--ff-poppins);
  font-size: clamp(20px, 5.5vw, 26px);
  font-weight: var(--fw-600);
  letter-spacing: -0.4px;
  margin-bottom: 6px;
  background: var(--text-gradient-yellow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loading-text p {
  color: var(--light-gray);
  font-size: clamp(12px, 3.4vw, 14px);
  font-weight: var(--fw-400);
  letter-spacing: 0.3px;
  margin-bottom: 28px;
}

.loading-progress {
  position: relative;
  width: min(220px, 70%);
  height: 3px;
  margin: 0 auto;
  background: hsla(0, 0%, 50%, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.loading-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--orange-yellow-crayola) 50%,
    transparent 100%
  );
  animation: progressSlide 1.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

@keyframes progressSlide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}

@keyframes auroraDrift {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1); }
  100% { transform: translate3d(2%, 1%, 0) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .loading-logo-ring,
  .loading-progress-bar,
  .loading-aurora { animation: none; }
}

/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/

.sidebar,
article {
  background: var(--eerie-black-2);
  border: 1px solid var(--jet);
  border-radius: 20px;
  padding: 15px;
  box-shadow: var(--shadow-1);
  z-index: 1;
}

.separator {
  width: 100%;
  height: 1px;
  background: var(--jet);
  margin: 16px 0;
}

.icon-box {
  position: relative;
  background: var(--border-gradient-onyx);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  color: var(--orange-yellow-crayola);
  box-shadow: var(--shadow-1);
  z-index: 1;
}

.icon-box::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--eerie-black-1);
  border-radius: inherit;
  z-index: -1;
}

.icon-box ion-icon { --ionicon-stroke-width: 35px; }

article { display: none; }

article.active {
  display: block;
  animation: fadeInUp 0.6s ease backwards;
}

@keyframes fadeInUp {
  0% { 
    opacity: 0; 
    transform: translateY(30px);
  }
  100% { 
    opacity: 1; 
    transform: translateY(0);
  }
}

@keyframes fade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Professional loading animations */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes slideInLeft {
  0% { 
    opacity: 0; 
    transform: translateX(-30px);
  }
  100% { 
    opacity: 1; 
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% { 
    opacity: 0; 
    transform: translateX(30px);
  }
  100% { 
    opacity: 1; 
    transform: translateX(0);
  }
}

/* Staggered animations for achievements */
.achievement-item:nth-child(1) { animation: slideInLeft 0.6s ease 0.1s both; }
.achievement-item:nth-child(2) { animation: slideInRight 0.6s ease 0.2s both; }

/* Staggered animations for testimonials */
.testimonial-item:nth-child(1) { animation: slideInLeft 0.6s ease 0.1s both; }
.testimonial-item:nth-child(2) { animation: slideInRight 0.6s ease 0.2s both; }

.h2,
.h3,
.h4,
.h5 {
  color: var(--white-2);
  text-transform: capitalize;
}

.h2 { font-size: var(--fs-1); }

.h3 { font-size: var(--fs-2); }

.h4 { font-size: var(--fs-4); }

.h5 {
  font-size: var(--fs-7);
  font-weight: var(--fw-500);
}

.article-title {
  position: relative;
  padding-bottom: 7px;
}

.article-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--text-gradient-yellow);
  border-radius: 3px;
}

.has-scrollbar::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.has-scrollbar::-webkit-scrollbar-track {
  background: var(--onyx);
  border-radius: 5px;
}

.has-scrollbar::-webkit-scrollbar-thumb {
  background: var(--orange-yellow-crayola);
  border-radius: 5px;
}

.has-scrollbar::-webkit-scrollbar-button { width: 20px; }

.content-card {
  position: relative;
  background: var(--border-gradient-onyx);
  padding: 15px;
  padding-top: 45px;
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  cursor: pointer;
  z-index: 1;
}

.content-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

/*-----------------------------------*\
  #MAIN
\*-----------------------------------*/

main {
  margin: 15px 12px;
  margin-bottom: 75px;
  min-width: 259px;
}

/*-----------------------------------*\
  #SIDEBAR - FIXED CENTERING
\*-----------------------------------*/

.sidebar {
  margin-bottom: 15px;
  max-height: 112px;
  overflow: hidden;
  transition: var(--transition-2);
}

/* FIXED: Increased max-height to accommodate social icons and CV button */
.sidebar.active { max-height: 500px; }

.sidebar-info {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center; /* FIXED: Changed back to center for proper alignment */
  gap: 15px;
}

.avatar-box {
  background: var(--bg-gradient-onyx);
  border-radius: 20px;
  flex-shrink: 0;
  padding: 3px; /* FIXED: Added padding to contain the image properly */
  overflow: hidden; /* FIXED: Ensure image doesn't overflow */
}

.avatar-box img {
  width: 80px;
  height: 80px;
  border-radius: 17px; /* FIXED: Slightly smaller radius to account for padding */
  object-fit: cover;
  display: block; /* FIXED: Ensure proper display */
}

.info-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left; /* FIXED: Ensure text alignment is left */
}

.info-content .name {
  color: var(--white-2);
  font-size: var(--fs-3);
  font-weight: var(--fw-500);
  letter-spacing: -0.25px;
  margin-bottom: 10px;
}

.info-content .title {
  color: var(--white-1);
  background: var(--onyx);
  font-size: var(--fs-8);
  font-weight: var(--fw-300);
  width: max-content;
  padding: 3px 12px;
  border-radius: 8px;
  margin-bottom: 0;
}

.info_more-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  border-radius: 0 15px;
  font-size: 13px;
  color: var(--orange-yellow-crayola);
  background: var(--border-gradient-onyx);
  padding: 10px;
  box-shadow: var(--shadow-2);
  transition: var(--transition-1);
  z-index: 1;
}

.info_more-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: var(--bg-gradient-jet);
  transition: var(--transition-1);
  z-index: -1;
}

.info_more-btn:hover,
.info_more-btn:focus { background: var(--bg-gradient-yellow-1); }

.info_more-btn:hover::before,
.info_more-btn:focus::before { background: var(--bg-gradient-yellow-2); }

.info_more-btn span { display: none; }

.sidebar-info_more {
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-2);
}

.sidebar.active .sidebar-info_more {
  opacity: 1;
  visibility: visible;
}

.contacts-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.contact-item {
  min-width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-info {
  max-width: calc(100% - 46px);
  width: calc(100% - 46px);
}

.contact-title {
  color: var(--light-gray-70);
  font-size: var(--fs-8);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.contact-info :is(.contact-link, time, address) {
  color: var(--white-2);
  font-size: var(--fs-7);
}

.contact-info address { font-style: normal; }

/* FIXED: Social icons visibility and spacing */
.social-list {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
  padding: 20px 7px 15px 7px; /* Increased padding for better visibility */
  margin-bottom: 0;
  min-height: 60px; /* Ensure minimum height for social icons */
}

.social-item .social-link {
  color: var(--light-gray-70);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px; /* Added padding for better click area */
  border-radius: 50%;
  transition: var(--transition-1);
}

.social-item .social-link:hover { 
  color: var(--light-gray); 
  background: var(--onyx);
}

/* FIXED: SVG icons color change based on theme - Light = Blue, Dark = Yellow */
.social-link svg {
  vertical-align: middle;
  color: currentColor;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Service icons color change - FIXED */
.service-icon-box svg path {
  fill: hsl(200, 100%, 55%); /* Light mode: blue */
}

[data-theme="dark"] .service-icon-box svg path {
  fill: hsl(45, 100%, 72%); /* Dark mode: yellow */
}

/*-----------------------------------*\
  #NAVBAR
\*-----------------------------------*/

.navbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: hsla(0, 0%, 100%, 0.9);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
          backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid var(--jet);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -6px 24px hsla(0, 0%, 0%, 0.08);
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 10px env(safe-area-inset-bottom);
}

.navbar-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  flex: 1; /* Takes remaining space */
}

.navbar-link {
  position: relative;
  color: var(--light-gray);
  font-size: var(--fs-8);
  font-weight: var(--fw-500);
  letter-spacing: 0.3px;
  padding: 18px 10px;
  transition: color var(--transition-1);
}

.navbar-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--text-gradient-yellow);
  transform: translateX(-50%);
  transition: width var(--transition-3);
}

.navbar-link:hover,
.navbar-link:focus { color: var(--white-2); }

.navbar-link.active {
  color: var(--orange-yellow-crayola);
}

.navbar-link.active::after { width: 18px; }

/*-----------------------------------*\
  #ABOUT
\*-----------------------------------*/

.about .article-title { margin-bottom: 15px; }

.about-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
}

.about-text p { margin-bottom: 15px; }

/*-----------------------------------*\
  #ACHIEVEMENTS SECTION
\*-----------------------------------*/

.achievements {
  margin: 40px 0;
}

.achievements-title {
  margin-bottom: 25px;
  text-align: center;
}

.achievements-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: var(--border-gradient-onyx);
  border-radius: 16px;
  box-shadow: var(--shadow-2);
  position: relative;
  z-index: 1;
  transition: var(--transition-2);
}

.achievement-item::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
  transition: var(--transition-2);
}

/* Only apply hover effects for the card itself, not the symbols */
@media (hover: hover) {
  .achievement-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-3);
  }
}

/* Make symbols always visible with enhanced styling */
.achievement-item::before {
  background: var(--bg-gradient-yellow-2);
}

.achievement-icon {
  width: 50px;
  height: 50px;
  background: var(--text-gradient-yellow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--eerie-black-2);
  flex-shrink: 0;
  transition: var(--transition-2);
  transform: scale(1.05);
}

.achievement-content {
  flex: 1;
}

.achievement-title {
  color: var(--white-2);
  font-size: var(--fs-4);
  font-weight: var(--fw-600);
  margin-bottom: 5px;
  line-height: 1.3;
}

.achievement-description {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.5;
}

/*-----------------------------------*\
  #TESTIMONIALS SECTION
\*-----------------------------------*/

.testimonials {
  margin: 40px 0;
}

.testimonials-title {
  margin-bottom: 30px;
  text-align: center;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.testimonial-item {
  background: var(--border-gradient-onyx);
  padding: 25px;
  border-radius: 20px;
  box-shadow: var(--shadow-2);
  position: relative;
  z-index: 1;
  transition: var(--transition-2);
}

.testimonial-item::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
  transition: var(--transition-2);
}

.testimonial-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-4);
}

.testimonial-item:hover::before {
  background: var(--bg-gradient-yellow-2);
}

.testimonial-content {
  margin-bottom: 20px;
}

.testimonial-text {
  color: var(--light-gray);
  font-size: var(--fs-5);
  font-weight: var(--fw-300);
  line-height: 1.7;
  font-style: italic;
  position: relative;
  padding-left: 20px;
}

.testimonial-text::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -5px;
  font-size: 24px;
  color: var(--orange-yellow-crayola);
  font-weight: var(--fw-600);
}

.testimonial-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.author-info {
  flex: 1;
}

.author-name {
  color: var(--white-2);
  font-size: var(--fs-5);
  font-weight: var(--fw-600);
  margin-bottom: 3px;
}

.author-title {
  color: var(--light-gray-70);
  font-size: var(--fs-7);
  font-weight: var(--fw-300);
}

.testimonial-rating {
  flex-shrink: 0;
}

.stars {
  color: var(--orange-yellow-crayola);
  font-size: var(--fs-5);
  letter-spacing: 2px;
}

/**
 * #service 
 */

.service { margin-bottom: 35px; }

.service-title { margin-bottom: 20px; }

.service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-item {
  position: relative;
  background: var(--border-gradient-onyx);
  padding: 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  z-index: 1;
}

.service-item::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.service-icon-box { 
  margin-bottom: 10px;
  display: flex; /* FIXED: Center the icon */
  justify-content: center;
  align-items: center;
}

.service-icon-box img { margin: auto; }

.service-content-box { text-align: center; }

.service-item-title { margin-bottom: 7px; }

.service-item-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-3);
  line-height: 1.6;
}


.modal-container::-webkit-scrollbar { display: none; }

.modal-container.active {
  pointer-events: all;
  visibility: visible;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: hsl(0, 0%, 0%, 0.3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
  transition: var(--transition-1);
}

.overlay.active {
  opacity: 0.8;
  visibility: visible;
  pointer-events: all;
}


.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--onyx);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white-2);
  font-size: 18px;
  opacity: 0.7;
}

.modal-close-btn:hover,
.modal-close-btn:focus { opacity: 1; }

.modal-close-btn ion-icon { --ionicon-stroke-width: 50px; }

.modal-avatar-box {
  background: var(--bg-gradient-onyx);
  width: max-content;
  border-radius: 14px;
  margin-bottom: 15px;
  box-shadow: var(--shadow-2);
}

.modal-img-wrapper > img { display: none; }

.modal-title { margin-bottom: 4px; }

.modal-content time {
  font-size: var(--fs-6);
  color: var(--light-gray-70);
  font-weight: var(--fw-300);
  margin-bottom: 10px;
}

.modal-content p {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
}


/*-----------------------------------*\
  #RESUME
\*-----------------------------------*/

.article-title { margin-bottom: 30px; }

/**
 * education and experience 
 */

.timeline { margin-bottom: 30px; }

.timeline .title-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.timeline-list {
  font-size: var(--fs-6);
  margin-left: 45px;
}

.timeline-item { position: relative; }

.timeline-item:not(:last-child) { margin-bottom: 20px; }

.timeline-item-title {
  font-size: var(--fs-6);
  line-height: 1.3;
  margin-bottom: 7px;
}

.timeline-list span {
  color: var(--vegas-gold);
  font-weight: var(--fw-400);
  line-height: 1.6;
}

.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  top: -25px;
  left: -30px;
  width: 1px;
  height: calc(100% + 50px);
  background: var(--jet);
}

.timeline-item::after {
  content: "";
  position: absolute;
  top: 5px;
  left: -33px;
  height: 6px;
  width: 6px;
  background: var(--text-gradient-yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--jet);
}

.timeline-text {
  color: var(--light-gray);
  font-weight: var(--fw-300);
  line-height: 1.6;
}

/**
 * Updated Skills Section - Matching your existing design system
 */

 .skills-title { 
  margin-bottom: 20px; 
}

.skills-list { 
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.skills-item {
  position: relative;
  background: var(--border-gradient-onyx);
  padding: 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  cursor: pointer;
  z-index: 1;
  transition: var(--transition-1);
}

.skills-item::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
  transition: var(--transition-1);
}

.skills-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-3);
}

.skills-item:hover::before {
  background: var(--bg-gradient-yellow-2);
}

.skill-icon-box {
  position: relative;
  background: var(--border-gradient-onyx);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  color: var(--orange-yellow-crayola);
  box-shadow: var(--shadow-1);
  z-index: 1;
  margin-bottom: 15px;
  transition: var(--transition-1);
}

.skill-icon-box::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--eerie-black-1);
  border-radius: inherit;
  z-index: -1;
}

.skills-item:hover .skill-icon-box {
  background: var(--bg-gradient-yellow-1);
  transform: scale(1.1);
}

.skills-item:hover .skill-icon-box::before {
  background: var(--bg-gradient-yellow-2);
}

.skill-content-box {
  text-align: left;
}

.skill-item-title {
  color: var(--white-2);
  font-size: var(--fs-4);
  font-weight: var(--fw-500);
  margin-bottom: 8px;
  line-height: 1.3;
}

.skill-item-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
}

/* Remove old progress bar styles completely */
.skill .title-wrapper,
.skill-progress-bg,
.skill-progress-fill {
  display: none !important;
}

/* Responsive design matching your existing breakpoints */
@media (min-width: 580px) {
  .skills-item {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 18px;
    padding: 30px;
  }
  .cv-download-btn{
    margin-left : 1px;
  }

  .skill-icon-box {
    margin-bottom: 0;
    margin-top: 5px;
    flex-shrink: 0;
  }

  .skill-content-box { 
    text-align: left; 
    flex: 1;
  }
  
}

@media (min-width: 768px) {
  .skills-list {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
 
}

@media (min-width: 1024px) {
  .skills-list {
    grid-template-columns: 1fr 1fr;
    gap: 20px 25px;
  }
  
}

/* Mobile navbar: single line, compact height — covers all iPhone widths (≤ 579px) */
@media (max-width: 579px) {
  .navbar {
    padding: 0 6px env(safe-area-inset-bottom);
    border-radius: 14px 14px 0 0;
    min-height: 48px;
  }

  .navbar-list {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: center;
    gap: 0;
  }

  .navbar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    min-width: 0;
    padding: 10px 4px;
    font-size: 11px;
    letter-spacing: 0.2px;
    white-space: nowrap;
    line-height: 1;
  }

  .navbar-link::after { bottom: 4px; }

  .theme-toggle-mobile {
    width: 34px;
    height: 34px;
    margin-left: 4px;
    flex-shrink: 0;
  }

  .back-to-top {
    right: calc(12px + env(safe-area-inset-right));
    bottom: calc(62px + env(safe-area-inset-bottom));
  }
}

/* Very narrow phones (≤ 360px): shrink further to avoid horizontal overflow */
@media (max-width: 360px) {
  .navbar-link { font-size: 10px; padding: 10px 2px; }
}

/*-----------------------------------*\
  #PORTFOLIO
\*-----------------------------------*/

.filter-list { display: none; }

.filter-select-box {
  position: relative;
  margin-bottom: 25px;
}

.filter-select {
  background: var(--eerie-black-2);
  color: var(--light-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--jet);
  border-radius: 14px;
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
}

.filter-select.active .select-icon { transform: rotate(0.5turn); }

.select-list {
  background: var(--eerie-black-2);
  position: absolute;
  top: calc(100% + 6px);
  width: 100%;
  padding: 6px;
  border: 1px solid var(--jet);
  border-radius: 14px;
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.15s ease-in-out;
}

.filter-select.active + .select-list {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.select-item button {
  background: var(--eerie-black-2);
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  text-transform: capitalize;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
}

.select-item button:hover { 
  background: hsl(0, 0%, 92%); 
}

.project-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 10px;
}

.project-item { display: none; }

.project-item.active {
  display: block;
  animation: scaleUp 0.25s ease forwards;
}

@keyframes scaleUp {
  0% { transform: scale(0.5); }
  100% { transform: scale(1); }
}

.project-item > a { width: 100%; }

.project-img {
  position: relative;
  width: 100%;
  height: 250px; /* FIXED: Set consistent height */
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 15px;
  max-height: 180px;
}

.project-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 1;
  transition: var(--transition-1);
}

.project-item > a:hover .project-img::before { 
  background: hsla(0, 0%, 100%, 0.3); 
}

.project-item-icon-box {
  --scale: 0.8;

  background: var(--jet);
  color: var(--orange-yellow-crayola);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(var(--scale));
  font-size: 20px;
  padding: 18px;
  border-radius: 12px;
  opacity: 0;
  z-index: 1;
  transition: var(--transition-1);
}

.project-item > a:hover .project-item-icon-box {
  --scale: 1;
  opacity: 1;
}

.project-item-icon-box ion-icon { --ionicon-stroke-width: 50px; }

.project-img img {
  width: 100%;
  height: 100%; 
  transition: var(--transition-1);
  object-fit: contain; /* CHANGED: from 'cover' to 'contain' to show full image */
  object-position: center;
    max-width: 100%;
  max-height: 100%
}

.project-item > a:hover img { 
  transform: scale(1.05); /* Reduced from 1.1 to prevent overflow */
}

.project-title,
.project-category { margin-left: 10px; }

.project-title {
  color: var(--white-2);
  font-size: var(--fs-5);
  font-weight: var(--fw-400);
  text-transform: capitalize;
  line-height: 1.3;
}

.project-category {
  color: var(--light-gray-70);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
}

/*-----------------------------------*\
  #MOBILE TOUCH HIGHLIGHT FIX
\*-----------------------------------*/

/* FIXED: Remove blue selection/highlight on mobile when tapping project images */
.project-item,
.project-item *,
.project-item a,
.project-item img,
.project-item figure,
.project-img {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
  -webkit-touch-callout: none;
  outline: none;
}

/* Specific fix for project links on mobile */
.project-item a {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-focus-ring-color: rgba(255, 255, 255, 0);
  outline: none !important;
  -webkit-touch-callout: none;
}

.project-item a:focus,
.project-item a:active,
.project-item a:visited,
.project-item a:hover {
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
  box-shadow: none !important;
}

/* Ensure project images don't show selection on mobile */
.project-img img {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
}

/* Additional mobile-specific fixes */
@media (max-width: 768px) {
  .project-item,
  .project-item * {
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  
  .project-item a,
  .project-img {
    -webkit-tap-highlight-color: rgba(0,0,0,0) !important;
    -webkit-touch-callout: none !important;
  }
  
  /* FIXED: Hide eye icon on mobile devices */
  .project-item-icon-box {
    display: none !important;
  }
  
  /* Fix back-to-top button position on tablets to avoid overlap with theme toggle */
  .back-to-top {
    bottom: 70px; /* Move higher to avoid theme toggle button */
  }
  
  /* Disable hover effects on mobile */
  .project-item > a:hover .project-img::before,
  .project-item > a:active .project-img::before {
    background: transparent !important;
  }
  
  .project-item > a:hover .project-item-icon-box,
  .project-item > a:active .project-item-icon-box {
    opacity: 0 !important;
  }
}

/*-----------------------------------*\
  #CONTACT
\*-----------------------------------*/

.mapbox {
  position: relative;
  height: 250px;
  width: 100%;
  border-radius: 16px;
  margin-bottom: 30px;
  border: 1px solid var(--jet);
  overflow: hidden;
}

.mapbox figure { height: 100%; }

.mapbox iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(0.2) brightness(1.1);
  transition: var(--transition-1);
}

/* Dark mode map styling */
[data-theme="dark"] .mapbox iframe {
  filter: grayscale(0.8) brightness(0.6) contrast(1.2) hue-rotate(180deg);
}

.contact-form { margin-bottom: 10px; }

.form-title { margin-bottom: 20px; }

.input-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-bottom: 25px;
}

.form-input {
  color: var(--white-2);
  font-size: var(--fs-6);
  font-weight: var(--fw-400);
  padding: 13px 20px;
  border: 1px solid var(--jet);
  border-radius: 14px;
  outline: none;
  background: var(--eerie-black-2);
}

.form-input::placeholder { 
  font-weight: var(--fw-500);
  color: var(--light-gray-70);
}

.form-input:focus { border-color: var(--orange-yellow-crayola); }

textarea.form-input {
  min-height: 100px;
  height: 120px;
  max-height: 200px;
  resize: vertical;
  margin-bottom: 25px;
}

textarea.form-input::-webkit-resizer { display: none; }

.form-input:focus:invalid { border-color: var(--bittersweet-shimmer); }

.form-btn {
  position: relative;
  width: 100%;
  background: var(--border-gradient-onyx);
  color: var(--orange-yellow-crayola);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 14px;
  font-size: var(--fs-6);
  text-transform: capitalize;
  box-shadow: var(--shadow-3);
  z-index: 1;
  transition: var(--transition-1);
}

.form-btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
  transition: var(--transition-1);
}

.form-btn ion-icon { font-size: 16px; }

.form-btn:hover { background: var(--bg-gradient-yellow-1); }

.form-btn:hover::before { background: var(--bg-gradient-yellow-2); }

.form-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-btn:disabled:hover { background: var(--border-gradient-onyx); }

.form-btn:disabled:hover::before { background: var(--bg-gradient-jet); }

/*-----------------------------------*\
  #ENHANCED CONTACT SECTION
\*-----------------------------------*/

.form-subtitle {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
  margin-bottom: 30px;
  text-align: center;
}

.contact-info-section {
  margin-top: 40px;
  padding: 30px;
  background: var(--border-gradient-onyx);
  border-radius: 20px;
  position: relative;
  z-index: 1;
}

.contact-info-section::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.contact-info-title {
  color: var(--white-2);
  font-size: var(--fs-3);
  font-weight: var(--fw-600);
  margin-bottom: 25px;
  text-align: center;
}

.contact-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: var(--eerie-black-1);
  border-radius: 12px;
  transition: var(--transition-1);
}

.contact-method:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.contact-method ion-icon {
  font-size: 24px;
  color: var(--orange-yellow-crayola);
  flex-shrink: 0;
}

.contact-method h5 {
  color: var(--white-2);
  font-size: var(--fs-5);
  font-weight: var(--fw-600);
  margin-bottom: 3px;
}

.contact-method p {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
}

/*-----------------------------------*\
  #RESPONSIVE
\*-----------------------------------*/

/**
 * responsive larger than 450px screen
 */

@media (min-width: 450px) {

  /**
   * #PORTFOLIO,  
   */

  .project-img { height: 280px; }
  

}

/**
 * responsive larger than 580px screen
 */

@media (min-width: 580px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
     * typography
     */

    --fs-1: 32px;
    --fs-2: 24px;
    --fs-3: 26px;
    --fs-4: 18px;
    --fs-6: 15px;
    --fs-7: 15px;
    --fs-8: 12px;

  }

  /**
   * #REUSED STYLE
   */

  .sidebar, article {
    width: 520px;
    margin-inline: auto;
    padding: 30px;
  }

  .article-title {
    font-weight: var(--fw-600);
    padding-bottom: 15px;
  }

  .article-title::after {
    width: 40px;
    height: 5px;
  }

  .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 18px;
  }

  /**
   * #MAIN
   */

  main {
    margin-top: 60px;
    margin-bottom: 100px;
  }

  /**
   * #SIDEBAR
   */

  .sidebar {
    max-height: 180px;
    margin-bottom: 30px;
  }

  /* FIXED: Increased max-height for larger screens to accommodate social icons and CV button */
  .sidebar.active { max-height: 700px; }

  .sidebar-info { gap: 40px; }

  .avatar-box { border-radius: 30px; }

  .avatar-box img { 
    width: 120px; 
    height: 120px; 
    border-radius: 27px; /* FIXED: Adjusted for larger padding */
  }

  .info-content .name { margin-bottom: 15px; }

  .info-content .title { padding: 5px 18px; }

  .info_more-btn {
    top: -30px;
    right: -30px;
    padding: 10px 15px;
  }

  .info_more-btn span {
    display: block;
    font-size: var(--fs-8);
  }

  .info_more-btn ion-icon { display: none; }

  .separator { margin: 32px 0; }

  .contacts-list { gap: 20px; }

  .contact-info {
    max-width: calc(100% - 64px);
    width: calc(100% - 64px);
  }

  /**
   * #NAVBAR
   */

  .navbar { border-radius: 20px 20px 0 0; }

  .navbar-list { gap: 20px; }

  .navbar-link { --fs-8: 14px; }

  /**
   * #ABOUT
   */

  .about .article-title { margin-bottom: 20px; }

  .about-text { margin-bottom: 40px; }

  /* service */

  .service-item {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 18px;
    padding: 30px;
  }

  .service-icon-box {
    margin-bottom: 0;
    margin-top: 5px;
  }

  .service-content-box { text-align: left; }

  /* achievements responsive */
  .achievements-grid {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }

  /* testimonials responsive */
  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  /* contact methods responsive */
  .contact-methods {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 25px;
  }

  .content-card {
    padding: 30px;
    padding-top: 25px;
  }

  .modal-container { padding: 20px; }

  .modal-img-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .modal-avatar-box {
    border-radius: 18px;
    margin-bottom: 0;
  }

  .modal-avatar-box img { width: 65px; }

  .modal-img-wrapper > img {
    display: block;
    flex-grow: 1;
    width: 35px;
  }

  /**
   * #RESUME
   */

  .timeline-list { margin-left: 65px; }

  .timeline-item:not(:last-child)::before { left: -40px; }

  .timeline-item::after {
    height: 8px;
    width: 8px;
    left: -43px;
  }

  .skills-item:not(:last-child) { margin-bottom: 25px; }

  /**
   * #PORTFOLIO
   */

  .project-img { border-radius: 16px; height: 300px; }

  /**
   * #CONTACT
   */

  .mapbox {
    height: 380px;
    border-radius: 18px;
  }

  .input-wrapper {
    gap: 30px;
    margin-bottom: 30px;
  }

  .form-input { padding: 15px 20px; }

  textarea.form-input { margin-bottom: 30px; }

  .form-btn {
    --fs-6: 16px;
    padding: 16px 20px;
  }

  .form-btn ion-icon { font-size: 18px; }

}

/**
 * responsive larger than 768px screen
 */

@media (min-width: 768px) {

  /**
   * REUSED STYLE
   */

  .sidebar, article { width: 700px; }

  .has-scrollbar::-webkit-scrollbar-button { width: 100px; }

  /**
   * SIDEBAR
   */

  .contacts-list {
    grid-template-columns: 1fr 1fr;
    gap: 30px 15px;
  }

  /**
   * NAVBAR
   */

  .navbar-link { --fs-8: 15px; }

  /**
   * ABOUT
   */

  .modal-avatar-box img { width: 80px; }

  /**
   * PORTFOLIO
   */

  .article-title { padding-bottom: 20px; }

  .filter-select-box { display: none; }

  .filter-list {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 25px;
    padding-left: 5px;
    margin-bottom: 30px;
  }

  .filter-item button {
    color: var(--light-gray);
    font-size: var(--fs-5);
    transition: var(--transition-1);
  }

  .filter-item button:hover { color: var(--light-gray-70); }

  .filter-item button.active { color: var(--orange-yellow-crayola); }

  /* portfolio */

  .project-list { grid-template-columns: 1fr 1fr; }

  /**
   * CONTACT
   */

  .input-wrapper { grid-template-columns: 1fr 1fr; }

  .form-btn {
    width: max-content;
    margin-left: auto;
  }
  
  
}

/**
 * responsive larger than 1024px screen
 */

@media (min-width: 1024px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
    * shadow
    */

    --shadow-1: 0 4px 12px hsla(0, 0%, 0%, 0.06);
    --shadow-2: 0 8px 20px hsla(0, 0%, 0%, 0.04);
    --shadow-3: 0 8px 25px hsla(0, 0%, 0%, 0.06);

  }

  /**
   * REUSED STYLE
   */

  .sidebar, article {
    width: 950px;
    box-shadow: var(--shadow-5);
  }

  /**
   * MAIN 
   */

  main { margin-bottom: 60px; }

  .main-content {
    position: relative;
    width: max-content;
    margin: auto;
  }
  .cv-download-btn{
    margin-left : 1px;
  }

  /**
   * NAVBAR
   */

  .navbar {
    position: absolute;
    bottom: auto;
    top: 0;
    left: auto;
    right: 0;
    width: max-content;
    border-radius: 0 20px;
    padding: 0 20px;
    box-shadow: none;
  }

  .navbar-list {
    gap: 30px;
    padding: 0 20px;
  }

  .navbar-link { font-weight: var(--fw-500); }

  /**
   * ABOUT
   */

  /* service */

  .service-list {
    grid-template-columns: 1fr 1fr;
    gap: 20px 25px;
  }

  /**
   * PORTFOLIO
   */

  .project-list { grid-template-columns: repeat(3, 1fr); }
  
}

/**
 * responsive larger than 1250px screen
 */

@media (min-width: 1250px) {

  /**
   * RESET
   */

  body::-webkit-scrollbar { width: 20px; }

  body::-webkit-scrollbar-track { background: var(--smoky-black); }

  body::-webkit-scrollbar-thumb {
    border: 5px solid var(--smoky-black);
    background: hsla(0, 0%, 0%, 0.1);
    border-radius: 20px;
    box-shadow: inset 1px 1px 0 hsla(0, 0%, 0%, 0.11),
                inset -1px -1px 0 hsla(0, 0%, 0%, 0.11);
  }

  body::-webkit-scrollbar-thumb:hover { background: hsla(0, 0%, 0%, 0.15); }

  body::-webkit-scrollbar-button { height: 60px; }

  /**
   * REUSED STYLE
   */

  .sidebar, article { width: auto; }

  article { min-height: 100%; }

  /**
   * MAIN
   */

  main {
    max-width: 1200px;
    margin-inline: auto;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 25px;
  }
  .cv-download-btn{
      margin-left : 40px;
    
  }

  .main-content {
    min-width: 75%;
    width: 75%;
    margin: 0;
  }

  /**
   * SIDEBAR
   */

  .sidebar {
    position: sticky;
    top: 60px;
    max-height: max-content;
    height: 100%;
    margin-bottom: 0;
    padding-top: 60px;
    z-index: 1;
  }

  .sidebar-info { 
    flex-direction: column;
    text-align: center; /* FIXED: Center align for desktop */
    
  }

  .info-content {
    align-items: center; /* FIXED: Center align content */
    text-align: center;
  }

  .avatar-box img { 
    width: 150px; 
    height: 150px; 
    border-radius: 17px; /* FIXED: Adjusted for desktop */
  }

  .info-content .name {
    white-space: nowrap;
    text-align: center;
  }

  .info-content .title { margin: auto; }

  .info_more-btn { display: none; }

  .sidebar-info_more {
    opacity: 1;
    visibility: visible;
  }

  .contacts-list { grid-template-columns: 1fr; }

  .contact-info :is(.contact-link) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .contact-info :is(.contact-link, time, address) {
    --fs-7: 14px;
    font-weight: var(--fw-300);
  }

  .separator:last-of-type {
    margin: 15px 0;
    opacity: 0;
  }

  .social-list { justify-content: center; }

  /**
	 * RESUME
	 */

  .timeline-text { max-width: 700px; }
  

}

/* FIXED: Mobile theme toggle visibility and synchronization */
@media (max-width: 580px) {
  .theme-toggle {
    display: none;
  }
  
  .theme-toggle-mobile {
    display: flex;
  }

  /* Mobile navbar layout — compact, single-line, with mobile theme toggle */
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px env(safe-area-inset-bottom);
    min-height: 48px;
  }

  .navbar-list {
    flex: 1;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: center;
    gap: 0;
    min-width: 0;
  }

  .theme-toggle-mobile {
    margin: 0 0 0 4px;
    flex-shrink: 0;
  }

  /* FIXED: Ensure social icons are fully visible on mobile */
  .social-list {
    padding: 25px 7px 20px 7px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .social-item .social-link {
    padding: 10px;
    margin: 2px;
  }

  /* FIXED: Increased sidebar active height for mobile to show all content including CV button */
  .sidebar.active { 
    max-height: 550px; 
  }

  /* FIXED: Ensure achievements section is visible on mobile */
  .achievements {
    margin: 30px 0;
    display: block !important;
  }

  .achievements-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  .achievement-item {
    display: flex !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  /* Make achievement content always visible on mobile */
  .achievement-item::before {
    background: var(--bg-gradient-yellow-2) !important;
  }

  .achievement-icon {
    background: var(--text-gradient-yellow) !important;
    transform: scale(1.05) !important;
  }

  .achievement-title,
  .achievement-description {
    opacity: 1 !important;
    visibility: visible !important;
  }
  
}

/*-----------------------------------*\
  #PROJECT MODAL
\*-----------------------------------*/

.project-modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1000;
  transition: var(--transition-1);
  padding: 20px;
  box-sizing: border-box;
}

.project-modal-container.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.project-modal {
  position: relative;
  background: var(--eerie-black-2);
  border: 1px solid var(--jet);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-5);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  transform: scale(0.8);
  transition: var(--transition-2);
}

.project-modal-container.active .project-modal {
  transform: scale(1);
}

.project-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--onyx);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white-2);
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition-1);
  z-index: 1001;
}

.project-modal-close:hover {
  background: var(--orange-yellow-crayola);
  color: var(--eerie-black-2);
}

.project-modal-header {
  text-align: center;
  margin-bottom: 30px;
}

.project-modal-title {
  color: var(--white-2);
  font-size: var(--fs-1);
  font-weight: var(--fw-600);
  margin-bottom: 10px;
}

.project-modal-category {
  color: var(--orange-yellow-crayola);
  font-size: var(--fs-6);
  font-weight: var(--fw-400);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-modal-content {
  display: grid;
  gap: 25px;
  max-height: calc(90vh - 200px);
  overflow-y: auto;
  padding-right: 10px;
  margin-right: -10px;
}

.project-modal-image-item {
  background: var(--border-gradient-onyx);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.project-modal-image-item::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}

.project-modal-image {
  width: 100%;
  height: auto;
  min-height: 200px;
  max-height: 300px;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  margin-bottom: 15px;
  transition: var(--transition-1);
  background: var(--eerie-black-1);
}

.project-modal-image:hover {
  transform: scale(1.02);
}

.project-modal-video {
  width: 100%;
  height: auto;
  min-height: 200px;
  max-height: 400px;
  border-radius: 12px;
  margin-bottom: 15px;
  transition: var(--transition-1);
  background: var(--eerie-black-1);
}

.project-modal-video:hover {
  transform: scale(1.02);
}

.project-modal-image-title {
  color: var(--white-2);
  font-size: var(--fs-4);
  font-weight: var(--fw-500);
  margin-bottom: 10px;
}

.project-modal-image-description {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
}

/* Project modal content scrollbar */
.project-modal-content::-webkit-scrollbar {
  width: 8px;
}

.project-modal-content::-webkit-scrollbar-track {
  background: var(--onyx);
  border-radius: 4px;
}

.project-modal-content::-webkit-scrollbar-thumb {
  background: var(--orange-yellow-crayola);
  border-radius: 4px;
}

/* Firefox scrollbar styling */
.project-modal-content {
  scrollbar-width: thin;
  scrollbar-color: var(--orange-yellow-crayola) var(--onyx);
}

/* Dark mode adjustments */
[data-theme="dark"] .project-modal-container {
  background: rgba(0, 0, 0, 0.9);
}

/* Responsive design */
@media (max-width: 768px) {
  .project-modal {
    padding: 20px;
    margin: 10px;
  }
  
  .project-modal-close {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
  
  .project-modal-title {
    font-size: var(--fs-2);
  }
  
  .project-modal-image {
    height: auto;
    min-height: 180px;
    max-height: 250px;
  }
  .cv-download-btn{
    margin-left : 1px;
  }
  .sidebar{
    max-height: 135px;
  }
  
}

@media (max-width: 480px) {
  .project-modal {
    padding: 15px;
  }
  
  .project-modal-image {
    height: auto;
    min-height: 160px;
    max-height: 220px;
  }
  
  .project-modal-content {
    gap: 20px;
  }
  .cv-download-btn{
    margin-left : 1px;
  }
  .sidebar{
    max-height: 135px;
  }

  /* Fix back-to-top button position on mobile to avoid overlap with theme toggle */
  .back-to-top {
    bottom: 65px; /* Move higher to avoid theme toggle button */
    right: 15px;
  }
}

@media (min-width : 580px )and (max-width: 780px) {
  .sidebar{
    max-height: 180px;
  }
}

/* ----------------------------------
   Certifications styles (matches Projects look)
   ---------------------------------- */
.certificates { margin: 20px 0 10px; }

.cert-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 18px;
}

.cert-item {
  background: var(--border-gradient-onyx);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow-2);
  display: flex;
  gap: 16px;
  align-items: center;
}

.cert-img {
  width: 120px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--eerie-black-1);
}

.cert-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cert-title {
  color: var(--white-2);
  font-size: var(--fs-5);
  font-weight: var(--fw-500);
  margin-bottom: 4px;
}

.cert-org {
  color: var(--light-gray);
  font-size: var(--fs-7);
  margin-bottom: 8px;
}

.cert-link {
  margin-left: auto;
  background: var(--border-gradient-onyx);
  color: var(--orange-yellow-crayola);
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: var(--fw-500);
  box-shadow: var(--shadow-1);
}

.cert-link:hover { transform: translateY(-2px); }

@media (min-width: 768px) {
  .cert-list { grid-template-columns: 1fr 1fr; }
}

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

/* Mobile navbar rules consolidated above (≤ 579px) — keeps a single source of truth. */

/*-----------------------------------*\
  #PROJECT CARDS — STATUS CHIP + TECH STACK
\*-----------------------------------*/

.project-img { position: relative; }

.project-status {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: var(--fw-600);
  letter-spacing: 0.3px;
  line-height: 1;
  color: #fff;
  background: hsla(0, 0%, 0%, 0.55);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px hsla(0, 0%, 0%, 0.18);
  pointer-events: none;
}

.project-status ion-icon { font-size: 13px; }

.status-live     { background: linear-gradient(135deg, hsl(145, 70%, 40%), hsl(160, 70%, 38%)); }
.status-award    { background: linear-gradient(135deg, hsl(35, 90%, 52%),  hsl(20, 90%, 52%)); }
.status-ai       { background: linear-gradient(135deg, hsl(265, 70%, 55%), hsl(225, 75%, 55%)); }
.status-intern   { background: linear-gradient(135deg, hsl(200, 80%, 50%), hsl(220, 75%, 50%)); }
.status-academic { background: linear-gradient(135deg, hsl(0, 0%, 35%),   hsl(0, 0%, 25%)); }

/*-----------------------------------*\
  #LANGUAGES SECTION
\*-----------------------------------*/

.languages { margin-bottom: 30px; }

.languages-title { margin-bottom: 20px; }

.languages-list {
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.language-item { position: relative; }

.language-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.language-name {
  font-size: var(--fs-5);
  font-weight: var(--fw-600);
  color: var(--white-2);
  margin: 0;
}

.language-level {
  font-size: var(--fs-7);
  font-weight: var(--fw-500);
  color: var(--orange-yellow-crayola);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.language-bar {
  position: relative;
  width: 100%;
  height: 6px;
  background: hsla(0, 0%, 50%, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.language-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--text-gradient-yellow);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 580px) {
  .languages-list { grid-template-columns: 1fr 1fr; gap: 22px 28px; }
}

.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding: 0;
}

.project-stack li {
  font-size: 10.5px;
  font-weight: var(--fw-500);
  color: var(--light-gray);
  letter-spacing: 0.2px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--onyx);
  border: 1px solid var(--jet);
  line-height: 1;
}

[data-theme="dark"] .project-stack li {
  color: var(--light-gray);
  background: hsla(0, 0%, 100%, 0.04);
  border-color: hsla(0, 0%, 100%, 0.08);
}

/*-----------------------------------*\
  #PROJECT MODAL — META + TAGS + ACTIONS
\*-----------------------------------*/

.project-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  margin-bottom: 14px;
}

.project-modal-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--light-gray);
  font-size: var(--fs-7);
  font-weight: var(--fw-500);
}

.project-modal-meta-item ion-icon {
  color: var(--orange-yellow-crayola);
  font-size: 16px;
}

.project-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 20px;
}

.project-modal-tag {
  font-size: 11.5px;
  font-weight: var(--fw-500);
  letter-spacing: 0.2px;
  color: var(--orange-yellow-crayola);
  background: hsla(200, 100%, 55%, 0.08);
  border: 1px solid hsla(200, 100%, 55%, 0.22);
  padding: 4px 10px;
  border-radius: 999px;
  line-height: 1.3;
}

[data-theme="dark"] .project-modal-tag {
  background: hsla(45, 100%, 72%, 0.10);
  border-color: hsla(45, 100%, 72%, 0.25);
}

.project-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 26px;
}

.modal-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: var(--fs-7);
  font-weight: var(--fw-600);
  letter-spacing: 0.2px;
  text-decoration: none;
  border: 1px solid var(--jet);
  color: var(--white-2);
  background: var(--eerie-black-1);
  transition: var(--transition-1);
  box-shadow: var(--shadow-1);
}

.modal-action-btn ion-icon { font-size: 18px; }

.modal-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--orange-yellow-crayola);
  color: var(--orange-yellow-crayola);
}

.modal-action-btn.primary {
  background: var(--text-gradient-yellow);
  color: var(--eerie-black-2);
  border-color: transparent;
}

.modal-action-btn.primary:hover {
  color: var(--eerie-black-2);
  filter: brightness(1.05);
}

.modal-action-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: var(--fs-7);
  font-weight: var(--fw-500);
  color: var(--light-gray);
  background: hsla(0, 0%, 50%, 0.08);
  border: 1px dashed var(--jet);
  border-radius: 10px;
}

.modal-action-note ion-icon {
  font-size: 16px;
  color: var(--light-gray);
}




/* Show the Projects subtitle only on mobile devices */
article.portfolio .form-subtitle {
  display: none; /* hide on desktop and larger screens */
}

@media (max-width: 768px) {
  article.portfolio .form-subtitle {
    display: block; /* visible on mobile/tablet */
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: var(--light-gray);
    text-align: center;
  }
}
