/*--------------------------------------------------------------
# Custom Premium Dark Theme Variables
--------------------------------------------------------------*/
:root {
  --bg-primary: #0a0510; /* Deep purple-black */
  --bg-secondary: #120a1c;
  --bg-tertiary: #1b1029;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --accent-color: #a855f7; /* Vibrant Purple */
  --accent-hover: #c084fc;
  --accent-gradient: linear-gradient(135deg, #a855f7, #6b21a8);
  --glass-bg: rgba(18, 10, 28, 0.75);
  --glass-border: rgba(168, 85, 247, 0.12);
  --font-body: "Inter", sans-serif;
  --font-heading: "Outfit", sans-serif;
  --transition-smooth: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(168, 85, 247, 0.3);
}

/*--------------------------------------------------------------
# General & Performance Overrides
--------------------------------------------------------------*/
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hardware Layer Promotion for Scroll Animations */
[data-aos] {
  will-change: transform, opacity;
  backface-visibility: hidden;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* Selection */
::selection {
  background: rgba(168, 85, 247, 0.3);
  color: #fff;
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: var(--accent-gradient);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  will-change: transform, opacity;
  transform: translateZ(0);
}

.back-to-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  transform: translateY(-5px) translateZ(0);
  box-shadow: 0 10px 25px rgba(168, 85, 247, 0.5);
}

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

/*--------------------------------------------------------------
# Header (Glassmorphism Sidebar - Composite Layer Isolated)
--------------------------------------------------------------*/
#header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9997;
  padding: 0 15px;
  background: var(--glass-bg);


  border-right: 1px solid var(--glass-border);
  overflow-y: auto;
  will-change: transform;
  transform: translateZ(0);
}

/* Animated Profile Image Frame (Accelerated GPU Layer) */
.profile-img-wrapper {
  position: relative;
  width: 138px;
  height: 138px;
  margin: 25px auto 15px auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  z-index: 1;
  transform: translateZ(0);
}

.profile-img-wrapper::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0%, var(--accent-color) 40%, var(--accent-hover) 60%, transparent 100%);
  animation: rotate-frame 8s linear infinite;
  z-index: -1;
  filter: blur(8px);
  opacity: 0.7;
  will-change: transform;
  transform: translateZ(0);
}

@keyframes rotate-frame {
  0% { transform: rotate(0deg) translateZ(0); }
  100% { transform: rotate(360deg) translateZ(0); }
}

#header .profile img {
  margin: 0;
  display: block;
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--bg-secondary);
  transition: var(--transition-smooth);
  will-change: transform;
  transform: translateZ(0);
}
#header .profile img:hover {
  transform: scale(1.03) translateZ(0);
}

#header .profile h1 {
  font-size: 26px;
  margin: 0;
  padding: 0;
  font-weight: 700;
  text-align: center;
}

#header .profile h1 a {
  color: #fff;
  transition: color 0.2s ease;
}
#header .profile h1 a:hover {
  color: var(--accent-hover);
}

#header .profile .social-links a {
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  color: #fff;
  margin-right: 8px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  will-change: transform;
}

#header .profile .social-links a:hover {
  background: var(--accent-gradient);
  border-color: var(--accent-hover);
  transform: translateY(-3px) translateZ(0);
  box-shadow: var(--shadow-glow);
}

#main {
  margin-left: 300px;
}

@media (max-width: 1199px) {
  #header {
    transform: translateX(-300px);
    left: 0;
  }
  #main {
    margin-left: 0;
  }
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.nav-menu {
  padding: 30px 0 0 0;
}
.nav-menu * {
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-menu > ul > li {
  position: relative;
  white-space: nowrap;
  margin-bottom: 5px;
}
.nav-menu a, .nav-menu a:focus {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  padding: 12px 18px;
  transition: var(--transition-smooth);
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
}

.nav-menu a i, .nav-menu a:focus i {
  font-size: 22px;
  padding-right: 12px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-menu a:hover, .nav-menu .active, .nav-menu .active:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-menu a:hover i, .nav-menu .active i, .nav-menu .active:focus i {
  color: var(--accent-color);
}

/* Mobile Navigation */
.mobile-nav-toggle {
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 9998;
  border: 0;
  font-size: 24px;
  transition: var(--transition-smooth);
  outline: none !important;
  background: var(--glass-bg);

  border: 1px solid var(--glass-border);
  color: #fff;
  width: 45px;
  height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  will-change: transform;
  transform: translateZ(0);
}

.mobile-nav-active {
  overflow: hidden;
}
.mobile-nav-active::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(10, 5, 16, 0.8);

  z-index: 9996;
  transition: opacity 0.25s ease;
}
.mobile-nav-active #header {
  transform: translateX(0);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  height: 100vh;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at center, rgba(168, 85, 247, 0.08) 0%, transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 20px 20px, 20px 20px;
  background-position: center center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateZ(0);
}

