:root {
  --primary-color: #8a2be2;
  --secondary-color: #00ced1;
  --bg-dark: #0a0a0a;
  --bg-light: #ffffff;
  --text-dark: #ffffff;
  --text-light: #333333;
  --card-dark: rgba(20, 20, 30, 0.8);
  --card-light: rgba(255, 255, 255, 0.9);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
section {
  scroll-margin-top: 80px;
}
h1,
.hero-title {
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  line-height: 1.2;
}

/* 💡 Fix FOUC: Hide GSAP-animated elements initially */
.hero-content-left,
.hero-image-right,
.hero-title,
.typing-text,
.social-icon,
.card,
.about-photo-enhanced,
.timeline-item {
  opacity: 0;
  visibility: hidden; /* Ensure it doesn't block interaction/layout before animation */
}
/* Revert visibility immediately via JS or allow GSAP to handle it (GSAP auto-handles visibility:inherit usually if configured, but opacity 0 is safest).
   Actually, GSAP 'from' tweens handle immediate rendering, but if JS delays, users see FOUC.
   Best practice: Set opacity:0 in CSS. */

h2 {
  font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
}
h3 {
  font-family: "Fira Code", monospace;
}
.seo-verified-check {
  color: #1877f2;
  filter: drop-shadow(0 0 10px rgba(24, 119, 242, 0.6));
}
.seo-white-icon {
  color: #ffffff;
}
.seo-contact-link {
  text-decoration: none;
  color: inherit;
  display: block;
  margin-bottom: 0.5rem;
}
.seo-terminal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid #333;
  padding-bottom: 5px;
}
.seo-terminal-title {
  color: #8a2be2;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-family: "Orbitron", sans-serif;
}
.seo-terminal-help-btn {
  background: none;
  border: none;
  color: #00ced1;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.3s;
}
.seo-circuit-line {
  top: 50%;
  width: 100px;
}
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #8a2be2, #00ced1);
  border-radius: 10px;
  border: 2px solid #0a0a0a;
}
body {
  font-family: "Fira Code", monospace;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: url("../img/bg.webp") no-repeat center center fixed !important;
  background-size: cover !important;
  background-color: #0a0a0a !important; /* Fallback */
  transition: all 0.3s ease;
  position: relative;
  text-shadow: 0 1px 3px rgb(0 0 0 / 0.8);
}

#skills .card-3d i,
#hobbies .card-3d i {
  transition: all 0.3s ease;
  position: relative;
}
#skills .card-3d:hover i {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 0 15px currentColor);
  animation: iconPulse 2s ease-in-out infinite;
}
#hobbies .card-3d:hover i {
  transform: scale(1.15);
  filter: drop-shadow(0 0 12px currentColor);
  animation: iconBounce 1s ease-in-out infinite;
}
@keyframes iconPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 10px currentColor);
  }
  50% {
    filter: drop-shadow(0 0 20px currentColor);
  }
}
@keyframes iconBounce {
  0%,
  100% {
    transform: scale(1.15) translateY(0);
  }
  50% {
    transform: scale(1.2) translateY(-5px);
  }
}
#skills .card-3d:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgb(138 43 226 / 0.4);
}
#hobbies .card-3d:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 35px rgb(0 206 209 / 0.4);
}
#skills .card-3d::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgb(138 43 226 / 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(circle at 80% 50%, rgb(0 206 209 / 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  animation: particleMove 3s ease-in-out infinite;
}
#skills .card-3d:hover::after {
  opacity: 1;
}
@keyframes particleMove {
  0%,
  100% {
    background-position:
      0% 50%,
      100% 50%;
  }
  50% {
    background-position:
      100% 50%,
      0% 50%;
  }
}
#skills .card-3d:hover h3,
#hobbies .card-3d:hover h3 {
  text-shadow: 0 0 10px rgb(138 43 226 / 0.6);
  transition: text-shadow 0.3s ease;
}
#skills .card:not(.card-3d) {
  position: relative;
  transition: all 0.3s ease;
}
#skills .card:not(.card-3d):hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgb(138 43 226 / 0.3);
}
#skills .card:not(.card-3d) h4 {
  position: relative;
  display: inline-block;
}
#skills .card:not(.card-3d):hover h4::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #8a2be2, #00ced1);
  animation: underlineExpand 0.3s ease forwards;
}
@keyframes underlineExpand {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
#skills .card-3d .text-sm,
#hobbies .card-3d h3 {
  position: relative;
  overflow: hidden;
}
#skills .card-3d:hover .text-sm::before,
#hobbies .card-3d:hover h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(255 255 255 / 0.2),
    transparent
  );
  animation: shimmerText 1.5s ease-in-out;
}
@keyframes shimmerText {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}
#hobbies .card-3d {
  background: linear-gradient(
    135deg,
    rgb(138 43 226 / 0.05),
    rgb(0 206 209 / 0.05)
  );
}
#hobbies .card-3d:hover {
  background: linear-gradient(
    135deg,
    rgb(138 43 226 / 0.1),
    rgb(0 206 209 / 0.1)
  );
}

