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

/* Chrome, Edge, and Safari */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 242, 254, 0.8), rgba(79, 172, 254, 0.8));
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(79, 172, 254, 0.9), rgba(0, 242, 254, 0.9));
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(79, 172, 254, 0.8) rgba(255, 255, 255, 0.05);
}

:root {
  --primary: #00F5FF;
  --primary-dark: #00A8CC;
  --secondary: #B24BF3;
  --accent: #FF0080;
  --accent-alt: #FFD700;
  --bg-primary: #030014;
  --bg-secondary: #0D0221;
  --bg-card: rgba(13, 2, 33, 0.6);
  --text-primary: #FFFFFF;
  --text-secondary: #C4C4E4;
  --text-accent: #00F5FF;
  --glow: rgba(0, 245, 255, 0.6);
  --gradient-1: linear-gradient(135deg, #00F5FF 0%, #B24BF3 50%, #FF0080 100%);
  --gradient-2: linear-gradient(270deg, #FF0080, #B24BF3, #00F5FF, #FFD700);
  --gradient-3: linear-gradient(45deg, #FFD700, #FF0080, #00F5FF);
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
}

/* Light theme variables */
[data-theme="light"] {
  --bg-primary: #d1ace2;
  --bg-secondary: #bc16fd;
  --bg-card: rgba(255, 255, 255, 0.8);
  --text-primary: #1a1a1a;
  --text-secondary: #4a5568;
  --text-accent: #00A8CC;
  --glass: rgba(0, 0, 0, 0.05);
  --glass-border: rgba(0, 0, 0, 0.1);
}

/* Shooting star effects */
.shooting-star {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  transform-origin: center center;
  will-change: transform, opacity;
}

.star-head {
  position: absolute;
  background: #ffffff;
  border-radius: 50%;
  animation: starPulse 0.3s ease-in-out infinite alternate;
}

@keyframes starPulse {
  0% {
    box-shadow:
      0 0 10px #ffffff,
      0 0 20px #00F5FF,
      0 0 30px #00F5FF,
      0 0 40px rgba(0, 245, 255, 0.8);
  }

  100% {
    box-shadow:
      0 0 15px #ffffff,
      0 0 25px #00F5FF,
      0 0 35px #00F5FF,
      0 0 50px rgba(0, 245, 255, 1);
  }
}

[data-theme="light"] .shooting-star .star-head {
  background: linear-gradient(135deg, #ffffff, #00a8cc);
  animation: starPulseLightMode 0.3s ease-in-out infinite alternate;
}

@keyframes starPulseLightMode {
  0% {
    box-shadow:
      0 0 10px rgba(255, 255, 255, 0.8),
      0 0 20px rgba(0, 168, 204, 0.6),
      0 0 30px rgba(0, 168, 204, 0.4);
  }

  100% {
    box-shadow:
      0 0 15px #ffffff,
      0 0 25px rgba(0, 168, 204, 0.8),
      0 0 35px rgba(0, 168, 204, 0.6);
  }
}

@media (max-width: 768px) {
  .shooting-star {
    transform-origin: center center;
  }

  .star-head {
    animation-duration: 0.4s;
  }
}

@media (prefers-reduced-motion: reduce) {

  .shooting-star,
  .star-head {
    animation: none !important;
  }
}

.shooting-star {
  isolation: isolate;
}

/* Custom Cursor */
.cursor {
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: none;
}

.cursor-trail {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.7;
  transform: translate(-50%, -50%);
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.loading-content {
  text-align: center;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(0, 245, 255, 0.2);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  margin: 0 auto 2rem;
  animation: spin 1s linear infinite;
}

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

  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 600;
}

/* Scroll Progress Indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  z-index: 1001;
  transition: width 0.1s ease;
}

/* 3D Particle Canvas */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* Glitch Text Effect */
.glitch-text {
  position: relative;
  color: var(--text-primary);
  text-shadow:
    0.05em 0 0 #00ffff,
    -0.03em -0.04em 0 #ff00ff,
    0.025em 0.04em 0 #ffff00;
  animation: glitch 725ms infinite;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch-text::before {
  animation: glitch-top 715ms infinite;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  transform: translate(-0.04em, -0.03em);
  opacity: 0.75;
}

.glitch-text::after {
  animation: glitch-bottom 805ms infinite;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  transform: translate(0.04em, 0.03em);
  opacity: 0.75;
}

@keyframes glitch {

  0%,
  14%,
  15%,
  49%,
  50%,
  99%,
  100% {
    text-shadow:
      0.05em 0 0 #00ffff,
      -0.03em -0.04em 0 #ff00ff,
      0.025em 0.04em 0 #ffff00;
  }

  15%,
  49% {
    text-shadow:
      -0.05em -0.025em 0 #00ffff,
      0.025em 0.035em 0 #ff00ff,
      -0.05em -0.05em 0 #ffff00;
  }

  50%,
  99% {
    text-shadow:
      0.025em 0.035em 0 #00ffff,
      0.05em 0 0 #ff00ff,
      0 -0.04em 0 #ffff00;
  }
}

@keyframes glitch-top {

  0%,
  14%,
  15%,
  49%,
  50%,
  99%,
  100% {
    transform: translate(-0.04em, -0.03em);
  }

  15%,
  49% {
    transform: translate(0.07em, -0.09em);
  }

  50%,
  99% {
    transform: translate(-0.08em, -0.01em);
  }
}

@keyframes glitch-bottom {

  0%,
  14%,
  15%,
  49%,
  50%,
  99%,
  100% {
    transform: translate(0.04em, 0.03em);
  }

  15%,
  49% {
    transform: translate(-0.07em, 0.09em);
  }

  50%,
  99% {
    transform: translate(0.08em, 0.01em);
  }
}

/* Typing Animation */
.typing-text {
  display: inline-block;
  min-width: 300px;
  text-align: left;
}

.cursor-blink {
  animation: blink 1s infinite;
  color: var(--primary);
}

@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: none;
}

/* Hide default cursor everywhere */
*,
*::before,
*::after {
  cursor: none !important;
}

/* Seamless Animated Gradient Background */
.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg-primary);
  transition: background 0.5s ease;
}

.gradient-bg::before,
.gradient-bg::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200vmax;
  height: 200vmax;
  border-radius: 50%;
  filter: blur(120px);
  transition: background 1.5s ease, opacity 1.5s ease;
}

/* Default (Dark Mode) Styles */
.gradient-bg::before {
  background: radial-gradient(circle, rgba(0, 245, 255, 0.3) 0%, transparent 40%);
  animation: move-and-rotate-1 30s ease-in-out infinite;
  opacity: 1;
}

.gradient-bg::after {
  background: radial-gradient(circle, rgba(178, 75, 243, 0.3) 0%, transparent 35%),
    radial-gradient(circle at 100% 100%, rgba(255, 0, 128, 0.3) 0%, transparent 40%);
  animation: move-and-rotate-2 40s ease-in-out infinite;
  opacity: 1;
}

/* Light Mode Overrides */
[data-theme="light"] .gradient-bg::before {
  background: radial-gradient(circle, rgba(153, 0, 255, 0.4) 0%, transparent 50%);
  opacity: 0.5;
}

[data-theme="light"] .gradient-bg::after {
  background: radial-gradient(circle, rgba(157, 0, 255, 0.2) 0%, transparent 50%);
  opacity: 0.5;
}

/* Keyframes for complex, non-jerky movement */
@keyframes move-and-rotate-1 {

  0%,
  100% {
    transform: translate(-60%, -60%) rotate(0deg);
  }

  25% {
    transform: translate(-40%, -40%) rotate(90deg);
  }

  50% {
    transform: translate(-60%, -70%) rotate(180deg);
  }

  75% {
    transform: translate(-80%, -50%) rotate(270deg);
  }
}

@keyframes move-and-rotate-2 {

  0%,
  100% {
    transform: translate(-40%, -40%) rotate(0deg);
  }

  25% {
    transform: translate(-60%, -30%) rotate(-90deg);
  }

  50% {
    transform: translate(-30%, -50%) rotate(-180deg);
  }

  75% {
    transform: translate(-50%, -60%) rotate(-270deg);
  }
}

/* Navigation */
nav {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--glass), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 20px 40px;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow:
    0 10px 40px rgba(0, 245, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px var(--primary));
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  outline: none;
}