/* GPU Accelerated Ambient Background Blobs */
#hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 20%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(168,85,247,0.15) 0%, rgba(0,0,0,0) 70%);
  filter: blur(50px);
  border-radius: 50%;
  z-index: 1;
  animation: float-soft 12s ease-in-out infinite;
  will-change: transform;
  transform: translateZ(0);
}
#hero::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: 20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(88,28,135,0.15) 0%, rgba(0,0,0,0) 70%);
  filter: blur(50px);
  border-radius: 50%;
  z-index: 1;
  animation: float-soft 15s ease-in-out infinite reverse;
  will-change: transform;
  transform: translateZ(0);
}

@keyframes float-soft {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(20px, -20px, 0) scale(1.05); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

/* Floating Elements (Chess & Skills Icons) */
.hero-background-elements {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  overflow: hidden;
  z-index: 1;
}

.floating-icon {
  position: absolute;
  color: var(--accent-color);
  user-select: none;
  pointer-events: none;
  opacity: 0.25;
  animation: float-element 20s ease-in-out infinite;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
  will-change: transform, opacity;
  transform: translateZ(0);
}

.icon-1 { top: 15%; left: 15%; animation-duration: 25s; animation-delay: 0s; font-size: clamp(2rem, 5vw, 5rem); }
.icon-2 { top: 60%; left: 80%; animation-duration: 22s; animation-delay: -5s; font-size: clamp(1.5rem, 4vw, 4rem); }
.icon-3 { top: 75%; left: 15%; animation-duration: 28s; animation-delay: -10s; font-size: clamp(2.5rem, 6vw, 6rem); color: var(--text-secondary); }
.icon-4 { top: 20%; left: 75%; animation-duration: 20s; animation-delay: -2s; font-size: clamp(2rem, 4.5vw, 4.5rem); }
.icon-5 { top: 40%; left: 85%; animation-duration: 24s; animation-delay: -8s; font-size: clamp(2rem, 5vw, 5rem); color: var(--text-secondary); }
.icon-6 { top: 80%; left: 45%; animation-duration: 26s; animation-delay: -15s; font-size: clamp(1.5rem, 4vw, 4rem); }
.icon-7 { top: 30%; left: 30%; animation-duration: 30s; animation-delay: -12s; font-size: clamp(2rem, 5.5vw, 5.5rem); color: var(--text-secondary); }
.icon-8 { top: 10%; left: 50%; animation-duration: 18s; animation-delay: -4s; font-size: clamp(1.5rem, 4vw, 4rem); color: var(--text-secondary); }
.icon-9 { top: 50%; left: 10%; animation-duration: 25s; animation-delay: -7s; font-size: clamp(2rem, 4.5vw, 4.5rem); }

@keyframes float-element {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0.25; }
  33% { transform: translate3d(25px, -40px, 0) rotate(12deg); opacity: 0.5; }
  66% { transform: translate3d(-15px, 25px, 0) rotate(-8deg); opacity: 0.35; }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0.25; }
}

#hero .hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 15px;
  text-align: center;
}

#hero h1 {
  margin: 0 0 10px 0;
  font-size: clamp(26px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  letter-spacing: -0.5px;
}

#hero p {
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-size: clamp(14px, 3vw, 22px);
  font-family: var(--font-body);
  font-weight: 300;
}

#hero .hero-container p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: clamp(14px, 3vw, 20px);
  font-family: var(--font-heading);
}

