/* POPPINS FONT */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

/* ABRI FATFACE FONT */
@import url("https://fonts.googleapis.com/css2?family=Abril+Fatface&display=swap");

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

html {
  font-size: 13px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  background: var(--body-color);
  color: var(--text-color-primary);
  transition: background-color 0.3s var(--ease-out-quad),
    color 0.3s var(--ease-out-quad);
  transform: none !important;
  zoom: unset !important;
}

/* ----- VARIABLES ----- */
:root {
  --body-color: #ffffff;
  --color-white: #ffffff;
  --black-color: #1a1a1a;
  --dark-blue: #372461;

  --text-color-primary: #1a1a1a;
  --text-color-second: #666666;
  --text-color-third: #1e9fab;

  --first-color: #6429ef;
  --first-color-hover: #502dff;
  --first-color-light: rgba(100, 41, 239, 0.1);
  --gradient-primary: linear-gradient(135deg, #6429ef 0%, #8a2be2 100%);
  --gradient-secondary: linear-gradient(135deg, #00c9ff 0%, #92fe9d 100%);
  --gradient-accent: linear-gradient(135deg, #ff6b6b 0%, #ffe66d 100%);

  --second-color: #00c9ff;
  --third-color: #c0a631;

  --background-color: #f8faff;
  --card-background: rgba(255, 255, 255, 0.98);
  --glass-background: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --box-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
  --box-shadow-strong: 0 6px 25px rgba(100, 41, 239, 0.15);

  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 20px;

  --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in-out-back: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition-fast: 0.2s;
  --transition-normal: 0.3s;
  --transition-slow: 0.4s;
}

/* ----- DARK MODE COLOR VARIABLES ----- */
body.dark-mode {
  --black-color: #ffffff;
  --dark-blue: #8a2be2;
  --body-color: #0a0a0a;
  --background-color: #121212;
  --card-background: rgba(25, 25, 25, 0.98);
  --glass-background: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --box-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.4);
  --box-shadow-strong: 0 6px 25px rgba(100, 41, 239, 0.2);
  --text-color-primary: #ffffff;
  --text-color-second: #b0b0b0;
  --first-color-light: rgba(100, 41, 239, 0.15);
}

/* ----- SYSTEM THEME DETECTION ----- */
@media (prefers-color-scheme: dark) {
  body:not(.light-mode) {
    --black-color: #ffffff;
    --dark-blue: #8a2be2;
    --body-color: #0a0a0a;
    --background-color: #121212;
    --card-background: rgba(25, 25, 25, 0.98);
    --glass-background: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --box-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.4);
    --box-shadow-strong: 0 6px 25px rgba(100, 41, 239, 0.2);
    --text-color-primary: #ffffff;
    --text-color-second: #b0b0b0;
    --first-color-light: rgba(100, 41, 239, 0.15);
  }
}

/* ----- SKIP LINK ----- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--gradient-primary);
  color: white;
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  font-weight: 500;
  z-index: 1000;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 6px;
}

/* ----- CUSTOM SCROLLBAR ----- */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--background-color);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: 10px;
  border: 2px solid var(--background-color);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--first-color-hover);
}

/* ----- GLASS MORPHISM UTILITY ----- */
.glass-card {
  background: var(--glass-background);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  transition: all var(--transition-normal) var(--ease-out-quad);
}

.glass-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-hover);
  border-color: var(--first-color);
}

/* ----- BUTTON DESIGN ----- */
.btn {
  font-weight: 500;
  padding: 12px 24px;
  background: #f5f5f5;
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all var(--transition-normal) var(--ease-out-quad);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  font-family: inherit;
  isolation: isolate;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn > i {
  margin-left: 8px;
  font-size: 14px;
  transition: transform 0.3s ease;
}

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

.btn:hover > i {
  transform: translateX(2px);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: var(--box-shadow-strong);
}

.btn-secondary {
  background: transparent;
  color: var(--black-color);
  border: 1.5px solid var(--first-color);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--first-color);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* Loading state for buttons */
.btn-loading {
  display: none;
  animation: spin 1s linear infinite;
}

.btn.loading .btn-text {
  opacity: 0.7;
}

.btn.loading .btn-loading {
  display: inline-block;
}

.btn.loading .uil-message {
  display: none;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ----- ICONS DESIGN ----- */
i {
  font-size: 14px;
}

/* ----- NAVIGATION BAR ----- */
nav {
  position: fixed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 90px;
  line-height: 90px;
  background: var(--body-color);
  padding-inline: 8vw;
  transition: all 0.3s var(--ease-out-quad);
  z-index: 100;
  box-shadow: var(--box-shadow);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-logo-profile {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.nav-logo-profile:hover {
  transform: translateY(-2px);
}

.nav-logo-img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--first-color);
  transition: all 0.3s ease;
  box-shadow: var(--box-shadow-strong);
}

.nav-logo-img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(100, 41, 239, 0.3);
}

.nav-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--first-color);
  line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu,