/* 💡 Mobile Smoothness Optimizations */
@media (max-width: 768px) {
  /* Disable expensive backdrop-filter on mobile */
  .navbar,
  .card,
  .terminal-card,
  .magnetic-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: rgba(20, 20, 30, 0.95) !important;
  }

  /* Simplify shadows to reduce GPU load */
  .glow-special,
  .neon-cyan,
  .neon-purple,
  .neon-yellow {
    text-shadow: 0 0 10px currentColor !important;
  }

  /* Reduce animation complexity */
  .cleanGlowPulse,
  .skillBorderFlow,
  .borderGlow {
    animation-duration: 6s !important; /* Slower = lighter */
  }
}
@media (max-width: 768px) {
  #skills .card-3d:hover,
  #hobbies .card-3d:hover {
    transform: translateY(-5px) scale(1.01);
  }
  #skills .card-3d:hover i,
  #hobbies .card-3d:hover i {
    transform: scale(1.1);
  }
}
html,
body {
  overflow-x: hidden !important;
  overscroll-behavior-x: none;
  /* 💡 Better performance for animations */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.cyber-download-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 36px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #00ced1;
  background: linear-gradient(
    135deg,
    rgb(0 206 209 / 0.1),
    rgb(138 43 226 / 0.1)
  );
  border: 2px solid #fff0;
  border-radius: 50px;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow:
    0 0 20px rgb(0 206 209 / 0.3),
    inset 0 0 20px rgb(0 206 209 / 0.05);
}
.cyber-download-btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #00ced1, #8a2be2, #00ced1);
  background-size: 300% 300%;
  border-radius: 50px;
  z-index: -1;
  animation: borderGlow 3s ease infinite;
}
@keyframes borderGlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.cyber-download-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(0 206 209 / 0.4),
    transparent
  );
  transition: left 0.7s ease;
}
.cyber-download-btn:hover::after {
  left: 100%;
}
.cyber-download-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 0 40px rgb(0 206 209 / 0.6),
    inset 0 0 30px rgb(0 206 209 / 0.15),
    0 10px 30px rgb(0 0 0 / 0.3);
  color: #00ffe1;
  text-shadow: 0 0 10px rgb(0 206 209 / 0.8);
}
.btn-text {
  z-index: 1;
  transition: all 0.3s ease;
}
.btn-icon {
  z-index: 1;
  font-size: 1.1em;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.cyber-download-btn:hover .btn-icon {
  transform: translateY(3px);
  filter: drop-shadow(0 0 10px #00ced1);
}
.cyber-download-btn:active {
  transform: translateY(-1px) scale(0.98);
}
@media (max-width: 640px) {
  .cyber-download-btn {
    padding: 12px 28px;
    font-size: 0.85rem;
  }
}
.dark {
  background: var(--bg-dark);
  color: var(--text-dark);
}
.dark .card {
  background: var(--card-dark);
  backdrop-filter: blur(10px);
  border: 1px solid rgb(138 43 226 / 0.3);
}
.light {
  background: var(--bg-light);
  color: var(--text-light);
}
.light .card {
  background: var(--card-light);
  backdrop-filter: blur(10px);
  border: 1px solid rgb(0 0 0 / 0.1);
  box-shadow: 0 8px 32px rgb(0 0 0 / 0.1);
}

.light body {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: #333 !important;
  text-shadow: none !important;
}
.light .contact-form-card {
  background: rgb(255 255 255 / 0.8);
  border-color: rgb(0 0 0 / 0.1);
  box-shadow: 0 10px 40px rgb(0 0 0 / 0.1);
}
.light .form-input {
  background: #fff;
  color: #333;
  border-color: #ccc;
}
.light .form-input::placeholder {
  color: #888;
}
.light .form-input:focus {
  background: #fff;
  border-color: #00ced1;
  color: #333;
  box-shadow: 0 0 15px rgb(0 206 209 / 0.2);
}
.light .form-input:focus::placeholder {
  color: #bbb;
}
.light .form-label-top,
.light .form-label-top i {
  color: #555 !important;
  text-shadow: none !important;
  filter: none !important;
}
.light .neon-cyan,
.light .neon-purple,
.light h2,
.light h3 {
  color: #2c3e50 !important;
  text-shadow: none !important;
}
.light .nav-link {
  color: #333 !important;
}
.light .hero-photo-wrapper {
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.2);
}
#home {
  padding-top: 120px;
}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  will-change: backdrop-filter;
}
.dark .navbar {
  background: rgb(10 10 10 / 0.9);
  border-bottom: 1px solid rgb(138 43 226 / 0.3);
}
.light .navbar {
  background: rgb(255 255 255 / 0.9);
  border-bottom: 1px solid rgb(0 0 0 / 0.1);
}
.glitch {
  position: relative;
  font-family: "Orbitron", monospace;
  font-weight: 900;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-text-stroke: 0.5px rgb(255 255 255 / 0.1);
}
.glow-special {
  color: #fffef5;
  text-shadow:
    0 0 10px rgb(255 224 102 / 0.8),
    0 0 20px rgb(255 214 0 / 0.6),
    0 0 30px rgb(127 181 255 / 0.4),
    0 0 40px rgb(81 143 254 / 0.3),
    0 2px 4px rgb(0 0 0 / 0.9);
  filter: brightness(1.1) contrast(1.1);
  animation: cleanGlowPulse 4s ease-in-out infinite;
}
@keyframes cleanGlowPulse {
  0%,
  100% {
    filter: brightness(1.1) contrast(1.1);
    text-shadow:
      0 0 10px rgb(255 224 102 / 0.8),
      0 0 20px rgb(255 214 0 / 0.6),
      0 0 30px rgb(127 181 255 / 0.4),
      0 0 40px rgb(81 143 254 / 0.3),
      0 2px 4px rgb(0 0 0 / 0.9);
  }
  50% {
    filter: brightness(1.2) contrast(1.15);
    text-shadow:
      0 0 15px rgb(255 224 102),
      0 0 30px rgb(255 214 0 / 0.8),
      0 0 45px rgb(127 181 255 / 0.6),
      0 0 60px rgb(81 143 254 / 0.5),
      0 2px 6px rgb(0 0 0 / 0.9);
  }
}
.glitch::before,
.glitch::after {
  display: none;
}
@keyframes subtleShimmer {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.95;
  }
}
@media (max-width: 768px) {
  .glitch {
    -webkit-text-stroke: 0.8px rgb(255 255 255 / 0.15);
  }
  .glow-special {
    text-shadow:
      0 0 12px #ffe066,
      0 0 20px #ffd600,
      0 0 30px #7fb5ff,
      0 0 40px #518ffe,
      0 3px 6px rgb(0 0 0);
    filter: brightness(1.15) contrast(1.15);
  }
  .hero-title ~ div i {
    min-width: 24px;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .glow-special {
    text-shadow:
      0 0 10px #ffe066,
      0 0 18px #ffd600,
      0 0 28px #7fb5ff,
      0 0 38px #518ffe,
      0 2px 5px rgb(0 0 0 / 0.9);
  }
}
.neon-yellow {
  position: relative;
  color: #ffd600;
  text-shadow:
    0 0 8px #ffe066,
    0 0 22px #ffd600,
    0 0 38px #ffd600;
  font-family: "Poppins", "Orbitron", Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 2px;
  padding-bottom: 1rem;
  transition:
    text-shadow 0.4s cubic-bezier(0.61, 0.13, 0.46, 1.23),
    color 0.3s;
}
.neon-yellow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ffd600, transparent);
  border-radius: 2px;
  box-shadow: 0 0 10px #ffd600;
  animation: underlinePulse 2s ease-in-out infinite;
}
@keyframes underlinePulse {
  0%,
  100% {
    width: 100px;
    opacity: 0.8;
  }
  50% {
    width: 150px;
    opacity: 1;
  }
}
.neon-yellow .heading-highlight {
  font-weight: 500;
}
.heading-highlight {
  display: inline-block;
  position: relative;
  background: linear-gradient(
    135deg,
    rgb(138 43 226 / 0.15),
    rgb(0 206 209 / 0.15)
  );
  padding: 0.5em 2em;
  border-radius: 50px;
  box-shadow:
    0 4px 20px rgb(138 43 226 / 0.2),
    inset 0 1px 0 rgb(255 255 255 / 0.1);
  margin-bottom: 0.4em;
  overflow: hidden;
}
.heading-highlight::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    #8a2be2,
    #00ced1,
    #ffd600,
    #ff6f61,
    #8a2be2
  );
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  animation: borderGlow 3s linear infinite;
  background-size: 300% 300%;
}
.heading-highlight:hover::before {
  opacity: 0.6;
}
@keyframes borderGlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.heading-highlight::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(255 255 255 / 0.3),
    transparent
  );
  animation: shimmer 3s infinite;
}
@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}
.heading-animate {
  position: relative;
  animation: headingPop 1.15s cubic-bezier(0.17, 0.67, 0.58, 1.31);
}
.heading-animate::before,
.heading-animate::after {
  content: "✦";
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.6;
  animation: particleFloat 3s ease-in-out infinite;
}
.heading-animate::before {
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a2be2;
  animation-delay: 0s;
}
.heading-animate::after {
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  color: #00ced1;
  animation-delay: 1.5s;
}
@keyframes particleFloat {
  0%,
  100% {
    transform: translateY(-50%) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-70%) scale(1.2);
    opacity: 1;
  }
}
@keyframes headingPop {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.92);
  }
  70% {
    opacity: 1;
    transform: translateY(-9px) scale(1.08);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (max-width: 768px) {
  .heading-animate::before,
  .heading-animate::after {
    display: none;
  }
  .heading-highlight {
    padding: 0.4em 1.5em;
    font-size: 0.9em;
  }
}
.neon-purple {
  color: #b366ff;
  text-shadow:
    0 0 4px rgb(179 102 255 / 0.45),
    0 0 6px rgb(179 102 255 / 0.12);
}
.neon-cyan {
  color: #00fafe;
  text-shadow:
    0 0 4px rgb(0 250 254 / 0.35),
    0 0 8px rgb(0 250 254 / 0.1);
}
.neon-border {
  border: 2px solid #fff0;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  background-clip: padding-box;
  position: relative;
}
.neon-border::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: inherit;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: subtract;
}
.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.2s ease;
  will-change: transform;
}
.card-3d:hover {
  transform: rotateY(3deg) rotateX(3deg) translateZ(10px);
}
.circuit-line {
  position: absolute;
  background: linear-gradient(
    90deg,
    transparent,
    var(--secondary-color),
    transparent
  );
  height: 2px;
  animation: circuit-flow 4s infinite linear;
  will-change: transform, opacity;
}
@keyframes circuit-flow {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}
.theme-toggle {
  position: relative;
  width: 60px;
  height: 30px;
  background: var(--primary-color);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.theme-toggle::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
}
.theme-toggle.active::before {
  transform: translateX(30px);
}
.profile-link {
  transition: all 0.3s ease;
  font-size: 1.5rem;
  display: inline-block;
  color: #c0c0c0; /* Fallback light color */
}
.profile-link:hover {
  transform: translateY(-3px) scale(1.1);
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--primary-color);
}
@media (max-width: 768px) {
  .glitch {
    font-size: 2rem;
  }
  .hero-title {
    font-size: clamp(2.2rem, 10vw, 3.2rem) !important;
    text-shadow:
      0 0 20px rgba(0, 0, 0, 0.9),
      0 0 40px rgba(255, 214, 0, 0.4);
    letter-spacing: -1px;
    line-height: 1.3 !important;
    will-change: transform, opacity;
  }
  .neon-cyan {
    text-shadow:
      0 0 15px rgba(0, 0, 0, 1),
      0 0 10px rgba(0, 206, 209, 0.8) !important;
    font-weight: 600;
  }
  .navbar {
    padding: 0.5rem;
  }
}
.timeline {
  position: relative;
  padding: 2rem 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    to bottom,
    rgb(138 43 226 / 0.3),
    rgb(138 43 226 / 0.8),
    rgb(0 206 209 / 0.8),
    rgb(0 206 209 / 0.3)
  );
  transform: translateX(-50%);
  box-shadow: 0 0 20px rgb(138 43 226 / 0.5);
  animation: timelinePulse 3s ease-in-out infinite;
}
@keyframes timelinePulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgb(138 43 226 / 0.5);
    opacity: 0.8;
  }
  50% {
    box-shadow: 0 0 30px rgb(0 206 209 / 0.8);
    opacity: 1;
  }
}
.timeline::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 8px;
  height: 8px;
  background: #ffd600;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 15px #ffd600;
  animation: energyFlow 4s linear infinite;
}
@keyframes energyFlow {
  0% {
    top: 0;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}
.timeline-item {
  position: relative;
  margin: 3rem 0;
  opacity: 0;
  animation: timelineItemAppear 0.6s ease forwards;
}
.timeline-item:nth-child(1) {
  animation-delay: 0.2s;
}
.timeline-item:nth-child(2) {
  animation-delay: 0.4s;
}
.timeline-item:nth-child(3) {
  animation-delay: 0.6s;
}
.timeline-item:nth-child(4) {
  animation-delay: 0.8s;
}
@keyframes timelineItemAppear {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #8a2be2, #00ced1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 4px rgb(10 10 10 / 0.9),
    0 0 20px rgb(138 43 226 / 0.8),
    0 0 40px rgb(0 206 209 / 0.6);
  z-index: 10;
  animation: nodePulse 2s ease-in-out infinite;
}
@keyframes nodePulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow:
      0 0 0 4px rgb(10 10 10 / 0.9),
      0 0 20px rgb(138 43 226 / 0.8),
      0 0 40px rgb(0 206 209 / 0.6);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow:
      0 0 0 4px rgb(10 10 10 / 0.9),
      0 0 30px rgb(138 43 226),
      0 0 60px rgb(0 206 209 / 0.8);
  }
}
.timeline-item::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid #8a2be2;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ripple 2s ease-out infinite;
  z-index: 5;
}
@keyframes ripple {
  0% {
    width: 20px;
    height: 20px;
    opacity: 1;
  }
  100% {
    width: 60px;
    height: 60px;
    opacity: 0;
  }
}
.timeline-item .card {
  position: relative;
  transition: all 0.4s ease;
  overflow: hidden;
}
.timeline-item .card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #8a2be2, #00ced1, #ffd600, #8a2be2);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  background-size: 300% 300%;
  animation: borderFlow 4s ease infinite;
}
.timeline-item .card:hover::before {
  opacity: 0.5;
}
@keyframes borderFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.timeline-item .card:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 50px rgb(138 43 226 / 0.4);
}
.circuit-line {
  position: absolute;
  background: linear-gradient(
    90deg,
    transparent,
    var(--secondary-color),
    transparent
  );
  height: 2px;
  animation: circuit-flow 4s infinite linear;
  will-change: transform, opacity;
  box-shadow: 0 0 10px var(--secondary-color);
}
.timeline-item .card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #8a2be2, #00ced1);
  transition: width 0.6s ease;
  box-shadow: 0 0 10px rgb(138 43 226 / 0.8);
}
.timeline-item .card:hover::after {
  width: 100%;
}
.timeline-item .card:hover h3 {
  color: #ffd600;
  text-shadow: 0 0 15px rgb(255 214 0 / 0.8);
  transition: all 0.3s ease;
}
.timeline-item .card:hover p,
.timeline-item .card:hover .text-purple-400,
.timeline-item .card:hover .text-cyan-400 {
  animation: textShimmer 2s ease-in-out infinite;
}
@keyframes textShimmer {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
    text-shadow: 0 0 8px currentColor;
  }
}
.gpa-highlight {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(
    135deg,
    rgb(138 43 226 / 0.3),
    rgb(0 206 209 / 0.3)
  );
  border: 2px solid rgb(255 214 0 / 0.6);
  border-radius: 20px;
  font-weight: 700;
  font-size: 1.1em;
  color: #ffd600;
  text-shadow: 0 0 10px rgb(255 214 0 / 0.8);
  box-shadow:
    0 0 15px rgb(255 214 0 / 0.4),
    inset 0 0 10px rgb(255 214 0 / 0.2);
  animation: gpaGlow 2s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}