.nav-links a:focus {
  outline: none;
  box-shadow: none;
}

.nav-links a:hover {
  color: var(--text-primary);
  text-shadow: 0 0 20px var(--glow);
  transform: translateY(-2px);
}

.nav-links a.active {
  color: var(--primary);
  text-shadow: 0 0 20px var(--primary);
}

/* Theme Toggle */
.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.toggle-track {
  width: 50px;
  height: 25px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  position: relative;
  transition: all 0.3s ease;
}

.toggle-thumb {
  width: 20px;
  height: 20px;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .toggle-thumb {
  transform: translateX(23px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(13, 2, 33, 0.95), rgba(13, 2, 33, 0.9));
  backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  margin-top: 10px;
  padding: 25px;
  transform: translateY(-20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 10px 20px rgba(0, 245, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .mobile-nav {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.9));
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 10px 20px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.mobile-nav.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  list-style: none;
}

.mobile-nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 15px 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-align: center;
  outline: none;
  display: block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
}

[data-theme="light"] .mobile-nav-links a {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-secondary);
}

.mobile-nav-links a:focus {
  outline: none;
  box-shadow: none;
}

.mobile-nav-links a:hover {
  color: var(--primary);
  background: rgba(0, 245, 255, 0.15);
  border-color: rgba(0, 245, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 245, 255, 0.2);
}