.nav_menu_list {
  display: flex;
}

.nav-menu .nav_list {
  list-style: none;
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: var(--black-color);
  font-weight: 500;
  padding-inline: 15px;
  margin-inline: 20px;
  transition: all 0.3s ease;
  position: relative;
  font-size: 16px;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
}
.nav-link:hover {
  color: var(--first-color);
  transform: translateY(-2px);
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--first-color);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-menu-btn {
  display: none;
}

.nav-menu-btn i {
  color: var(--black-color);
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.3s ease;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-menu-btn:hover i {
  transform: scale(1.1);
}

#darkModeIcon {
  color: var(--black-color);
  font-size: 1.2rem;
  transition: all 0.4s ease;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#darkModeIcon:hover {
  transform: rotate(15deg) scale(1.1);
}

/* Dark mode moon icon color */
body.dark-mode #darkModeIcon {
  color: #ffd700;
  transform: rotate(180deg);
}

.active-link {
  position: relative;
  color: var(--first-color);
  transition: 0.3s;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent !important;
  backdrop-filter: none !important;
}

.dark-mode-toggle,
.nav-menu-btn {
  background: transparent !important;
  backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
}

.dark-mode-toggle button {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.dark-mode-toggle button:hover {
  background: var(--first-color-light) !important;
  transform: scale(1.1);
}

.nav-menu-btn button {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.nav-menu-btn button:hover {
  background: var(--first-color-light) !important;
  transform: scale(1.1);
}

body.dark-mode .nav-icons,
body.dark-mode .dark-mode-toggle,
body.dark-mode .nav-menu-btn,
body.dark-mode .dark-mode-toggle button,
body.dark-mode .nav-menu-btn button {
  background: transparent !important;
  backdrop-filter: none !important;
}

#darkModeIcon,
.nav-menu-btn i {
  color: var(--text-color-primary) !important;
  background: transparent !important;
}

body.dark-mode #darkModeIcon,
body.dark-mode .nav-menu-btn i {
  color: var(--color-white) !important;
  background: transparent !important;
}

nav .nav-icons > * {
  background: transparent !important;
}

/* ----- WRAPPER DESIGN ----- */
.wrapper {
  padding-inline: 10vw;
}

/* ----- FEATURED BOX ----- */
.featured-box {
  position: relative;
  display: flex;
  height: 100vh;
  min-height: 700px;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 80px;
}

/* ----- FEATURED TEXT BOX ----- */
.featured-text {
  position: relative;
  display: flex;
  justify-content: center;
  align-content: center;
  min-height: 80vh;
  flex-direction: column;
  width: 50%;
  padding-left: 20px;
}

.featured-badge {
  background: var(--gradient-primary);
  color: var(--color-white);
  padding: 8px 20px;
  font-size: 13px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 20px;
  box-shadow: var(--box-shadow-strong);
  width: fit-content;
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  animation: float 3s ease-in-out infinite;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.featured-badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.featured-badge:hover::before {
  left: 100%;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.featured-name {
  font-size: 40px;
  font-weight: 600;
  color: var(--black-color);
  margin-block: 20px;
  line-height: 1.1;
  background: linear-gradient(
    135deg,
    var(--black-color) 0%,
    var(--first-color) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.typedText {
  font-family: "Abril Fatface";
  font-weight: 250;
  text-transform: capitalize;
  color: var(--first-color);
  position: relative;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.typedText::after {
  content: "|";
  animation: blink 1s infinite;
  color: var(--first-color);
  margin-left: 2px;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.featured-text-info {
  font-size: 14px;
  margin-bottom: 30px;
  color: var(--text-color-second);
  line-height: 1.7;
  max-width: 100%;
}

.featured-text-btn {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.featured-text-btn > .btn {
  padding: 14px 28px;
  font-size: 15px;
  flex-shrink: 0;
}

/* ----- SOCIAL ICONS ----- */
.social-icons {
  display: flex;
  margin-top: 1.5em;
  gap: 12px;
}

.icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: var(--box-shadow);
  cursor: pointer;
  transition: all var(--transition-normal) var(--ease-out-quad);
  background: var(--card-background);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.icon:hover::before {
  left: 100%;
}

.icon:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--box-shadow-hover);
  border-color: var(--first-color);
  background: var(--first-color-light);
}

.social-icons .icon a {
  color: var(--black-color);
  transition: all 0.3s ease;
  font-size: 18px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.social-icons .icon:hover a {
  color: var(--first-color);
  transform: scale(1.1);
}

/* ----- FEATURED IMAGE BOX ----- */
.featured-image {
  display: flex;
  justify-content: right;
  align-items: center;
  min-height: 80vh;
  width: 50%;
}

.image {
  margin: auto 0;
  width: 380px;
  height: 380px;
  border-radius: 50% 45% 55% 45%;
  overflow: hidden;
  position: relative;
  z-index: 2;
  box-shadow: var(--box-shadow-strong), 0 0 50px rgba(100, 41, 239, 0.1);
  border: 2px solid var(--glass-border);
  backdrop-filter: blur(5px);
  animation: imgFloat 7s ease-in-out infinite;
  transition: all 0.3s ease;
}

.image::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-primary);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image:hover::before {
  opacity: 1;
}

.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  position: relative;
  z-index: 1;
}

.image:hover img {
  transform: scale(1.05);
}

@keyframes imgFloat {
  50% {
    transform: translateY(10px);
    border-radius: 45% 55% 45% 55%;
  }
}

/* ----- SCROLL BUTTON CONTAINER ----- */
.scroll-btn-container {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 10;
}

.scroll-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 140px;
  height: 44px;
  gap: 8px;
  text-decoration: none;
  color: var(--black-color);
  background: var(--card-background);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-normal) var(--ease-out-quad);
  font-weight: 500;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}

.scroll-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.scroll-btn:hover::before {
  left: 100%;
}

.scroll-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-hover);
  background: var(--gradient-primary);
  color: var(--color-white);
}

.scroll-btn i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.scroll-btn:hover i {
  transform: translateY(2px);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

/* ----- MAIN BOX ----- */
.section {
  padding-block: 5em;
  width: 100%;
}

.row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 40px;
}

.col {
  display: flex;
  width: 50%;
}

/* -- ## --- REUSEABLE CSS -- ## -- */
.top-header {
  text-align: center;
  margin-bottom: 4em;
  position: relative;
}

.top-header h1 {
  font-weight: 700;
  color: var(--black-color);
  margin-bottom: 10px;
  font-size: 3rem;
  position: relative;
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--black-color) 0%,
    var(--first-color) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.top-header h1::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
  box-shadow: 0 3px 15px rgba(100, 41, 239, 0.3);
}

.section-subtitle {
  color: var(--text-color-second);
  font-size: 1.2rem;
  margin-top: 25px;
  font-weight: 500;
  line-height: 1.6;
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--black-color);
  margin-bottom: 15px;
  position: relative;
}