.gpa-highlight::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgb(255 255 255 / 0.1),
    transparent
  );
  transform: rotate(45deg);
  animation: gpaShine 3s linear infinite;
}
@keyframes gpaGlow {
  0%,
  100% {
    box-shadow:
      0 0 15px rgb(255 214 0 / 0.4),
      inset 0 0 10px rgb(255 214 0 / 0.2);
    border-color: rgb(255 214 0 / 0.6);
  }
  50% {
    box-shadow:
      0 0 25px rgb(255 214 0 / 0.8),
      inset 0 0 15px rgb(255 214 0 / 0.4);
    border-color: rgb(255 214 0);
  }
}
@keyframes gpaShine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}
.timeline-item .card:hover .gpa-highlight {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}
@media (max-width: 768px) {
  .timeline::before {
    left: 2rem;
  }
  .timeline::after {
    left: 2rem;
  }
  .timeline-item::before {
    left: 2rem;
  }
  .timeline-item::after {
    left: 2rem;
  }
  .timeline-item .card {
    margin-left: 1rem;
  }
  .timeline-item .card:hover {
    transform: scale(1.02);
  }
}
.hero-photo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-photo-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  border: 4px solid rgb(138 43 226 / 0.3);
  transition: all 0.3s ease;
  filter: grayscale(20%);
}
.hero-photo-wrapper:hover .hero-photo {
  filter: grayscale(0%) contrast(1.1);
  animation: photoGlitch 0.2s infinite;
}
@keyframes photoGlitch {
  0% {
    transform: translate(0);
  }
  25% {
    transform: translate(1px, -1px);
  }
  50% {
    transform: translate(-1px, 1px);
  }
  75% {
    transform: translate(1px, 1px);
  }
  100% {
    transform: translate(0);
  }
}
.hero-photo-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(45deg, #8a2be2, #00ced1, #ffd600);
  border-radius: 50%;
  z-index: 1;
  animation: none;
  filter: blur(15px);
  opacity: 0.7;
  transform: scale(1.05);
}
.hero-photo-border {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border: 2px solid #fff0;
  border-radius: 50%;
  background: linear-gradient(45deg, #8a2be2, #00ced1) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: 1;
  animation: none;
  transform: rotate(15deg);
}
@keyframes photoGlow {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}
@keyframes borderRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.about-blueprint-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}
.neural-circuits {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
/* 💡 Performance: Disabled circuit animations for better mobile performance */
.circuit-path {
  display: none; /* Removed to eliminate lag */
}
.circuit-node {
  display: none; /* Removed to eliminate lag */
}
.projection-lens {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(0 206 209 / 0.1) 0%, transparent 70%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}
.projection-image-container {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 4px solid rgb(0 206 209 / 0.2);
  transform: translateZ(0);
  z-index: 2;
}
.projected-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.15) brightness(1.1) saturate(1.15) hue-rotate(-3deg);
  transition: all 0.5s ease;
}
.projection-lens:hover .projected-profile-img {
  filter: contrast(1.2) brightness(1.15) saturate(1.2) hue-rotate(0deg);
  transform: scale(1.1);
}
.projection-noise {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(https://grainy-gradients.vercel.app/noise.svg);
  opacity: 0.15;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.hud-circle {
  position: absolute;
  border: 1px dashed rgb(0 206 209 / 0.4);
  border-radius: 50%;
  pointer-events: none;
}
.hud-outer {
  width: 340px;
  height: 340px;
  transform: rotate(0deg);
}
.hud-inner {
  width: 290px;
  height: 290px;
  transform: rotate(0deg);
}
/* 💡 Performance: Removed hud-scanner-line animation - was causing lag */
.hud-scanner-line {
  display: none; /* Disabled to improve performance */
}
.micro-data-stream {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: "Fira Code", monospace;
  font-size: 0.6rem;
  color: rgb(0 206 209 / 0.6);
  letter-spacing: 1px;
  pointer-events: none;
}
/* 💡 Performance: Disabled blinking text animation for better mobile performance */
.micro-data-stream span {
  animation: none; /* Removed blinking effect */
  opacity: 0.6; /* Static opacity */
}
.focus-bracket {
  position: absolute;
  width: 25px;
  height: 25px;
  border: 2px solid #00ced1;
  opacity: 0;
  transition: all 0.4s ease;
}
.projection-lens:hover .focus-bracket {
  opacity: 1;
}
.focus-bracket.tl {
  top: -10px;
  left: -10px;
  border-right: 0;
  border-bottom: 0;
}
.focus-bracket.tr {
  top: -10px;
  right: -10px;
  border-left: 0;
  border-bottom: 0;
}
.focus-bracket.bl {
  bottom: -10px;
  left: -10px;
  border-right: 0;
  border-top: 0;
}
.focus-bracket.br {
  bottom: -10px;
  right: -10px;
  border-left: 0;
  border-top: 0;
}
.projection-lens:hover .focus-bracket.tl {
  transform: translate(15px, 15px);
}
.projection-lens:hover .focus-bracket.tr {
  transform: translate(-15px, 15px);
}
.projection-lens:hover .focus-bracket.bl {
  transform: translate(15px, -15px);
}
.projection-lens:hover .focus-bracket.br {
  transform: translate(-15px, -15px);
}
.terminal-body {
  position: relative;
}
.terminal-body::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(
    circle at bottom right,
    rgb(138 43 226 / 0.1),
    transparent 70%
  );
  pointer-events: none;
}
@media (max-width: 1024px) {
  .micro-data-stream {
    right: 0;
    top: -40px;
    flex-direction: row;
    transform: none;
    width: 100%;
    justify-content: center;
    font-size: 0.5rem;
  }
}
@media (max-width: 768px) {
  .projection-lens {
    width: 260px;
    height: 260px;
  }
  .projection-image-container {
    width: 210px;
    height: 210px;
  }
  .hud-outer {
    width: 280px;
    height: 280px;
  }
  .hud-inner {
    width: 240px;
    height: 240px;
  }
  .hud-scanner-line {
    width: 300px;
  }
}
.about-image-section {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.about-photo-enhanced {
  position: relative;
  width: 100%;
  max-width: 440px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}
.about-photo-wrapper-new {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  z-index: 2;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 0 50px rgb(138 43 226 / 0.2);
}
.about-profile-img-new {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  filter: contrast(1.1) brightness(0.9);
}
.about-photo-wrapper-new:hover .about-profile-img-new {
  transform: scale(1.1);
  filter: contrast(1.2) brightness(1);
}
.hologram-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgb(0 206 209 / 0.05) 0,
    rgb(0 206 209 / 0.05) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 3;
}
.hologram-scanner {
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgb(0 206 209 / 0.3),
    transparent
  );
  z-index: 4;
  animation: scan 4s linear infinite;
  pointer-events: none;
}
@keyframes scan {
  0% {
    top: -20%;
  }
  100% {
    top: 120%;
  }
}
.corner-bracket {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid #00ced1;
  z-index: 5;
  opacity: 0.6;
}
.corner-bracket.top-left {
  top: 10px;
  left: 10px;
  border-right: 0;
  border-bottom: 0;
}
.corner-bracket.top-right {
  top: 10px;
  right: 10px;
  border-left: 0;
  border-bottom: 0;
}
.corner-bracket.bottom-left {
  bottom: 10px;
  left: 10px;
  border-right: 0;
  border-top: 0;
}
.corner-bracket.bottom-right {
  bottom: 10px;
  right: 10px;
  border-left: 0;
  border-top: 0;
}
.floating-tech-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgb(10 10 10 / 0.85);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid rgb(0 206 209 / 0.3);
  box-shadow: 0 4px 15px rgb(0 0 0 / 0.5);
  z-index: 10;
  animation: badgeFloat 4s ease-in-out infinite;
}
.badge-1 {
  top: 15%;
  left: 0%;
  animation-delay: 0s;
}
.badge-2 {
  bottom: 15%;
  right: 0%;
  animation-delay: 1.5s;
}
.badge-dot {
  width: 6px;
  height: 6px;
  background: #00ced1;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ced1;
}
.badge-text {
  font-family: "Fira Code", monospace;
  font-size: 0.75rem;
  letter-spacing: 1px;
}
@keyframes badgeFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}
.terminal-card {
  background: rgb(15 15 25 / 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgb(138 43 226 / 0.3);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgb(0 0 0 / 0.4);
}
.terminal-header {
  background: rgb(0 0 0 / 0.4);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgb(255 255 255 / 0.05);
}
.terminal-dots {
  display: flex;
  gap: 6px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red {
  background: #ff5f56;
}
.dot.yellow {
  background: #ffbd2e;
}
.dot.green {
  background: #27c93f;
}
.terminal-title {
  font-family: "Fira Code", monospace;
  font-size: 0.8rem;
  opacity: 0.6;
  margin-left: 20px;
}
.stat-card {
  background: rgb(255 255 255 / 0.03);
  border: 1px solid rgb(255 255 255 / 0.05);
  border-radius: 12px;
  padding: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-card:hover {
  background: rgb(138 43 226 / 0.05);
  border-color: rgb(138 43 226 / 0.3);
  transform: translateX(5px);
}
.stat-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stat-icon-mini {
  font-size: 1.25rem;
  color: rgb(255 255 255 / 0.4);
  transition: color 0.3s;
}
.stat-card:hover .stat-icon-mini {
  color: #8a2be2;
}
.stat-content {
  display: flex;
  flex-direction: column;
}
.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: "Orbitron", monospace;
  line-height: 1.2;
}
.stat-label {
  font-size: 0.7rem;
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.light .terminal-card {
  background: rgb(255 255 255 / 0.8);
  border-color: rgb(0 0 0 / 0.1);
  box-shadow: 0 15px 35px rgb(0 0 0 / 0.05);
}
.light .terminal-header {
  background: rgb(0 0 0 / 0.03);
}
.light .stat-card {
  background: rgb(0 0 0 / 0.02);
  border-color: rgb(0 0 0 / 0.05);
}
.light .stat-card:hover {
  background: rgb(0 206 209 / 0.05);
  border-color: rgb(0 206 209 / 0.2);
}
.light .stat-icon-mini {
  color: #333;
}
.light .badge-text {
  color: #333;
}
@media (max-width: 768px) {
  .about-photo-enhanced {
    padding: 20px;
    max-width: 300px;
    margin: 0 auto;
  }
  .badge-1 {
    top: 5%;
    left: -10%;
  }
  .badge-2 {
    bottom: 5%;
    right: -10%;
  }
}
.hero-photo:hover {
  transform: scale(1.05);
  border-color: rgb(138 43 226 / 0.6);
}
.about-photo:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgb(0 0 0 / 0.4);
}
@media (max-width: 768px) {
  .hero-photo-wrapper {
    width: 150px;
    height: 150px;
  }
  .about-photo-wrapper {
    width: 120px;
    height: 120px;
  }
}
#home {
  padding-top: calc(var(--navbar-height) + 20px);
}
@media (min-width: 769px) {
  #home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
@media (max-width: 768px) {
  #mobileMenuBtn {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
    right: calc(env(safe-area-inset-right, 0px) + 16px);
    z-index: 1100;
  }
  .theme-toggle {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    right: calc(env(safe-area-inset-right, 0px) + 84px);
    z-index: 1100;
  }
  body {
    padding-top: calc(var(--navbar-height) + env(safe-area-inset-top, 0px));
  }
  #mobileMenu {
    position: fixed;
    top: calc(var(--navbar-height) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    margin-top: 0 !important;
    padding-top: 8px;
    z-index: 1050;
    background: rgb(10 10 10 / 0.95);
    border-bottom: 1px solid rgb(138 43 226 / 0.2);
    max-height: calc(
      100vh - env(safe-area-inset-top, 0) - var(--navbar-height)
    );
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .light #mobileMenu {
    background: rgb(255 255 255 / 0.95);
    border-bottom: 1px solid rgb(0 0 0 / 0.08);
  }
  #home {
    padding-top: 0;
  }
}
.contact-grid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgb(138 43 226 / 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgb(138 43 226 / 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
  pointer-events: none;
}
.magnetic-card {
  position: relative;
  height: 200px;
  perspective: 1000px;
  cursor: pointer;
  transition: transform 0.1s ease-out;
}
.magnetic-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 2rem;
  background: linear-gradient(
    135deg,
    rgb(138 43 226 / 0.1),
    rgb(0 206 209 / 0.1)
  );
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 2px solid rgb(138 43 226 / 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.3s ease;
  overflow: hidden;
}
.magnetic-card-inner::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #8a2be2, #00ced1, #ffd600, #8a2be2);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  background-size: 300% 300%;
  animation: none;
  background-position: 50% 50%;
}
.magnetic-card:hover .magnetic-card-inner::before {
  opacity: 0.6;
}
.magnetic-card:hover .magnetic-card-inner {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgb(138 43 226 / 0.4);
}
.contact-icon-wrapper {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgb(138 43 226 / 0.2),
    rgb(0 206 209 / 0.2)
  );
  border-radius: 50%;
  position: relative;
}
.contact-icon {
  font-size: 2rem;
  color: #00ced1;
  transform: translateY(0);
}
.magnetic-card:hover .contact-icon {
  filter: drop-shadow(0 0 15px currentColor);
  transform: scale(1.1);
}
@keyframes iconPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}
.contact-label {
  font-size: 0.875rem;
  color: #8a2be2;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.contact-value {
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 0.5rem;
  word-break: break-word;
  transition: all 0.3s ease;
}
.contact-value:hover {
  color: #ffd600;
  text-shadow: 0 0 10px rgb(255 214 0 / 0.6);
}
.contact-link {
  text-decoration: none;
}
.contact-link:hover {
  text-decoration: underline;
}
.click-hint {
  font-size: 0.75rem;
  color: rgb(255 255 255 / 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.magnetic-card:hover .click-hint {
  opacity: 1;
}
.card-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  border-radius: 20px;
}

.sidebar-profile-container {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}
.sidebar-avatar-wrapper {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgb(0 206 209 / 0.2);
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-hologram-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.15) brightness(1.1) saturate(1.2) hue-rotate(-3deg);
  transition: all 0.4s ease;
}
.avatar-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgb(0 206 209 / 0.4);
  box-shadow: 0 0 10px #00ced1;
  z-index: 3;
  animation: sidebarAvatarScan 3s linear infinite;
  pointer-events: none;
}
@keyframes sidebarAvatarScan {
  0% {
    transform: translateY(-10px);
    opacity: 0;
  }
  10%,
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(80px);
    opacity: 0;
  }
}
.sidebar-hud-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.hud-ring {
  transform-origin: center;
}
.inner-ring {
  animation: ringRotate 15s linear infinite;
}
.outer-ring {
  animation: ringRotate 25s linear infinite reverse;
}
.sidebar-profile-container:hover .sidebar-avatar-wrapper {
  transform: scale(1.1);
  border-color: #00ced1;
  box-shadow: 0 0 25px rgb(0 206 209 / 0.4);
}
.sidebar-profile-container:hover .sidebar-hologram-avatar {
  filter: contrast(1.2) brightness(1.15) saturate(1.25) hue-rotate(0deg);
}
.sidebar-profile-container:hover .inner-ring {
  animation-duration: 5s;
}
.sidebar-profile-container:hover .outer-ring {
  animation-duration: 8s;
}
.sidebar-status-dot {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 16px;
  height: 16px;
  background: #27c93f;
  border: 3px solid #1a1a1a;
  border-radius: 50%;
  box-shadow: 0 0 12px rgb(39 201 63 / 0.6);
  z-index: 5;
  animation: none;
  opacity: 1;
}
@keyframes statusBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
    transform: scale(0.9);
  }
}
@media (max-width: 768px) {
  .sidebar-profile-container {
    width: 80px;
    height: 80px;
  }
  .sidebar-avatar-wrapper {
    width: 55px;
    height: 55px;
  }
}
.social-orbital-container {
  position: relative;
}
.social-orbital {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
}
.orbital-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    rgb(138 43 226 / 0.3),
    rgb(0 206 209 / 0.3)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #ffd600;
  box-shadow: 0 0 30px rgb(255 214 0 / 0.4);
  animation: none;
  box-shadow: 0 0 40px rgb(255 214 0 / 0.6);
  z-index: 10;
}
@keyframes centerPulse {
  0%,
  100% {
    box-shadow: 0 0 30px rgb(255 214 0 / 0.4);
  }
  50% {
    box-shadow: 0 0 50px rgb(255 214 0 / 0.8);
  }
}
.orbital-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin-left: -30px;
  margin-top: -30px;
  background: linear-gradient(
    135deg,
    rgb(138 43 226 / 0.2),
    rgb(0 206 209 / 0.2)
  );
  backdrop-filter: blur(10px);
  border: 2px solid rgb(138 43 226 / 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  transition: all 0.3s ease;
}
.orbital-icon:hover {
  transform: scale(1.3) !important;
  background: linear-gradient(
    135deg,
    rgb(138 43 226 / 0.4),
    rgb(0 206 209 / 0.4)
  );
  box-shadow: 0 0 25px currentColor;
  z-index: 20;
}
.orbital-icon[data-orbit="0"] {
  transform: rotate(0deg) translateX(120px) rotate(0deg);
}
.orbital-icon[data-orbit="1"] {
  transform: rotate(60deg) translateX(120px) rotate(-60deg);
}
.orbital-icon[data-orbit="2"] {
  transform: rotate(120deg) translateX(120px) rotate(-120deg);
}
.orbital-icon[data-orbit="3"] {
  transform: rotate(180deg) translateX(120px) rotate(-180deg);
}
.orbital-icon[data-orbit="4"] {
  transform: rotate(240deg) translateX(120px) rotate(-240deg);
}
.orbital-icon[data-orbit="5"] {
  transform: rotate(300deg) translateX(120px) rotate(-300deg);
}
@keyframes orbit {
  from {
    transform: rotate(0deg) translateX(120px) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(120px) rotate(-360deg);
  }
}
.contact-form-card {
  background: rgba(20, 30, 60, 0.4); /* Glassy Blue (Matches Cards) */
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 206, 209, 0.2);
  border-top: 1px solid rgba(0, 206, 209, 0.5);
  border-bottom: 2px solid rgba(138, 43, 226, 0.4);
  border-radius: 20px;
  padding: 3rem 2rem;
  position: relative;
  overflow: visible;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.6),
    inset 0 0 20px rgba(138, 43, 226, 0.05);
}
.form-progress-container {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgb(138 43 226 / 0.2);
  border-radius: 10px;
  margin-bottom: 2rem;
  overflow: hidden;
}
.form-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #8a2be2, #00ced1, #ffd600);
  background-size: 200% 100%;
  border-radius: 10px;
  transition: width 0.3s ease;
  animation: none;
  box-shadow: 0 0 15px rgb(138 43 226 / 0.6);
  box-shadow: 0 0 15px rgb(138 43 226 / 0.6);
}
@keyframes progressGlow {
  0%,
  100% {
    background-position: 0% 50%;
    box-shadow: 0 0 15px rgb(138 43 226 / 0.6);
  }
  50% {
    background-position: 100% 50%;
    box-shadow: 0 0 25px rgb(0 206 209 / 0.8);
  }
}
.form-progress-text {
  position: absolute;
  top: -25px;
  right: 0;
  font-size: 0.75rem;
  color: #8a2be2;
  font-weight: 600;
}
.form-group {
  position: relative;
  margin-bottom: 2.5rem;
}
.form-label-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #8a2be2;
  transition: all 0.3s ease;
}
.form-label-top i {
  font-size: 1.2rem;
  color: #8a2be2;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 8px rgb(138 43 226 / 0.6));
  animation: none;
}
@keyframes iconGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 8px rgb(138 43 226 / 0.6));
  }
  50% {
    filter: drop-shadow(0 0 15px rgb(138 43 226 / 0.9));
  }
}
.form-group:has(.form-input:focus) .form-label-top {
  color: #00ced1;
}
.form-group:has(.form-input:focus) .form-label-top i {
  color: #00ced1;
  filter: drop-shadow(0 0 15px rgb(0 206 209 / 0.8));
  animation: iconPulseActive 0.6s ease;
}
@keyframes iconPulseActive {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}
.form-input {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.4); /* Darker input background */
  border: 1px solid rgba(138, 43, 226, 0.3);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}