[data-theme="light"] .mobile-nav-links a:hover {
  background: rgba(0, 168, 204, 0.15);
  border-color: rgba(0, 168, 204, 0.3);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  padding-top: 150px;
}

.hero-content {
  text-align: center;
  max-width: 1000px;
  position: relative;
  z-index: 1;
}

.hero-avatar {
  width: 250px;
  height: 250px;
  margin: 0 auto 3rem;
  position: relative;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

.avatar-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
      var(--primary) 0%,
      var(--secondary) 25%,
      var(--accent) 50%,
      var(--accent-alt) 75%,
      var(--primary) 100%);
  mask: radial-gradient(circle closest-side, white calc(100% - 1.5px), transparent 100%);
  -webkit-mask: radial-gradient(circle closest-side, white calc(100% - 1.5px), transparent 100%);
  animation: rotate 3s linear infinite;
  box-shadow: 0 0 60px rgba(0, 245, 255, 0.5);
}

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

.avatar-image {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 2;
  filter: brightness(1.2) contrast(1.1);
  box-shadow: 0 0 80px rgba(0, 245, 255, 0.5);
  transition: all 0.3s ease;
}

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

.hero h1 {
  font-size: 5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px rgba(0, 245, 255, 0.8);
}

.subtitle {
  font-size: 2rem;
  color: var(--text-accent);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.education {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 4rem;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 18px 45px;
  border-radius: 60px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.95rem;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  color: white;
  box-shadow: 0 15px 35px rgba(0, 245, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 245, 255, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--bg-primary);
  transform: translateY(-5px);
}

/* Sections */
section {
  padding: 8rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.section-title {
  font-size: 4rem;
  text-align: center;
  margin-bottom: 5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 4px;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.glass-card {
  background: linear-gradient(135deg, var(--glass), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 3rem;
  transition: all 0.4s;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.8s;
}

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

.glass-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 245, 255, 0.2);
}

/* About Section */
.about-text {
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 4rem;
  color: var(--text-secondary);
  line-height: 2;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.skill-category {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.05), transparent);
  border-radius: 20px;
  border: 1px solid rgba(0, 245, 255, 0.1);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(0, 245, 255, 0.1), transparent);
  animation: rotate 4s linear infinite;
  opacity: 0;
  transition: opacity 0.3s;
}

.skill-category:hover::before {
  opacity: 1;
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 245, 255, 0.2);
}

.skill-category h3 {
  color: var(--text-accent);
  margin-bottom: 2rem;
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  z-index: 1;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.skill-tag {
  background: linear-gradient(135deg, var(--glass), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

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

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

.skill-tag:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 10px 25px rgba(0, 245, 255, 0.3);
  color: var(--primary);
}

/* Work Section */
.work-card {
  text-align: center;
  padding: 3rem;
}

.work-title {
  font-size: 2.5rem;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  font-weight: 800;
}

.company {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.work-date {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.work-description {
  font-size: 1.2rem;
  line-height: 2;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
}

.project-card {
  background: linear-gradient(135deg, var(--glass), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  overflow: hidden;
  transition: all 0.4s;
  cursor: pointer;
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(0, 245, 255, 0.1), rgba(178, 75, 243, 0.1));
  opacity: 0;
  transition: opacity 0.3s;
}

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

.project-card:hover {
  transform: translateY(-15px) rotateX(5deg);
  box-shadow: 0 40px 80px rgba(0, 245, 255, 0.3);
}

.project-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: all 0.4s;
  position: relative;
  z-index: 1;
}

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

.project-content {
  padding: 2.5rem;
  position: relative;
  z-index: 1;
}

.project-type {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

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

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

.project-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-weight: 800;
  transition: all 0.3s;
}

.project-card:hover .project-title {
  color: var(--primary);
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.tech-tag {
  background: linear-gradient(135deg, rgba(178, 75, 243, 0.2), rgba(255, 0, 128, 0.2));
  border: 1px solid rgba(178, 75, 243, 0.3);
  color: var(--text-accent);
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s;
}

.tech-tag:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(178, 75, 243, 0.3);
}

.project-links {
  display: flex;
  gap: 1.5rem;
}

.project-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s;
  position: relative;
}

.project-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.project-link:hover::after {
  width: 100%;
}

.project-link:hover {
  color: var(--accent);
  transform: translateX(5px);
}

/* Contact Section */
.contact-content {
  text-align: center;
}

.contact-text {
  font-size: 1.4rem;
  color: var(--text-secondary);
  margin-bottom: 4rem;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--text-primary);
  text-decoration: none;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, var(--glass), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 60px;
  font-weight: 700;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.contact-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 245, 255, 0.2), transparent);
  transition: left 0.6s;
}

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