#hero .hero-social-links a {
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  color: #fff;
  margin: 0 8px;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  transition: var(--transition-smooth);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 14px;
  will-change: transform;
}

#hero .hero-social-links a i {
  font-size: 20px;
}

#hero .hero-social-links a:hover {
  background: var(--accent-gradient);
  transform: translateY(-4px) scale(1.08) translateZ(0);
  box-shadow: 0 10px 25px rgba(168, 85, 247, 0.6);
  border-color: transparent;
  color: #fff;
}

#hero p span {
  color: #fff;
  letter-spacing: 1px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

/* Animated Hero Image Wrapper for Mobile */
.hero-img-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto 30px auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  z-index: 1;
  transform: translateZ(0);
}

.hero-img-wrapper::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0%, var(--accent-color) 40%, var(--accent-hover) 60%, transparent 100%);
  animation: rotate-frame 8s linear infinite;
  z-index: -1;
  filter: blur(8px);
  opacity: 0.7;
  will-change: transform;
  transform: translateZ(0);
}

.hero-img-wrapper img {
  width: 124px;
  height: 124px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--bg-primary);
  z-index: 2;
  position: relative;
}

@media (max-width: 768px) {
  #hero h1 {
    font-size: 32px;
  }
  #hero p {
    font-size: 16px;
  }
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 80px 0;
  overflow: hidden;
}

.section-bg {
  background: var(--bg-secondary);
}

.section-title {
  padding-bottom: 40px;
}

.section-title h2 {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
  color: #fff;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-gradient);
  bottom: 0;
  left: 0;
  border-radius: 4px;
}

.section-title p {
  color: var(--text-secondary);
  font-size: clamp(14px, 2.5vw, 16px);
  line-height: 1.6;
}

/*--------------------------------------------------------------
# About (Executive Professional Design)
--------------------------------------------------------------*/
.about-profile-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}
.about-profile-card:hover {
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 15px 35px -10px rgba(168, 85, 247, 0.25);
  transform: translateY(-4px);
}

.profile-avatar-box {
  position: relative;
  width: 160px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 auto 22px auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-avatar-box::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--accent-gradient);
  opacity: 0.85;
  filter: blur(8px);
  z-index: 1;
}

.profile-avatar-box img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-glow);
}

.availability-badge {
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: rgba(10, 5, 16, 0.94);


  border: 1px solid rgba(16, 185, 129, 0.6);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  width: max-content;
  max-width: calc(100% + 80px);
}
.status-dot {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.profile-name {
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
  letter-spacing: -0.3px;
}
.profile-role {
  font-size: clamp(13px, 2.8vw, 14.5px);
  color: var(--accent-hover);
  font-weight: 600;
  margin-bottom: 0;
}

/* About Profile Stats Grid */
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 0;
  border-top: 1px dashed rgba(168, 85, 247, 0.15);
}
.stat-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 10px 4px;
  text-align: center;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.stat-box:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.2);
}
.stat-number {
  display: block;
  font-size: clamp(14px, 3.5vw, 17px);
  font-weight: 800;
  color: #fff;
  font-family: var(--font-heading);
  line-height: 1.2;
}
.stat-label {
  display: block;
  font-size: clamp(9px, 2.2vw, 10.5px);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.btn-cv-download {
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  padding: 12px 20px;
  border-radius: 12px;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-glow);
  text-decoration: none;
}
.btn-cv-download:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(168, 85, 247, 0.5);
}

.about-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 15px;
  border-top: 1px solid var(--glass-border);
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition-smooth);
}
.contact-item:hover {
  background: rgba(168, 85, 247, 0.06);
  border-color: var(--glass-border);
}
.contact-item i {
  font-size: 18px;
  color: var(--accent-color);
}
.contact-item .label {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.contact-item .val {
  display: block;
  font-size: 13.5px;
  color: #fff;
  font-weight: 600;
}
.contact-item .val a {
  color: #fff;
}
.contact-item .val a:hover {
  color: var(--accent-hover);
}

/* Professional Cards (Right Column) */
.about-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}
.about-card:hover {
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 12px 30px -10px rgba(168, 85, 247, 0.2);
}

