/* ================= THEME VARIABLES ================= */
:root {
  --bg: #030305;
  --card-bg: rgba(255, 255, 255, 0.03);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: #94a3b8;
  --accent: #00f2fe;
  /* Electric Cyan */
  --accent-glow: rgba(0, 242, 254, 0.2);
  --accent2: #4facfe;
  /* Sky Blue */
  --accent2-glow: rgba(79, 172, 254, 0.2);
  --accent3: #00d2b4;
  /* Teal / Emerald */
  --gradient-main: linear-gradient(135deg, #4facfe 0%, #00f2fe 50%, #00d2b4 100%);
  --border: rgba(255, 255, 255, 0.08);
  --font-main: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --navbar-bg: rgba(15, 23, 42, 0.8);
  --navbar-bg-solid: rgba(15, 23, 42, 0.95);
  --nav-hover-bg: rgba(255, 255, 255, 0.05);
}

:root.light,
html.light {
  --bg: #f0f7ff;
  --card-bg: rgba(255, 255, 255, 0.7);
  --glass: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(79, 172, 254, 0.1);
  --text: #0f172a;
  --muted: #64748b;
  --accent: #3a7bd5;
  --accent-glow: rgba(58, 123, 213, 0.1);
  --accent2: #00d2ff;
  --accent2-glow: rgba(0, 210, 255, 0.1);
  --border: #e2e8f0;
  --navbar-bg: rgba(255, 255, 255, 0.85);
  --navbar-bg-solid: rgba(255, 255, 255, 0.95);
  --nav-hover-bg: rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

/* ================= PREMIUM LOADER ================= */
.premium-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex; 
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

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

.loader-logo {
  font-family: var(--font-main);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
  animation: logoFade 2s ease-in-out infinite alternate;
}

.loader-progress-container {
  width: 150px;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.loader-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--gradient-main);
  animation: loadProgress 2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.loader-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 3px;
  text-transform: uppercase;
}

@keyframes loadProgress {
  0% { width: 0; }
  100% { width: 100%; }
}

@keyframes logoFade {
  from { opacity: 0.5; filter: blur(2px); }
  to { opacity: 1; filter: blur(0); }
}

.premium-loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* ================= HEADER & PROFILE ================= */
header {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 60px;
  position: relative;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.hero-content {
  padding: clamp(20px, 5vw, 60px);
  border-radius: 48px;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-border {
  position: relative;
  width: min(400px, 80vw);
  height: min(400px, 80vw);
  border-radius: 50%;
  padding: 8px;
  background: var(--gradient-main);
  box-shadow: 0 0 50px var(--accent-glow);
  animation: auraRotate 15s linear infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
}

@keyframes auraRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.image-border img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg);
  animation: antiRotate 15s linear infinite;
  cursor: pointer;
}

@keyframes antiRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-360deg);
  }
}

.image-border:hover {
  transform: scale(1.05);
  box-shadow: 0 0 80px var(--accent-glow);
}
/* ================= GLOBAL RESET & BASE ================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
  position: relative;
}

/* Noise/Grain Texture Overlay */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://grain-y.com/images/grain.png');
  opacity: 0.04;
  pointer-events: none;
  z-index: 10000;
  mix-blend-mode: overlay;
}

/* Glassmorphism Refinement */
.glass-panel {
  background: var(--card-bg);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

/* Dynamic Background Blobs */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(80px);
  border-radius: 50%;
  opacity: 0.3;
  animation: moveBlob 20s infinite alternate;
}

.blob-1 {
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
}

.blob-2 {
  bottom: -10%;
  right: -10%;
  background: radial-gradient(circle, var(--accent2-glow) 0%, transparent 70%);
  animation-delay: -5s;
}

.blob-3 {
  top: 40%;
  left: 30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent3) 0%, transparent 70%);
  opacity: 0.1;
  animation-delay: -10s;
}

@keyframes moveBlob {
  0% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(100px, 150px) scale(1.1);
  }

  66% {
    transform: translate(-50px, 200px) scale(0.9);
  }

  100% {
    transform: translate(0, 0) scale(1);
  }
}