.contact-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  transition: all 0.3s;
}

.contact-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 245, 255, 0.4);
  border-color: var(--primary);
  color: var(--text-accent);
}

.contact-link:hover .contact-icon {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 0 10px var(--primary));
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 245, 255, 0.3);
}

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

.back-to-top:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 15px 40px rgba(0, 245, 255, 0.5);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Footer */
footer {
  text-align: center;
  padding: 4rem 0;
  color: var(--text-secondary);
  border-top: 1px solid var(--glass-border);
  margin-top: 4rem;
  background: linear-gradient(135deg, var(--glass), transparent);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

@media (max-width: 768px) {

  .cursor,
  .cursor-trail {
    display: none;
  }

  *,
  *::before,
  *::after {
    cursor: auto !important;
  }

  nav {
    padding: 15px 20px;
    top: 20px;
  }

  .nav-container {
    gap: 20px;
  }

  .nav-links {
    display: none;
  }

  .theme-toggle {
    order: -1;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .subtitle {
    font-size: 1.5rem;
  }

  .typing-text {
    min-width: 200px;
  }

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

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

  .contact-links {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .hero-avatar {
    width: 200px;
    height: 200px;
  }

  .avatar-image {
    width: 190px;
    height: 190px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  section {
    padding: 4rem 1rem;
  }

  .glass-card {
    padding: 2rem;
  }

  .project-card:hover {
    transform: translateY(-10px);
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
    letter-spacing: 2px;
  }

  .work-title {
    font-size: 2rem;
  }

  .company {
    font-size: 1.5rem;
  }

  .about-text {
    font-size: 1.2rem;
  }
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal.slide-left {
  transform: translateX(-60px);
  opacity: 0;
}

.reveal.slide-left.active {
  transform: translateX(0);
  opacity: 1;
}

.reveal.slide-right {
  transform: translateX(60px);
  opacity: 0;
}

.reveal.slide-right.active {
  transform: translateX(0);
  opacity: 1;
}

.reveal.fade-in {
  opacity: 0;
  transform: scale(0.8);
}

.reveal.fade-in.active {
  opacity: 1;
  transform: scale(1);
}

.reveal.slide-up {
  transform: translateY(60px);
  opacity: 0;
}

.reveal.slide-up.active {
  transform: translateY(0);
  opacity: 1;
}

/* Staggered animation delays */
.reveal:nth-child(1) {
  transition-delay: 0.1s;
}

.reveal:nth-child(2) {
  transition-delay: 0.2s;
}

.reveal:nth-child(3) {
  transition-delay: 0.3s;
}

.reveal:nth-child(4) {
  transition-delay: 0.4s;
}

.reveal:nth-child(5) {
  transition-delay: 0.5s;
}

.reveal:nth-child(6) {
  transition-delay: 0.6s;
}

/* Pulse animation for buttons */
@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.btn:hover {
  animation: pulse 0.5s ease-in-out;
}

/* Glow effect for interactive elements */
@keyframes glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
  }

  50% {
    box-shadow: 0 0 40px rgba(0, 245, 255, 0.6);
  }
}

.glow-effect {
  animation: glow 2s ease-in-out infinite;
}

/* Smooth transitions for theme changes */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Cross-browser compatibility */
.glass-card {
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  -moz-backdrop-filter: blur(20px);
}

nav {
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  -moz-backdrop-filter: blur(20px) saturate(180%);
}

/* Fallbacks for older browsers */
@supports not (backdrop-filter: blur(20px)) {
  .glass-card {
    background: rgba(13, 2, 33, 0.8);
  }

  nav {
    background: rgba(13, 2, 33, 0.9);
  }

  [data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.9);
  }

  [data-theme="light"] nav {
    background: rgba(255, 255, 255, 0.95);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --bg-primary: #000000;
  }

  [data-theme="light"] {
    --text-primary: #000000;
    --text-secondary: #333333;
    --bg-primary: #ffffff;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .gradient-bg {
    animation: none;
  }

  .avatar-ring {
    animation: none;
  }

  .hero-avatar {
    animation: none;
  }

  .glitch-text,
  .glitch-text::before,
  .glitch-text::after {
    animation: none;
  }
}

/* Print styles */
@media print {

  .loading-screen,
  .cursor,
  .cursor-trail,
  .scroll-progress,
  #particleCanvas,
  .gradient-bg,
  .back-to-top,
  .theme-toggle,
  .mobile-menu-toggle {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .glass-card {
    background: white !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
  }
}