.about-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.about-card-header h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
  color: #fff;
}
.accent-bar {
  width: 4px;
  height: 22px;
  background: var(--accent-gradient);
  border-radius: 4px;
}

.summary-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-primary);
  margin: 0;
}

/* Summary Highlight Chips */
.summary-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}
.highlight-chip {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  transition: var(--transition-smooth);
}
.highlight-chip:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
  color: #fff;
}

/* Tech Pills */
.tech-skills-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 30px;
  transition: var(--transition-smooth);
}
.tech-pill i {
  color: var(--accent-hover);
  font-size: 16px;
}
.tech-pill:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* Education Inner Card */
.education-card-inner {
  background: rgba(10, 5, 16, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
}
.edu-school-name {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.color-accent {
  color: var(--accent-color);
}
.edu-degree {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin: 4px 0 0 0;
  font-weight: 500;
}
.edu-year-badge {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-hover);
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  padding: 4px 14px;
  border-radius: 20px;
}

.edu-achievements {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}
.edu-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
}
.grade-badge {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}
.rank-badge {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.about .about-img-wrapper {
  position: relative;
  display: block;
  transform: translateZ(0);
}
.about .about-img-wrapper::before {
  content: "";
  position: absolute;
  top: 15px;
  left: -5px;
  right: -5px;
  bottom: -15px;
  border-radius: 20px;
  background: var(--accent-gradient);
  opacity: 0.3;
  z-index: 1;
  filter: blur(15px);
  transition: opacity 0.25s ease, filter 0.25s ease;
  will-change: opacity, filter;
}
.about .about-img-wrapper:hover::before {
  opacity: 0.5;
  filter: blur(20px);
}

/* Legacy image wrapper cleanup */

.about .content ul {
  list-style: none;
  padding: 0;
  background: transparent;
  border: none;
}

.about .content ul li {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  font-size: clamp(13px, 2vw, 15px);
  padding: 15px 20px;
  background: var(--bg-tertiary);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  will-change: transform;
}

.about .content ul li:hover {
  transform: translateX(8px) translateZ(0);
  border-color: var(--accent-color);
  background: rgba(168, 85, 247, 0.05);
}

.about .content ul strong {
  margin-right: 10px;
  color: var(--text-secondary);
  font-weight: 500;
  flex-shrink: 0;
}

.about .content ul span {
  color: #fff;
  font-weight: 600;
  word-break: break-word;
}

.about .content ul i {
  font-size: 20px;
  margin-right: 15px;
  color: #fff;
  background: var(--accent-gradient);
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}

/*--------------------------------------------------------------
# Skills (Executive Professional & Responsive)
--------------------------------------------------------------*/
.skills .skill-category-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.skills .skill-category-card:hover {
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 16px 36px -10px rgba(168, 85, 247, 0.25);
  transform: translateY(-6px);
}

.skills .category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.skills .category-icon-box {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  box-shadow: var(--shadow-glow);
}

.skills .category-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}

.skills .category-subtitle {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 500;
  display: block;
}

.skills .skills-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}

.skills .progress {
  height: auto;
  display: block;
  background: none;
  border-radius: 0;
  margin-bottom: 0;
}

.skills .skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.skills .skill-name {
  font-weight: 600;
  font-family: var(--font-heading);
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
}

.skills .skill-name i {
  font-size: 18px;
}