/* Minimal scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ================= NAVIGATION ================= */
.navbar {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 1300px;
  z-index: 1000;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 8px 20px;
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
  margin-right: 0 !important;
}

.nav-links .nav-link {
  padding: 8px clamp(8px, 1vw, 16px) !important;
  font-size: clamp(0.75rem, 0.85vw, 0.9rem);
  font-weight: 500;
  color: var(--muted) !important;
  transition: all 0.3s ease;
  border-radius: 50px;
  text-align: center;
  white-space: nowrap;
}

.nav-links .nav-link:hover {
  color: var(--text) !important;
  background: var(--nav-hover-bg);
}

.nav-links .nav-link.active {
  background: var(--gradient-main) !important;
  color: #000 !important;
  font-weight: 600;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.custom-toggler {
  border: 1px solid var(--glass-border) !important;
  padding: 8px !important;
  border-radius: 10px;
  background: var(--card-bg);
}

.navbar-toggler-icon {
  width: 24px;
  height: 24px;
  filter: invert(1);
}

.light .navbar-toggler-icon {
  filter: none;
}

.toggle-theme {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.navbar.shrink {
  top: 10px;
  padding: 5px 20px;
  width: 92%;
  background: var(--navbar-bg-solid);
  border-radius: 20px;
}

@media (max-width: 575.98px) {
  .navbar {
    padding: 8px 12px;
    width: 98%;
  }
  
  .nav-brand {
    font-size: 1.25rem;
  }
  
  .toggle-theme {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0a0a0c !important;
    margin-top: 10px;
    padding: 10px 0;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1001;
  }

  .light .navbar-collapse {
    background: #ffffff !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.1);
  }
  
  .nav-links {
    flex-direction: column;
    gap: 0 !important;
    align-items: stretch;
    padding: 0;
  }

  .nav-links .nav-link {
    padding: 16px 25px !important;
    width: 100%;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0 !important;
    margin: 0 !important;
    transition: all 0.2s ease;
  }

  .light .nav-links .nav-link {
    border-bottom-color: rgba(0, 0, 0, 0.05) !important;
    color: #0f172a !important;
  }

  .nav-links .nav-link.active {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--accent) !important;
    border-left: 4px solid var(--accent) !important;
    padding-left: 21px !important;
  }

  .light .nav-links .nav-link.active {
    background: #f1f5f9 !important;
  }
}

/* ================= HEADER & PROFILE ================= */
header {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 60px;
  position: relative;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.hero-content {
  padding: clamp(20px, 5vw, 60px);
  border-radius: 48px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}



.image-border:hover {
  transform: scale(1.05);
  box-shadow: 0 0 80px var(--accent-glow);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.social-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 1.4rem;
  transition: 0.3s;
}

.social-btn:hover {
  background: var(--gradient-main);
  color: #000;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px var(--accent-glow);
}

.btn-primary {
  background: var(--gradient-main);
  color: #000;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 700;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px var(--accent-glow);
}

/* ================= SECTIONS ================= */
main {
  /* max-width: 1400px; Remove fixed max-width for bootstrap container */
  margin: 0 auto;
}

section {
  padding: 100px 0;
  opacity: 0;
  transform: translateY(30px);
  transition: 1s cubic-bezier(0.22, 1, 0.36, 1);
}

section.show {
  opacity: 1;
  transform: translateY(0);
}

.achievement-mini-card {
  background: var(--card-bg);
  padding: 15px 20px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid var(--glass-border);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.achievement-mini-card::before {
  content: '✦';
  color: var(--accent);
  font-size: 1.2rem;
}

.achievement-mini-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  transform: scale(1.05) translateX(10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.section-card {
  background: var(--card-bg);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid var(--glass-border);
  border-radius: 48px;
  padding: clamp(30px, 6vw, 80px);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  margin-bottom: 80px;
  position: relative;
  overflow: hidden;
}

.section-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 242, 254, 0.3);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
}

.section-head h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0;
}

.section-head h2 span {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ================= ABOUT ================= */
.about-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

@media (max-width: 991.98px) {
  header {
    padding-top: 100px;
    text-align: center;
  }
  
  .hero-content {
    margin-bottom: 40px;
  }
  
  .social-links, .hero-btns {
    justify-content: center;
  }
  
  .image-border {
    width: min(300px, 70vw);
    height: min(300px, 70vw);
  }
}

@media (max-width: 767.98px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .section-head h2 {
    font-size: 1.8rem;
  }
  
  .section-card {
    padding: 30px 20px;
    border-radius: 30px;
  }
}

/* ================= MINI GAME (CYBER MATRIX) ================= */
.hero-game-container {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  transition: all 0.5s ease;
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: rgba(0, 0, 0, 0.05);
  padding: 15px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  width: 100%;
}

.matrix-cell {
  aspect-ratio: 1/1;
  background: var(--bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.8;
}

.light .matrix-cell {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.05);
}

.matrix-cell.active {
  background: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: scale(0.95);
  opacity: 1;
}

.matrix-cell.success {
  background: var(--accent3);
  box-shadow: 0 0 15px var(--accent3);
  opacity: 1;
}

.matrix-cell.error {
  background: #ff4d4d;
  box-shadow: 0 0 15px rgba(255, 77, 77, 0.5);
  opacity: 1;
}

.matrix-cell:hover:not(.disabled) {
  border-color: var(--accent);
  background: var(--nav-hover-bg);
  opacity: 1;
}

.game-stat-item .label {
  color: var(--muted);
  font-weight: 500;
}

.game-stat-item .value {
  color: var(--accent);
  font-weight: 700;
}

.light .game-stat-item .label {
  color: #475569;
}

#game-message {
  font-weight: 600;
  letter-spacing: 0.5px;
}

@media (max-width: 600px) {
  .hero-game-container {
    padding: 20px;
  }
  .matrix-grid {
    gap: 6px;
    padding: 10px;
  }
}

/* ================= ACHIEVEMENTS ================= */
.achievements-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.achievements-list li {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 30px;
  display: flex;
  gap: 24px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  height: 100%;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.01);
}