h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

h3:hover::after {
  width: 60px;
}

/* ----- ABOUT INFO ----- */
.about-info {
  position: relative;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: 40px;
  width: 100%;
  background: var(--card-background);
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius-xl);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-normal) var(--ease-out-quad);
  overflow: hidden;
}

.about-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(100, 41, 239, 0.05),
    transparent
  );
  transition: left 0.6s ease;
}

.about-info:hover::before {
  left: 100%;
}

.about-info:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.about-info p {
  text-align: left;
  font-size: 1.05rem;
  color: var(--text-color-second);
  line-height: 1.7;
  margin-bottom: 20px;
}

.about-btn {
  margin-top: 25px;
}

.about-btn button {
  background: var(--gradient-primary);
  color: var(--color-white);
  border-radius: var(--border-radius-sm);
  box-shadow: var(--box-shadow-strong);
  padding: 14px 28px;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 100%;
}

.stat-card {
  display: flex;
  align-items: center;
  padding: 30px;
  background: var(--card-background);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
  transition: all var(--transition-normal) var(--ease-out-quad);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(100, 41, 239, 0.05),
    transparent
  );
  transition: left 0.6s ease;
}

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

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.stat-icon {
  width: 70px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 25px;
  flex-shrink: 0;
  box-shadow: var(--box-shadow-strong);
  transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
}

.stat-icon i {
  font-size: 28px;
  color: white;
}

.stat-content h3 {
  font-size: 2rem;
  margin-bottom: 8px;
  color: var(--first-color);
  font-weight: 700;
}

.stat-content p {
  color: var(--text-color-second);
  font-size: 1rem;
  margin: 0;
  font-weight: 500;
}

/* ----- SKILLS SECTION ----- */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  width: 100%;
}

.skill-category {
  background: var(--card-background);
  border-radius: var(--border-radius-xl);
  padding: 35px;
  box-shadow: var(--box-shadow);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-normal) var(--ease-out-quad);
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(100, 41, 239, 0.03),
    transparent
  );
  transition: left 0.6s ease;
}