/* Brand & Skill Icon Accent Colors & Polyfills */
.color-php { color: #8892bf; }
.color-laravel { color: #ff2d20; }
.color-api { color: #00dc82; }
.color-oop { color: #a855f7; }
.color-mysql { color: #00758f; }
.color-orm { color: #c084fc; }
.color-sec { color: #f59e0b; }
.color-integ { color: #38bdf8; }
.color-git { color: #f05032; }
.color-postman { color: #ff6c37; }
.color-detail { color: #10b981; }
.color-creativity { color: #fbbf24; }

/* Custom SVG Icon Polyfill for Laravel Logo (missing in boxicons) */
i.bxl-laravel, i.bx-laravel {
  display: inline-block;
  width: 1em;
  height: 1em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23.642 5.253a.925.925 0 0 0-.41-.359L12.56.242a.965.965 0 0 0-.756 0L1.135 4.894a.925.925 0 0 0-.41.359.94.94 0 0 0-.154.516v12.462c0 .182.054.358.154.516a.925.925 0 0 0 .41.359l10.669 4.652a.965.965 0 0 0 .756 0l10.669-4.652a.925.925 0 0 0 .41-.359.94.94 0 0 0 .154-.516zM12 2.056l8.846 3.858-3.791 1.653-8.846-3.858L12 2.056zM3.154 6.804l7.846 3.421v8.919L3.154 15.72V6.804zm17.692 8.916l-7.846 3.421v-8.919l7.846-3.421v8.919z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M23.642 5.253a.925.925 0 0 0-.41-.359L12.56.242a.965.965 0 0 0-.756 0L1.135 4.894a.925.925 0 0 0-.41.359.94.94 0 0 0-.154.516v12.462c0 .182.054.358.154.516a.925.925 0 0 0 .41.359l10.669 4.652a.965.965 0 0 0 .756 0l10.669-4.652a.925.925 0 0 0 .41-.359.94.94 0 0 0 .154-.516zM12 2.056l8.846 3.858-3.791 1.653-8.846-3.858L12 2.056zM3.154 6.804l7.846 3.421v8.919L3.154 15.72V6.804zm17.692 8.916l-7.846 3.421v-8.919l7.846-3.421v8.919z'/%3E%3C/svg%3E") no-repeat center / contain;
  vertical-align: -0.15em;
}

.skills .val-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-hover);
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  padding: 2px 10px;
  border-radius: 12px;
}

.skills .progress-bar-wrap {
  background: rgba(10, 5, 16, 0.6);
  height: 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.skills .progress-bar {
  width: 0%;
  height: 100%;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--accent-gradient);
  border-radius: 10px;
  position: relative;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
  will-change: width;
}

.skills .progress-bar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2.5s infinite;
  will-change: transform;
}

.skills .category-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.skills .skill-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3px 10px;
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.skills .skill-category-card:hover .skill-tag {
  border-color: rgba(168, 85, 247, 0.2);
  color: var(--text-primary);
  background: rgba(168, 85, 247, 0.06);
}

@media (max-width: 768px) {
  .skills .skill-category-card {
    padding: 20px 16px;
  }
  .skills .category-title {
    font-size: 16px;
  }
}

@keyframes shimmer {
  0% { transform: translate3d(-100%, 0, 0); }
  100% { transform: translate3d(100%, 0, 0); }
}

/*--------------------------------------------------------------
# Portfolio
--------------------------------------------------------------*/
.portfolio .portfolio-item {
  margin-bottom: 30px;
}

.portfolio #portfolio-flters {
  padding: 0;
  margin: 0 auto 35px auto;
  list-style: none;
  text-align: center;
  background: var(--bg-tertiary);
  border-radius: 50px;
  padding: 5px 15px;
  display: inline-block;
  border: 1px solid var(--glass-border);
}

.portfolio #portfolio-flters li {
  cursor: pointer;
  display: inline-block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  border-radius: 30px;
}

.portfolio #portfolio-flters li:hover,
.portfolio #portfolio-flters li.filter-active {
  color: #fff;
  background: var(--accent-gradient);
}



/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact {
  padding-bottom: 130px;
}

.contact .info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  background: var(--bg-tertiary);
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}

.contact .info i {
  font-size: 22px;
  color: #fff;
  float: left;
  width: 50px;
  height: 50px;
  background: var(--accent-gradient);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-glow);
}

.contact .info h4 {
  padding: 0 0 0 65px;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #fff;
}

.contact .info p {
  padding: 0 0 20px 65px;
  margin-bottom: 0;
  font-size: 15px;
  color: var(--text-secondary);
}

.contact .php-email-form {
  width: 100%;
  padding: 40px;
  background: var(--bg-tertiary);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}

.contact .php-email-form .form-group {
  margin-bottom: 20px;
}

.contact .php-email-form label {
  padding-bottom: 8px;
  color: var(--text-primary);
  font-weight: 500;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 8px;
  box-shadow: none;
  font-size: 15px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(168,85,247,0.2);
  outline: none;
}

.contact .php-email-form input {
  height: 50px;
}

.contact .php-email-form textarea {
  padding: 15px;
}

.contact .php-email-form button[type=submit] {
  background: var(--accent-gradient);
  border: 0;
  padding: 12px 35px;
  color: #fff;
  transition: var(--transition-smooth);
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  box-shadow: var(--shadow-glow);
  will-change: transform;
}

.contact .php-email-form button[type=submit]:hover {
  transform: translateY(-3px) translateZ(0);
  box-shadow: 0 10px 20px rgba(168,85,247,0.4);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  padding: 20px 15px;
  color: var(--text-secondary);
  font-size: 14px;
  position: fixed;
  left: 0;
  bottom: 0;
  width: 300px;
  z-index: 9999;
  background: transparent;
  text-align: center;
}

#footer .copyright strong {
  color: var(--accent-hover);
}

@media (max-width: 1199px) {
  #footer {
    position: static;
    width: auto;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--glass-border);
  }
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.spinner-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid rgba(168, 85, 247, 0.1);
  border-top-color: var(--accent-color);
  border-right-color: var(--accent-hover);
  animation: spinner-spin 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.3);
  will-change: transform;
  transform: translateZ(0);
}