.form-input::placeholder {
  color: rgb(255 255 255 / 0.4);
  font-size: 0.95rem;
}
.form-input:focus {
  border-color: #00ced1;
  background: rgb(0 206 209 / 0.05);
  box-shadow: 0 0 25px rgb(0 206 209 / 0.3);
  transform: translateY(-2px);
}
.form-input:focus::placeholder {
  color: rgb(255 255 255 / 0.3);
}
.input-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgb(0 206 209 / 0.3);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.form-input:focus ~ .input-ripple {
  animation: rippleEffect 0.6s ease-out;
}
@keyframes rippleEffect {
  0% {
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    width: 400px;
    height: 400px;
    opacity: 0;
  }
}
.form-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #8a2be2, #00ced1, #ffd600);
  background-size: 200% 100%;
  transition: width 0.4s ease;
  border-radius: 2px;
  animation: borderShine 3s ease-in-out infinite;
}
@keyframes borderShine {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.form-input:focus ~ .form-border {
  width: 100%;
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
  padding-top: 1rem;
}
.character-counter {
  position: absolute;
  bottom: -1.5rem;
  right: 0.5rem;
  font-size: 0.75rem;
  color: rgb(255 255 255 / 0.5);
  transition: color 0.3s ease;
}
.character-counter.warning {
  color: #ffd600;
}
.character-counter.danger {
  color: #ff6f61;
  animation: counterPulse 0.5s ease-in-out infinite;
}
@keyframes counterPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
.submit-button {
  position: relative;
  width: 100%;
  padding: 1.2rem 2rem;
  background: linear-gradient(135deg, #8a2be2, #00ced1);
  border: none;
  border-radius: 50px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgb(138 43 226 / 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.submit-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgb(255 255 255 / 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.6s ease,
    height 0.6s ease;
}
.submit-button:hover::before {
  width: 400px;
  height: 400px;
}
.submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgb(138 43 226 / 0.6);
}
.submit-button:active {
  transform: translateY(-1px);
}
.button-text,
.button-icon {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}
.button-icon {
  font-size: 1.2rem;
}
.submit-button:hover .button-icon {
  transform: translateX(5px);
}
.button-loader {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 3px solid rgb(255 255 255 / 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: spin 0.8s linear infinite;
}
.submit-button.loading .button-text,
.submit-button.loading .button-icon {
  opacity: 0;
}
.submit-button.loading .button-loader {
  opacity: 1;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.button-success {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}
.submit-button.success .button-text,
.submit-button.success .button-icon,
.submit-button.success .button-loader {
  opacity: 0;
}
.submit-button.success .button-success {
  opacity: 1;
  transform: scale(1);
  animation: successBounce 0.6s ease;
}
@keyframes successBounce {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}
.submit-button.error {
  animation: shake 0.5s ease;
  background: linear-gradient(135deg, #ff6f61, #8a2be2);
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}
.button-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  border-radius: 50px;
}
.submit-button:hover .button-particles::before,
.submit-button:hover .button-particles::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  background: #ffd600;
  border-radius: 50%;
  animation: particleFloat 2s ease-in-out infinite;
}
.submit-button:hover .button-particles::before {
  left: 20%;
  animation-delay: 0s;
}
.submit-button:hover .button-particles::after {
  right: 20%;
  animation-delay: 0.5s;
}
@keyframes particleFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  50% {
    transform: translateY(-30px) scale(1.5);
    opacity: 1;
  }
}
.copy-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, #8a2be2, #00ced1);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgb(138 43 226 / 0.5);
  transform: translateY(150%);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}
.copy-toast.show {
  transform: translateY(0);
  opacity: 1;
}
.copy-toast i {
  font-size: 1.25rem;
}
@media (max-width: 1024px) {
  .social-orbital {
    width: 250px;
    height: 250px;
  }
  .orbital-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  .orbital-icon[data-orbit="0"] {
    transform: rotate(0deg) translateX(100px) rotate(0deg);
  }
  .orbital-icon[data-orbit="1"] {
    transform: rotate(60deg) translateX(100px) rotate(-60deg);
  }
  .orbital-icon[data-orbit="2"] {
    transform: rotate(120deg) translateX(100px) rotate(-120deg);
  }
  .orbital-icon[data-orbit="3"] {
    transform: rotate(180deg) translateX(100px) rotate(-180deg);
  }
  .orbital-icon[data-orbit="4"] {
    transform: rotate(240deg) translateX(100px) rotate(-240deg);
  }
  .orbital-icon[data-orbit="5"] {
    transform: rotate(300deg) translateX(100px) rotate(-300deg);
  }
}
@media (max-width: 768px) {
  .magnetic-card {
    height: 180px;
  }
  .contact-icon-wrapper {
    width: 50px;
    height: 50px;
  }
  .contact-icon {
    font-size: 1.5rem;
  }
  .social-orbital {
    width: 200px;
    height: 200px;
  }
  .orbital-center {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
  .orbital-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin-left: -20px;
    margin-top: -20px;
  }
  .orbital-icon[data-orbit="0"] {
    transform: rotate(0deg) translateX(100px) rotate(0deg);
  }
  .orbital-icon[data-orbit="1"] {
    transform: rotate(60deg) translateX(100px) rotate(-60deg);
  }
  .orbital-icon[data-orbit="2"] {
    transform: rotate(120deg) translateX(100px) rotate(-120deg);
  }
  .orbital-icon[data-orbit="3"] {
    transform: rotate(180deg) translateX(100px) rotate(-180deg);
  }
  .orbital-icon[data-orbit="4"] {
    transform: rotate(240deg) translateX(100px) rotate(-240deg);
  }
  .orbital-icon[data-orbit="5"] {
    transform: rotate(300deg) translateX(100px) rotate(-300deg);
  }
  .contact-form-card {
    padding: 2rem 1.5rem;
  }
  .copy-toast {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    justify-content: center;
  }
}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgb(10 10 10 / 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgb(138 43 226 / 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, background;
}
.navbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgb(138 43 226 / 0.05) 0%,
    rgb(0 206 209 / 0.05) 50%,
    rgb(138 43 226 / 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.navbar:hover::before {
  opacity: 1;
}
.navbar.scrolled {
  background: rgb(10 10 10 / 0.95);
  padding: 0.75rem 0;
  box-shadow: 0 10px 30px rgb(138 43 226 / 0.3);
  border-bottom-color: rgb(138 43 226 / 0.4);
}
.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}
.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 2rem;
  transition: padding 0.3s ease;
}
.navbar.scrolled .navbar-content {
  padding: 0.5rem 0;
}
.navbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 1.75rem;
  font-weight: 700;
  font-family: "Orbitron", sans-serif;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.logo-text {
  background: linear-gradient(135deg, #8a2be2, #00ced1, #ffd600);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: #fff0;
  background-clip: text;
  animation: logoGradient 4s ease infinite;
  filter: drop-shadow(0 0 10px rgb(138 43 226 / 0.5));
}
.logo-dot {
  color: #ffd600;
  font-size: 2rem;
  animation: dotPulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgb(255 214 0 / 0.8));
}
@keyframes logoGradient {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
@keyframes dotPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}
.navbar-logo:hover .logo-text {
  animation-duration: 2s;
}
.navbar-logo:hover .logo-dot {
  animation-duration: 1s;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  color: rgb(255 255 255 / 0.8);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
}
.link-text {
  position: relative;
  z-index: 2;
}
.link-indicator {
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #00ced1;
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px #00ced1;
}
.nav-link.active .link-indicator {
  opacity: 1;
}
.nav-link.active {
  color: #00ced1;
}
.nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, #8a2be2, #00ced1);
  border-radius: 2px;
  transition: transform 0.3s ease;
}
.nav-link:hover::before {
  transform: translateX(-50%) scaleX(1);
}
.nav-link:hover {
  color: #fff;
  transform: translateY(-2px);
}
.nav-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(138 43 226 / 0.1);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-link:hover::after {
  opacity: 1;
}
.theme-toggle {
  position: relative;
  width: 60px;
  height: 30px;
  background: rgb(138 43 226 / 0.2);
  border: 2px solid rgb(138 43 226 / 0.4);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}
.theme-toggle:hover {
  border-color: #00ced1;
  box-shadow: 0 0 15px rgb(0 206 209 / 0.4);
}
.toggle-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
}
.sun-icon,
.moon-icon {
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.sun-icon {
  color: #ffd600;
}
.moon-icon {
  color: #00ced1;
}
.theme-toggle::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #8a2be2, #00ced1);
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgb(138 43 226 / 0.5);
}
.theme-toggle.active::before {
  transform: translateX(30px);
}
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  flex-shrink: 0;
}
.hamburger-line {
  width: 28px;
  height: 3px;
  background: linear-gradient(90deg, #8a2be2, #00ced1);
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu-btn:hover .hamburger-line {
  background: linear-gradient(90deg, #00ced1, #ffd600);
}
.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}
.mobile-menu-overlay {
  display: none;
}
.mobile-menu {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  width: 100%;
  max-height: 0;
  background: linear-gradient(
    135deg,
    rgb(10 10 10 / 0.98),
    rgb(20 10 30 / 0.98)
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgb(138 43 226 / 0.4);
  box-shadow: 0 10px 50px rgb(0 0 0 / 0.5);
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transition:
    max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease,
    visibility 0.3s ease;
  z-index: 999;
}
.mobile-menu.active {
  max-height: 500px;
  visibility: visible;
  opacity: 1;
}
.mobile-menu-header {
  display: none;
}
.mobile-menu-close {
  display: none;
}
.mobile-nav-links {
  list-style: none;
  padding: 1rem 0;
  margin: 0;
}
.mobile-nav-links li {
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
}
.mobile-menu.active .mobile-nav-links li {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu.active .mobile-nav-links li:nth-child(1) {
  transition-delay: 0.1s;
}
.mobile-menu.active .mobile-nav-links li:nth-child(2) {
  transition-delay: 0.15s;
}
.mobile-menu.active .mobile-nav-links li:nth-child(3) {
  transition-delay: 0.2s;
}
.mobile-menu.active .mobile-nav-links li:nth-child(4) {
  transition-delay: 0.25s;
}
.mobile-menu.active .mobile-nav-links li:nth-child(5) {
  transition-delay: 0.3s;
}
.mobile-menu.active .mobile-nav-links li:nth-child(6) {
  transition-delay: 0.35s;
}
.mobile-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  color: rgb(255 255 255 / 0.8);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border-left: 3px solid #fff0;
}
.mobile-link i {
  font-size: 1.25rem;
  color: #8a2be2;
  transition: all 0.3s ease;
}
.mobile-link:hover,
.mobile-link.active {
  color: #fff;
  background: rgb(138 43 226 / 0.1);
  border-left-color: #00ced1;
}
.mobile-link:hover i,
.mobile-link.active i {
  color: #00ced1;
  transform: scale(1.2);
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .theme-toggle {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
    margin-left: auto;
  }
  .navbar-container {
    padding: 0 1rem;
  }
  .navbar-content {
    padding: 0.5rem 0;
  }
  .logo-text {
    font-size: 1.5rem;
  }
}
@media (max-width: 480px) {
  .mobile-menu {
    width: 100%;
    max-width: 100%;
  }
  .logo-text {
    font-size: 1.25rem;
  }
}
@media (max-width: 768px) {
  .card,
  .magnetic-card,
  .contact-form-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .navbar,
  .mobile-menu {
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
  }
  .navbar {
    background: rgb(10 10 10 / 0.95) !important;
  }
  * {
    box-shadow: none !important;
  }
  .card:hover,
  .magnetic-card:hover {
    box-shadow: 0 4px 12px rgb(138 43 226 / 0.3) !important;
  }
  .circuit-line,
  .signal,
  .node {
    animation: none !important;
  }
  body::before,
  body::after,
  .hero::before,
  .hero::after,
  section::before,
  section::after {
    animation: none !important;
    transform: none !important;
  }
  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      135deg,
      rgb(138 43 226 / 0.03) 0%,
      rgb(0 206 209 / 0.03) 50%,
      rgb(138 43 226 / 0.03) 100%
    );
    background-size: 400% 400%;
    animation: mobileGradient 15s ease infinite !important;
    pointer-events: none;
    z-index: -1;
    will-change: background-position;
  }
  @keyframes mobileGradient {
    0%,
    100% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
  }
  .electronics-bg,
  .component {
    display: none !important;
  }
  .neon-purple,
  .neon-cyan,
  .neon-yellow {
    animation: none !important;
  }
  .typing-text,
  .hero-title,
  .text-gradient {
    animation: none !important;
    text-shadow: none !important;
  }
  .card,
  .skill-card,
  .hobby-card {
    transition: transform 0.2s ease !important;
  }
  .card::before,
  .card::after {
    display: none !important;
  }
  .project-icon * {
    animation-duration: 3s !important;
  }
  .particle {
    opacity: 0.3 !important;
  }
  * {
    will-change: auto !important;
  }
  .navbar {
    will-change: transform !important;
  }
  .timeline-item::before {
    animation: none !important;
  }
  .glow-special {
    text-shadow: 0 0 10px #ffd600 !important;
    filter: none !important;
    animation: none !important;
  }
  .profile-ring {
    animation: none !important;
  }
  .stat-card {
    transition: transform 0.2s ease !important;
  }
  .stat-card::before {
    display: none !important;
  }
  .form-border,
  .input-ripple {
    display: none !important;
  }
  .form-progress-bar {
    animation: none !important;
  }
  .orbital-icon {
    animation-duration: 8s !important;
  }
  .heading-animate {
    animation: none !important;
  }
  .heading-highlight::before,
  .heading-highlight::after {
    display: none !important;
  }
  .button-particles,
  .particle-burst {
    display: none !important;
  }
  [data-aos] {
    transition-duration: 0.3s !important;
  }
}
@media (max-width: 480px) {
  * {
    animation-duration: 0.5s !important;
    transition-duration: 0.2s !important;
  }
  *::before,
  *::after {
    background: none !important;
  }
}
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #8a2be2, #00ced1);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgb(138 43 226 / 0.4);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(5px);
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  animation: backToTopPulse 2s infinite;
}
.back-to-top:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, #00ced1, #ffd600);
  box-shadow: 0 8px 25px rgb(0 206 209 / 0.6);
}
.back-to-top:hover i {
  transform: translateY(-3px);
}
.back-to-top i {
  transition: transform 0.3s ease;
}
@keyframes backToTopPulse {
  0% {
    box-shadow: 0 0 0 0 rgb(138 43 226 / 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px #fff0;
  }
  100% {
    box-shadow: 0 0 0 0 #fff0;
  }
}
@media (max-width: 768px) {
  .back-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}
.mobile-notice {
  display: none;
  width: 90%;
  max-width: 400px;
  margin: 0 auto 1.5rem auto;
  background: rgb(20 20 30 / 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgb(138 43 226 / 0.3);
  border-radius: 12px;
  padding: 1rem;
  position: relative;
  box-shadow: 0 4px 15px rgb(0 0 0 / 0.3);
  z-index: 90;
  animation: slideDown 0.5s ease-out;
}
.mobile-notice-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.mobile-notice-text {
  font-size: 0.85rem;
  color: #e0e0e0;
  line-height: 1.4;
  text-align: left;
  flex: 1;
  margin: 0;
}
.mobile-notice-text strong {
  color: #00ced1;
}
.mobile-notice-close {
  background: none;
  border: none;
  color: #8a2be2;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.3s ease;
  flex-shrink: 0;
}
.mobile-notice-close:hover {
  color: #ffd600;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  .mobile-notice {
    display: block;
  }
}
.submit-button.initializing {
  background: #1a1a1a;
  border-color: gold;
  color: gold;
  cursor: wait;
  opacity: 0.8;
}
.submit-button.initializing .button-text {
  animation: textPulse 1.5s infinite;
}
.submit-button.system-ready {
  animation: readyFlash 0.5s ease-out;
}
@keyframes textPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
@keyframes readyFlash {
  0% {
    box-shadow: 0 0 0 0 rgb(0 255 136 / 0.7);
    border-color: #0f8;
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 0 0 20px #fff0;
    border-color: rgb(255 255 255 / 0.1);
    transform: scale(1);
  }
}

.terminal-toggle-btn {
  background: rgb(138 43 226 / 0.1);
  border: 1px solid #8a2be2;
  color: #8a2be2;
  padding: 5px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-family: "Fira Code", monospace;
  font-size: 0.7rem;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}
.terminal-toggle-btn:hover {
  background: #8a2be2;
  color: #fff;
  box-shadow: 0 0 10px #8a2be2;
}
.contact-terminal {
  background: #0a0a0a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px;
  font-family: "Fira Code", monospace;
  height: 350px;
  overflow-y: auto;
  overflow-x: hidden;
  display: none;
}
.contact-terminal.active {
  display: block;
}
.terminal-line {
  margin-bottom: 8px;
  font-size: 14px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.terminal-prompt {
  color: #0f8;
}
.terminal-input {
  background: #fff0;
  border: none;
  color: #fff;
  outline: none;
  width: auto;
  font-family: inherit;
  font-size: inherit;
}
:root {
  --sidebar-width: 280px;
  --sidebar-bg-dark: #0f0f13;
  --sidebar-bg-light: #ffffff;
  --sidebar-border-dark: rgba(138, 43, 226, 0.2);
  --sidebar-border-light: rgba(0, 0, 0, 0.1);
}
@media (min-width: 1024px) {
  body {
    padding-left: var(--sidebar-width);
  }
}
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--sidebar-bg-dark);
  border-right: 1px solid var(--sidebar-border-dark);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 5px 0 30px rgb(0 0 0 / 0.5);
  overflow-y: auto;
}
.light .sidebar {
  background: var(--sidebar-bg-light);
  border-right: 1px solid var(--sidebar-border-light);
  box-shadow: 5px 0 30px rgb(0 0 0 / 0.05);
}
.sidebar-header {
  padding: 2rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid rgb(255 255 255 / 0.05);
}
.light .sidebar-header {
  border-bottom: 1px solid rgb(0 0 0 / 0.05);
}
.sidebar-profile-container {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
}
.sidebar-status-dot {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 15px;
  height: 15px;
  background: #0f8;
  border-radius: 50%;
  border: 2px solid var(--sidebar-bg-dark);
  box-shadow: 0 0 10px #0f8;
  animation: pulseStatus 2s infinite;
}
.light .sidebar-status-dot {
  border-color: var(--sidebar-bg-light);
}
@keyframes pulseStatus {
  0% {
    box-shadow: 0 0 0 0 rgb(0 255 136 / 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px #fff0;
  }
  100% {
    box-shadow: 0 0 0 0 #fff0;
  }
}
.sidebar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.brand-text {
  background: linear-gradient(to right, #8a2be2, #00ced1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: #fff0;
}
.brand-dot {
  color: #ff6f61;
}
.sidebar-role {
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sidebar-nav {
  flex: 1;
  padding: 2rem 0;
}
.sidebar-menu {
  list-style: none;
  padding: 0;
}
.sidebar-menu li {
  margin-bottom: 0.5rem;
}
.sidebar-menu .nav-link {
  display: flex;
  align-items: center;
  padding: 0.8rem 2rem;
  color: #aaa;
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid #fff0;
}
.light .sidebar-menu .nav-link {
  color: #555;
}
.sidebar-menu .nav-link i {
  width: 25px;
  font-size: 1.1rem;
  margin-right: 10px;
  text-align: center;
  transition: all 0.3s ease;
}
.sidebar-menu .nav-link:hover,
.sidebar-menu .nav-link.active {
  color: #fff;
  background: linear-gradient(90deg, rgb(138 43 226 / 0.1), transparent);
  border-left-color: var(--primary-color);
}
.light .sidebar-menu .nav-link:hover,
.light .sidebar-menu .nav-link.active {
  color: var(--primary-color);
  background: linear-gradient(90deg, rgb(138 43 226 / 0.05), transparent);
}
.sidebar-menu .nav-link:hover i,
.sidebar-menu .nav-link.active i {
  color: var(--secondary-color);
  transform: scale(1.2);
  filter: drop-shadow(0 0 8px var(--secondary-color));
}
.sidebar-footer {
  padding: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 0.05);
  text-align: center;
}
.light .sidebar-footer {
  border-top: 1px solid rgb(0 0 0 / 0.05);
}
.sidebar-copyright {
  font-size: 0.7rem;
  color: #a0a0a0;
  margin-top: 1rem;
}
.hamburger-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 2000;
  background: rgb(10 10 10 / 0.8);
  border: 1px solid rgb(138 43 226 / 0.5);
  border-radius: 8px;
  width: 45px;
  height: 45px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.light .hamburger-btn {
  background: rgb(255 255 255 / 0.8);
  border: 1px solid rgb(0 0 0 / 0.1);
}
@media (min-width: 1024px) {
  .hamburger-btn {
    display: none;
  }
}
.hamburger-line {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.light .hamburger-line {
  background: #333;
}
.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.hero-content-left {
  position: relative;
  z-index: 2;
  background: #fff0;
}
.hero-image-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100vh;
  z-index: 1;
  overflow: hidden;
}
.full-body-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: none;
  z-index: 2;
  pointer-events: none;
}
.light .hero-img-overlay {
  background: none;
}
@media (max-width: 1023px) {
  .sidebar {
    transform: translateX(-100%);
    width: 260px;
  }
  .sidebar.active {
    transform: translateX(0);
  }
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 0.7);
    backdrop-filter: blur(5px);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  .sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  .hero-image-right {
    width: 100%;
    right: 0;
    left: 0;
    opacity: 1;
  }
  .full-body-img {
    object-position: 70% top;
  }
  .hero-img-overlay {
    background: none;
  }
  .light .hero-img-overlay {
    background: none;
  }
  .hero-content-left {
    width: 100%;
    height: 100vh;
    padding: 0 1.5rem 15vh;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
    position: relative;
    z-index: 10;
  }
  .hero-title {
    font-size: clamp(2.2rem, 10vw, 3.2rem) !important;
    text-shadow:
      0 0 20px rgba(0, 0, 0, 0.9),
      0 0 40px rgba(255, 214, 0, 0.4);
    letter-spacing: -1px;
    line-height: 1.3 !important;
  }
  .neon-cyan {
    text-shadow:
      0 0 15px rgba(0, 0, 0, 1),
      0 0 10px rgba(0, 206, 209, 0.8) !important;
    font-weight: 600;
  }
}
.theme-toggle {
  background: #fff0;
  border: 1px solid rgb(138 43 226 / 0.3);
  border-radius: 20px;
  cursor: pointer;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  width: 60px;
  height: 30px;
  margin-top: 1rem;
}
.light .theme-toggle {
  border-color: rgb(0 0 0 / 0.2);
}
.toggle-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
}
.sun-icon,
.moon-icon {
  font-size: 1rem;
  transition: all 0.3s ease;
}
.sun-icon {
  color: #f39c12;
  opacity: 0;
  transform: scale(0.5);
  position: absolute;
  left: 5px;
}
.moon-icon {
  color: #f1c40f;
  opacity: 1;
  transform: scale(1);
  position: absolute;
  right: 5px;
}
.light .sun-icon {
  opacity: 1;
  transform: scale(1);
}