.skill-category:hover::before {
  left: 100%;
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.category-header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--glass-border);
}

.category-header i {
  font-size: 28px;
  color: var(--first-color);
  margin-right: 18px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s ease;
}

.skill-category:hover .category-header i {
  transform: scale(1.1);
}

.category-header h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.3s ease;
}

.skill-item:hover {
  transform: translateX(8px);
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-info span:first-child {
  font-weight: 600;
  color: var(--black-color);
  font-size: 1.05rem;
}

.skill-percentage {
  color: var(--first-color);
  font-weight: 700;
  font-size: 1.05rem;
}

.skill-bar {
  height: 10px;
  background: var(--background-color);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.skill-progress {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-sm);
  width: 0;
  transition: width 1.5s var(--ease-out-quad);
  position: relative;
  overflow: hidden;
}

.skill-progress::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* ----- PROJECT FILTER ----- */
.project-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  background: var(--card-background);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  color: var(--text-color-second);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-strong);
}

/* ----- PROJECTS SECTION ----- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 30px;
  width: 100%;
}

.project-card {
  background: var(--card-background);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: all var(--transition-normal) var(--ease-out-quad);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  position: relative;
  opacity: 1;
  transform: scale(1);
}

.project-card.hidden {
  display: none;
  opacity: 0;
  transform: scale(0.8);
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(100, 41, 239, 0.05),
    transparent
  );
  transition: left 0.6s ease;
  z-index: 1;
}

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

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--box-shadow-hover);
}

.project-image {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.project-placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.project-placeholder-img::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.project-placeholder-img i {
  font-size: 60px;
  color: white;
  transition: transform 0.4s ease;
  z-index: 1;
}

.project-card:hover .project-placeholder-img i {
  transform: scale(1.2) rotate(10deg);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 2;
  padding: 20px;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-tech {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

.tech-tag {
  background: var(--first-color);
  color: var(--color-white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--first-color);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.tech-tag:hover {
  background: var(--first-color-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(100, 41, 239, 0.3);
}

.project-quick-view {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-quick-view:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(100, 41, 239, 0.4);
}

.project-content {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--black-color);
  font-weight: 600;
}

.project-content p {
  color: var(--text-color-second);
  line-height: 1.7;
  margin-bottom: 25px;
  flex: 1;
  font-size: 1rem;
}

.project-links {
  display: flex;
  gap: 15px;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  color: var(--first-color);
  border: 1.5px solid var(--first-color);
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-normal) var(--ease-out-quad);
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.btn-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(100, 41, 239, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.btn-link:hover::before {
  left: 100%;
}

.btn-link:hover {
  background: var(--first-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(100, 41, 239, 0.3);
}

.btn-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-link.disabled:hover {
  background: transparent;
  color: var(--first-color);
  transform: none;
}

/* ----- MODAL STYLES ----- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--card-background);
  border-radius: var(--border-radius-xl);
  padding: 40px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.7);
  transition: transform 0.3s ease;
  border: 1px solid var(--glass-border);
  box-shadow: var(--box-shadow-hover);
}

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

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-color-second);
  cursor: pointer;
  transition: color 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  color: var(--first-color);
  background: var(--first-color-light);
}

.modal-body h3 {
  margin-bottom: 20px;
  color: var(--first-color);
}

/* ----- CONTACT SECTION ----- */
.contact-info {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 40px;
  width: 100%;
  height: auto;
  background: var(--card-background);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-normal) var(--ease-out-quad);
}

.contact-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(100, 41, 239, 0.05),
    transparent
  );
  transition: left 0.6s ease;
}

.contact-info:hover::before {
  left: 100%;
}

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

.contact-info > h2 {
  color: var(--black-color);
  margin-bottom: 35px;
  font-size: 2rem;
  width: 100%;
  text-align: left;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--black-color) 0%,
    var(--first-color) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  width: 100%;
  transition: transform 0.3s ease;
  padding: 10px;
  border-radius: var(--border-radius-sm);
}

.contact-item:hover {
  transform: translateX(8px);
  background: var(--first-color-light);
}

.contact-item i {
  font-size: 24px;
  color: var(--first-color);
  margin-right: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s ease;
}

.contact-item:hover i {
  transform: scale(1.1);
}

.contact-item h4 {
  color: var(--black-color);
  margin-bottom: 8px;
  font-size: 1.1rem;
  font-weight: 600;
}

.contact-item p {
  color: var(--text-color-second);
  margin: 0;
  font-size: 1.05rem;
}

.contact-social {
  margin-top: 35px;
  width: 100%;
}