.achievements-list li:hover {
  border-color: var(--accent);
  transform: translateY(-8px);
  background: rgba(0, 242, 254, 0.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.achievement-icon {
  font-size: 1.5rem;
  color: var(--accent);
}

/* ================= SKILLS ================= */
.modern-skill-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  padding: 60px 40px;
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.01);
  transition: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.modern-skill-card:hover {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(0, 242, 254, 0.2);
  transform: translateY(-5px);
}

/* Compact Skill/Service Cards */
.skill-card {
  background: var(--card-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.4s ease;
  height: 100%;
}

.skill-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--accent);
}

.skill-card i {
  font-size: 2rem !important;
  margin-bottom: 5px;
}

.skill-card h3 {
  font-size: 1.2rem;
  margin: 0;
}

.skill-card p {
  font-size: 0.9rem !important;
  line-height: 1.5;
  margin: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.premium-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.premium-tag i {
  font-size: 1.3rem;
  color: var(--accent);
  transition: 0.3s;
}

.premium-tag:hover {
  transform: translateY(-8px) scale(1.05);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  box-shadow: 0 15px 30px rgba(0, 242, 254, 0.15);
}

.premium-tag:hover i {
  transform: rotate(15deg) scale(1.2);
  color: var(--text);
}

.lang-tag {
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.1), rgba(0, 242, 254, 0.1));
  border-color: rgba(0, 242, 254, 0.3);
}

.lang-tag:hover {
  background: var(--gradient-main);
  color: #000;
  border-color: transparent;
}

.lang-tag:hover i {
  color: #000;
}

/* ================= PORTFOLIO ================= */
.portfolio-controls {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}

.filters {
  display: flex;
  gap: 10px;
  background: var(--card-bg);
  padding: 5px;
  border-radius: 50px;
  border: 1px solid var(--border);
}

.filter-btn {
  padding: 10px 25px;
  border-radius: 50px;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--muted);
  font-weight: 600;
  transition: 0.3s;
}

.filter-btn.active {
  background: var(--gradient-main);
  color: #000;
  box-shadow: 0 5px 15px var(--accent-glow);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.01);
}