.light .moon-icon {
  opacity: 0;
  transform: scale(0.5);
}

/* 📡 Server Status & Cyber Particles (Merged) */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgb(0 0 0 / 0.3);
  border: 1px solid rgb(255 255 255 / 0.1);
  font-family: "Fira Code", monospace;
  font-size: 0.75rem;
  color: gold;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: blink 1.5s infinite;
}

.status-indicator.online {
  color: #0f8;
  border-color: rgb(0 255 136 / 0.2);
}

.status-indicator.online .status-dot {
  animation: none;
  box-shadow: 0 0 15px #0f8;
}

.status-indicator.offline {
  color: #f36;
}

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

@media (max-width: 768px) {
  .status-indicator {
    margin-top: 8px;
    font-size: 0.7rem;
  }
}

/* Removed unused cyber-particle effect - using static background instead */

/* =========================================
    NEW COOL FEATURES (Hacker Mode & Glitch)
   ========================================= */

/* --- 1. Glitch Text on Hover --- */
.glitch-hover {
  position: relative;
  display: inline-block;
  mix-blend-mode: lighten;
}

.glitch-hover::before,
.glitch-hover::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  width: 100%;
  background: var(--bg-color); /* Matches bg to hide main text */
  clip: rect(0, 0, 0, 0);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s;
}