.contact-social h3 {
  margin-bottom: 20px;
  font-size: 1.3rem;
  font-weight: 600;
}

/* ----- MODERN FORM ----- */
.modern-form {
  width: 100%;
  background: var(--card-background);
  padding: 40px;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--box-shadow);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  transition: all var(--transition-normal) var(--ease-out-quad);
  position: relative;
  overflow: hidden;
}

.modern-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(100, 41, 239, 0.03),
    transparent
  );
  transition: left 0.6s ease;
}

.modern-form:hover::before {
  left: 100%;
}

.modern-form:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-hover);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-bottom: 20px;
  position: relative;
}

.input-container {
  position: relative;
  width: 100%;
}

.form-input {
  color: var(--black-color);
  width: 100%;
  height: 52px;
  background: var(--card-background);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  padding: 16px 18px 0;
  outline: none;
  transition: all var(--transition-normal) var(--ease-out-quad);
  font-size: 1rem;
  font-weight: 400;
  font-family: inherit;
  position: relative;
  z-index: 2;
}

.form-input:focus {
  border-color: var(--first-color);
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  top: 6px;
  font-size: 0.75rem;
  color: var(--first-color);
  background: var(--card-background);
  padding: 0 6px;
  z-index: 3;
}

.form-label {
  position: absolute;
  top: 16px;
  left: 18px;
  color: var(--text-color-second);
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  pointer-events: none;
  background: var(--card-background);
  padding: 0 4px;
  z-index: 3;
  margin: 0;
}

.input-focus {
  display: none;
}

.form-textarea {
  color: var(--black-color);
  width: 100%;
  height: 140px;
  background: var(--card-background);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  padding: 20px 18px 0;
  outline: none;
  resize: vertical;
  font-size: 1rem;
  transition: all var(--transition-normal) var(--ease-out-quad);
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  line-height: 1.5;
  position: relative;
  z-index: 2;
}

.form-textarea:focus {
  border-color: var(--first-color);
}

.form-textarea:focus + .form-label,
.form-textarea:not(:placeholder-shown) + .form-label {
  top: 8px;
  font-size: 0.75rem;
  color: var(--first-color);
  background: var(--card-background);
  padding: 0 6px;
  z-index: 3;
}

/* Form validation styles */
.form-input.error {
  border-color: #ef4444;
  background: #fef2f2;
}

.form-input.success {
  border-color: #10b981;
  background: #f0fdf4;
}

.field-error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: none;
}

.field-error.show {
  display: block;
}

.form-response {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 1rem;
  font-weight: 600;
  display: none;
}

.form-response.success {
  background: #ecfdf5;
  color: #10b981;
  border: 1px solid #10b981;
  display: block;
}

.form-response.error {
  background: #fef2f2;
  color: #ef4444;
  border: 1px solid #ef4444;
  display: block;
}

/* ----- FORM AUTOFILL STYLES ----- */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus,
.form-textarea:-webkit-autofill,
.form-textarea:-webkit-autofill:hover,
.form-textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-color-primary);
  -webkit-box-shadow: 0 0 0px 1000px var(--card-background) inset;
  border: 1.5px solid var(--first-color);
  transition: background-color 5000s ease-in-out 0s;
}

body.dark-mode .form-input:-webkit-autofill,
body.dark-mode .form-input:-webkit-autofill:hover,
body.dark-mode .form-input:-webkit-autofill:focus,
body.dark-mode .form-textarea:-webkit-autofill,
body.dark-mode .form-textarea:-webkit-autofill:hover,
body.dark-mode .form-textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff;
  -webkit-box-shadow: 0 0 0px 1000px rgba(25, 25, 25, 0.95) inset;
}

.form-button {
  margin-top: 15px;
}

.form-button > .btn {
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 500;
  width: 100%;
  justify-content: center;
}

.form-button i {
  font-size: 18px;
}

/* ----- NEWSLETTER SIGNUP ----- */
.newsletter-signup {
  margin-top: 25px;
  padding: 20px;
  background: var(--first-color-light);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--glass-border);
}

.newsletter-signup p {
  color: var(--text-color-second);
  margin-bottom: 15px;
  font-size: 0.95rem;
  font-weight: 500;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  background: var(--card-background);
  color: var(--text-color-primary);
  font-family: inherit;
  font-size: 0.95rem;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--first-color);
}

.newsletter-form button {
  padding: 12px 20px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-strong);
}

/* ----- FOOTER ----- */
.modern-footer {
  background: var(--body-color);
  padding: 60px 0 30px;
  border-top: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  position: relative;
}

.modern-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gradient-primary);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  flex-wrap: wrap;
  gap: 50px;
}