.loader-king {
  font-size: 40px;
  color: var(--accent-color);
  z-index: 2;
  animation: king-pulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.6));
  will-change: transform, opacity;
  transform: translateZ(0);
}

.loader-text {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 6px;
  text-transform: uppercase;
  animation: text-pulse 2s ease-in-out infinite;
  will-change: opacity, filter;
}

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

@keyframes text-pulse {
  0%, 100% { opacity: 0.5; filter: blur(1px); }
  50% { opacity: 1; filter: blur(0); text-shadow: 0 0 15px rgba(168, 85, 247, 0.8); }
}

@keyframes king-pulse {
  0%, 100% { transform: scale(0.9) translateZ(0); opacity: 0.8; }
  50% { transform: scale(1.1) translateZ(0); opacity: 1; }
}

/*--------------------------------------------------------------
# Responsive & Smoothness Overrides
--------------------------------------------------------------*/
@media (max-width: 991px) {
  section {
    padding: 60px 0;
  }
  
  .about .img-fluid {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 50px 0;
  }

  .section-title {
    padding-bottom: 30px;
  }

  .section-title h2 {
    font-size: 30px;
  }

  .about .content h3 {
    font-size: 26px;
  }
  
  .contact .info,
  .contact .php-email-form {
    padding: 25px;
  }
}

@media (max-width: 575px) {
  section {
    padding: 40px 0;
  }

  #hero .hero-container {
    padding: 0 25px;
    text-align: center;
  }

  #hero .hero-container p {
    margin-bottom: 25px;
  }

  #hero .hero-social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  #hero .hero-social-links a {
    margin: 0;
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  #hero .hero-social-links a.cv {
    width: auto;
    padding: 0 20px;
    border-radius: 30px;
    font-size: 14px;
    letter-spacing: 1px;
  }

  /* Keep floating chess & language background icons enabled & optimized on mobile */
  .hero-background-elements {
    display: block !important;
  }
  
  .floating-icon {
    opacity: 0.2;
  }
  
  .icon-1 { font-size: 2rem; top: 10%; left: 6%; }
  .icon-2 { font-size: 1.6rem; top: 74%; left: 82%; }
  .icon-3 { font-size: 2.2rem; top: 82%; left: 8%; }
  .icon-4 { font-size: 1.8rem; top: 16%; left: 80%; }
  .icon-5 { font-size: 2rem; top: 36%; left: 84%; }
  .icon-6 { font-size: 1.6rem; top: 88%; left: 46%; }
  .icon-7 { font-size: 2.2rem; top: 28%; left: 8%; }
  .icon-8 { font-size: 1.6rem; top: 6%; left: 48%; }
  .icon-9 { font-size: 1.8rem; top: 54%; left: 5%; }

  .about .content ul li {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }
  
  .about .content ul i {
    margin-bottom: 10px;
  }

  .portfolio #portfolio-flters li {
    padding: 8px 12px;
    font-size: 13px;
    margin-bottom: 5px;
  }
  
  .contact .info h4 {
    font-size: 18px;
  }
  
  .contact .info p {
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  #hero .hero-social-links a {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }
}