.glitch-hover:hover::before,
.glitch-hover:hover::after {
  visibility: visible;
  opacity: 0.8;
}

.glitch-hover:hover::before {
  left: -2px;
  text-shadow: 2px 0 #ff00c1;
  animation: glitch-anim-1 0.6s infinite linear alternate-reverse;
}

.glitch-hover:hover::after {
  left: 2px;
  text-shadow: -2px 0 #00fff9;
  animation: glitch-anim-2 0.6s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
  0% {
    clip: rect(20px, 9999px, 15px, 0);
  }
  20% {
    clip: rect(60px, 9999px, 80px, 0);
  }
  40% {
    clip: rect(10px, 9999px, 80px, 0);
  }
  60% {
    clip: rect(80px, 9999px, 20px, 0);
  }
  80% {
    clip: rect(40px, 9999px, 70px, 0);
  }
  100% {
    clip: rect(10px, 9999px, 50px, 0);
  }
}

@keyframes glitch-anim-2 {
  0% {
    clip: rect(10px, 9999px, 80px, 0);
  }
  20% {
    clip: rect(80px, 9999px, 10px, 0);
  }
  40% {
    clip: rect(30px, 9999px, 50px, 0);
  }
  60% {
    clip: rect(70px, 9999px, 100px, 0);
  }
  80% {
    clip: rect(20px, 9999px, 60px, 0);
  }
  100% {
    clip: rect(50px, 9999px, 30px, 0);
  }
}