.project-card:hover {
  transform: translateY(-15px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 30px 60px rgba(0, 242, 254, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.project-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.project-img-link {
  display: block;
  margin-bottom: 25px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: 0.4s ease;
}

.project-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.project-img-link:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.2);
}

.folder-icon {
  font-size: 2rem;
  color: var(--accent);
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 15px;
}

@media (max-width: 575.98px) {
  .project-card {
    padding: 30px 25px;
  }
  
  .project-img-wrap {
    aspect-ratio: 4 / 3; /* Slightly taller on mobile */
  }
}

.tech-stack span {
  font-size: 0.8rem;
  color: var(--accent2);
  background: rgba(79, 172, 254, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
}

/* ================= CONTACT ================= */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.contact-method i {
  width: 50px;
  height: 50px;
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.form-group {
  margin-bottom: 25px;
}

.form-input {
  background: var(--card-bg) !important;
  border: 1px solid var(--border) !important;
  border-radius: 15px !important;
  padding: 18px !important;
  color: var(--text) !important;
  font-family: inherit !important;
}

.form-input::placeholder {
  color: var(--muted) !important;
  opacity: 0.7;
}

.light .form-input::placeholder {
  color: var(--muted) !important;
  opacity: 0.8;
}

.form-input:focus {
  border-color: var(--accent) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 0 15px var(--accent-glow) !important;
}

/* ================= EDUCATION & TIMELINE ================= */
.timeline {
  border-left: 2px solid var(--border);
  padding-left: 30px;
  position: relative;
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -36px;
  top: 5px;
  width: 10px;
  height: 10px;
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 50%;
}

.score {
  color: var(--accent);
  font-weight: 700;
  margin-left: 10px;
}

/* ================= MODAL ================= */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 2000;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 800px;
}

.modal-content img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.close {
  position: absolute;
  top: -50px;
  right: 0;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* ================= ACCESSIBILITY ================= */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 20px;
  top: 20px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  background: var(--gradient-main);
  color: #000;
  border-radius: 8px;
  z-index: 3000;
}

/* ================= COMMAND PALETTE ================= */
.cmdk-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  z-index: 3000;
}

.cmdk-overlay.show {
  display: flex;
}

.cmdk {
  width: min(680px, 92vw);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.cmdk-input {
  width: 100%;
  padding: 18px 20px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: none;
  color: var(--text);
  outline: none;
}

.cmdk-list {
  max-height: 50vh;
  overflow: auto;
  padding: 8px;
}

.cmdk-item {
  padding: 12px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
}

.cmdk-item:hover,
.cmdk-item.active {
  background: var(--nav-hover-bg);
}

/* Voice Control Button Styles */
#voiceToggle {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  font-size: 1.1rem;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

#voiceToggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#voiceToggle.active {
  background: var(--gradient-main);
  color: white;
  animation: pulse 2s infinite;
  box-shadow: 0 0 20px rgba(79, 172, 254, 0.5);
}

@keyframes pulse {
  0% { box-shadow: 0 0 20px rgba(79, 172, 254, 0.5); }
  50% { box-shadow: 0 0 30px rgba(79, 172, 254, 0.8); }
  100% { box-shadow: 0 0 20px rgba(79, 172, 254, 0.5); }
}

#voiceToggle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(255, 0, 0, 0.2);
}

/* Voice feedback styles */
.voice-feedback {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--gradient-main);
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
  pointer-events: none;
}

.voice-feedback.show {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  #voiceToggle {
    font-size: 1rem;
    padding: 6px 10px;
  }
  
  .voice-feedback {
    bottom: 10px;
    right: 10px;
    left: 10px;
    text-align: center;
  }
}
@media (max-width: 992px) {
  .navbar {
    width: 95%;
    padding: 10px 20px;
  }

  .nav-links {
    display: none;
    /* Mobile menu can be added if needed */
  }

  .section-card {
    padding: 30px 20px;
    border-radius: 30px;
  }

  .hero-btns,
  .social-links,
  .about-btns {
    justify-content: center;
  }

  .timeline {
    padding-left: 20px;
  }

  .timeline-item::before {
    left: -26px;
  }
}

@media (max-width: 768px) {
  .section-head h2 {
    font-size: 1.8rem;
  }

  .achievement-item {
    flex-direction: column;
    text-align: center;
  }
}