.footer-brand {
  flex: 1;
  min-width: 280px;
}

.footer-brand h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--first-color);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand p {
  color: var(--text-color-second);
  line-height: 1.7;
  font-size: 1.05rem;
}

.footer-links {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-column {
  min-width: 160px;
}

.footer-column h4 {
  color: var(--black-color);
  margin-bottom: 25px;
  font-size: 1.2rem;
  position: relative;
  font-weight: 600;
  padding-bottom: 10px;
}

.footer-column h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column li {
  margin-bottom: 15px;
}

.footer-column a {
  color: var(--text-color-second);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
  display: inline-block;
  position: relative;
}

.footer-column a::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.footer-column a:hover {
  color: var(--first-color);
  padding-left: 8px;
}

.footer-column a:hover::before {
  width: 100%;
}

.footer-bottom {
  text-align: center;
  margin-top: 60px;
  padding-top: 25px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-color-second);
  font-size: 1rem;
  font-weight: 500;
}

.footer-note {
  margin-top: 10px;
  font-size: 0.95rem;
}

.performance-metrics {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-color-second);
}

/* ----- BACK TO TOP BUTTON ----- */
.back-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal) var(--ease-out-quad);
  z-index: 999;
  box-shadow: var(--box-shadow-strong);
  font-size: 20px;
  overflow: hidden;
}

.back-to-top-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.back-to-top-btn:hover::before {
  left: 100%;
}

.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 30px rgba(100, 41, 239, 0.4);
}

/* ----- PARTICLE BACKGROUND ----- */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
}

/* ----- LOADING ANIMATIONS ----- */
.image-loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ----- ACCESSIBILITY IMPROVEMENTS ----- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for better accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--first-color);
  outline-offset: 2px;
}

/* ----- MEDIA QUERIES ----- */
@media only screen and (max-width: 1200px) {
  .featured-name {
    font-size: 3.2rem;
  }
  .featured-text-info {
    font-size: 1.05rem;
  }
}