/*--------------------------------------------------------------
# Responsive Fine-Tuning for About Section & Cards
--------------------------------------------------------------*/
@media (max-width: 991px) {
  section.about {
    padding: 60px 0;
  }

  .about-profile-card {
    padding: 24px 20px;
    max-width: 520px;
    margin: 0 auto 10px auto;
  }

  .profile-avatar-box {
    width: 150px;
    height: 150px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border-radius: 50%;
    overflow: visible;
  }

  .profile-avatar-box img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    border: 3px solid var(--glass-border);
  }

  .availability-badge {
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    padding: 4px 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    width: max-content;
  }

  .about-card {
    padding: 22px 20px;
  }

  .about-card-header h3 {
    font-size: 16px;
  }

  .contact-item div {
    min-width: 0;
  }

  .contact-item .val {
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 575px) {
  section.about {
    padding: 45px 0;
  }

  .about-profile-card {
    padding: 20px 14px;
    border-radius: 16px;
  }

  .profile-avatar-box {
    width: 130px;
    height: 130px;
    aspect-ratio: 1 / 1;
    margin-bottom: 20px;
  }

  .profile-avatar-box img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
  }

  .availability-badge {
    font-size: 10px;
    padding: 4px 12px;
    bottom: -12px;
    width: max-content;
  }

  .profile-name {
    font-size: 20px;
    margin-top: 6px;
  }

  .profile-role {
    font-size: 13px;
  }

  .profile-stats-grid {
    gap: 6px;
    padding: 10px 0;
  }

  .stat-box {
    padding: 8px 2px;
  }

  .stat-number {
    font-size: 14px;
  }

  .stat-label {
    font-size: 9.5px;
    letter-spacing: 0.2px;
  }

  .btn-cv-download {
    font-size: 12.5px;
    padding: 10px 16px;
  }

  .about-card {
    padding: 18px 14px;
    border-radius: 16px;
  }

  .about-card-header {
    gap: 10px;
    margin-bottom: 12px;
  }

  .about-card-header h3 {
    font-size: 14px;
    letter-spacing: 0.5px;
  }

  .summary-text {
    font-size: 13.5px;
    line-height: 1.75;
  }

  .summary-highlights {
    gap: 6px;
  }

  .highlight-chip {
    font-size: 11.5px;
    padding: 4px 10px;
  }

  .tech-skills-wrapper {
    gap: 6px;
  }

  .tech-pill {
    font-size: 12px;
    padding: 6px 12px;
  }

  .tech-pill i {
    font-size: 14px;
  }

  .education-card-inner {
    padding: 14px;
  }

  .edu-school-name {
    font-size: 14.5px;
  }

  .edu-degree {
    font-size: 13px;
  }

  .edu-year-badge {
    font-size: 11px;
    padding: 3px 10px;
  }

  .edu-achievements {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .edu-badge {
    font-size: 12px;
    padding: 6px 10px;
    justify-content: center;
    width: 100%;
  }

  .contact-item {
    padding: 8px 10px;
    gap: 10px;
  }

  .contact-item i {
    font-size: 16px;
  }

  .contact-item .label {
    font-size: 10px;
  }

  .contact-item .val {
    font-size: 12px;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  .about-profile-card,
  .about-card {
    padding: 14px 10px;
  }

  .profile-avatar-box {
    width: 115px;
    height: 115px;
    aspect-ratio: 1 / 1;
  }

  .profile-stats-grid {
    gap: 4px;
  }

  .stat-box {
    padding: 6px 1px;
  }

  .stat-number {
    font-size: 13px;
  }

  .stat-label {
    font-size: 8.5px;
    letter-spacing: 0;
  }
  
  .tech-pill {
    font-size: 11px;
    padding: 5px 9px;
  }

  .highlight-chip {
    font-size: 11px;
    padding: 3px 8px;
  }
}

/*--------------------------------------------------------------
# Optimized Electric Frame Animation (Hardware Accelerated)
--------------------------------------------------------------*/
.electric-frame {
  position: relative;
  padding: 8px;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  transform: translateZ(0);
}

.electric-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 4px;
  background: linear-gradient(45deg, #0ff, #0055ff, #0ff, #0055ff, #0ff);
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: electric-glow-flow 4s ease-in-out infinite alternate;
  z-index: -1;
  will-change: opacity;
  transform: translateZ(0);
}

.electric-frame::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(45deg, #0ff, #0055ff, #0ff);
  animation: electric-flicker 2s ease-in-out infinite alternate;
  z-index: -2;
  filter: blur(10px);
  opacity: 0.7;
  will-change: opacity;
  transform: translateZ(0);
}

.electric-frame img {
  display: block;
  border-radius: 8px;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
}

@keyframes electric-glow-flow {
  0% { opacity: 0.8; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

@keyframes electric-flicker {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 0.45; }
  75% { opacity: 0.85; }
}

/*--------------------------------------------------------------
# Portfolio / Projects Section Design System
--------------------------------------------------------------*/
#portfolio-flters {
  padding: 6px 10px;
  margin: 0 auto 35px auto;
  list-style: none;
  text-align: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  box-shadow: var(--shadow-soft);
}

#portfolio-flters li {
  cursor: pointer;
  display: inline-block;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  border-radius: 30px;
}