/* --- 2. Hacker Mode (Matrix Theme) --- */
body.hacker-mode {
  --primary-color: #00ff00 !important; /* Matrix Green */
  --secondary-color: #008f11 !important; /* Darker Green */
  --bg-color: #0d0208 !important; /* Almost Black */
  --text-color: #e0e0e0 !important;
  font-family: "Fira Code", monospace !important;
}

body.hacker-mode .hero-title,
body.hacker-mode .neon-text,
body.hacker-mode h1,
body.hacker-mode h2,
body.hacker-mode h3 {
  color: #00ff00 !important;
  text-shadow:
    0 0 10px #00ff00,
    0 0 20px #008f11 !important;
}

/* Toast Notification for Breach */
.hack-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  background: #000;
  border: 1px solid #00ff00;
  color: #00ff00;
  padding: 10px 20px;
  font-family: "Fira Code", monospace;
  font-weight: bold;
  z-index: 10000;
  box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
  transition: transform 0.5s ease;
  opacity: 0;
}

.hack-toast.show {
  transform: translateX(-50%) translateY(50px);
  opacity: 1;
}

/* Mobile/UI Hint */
.hacker-hint {
  display: block;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-color);
  opacity: 0.4;
  margin-top: 10px;
  font-family: "Fira Code", monospace;
  letter-spacing: 1px;
}