@media only screen and (max-width: 1024px) {
  .featured-text {
    padding: 0;
    width: 55%;
  }
  .featured-image {
    width: 45%;
  }
  .image {
    width: 320px;
    height: 320px;
  }
  .featured-name {
    font-size: 2.8rem;
    margin-block: 12px;
  }
  .featured-text-info {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .wrapper {
    padding-inline: 6vw;
  }
  .project-grid {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  }
  .footer-content {
    gap: 40px;
  }
  .footer-links {
    gap: 40px;
  }
  .footer-column {
    min-width: 140px;
  }
}

@media only screen and (max-width: 900px) {
  .featured-box {
    flex-direction: column;
    justify-content: center;
    height: auto;
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 80px;
    gap: 30px;
  }

  .featured-image {
    order: 1;
    justify-content: center;
    min-height: auto;
    width: 100%;
    margin-bottom: 0;
    flex: 0 0 auto;
  }

  .featured-text {
    order: 2;
    width: 100%;
    justify-content: flex-start;
    align-items: flex-start;
    min-height: auto;
    padding-left: 0;
    text-align: left;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 auto;
  }

  .featured-badge {
    margin: 0 0 15px 0;
    text-align: left;
    align-self: flex-start;
    font-size: 12px;
    padding: 6px 14px;
  }

  .featured-name {
    text-align: left;
    width: 100%;
    font-size: 2.4rem;
    margin-block: 10px;
    line-height: 1.1;
  }

  .featured-text-info {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
  }

  .featured-text-btn {
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    margin-bottom: 25px;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .featured-text-btn .btn {
    padding: 12px 22px;
    font-size: 14px;
    min-height: 44px;
    flex: 0 1 auto;
    min-width: 140px;
  }

  .social-icons {
    justify-content: flex-start;
    margin-top: 1em;
    width: 100%;
    gap: 10px;
  }

  .icon {
    width: 42px;
    height: 42px;
  }

  .scroll-btn-container {
    order: 3;
    position: relative;
    bottom: auto;
    margin-top: 30px;
    width: 100%;
  }

  .image {
    width: 200px;
    height: 200px;
  }

  .image img {
    width: 200px;
    height: 200px;
  }

  /* Other sections */
  .row {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
  }

  .col {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .about-info,
  .contact-info {
    width: 100%;
  }

  .project-grid {
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
  }

  .project-card {
    width: 100%;
  }

  .modern-footer {
    padding: 40px 0 20px;
  }

  .footer-content {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 40px;
  }

  .footer-brand {
    flex: 1 1 100%;
    min-width: 100%;
    text-align: center;
    margin-bottom: 20px;
  }

  .footer-links {
    flex: 1 1 100%;
    justify-content: space-between;
    gap: 30px;
  }

  .footer-column {
    flex: 1;
    min-width: 140px;
    text-align: center;
  }

  .footer-column h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-column a:hover {
    padding-left: 0;
  }

  .wrapper {
    padding-top: 80px;
  }

  .top-header h1 {
    font-size: 2.3rem;
  }

  /* Navigation */
  .nav-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 80%;
    max-width: 280px;
    height: 70vh;
    background: var(--card-background);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    box-shadow: var(--box-shadow-hover);
    transition: right 0.3s var(--ease-out-quad);
    border-radius: 18px 0 0 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.3s ease-in-out;
    z-index: 100;
  }

  .nav-menu.responsive {
    right: 0;
  }

  .nav_menu_list {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 0;
    padding: 0;
  }

  .nav_list {
    width: 100%;
    margin: 0;
  }

  .nav-link {
    display: flex;
    align-items: center;
    padding-inline: 15px;
    margin-inline: 20px;
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
    font-size: 15px;
    width: 100%;
  }

  .nav-link:hover,
  .nav-link.active-link {
    color: var(--first-color);
  }

  .nav-button {
    display: none;
  }

  .nav-icons {
    display: flex;
    gap: 20px;
    align-items: center;
  }

  nav {
    z-index: 100;
  }

  .wrapper {
    padding-inline: 5vw;
  }
}

@media only screen and (max-width: 768px) {
  html {
    font-size: 12px;
  }

  .featured-box {
    padding-top: 30px;
    padding-bottom: 60px;
    gap: 25px;
  }

  .featured-name {
    font-size: 2.1rem;
  }

  .featured-text-info {
    font-size: 0.92rem;
  }

  .image {
    width: 180px;
    height: 180px;
  }

  .image img {
    width: 180px;
    height: 180px;
  }

  .featured-badge {
    font-size: 11px;
    padding: 5px 12px;
  }

  .featured-text-btn .btn {
    min-width: 110px;
    max-width: 140px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  nav {
    padding-inline: 5vw;
    height: 80px;
    line-height: 80px;
  }

  .nav-logo-img {
    width: 38px;
    height: 38px;
  }

  .nav-name {
    font-size: 18px;
  }

  .top-header h1 {
    font-size: 2rem;
  }

  .skills-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-content {
    gap: 30px;
  }

  .footer-links {
    gap: 25px;
  }

  .footer-column {
    min-width: 130px;
  }

  .footer-brand h3 {
    font-size: 1.6rem;
  }

  .footer-brand p {
    font-size: 0.95rem;
  }

  .section {
    padding-block: 3.5em;
  }
}

@media only screen and (max-width: 600px) {
  .featured-box {
    padding-top: 25px;
    padding-bottom: 50px;
    gap: 20px;
  }

  .featured-name {
    font-size: 1.9rem;
  }

  .featured-text-info {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .image {
    width: 160px;
    height: 160px;
  }

  .image img {
    width: 160px;
    height: 160px;
  }

  .featured-text-btn {
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
  }

  .featured-text-btn .btn {
    flex: 1;
    min-width: 120px;
    max-width: 160px;
    padding: 10px 18px;
    font-size: 13px;
  }
}

@media only screen and (max-width: 480px) {
  .featured-box {
    padding-top: 20px;
    padding-bottom: 40px;
    min-height: calc(100vh - 80px);
  }

  .featured-name {
    font-size: 1.7rem;
    margin-block: 8px;
  }

  .featured-text-info {
    font-size: 0.85rem;
    margin-bottom: 20px;
    line-height: 1.5;
  }

  .featured-badge {
    font-size: 10px;
    padding: 4px 10px;
    margin-bottom: 12px;
  }

  .image {
    width: 140px;
    height: 140px;
  }

  .image img {
    width: 140px;
    height: 140px;
  }

  .featured-text-btn {
    margin-bottom: 20px;
    gap: 9px;
  }

  .featured-text-btn .btn {
    padding: 10px 16px;
    font-size: 13px;
    min-height: 42px;
    min-width: 110px;
    max-width: 140px;
  }

  .social-icons {
    gap: 8px;
  }

  .icon {
    width: 38px;
    height: 38px;
  }

  .social-icons .icon a {
    font-size: 16px;
  }

  .scroll-btn {
    width: 120px;
    height: 40px;
    font-size: 12px;
  }

  .scroll-btn-container {
    margin-top: 25px;
  }

  /* Project cards */
  .project-content {
    padding: 20px;
  }

  .project-links {
    flex-direction: column;
    gap: 8px;
  }

  .btn-link {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    font-size: 13px;
  }

  .modern-form {
    padding: 25px 20px;
  }

  /* About stats */
  .about-stats {
    gap: 15px;
  }

  .stat-card {
    padding: 20px;
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .stat-icon {
    width: 50px;
    height: 50px;
    margin-right: 0;
    margin-bottom: 12px;
  }

  .stat-icon i {
    font-size: 20px;
  }

  .stat-content h3 {
    font-size: 1.5rem;
  }

  .stat-content p {
    font-size: 0.9rem;
  }

  .top-header h1 {
    font-size: 1.8rem;
  }

  .section {
    padding-block: 3em;
  }

  .back-to-top-btn {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 16px;
  }

  /* Navigation */
  .nav-menu {
    width: 85%;
    max-width: 260px;
    height: 65vh;
  }

  .nav_menu_list {
    padding: 10px;
  }

  .nav-link {
    padding: 10px 12px;
    font-size: 14px;
    margin-inline: 10px;
  }

  .nav-icons {
    gap: 12px;
  }

  #darkModeIcon,
  .nav-menu-btn i {
    min-height: 40px;
    min-width: 40px;
  }

  .nav-logo-img {
    width: 36px;
    height: 36px;
  }

  .nav-name {
    font-size: 16px;
  }

  /* Footer */
  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
  }

  .footer-column {
    flex: 1 1 calc(50% - 20px);
    min-width: calc(50% - 20px);
    text-align: center;
  }

  .footer-column h4 {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }

  .footer-column li {
    margin-bottom: 8px;
  }

  .footer-column a {
    font-size: 0.85rem;
  }

  .footer-bottom {
    margin-top: 30px;
    font-size: 0.85rem;
  }

  .footer-note {
    font-size: 0.8rem;
  }

  .wrapper {
    padding-inline: 4vw;
  }
}

@media only screen and (max-width: 400px) {
  .featured-text-btn {
    gap: 7px;
  }

  .featured-text-btn .btn {
    min-width: 100px;
    max-width: 130px;
    padding: 8px 12px;
    font-size: 12px;
  }
}

@media only screen and (max-width: 360px) {
  .featured-name {
    font-size: 1.5rem;
  }

  .featured-text-info {
    font-size: 0.8rem;
  }

  .image {
    width: 120px;
    height: 120px;
  }

  .image img {
    width: 120px;
    height: 120px;
  }

  .featured-badge {
    font-size: 9px;
    padding: 3px 8px;
  }

  .featured-text-btn {
    flex-wrap: nowrap;
    gap: 5px;
  }

  .featured-text-btn .btn {
    min-width: 95px;
    max-width: 120px;
    padding: 8px 10px;
    font-size: 11px;
  }

  .icon {
    width: 36px;
    height: 36px;
  }

  .footer-links {
    gap: 15px;
  }

  .footer-column {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .top-header h1 {
    font-size: 1.6rem;
  }

  .wrapper {
    padding-inline: 3vw;
  }
}

@media only screen and (max-width: 320px) {
  .featured-name {
    font-size: 1.4rem;
  }

  .featured-text-info {
    font-size: 0.78rem;
  }

  .image {
    width: 110px;
    height: 110px;
  }

  .image img {
    width: 110px;
    height: 110px;
  }

  .featured-text-btn .btn {
    min-width: 90px;
    max-width: 110px;
    font-size: 10px;
    padding: 6px 8px;
  }

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

  .project-card {
    margin: 0 auto;
  }
}

/* Height-based media queries for very tall or very short screens */
@media only screen and (max-height: 700px) and (max-width: 900px) {
  .featured-box {
    min-height: auto;
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .image {
    width: 140px;
    height: 140px;
  }

  .image img {
    width: 140px;
    height: 140px;
  }
}

@media only screen and (max-height: 600px) and (max-width: 900px) {
  .featured-box {
    padding-top: 15px;
    padding-bottom: 30px;
  }

  .featured-name {
    font-size: 1.8rem;
  }

  .featured-text-info {
    font-size: 0.85rem;
    margin-bottom: 15px;
  }
}

/* Landscape orientation for mobile */
@media only screen and (max-width: 900px) and (orientation: landscape) {
  .featured-box {
    flex-direction: row;
    gap: 20px;
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .featured-image {
    width: 40%;
    margin-bottom: 0;
  }

  .featured-text {
    width: 60%;
  }

  .image {
    width: 120px;
    height: 120px;
  }

  .image img {
    width: 120px;
    height: 120px;
  }

  .featured-name {
    font-size: 1.6rem;
  }

  .featured-text-info {
    font-size: 0.8rem;
  }

  .featured-text-btn .btn {
    min-width: 110px;
    max-width: 140px;
  }
}