#portfolio-flters li:hover {
  color: #fff;
  background: rgba(168, 85, 247, 0.15);
}

#portfolio-flters li.filter-active {
  color: #fff;
  background: var(--accent-gradient);
  box-shadow: var(--shadow-glow);
}

/* Portfolio Card Wrap */
.portfolio-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portfolio-wrap:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 15px 35px -10px rgba(168, 85, 247, 0.25);
}

.portfolio-img-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  width: 100%;
  background: #000;
}

.portfolio-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-wrap:hover img {
  transform: scale(1.07);
}

/* Floating Category Badge */
.project-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  background: rgba(10, 5, 16, 0.88);


  border: 1px solid rgba(168, 85, 247, 0.3);
  color: var(--accent-hover);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  display: inline-flex;
  align-items: center;
}

.portfolio-links a {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow-glow);
  transition: var(--transition-smooth);
}

.portfolio-links a:hover {
  transform: scale(1.15);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.7);
}

/* Card Body Content */
.portfolio-card-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  height: 290px;
}

.project-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

/* Tech Stack Pills */
.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.tech-tag {
  font-size: 11px;
  font-weight: 500;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.portfolio-wrap:hover .tech-tag {
  border-color: rgba(168, 85, 247, 0.25);
  background: rgba(168, 85, 247, 0.06);
}

/* Card Footer & Button */
.project-card-footer {
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

.btn-project-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 10px;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-project-details:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* Projects Responsive Media Queries */
@media (max-width: 991px) {
  .portfolio-card-body {
    padding: 18px 18px;
  }
  .project-title {
    font-size: 17px;
  }
  .project-desc {
    font-size: 13px;
  }
}

@media (max-width: 575px) {
  #portfolio-flters {
    border-radius: 20px;
    padding: 4px 6px;
    gap: 4px;
  }
  #portfolio-flters li {
    padding: 6px 12px;
    font-size: 12px;
  }
  .portfolio-wrap {
    border-radius: 16px;
  }
  .portfolio-card-body {
    padding: 16px 14px;
  }
  .project-title {
    font-size: 16px;
  }
  .project-desc {
    font-size: 12.5px;
    margin-bottom: 12px;
  }
  .tech-tag {
    font-size: 10.5px;
    padding: 3px 8px;
  }
  .btn-project-details {
    padding: 9px 12px;
    font-size: 12.5px;
  }
}

@media (max-width: 420px) {
  .project-card-footer.d-flex {
    flex-direction: column !important;
  }
  .project-card-footer.d-flex .w-50 {
    width: 100% !important;
  }
}

/* Mobile backdrop when menu is active */
body.mobile-nav-active #main::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(10, 5, 16, 0.65);

  z-index: 9995;
}