/* --- 3. Matrix Rain Canvas (Desktop Only) --- */
.matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9998; /* Behind the Toast but above content if needed, or overlay */
  pointer-events: none; /* Let clicks pass through */
  opacity: 0;
  transition: opacity 1s ease;
  mix-blend-mode: screen; /* Blends nicely with dark backgrounds */
}

body.hacker-mode .matrix-canvas {
  opacity: 0.3; /* Subtle overlay */
}

/* --- 5. Custom Text Selection --- */
::selection {
  background: #00ced1;
  color: #000;
  text-shadow: none;
}
::-moz-selection {
  background: #00ced1;
  color: #000;
  text-shadow: none;
}

/* --- 6. Cursor Particle Trail --- */
.cursor-particle {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #00ced1, transparent);
  pointer-events: none;
  z-index: 9999;
  animation: particleFade 0.8s ease-out forwards;
}

@keyframes particleFade {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.3);
  }
}

/* --- 7. Corner Companion Character --- */
.companion-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.companion-container:hover {
  transform: translateY(-10px) scale(1.05);
}

.companion-img {
  width: 180px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.6));
  animation: companionFloat 3s ease-in-out infinite;
}

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

.companion-bubble {
  position: absolute;
  bottom: 140px;
  right: 195px;
  background: rgba(10, 10, 20, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(138, 43, 226, 0.6);
  color: #fff;
  padding: 12px 18px;
  border-radius: 15px;
  font-family: "Fira Code", monospace;
  font-size: 0.85rem;
  box-shadow:
    0 4px 20px rgba(138, 43, 226, 0.3),
    inset 0 0 20px rgba(0, 206, 209, 0.1);
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
  pointer-events: auto; /* Enable for volume toggle */
  max-width: 280px;
  word-wrap: break-word;
  line-height: 1.4;
  z-index: 1001;
}

.companion-bubble.speaking {
  border-color: #00ced1;
  box-shadow: 0 0 15px rgba(0, 206, 209, 0.6);
}

.voice-toggle {
  position: absolute;
  top: -10px;
  left: -10px;
  background: rgba(138, 43, 226, 0.8);
  border: 1px solid rgba(0, 206, 209, 0.5);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 10px;
  color: white;
  transition: all 0.2s ease;
  z-index: 1002;
}

.voice-toggle:hover {
  transform: scale(1.1);
  background: #00ced1;
  color: #000;
}

.companion-bubble.show {
  opacity: 1;
  transform: translateX(0);
}

.companion-bubble::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 10px solid rgba(10, 10, 20, 0.95);
}

/* Mobile Optimization for Companion */
@media (max-width: 768px) {
  .companion-container {
    display: block; /* Show on mobile */
    bottom: 80px; /* Move up to avoid covering bottom nav/footer content too much */
    right: 5px;
    transform-origin: bottom right;
  }

  .companion-img {
    width: 110px; /* Smaller, non-intrusive size */
    filter: drop-shadow(0 0 10px rgba(138, 43, 226, 0.4));
    animation: none; /* Stop floating on mobile */
  }

  .companion-bubble {
    bottom: 110px; /* Above the head */
    right: 60px; /* Shift left to stay on screen */
    width: 200px;
    padding: 10px;
    font-size: 0.75rem;
    z-index: 1005;
  }

  .voice-toggle {
    width: 30px;
    height: 30px;
    top: -15px;
    left: -15px;
  }
}

/* --- 8. Companion Animation Classes --- */
.animate-wave {
  animation: wave 0.6s ease-in-out !important;
}

.animate-bounce {
  animation: bounce 0.5s ease-in-out !important;
}

.animate-spin {
  animation: spin360 0.8s ease-in-out !important;
}

.animate-tilt {
  animation: tiltSway 0.8s ease-in-out !important;
}

@keyframes wave {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-10deg);
  }
  75% {
    transform: rotate(10deg);
  }
}

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

@keyframes spin360 {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes tiltSway {
  0%,
  100% {
    transform: rotate(0deg);
  }
  33% {
    transform: rotate(-8deg);
  }
  66% {
    transform: rotate(8deg);
  }
}

/* Update companion container for dragging */
.companion-container {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.companion-img {
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}

/* --- Footer Improvements --- */
footer {
  background: transparent; /* Reverted to transparent */
  border-top: 1px solid rgba(255, 255, 255, 0.05); /* Very subtle separation */
  backdrop-filter: none;
}
footer .text-gray-400 {
  color: rgba(
    255,
    255,
    255,
    0.6
  ) !important; /* Slightly clearer than gray-400 */
  transition: color 0.3s ease;
}
footer p:hover {
  color: #00ced1 !important; /* Neon cyan hover touchup */
  text-shadow: 0 0 8px rgba(0, 206, 209, 0.5);
}

/* --- Visual Refinement (Bluish Theme) --- */
#sidebar,
.sidebar {
  background: rgba(
    20,
    30,
    60,
    0.6
  ) !important; /* Unified Glassy Blue Sidebar */
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(138, 43, 226, 0.1);
}

/* Unify Copy/Cards to match Interests Style (Light Bluish Glass) */
.card,
.terminal-card,
.project-card,
.timeline-item .card {
  background: rgba(20, 30, 60, 0.4) !important;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(138, 43, 226, 0.15) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.card:hover,
.terminal-card:hover,
.project-card:hover,
.timeline-item .card:hover {
  background: rgba(20, 30, 60, 0.6) !important;
  box-shadow: 0 8px 30px rgba(0, 206, 209, 0.15);
  border-color: rgba(0, 206, 209, 0.3) !important;
}
