/* CSS Variables */
:root {
  --primary-bg: #0a0a0a;
  --secondary-bg: #1a1a1a;
  --accent-green: #00ff41;
  --accent-blue: #00d4ff;
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --text-muted: #a0a0a0;
  --warning: #ff6b35;
  --success: #39ff14;
  --border-color: #333333;
  --glow-green: 0 0 20px rgba(0, 255, 65, 0.3);
  --glow-blue: 0 0 20px rgba(0, 212, 255, 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --primary-bg: #ffffff;
  --secondary-bg: #f8f9fa;
  --accent-green: #28a745;
  --accent-blue: #007bff;
  --text-primary: #212529;
  --text-secondary: #495057;
  --text-muted: #6c757d;
  --warning: #fd7e14;
  --success: #28a745;
  --border-color: #dee2e6;
  --glow-green: 0 0 20px rgba(40, 167, 69, 0.3);
  --glow-blue: 0 0 20px rgba(0, 123, 255, 0.3);
}

/* Hacking Machine Loader */
.hacking-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: "Fira Code", monospace;
  color: var(--accent-green);
  transition: opacity 0.5s ease;
  overflow: hidden;
}

/* Binary Rain for Loader */
.loader-binary-rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
}

.loader-binary-column {
  position: absolute;
  top: -100%;
  font-family: "Fira Code", monospace;
  font-size: 12px;
  color: var(--accent-green);
  white-space: nowrap;
  animation: loaderBinaryFall linear infinite;
  text-shadow: 0 0 5px var(--accent-green);
}

@keyframes loaderBinaryFall {
  0% {
    transform: translateY(-100vh);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

.hacking-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.boot-sequence {
  width: 80%;
  max-width: 800px;
  height: 60%;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.boot-line {
  font-size: 14px;
  margin: 2px 0;
  opacity: 0;
  transform: translateX(-20px);
  animation: bootLineAppear 0.1s ease forwards;
}

.boot-line.success {
  color: var(--accent-green);
}

.boot-line.warning {
  color: #ffaa00;
}

.boot-line.error {
  color: #ff4444;
}

.boot-line.info {
  color: var(--accent-blue);
}

@keyframes bootLineAppear {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cursor {
  display: inline-block;
  background: #00ff73; /* bright green for visibility */
  width: 10px; /* slightly wider */
  height: 20px; /* slightly taller */
  animation: cursorBlink 0.4s steps(1) infinite; /* faster blink */
  border-radius: 2px; /* smooth edges */
  box-shadow: 0 0 10px #00ff73; /* glow effect */
}

@keyframes cursorBlink {
  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

.loader-progress {
  width: 60%;
  height: 4px;
  background: #333;
  border-radius: 2px;
  margin: 20px 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.loader-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-green), var(--success));
  width: 0%;
  border-radius: 2px;
  animation: progressFill 1s ease-in-out forwards;
  box-shadow: 0 0 10px var(--accent-green);
}

@keyframes progressFill {
  0% {
    width: 0%;
  }

  25% {
    width: 30%;
  }

  50% {
    width: 65%;
  }

  75% {
    width: 90%;
  }

  100% {
    width: 100%;
  }
}

.loader-logo {
  font-size: 3rem;
  font-family: "Orbitron", monospace;
  font-weight: 900;
  color: var(--accent-green);
  text-shadow: 0 0 20px var(--accent-green);
  margin-bottom: 2rem;
  animation: logoGlow 2s ease-in-out infinite alternate;
  position: relative;
  z-index: 2;
}

@keyframes logoGlow {
  0% {
    text-shadow: 0 0 20px var(--accent-green);
  }

  100% {
    text-shadow: 0 0 30px var(--accent-green), 0 0 40px var(--accent-green);
  }
}

.loader-subtitle {
  font-size: 1.2rem;
  color: var(--accent-blue);
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeIn 0.5s ease 0.5s forwards;
  position: relative;
  z-index: 2;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.system-status {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  color: var(--accent-green);
  opacity: 0;
  animation: fadeIn 0.5s ease 0.8s forwards;
  z-index: 2;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* Enable inspect element and developer tools */
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
  -webkit-tap-highlight-color: transparent;
}

/* Allow text selection for specific elements */
.chatbot-input input,
.form-input,
.form-textarea,
.selectable-text,
.paper-title,
.paper-authors,
.paper-abstract,
.paper-affiliations {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* Allow image interaction for inspect element */
img {
  -webkit-user-drag: auto;
  -khtml-user-drag: auto;
  -moz-user-drag: auto;
  -o-user-drag: auto;
  user-drag: auto;
  pointer-events: auto;
}

/* Enable text highlighting with theme colors */
::selection {
  background: rgba(0, 255, 65, 0.3);
  color: var(--text-primary);
}

::-moz-selection {
  background: rgba(0, 255, 65, 0.3);
  color: var(--text-primary);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--primary-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Orbitron", monospace;
  font-weight: 700;
  line-height: 1.5;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--accent-green);
  text-shadow: var(--glow-green);
  position: relative;
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.8s ease;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
  box-shadow: var(--glow-green);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Sections */
.section {
  min-height: 100vh;
  padding: 2rem 0;
  position: relative;
}

/* Mobile-first responsive adjustments */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column !important;
    text-align: center !important;
    gap: 1.5rem !important;
    padding: 0 1rem !important;
    min-height: calc(100vh - 60px) !important;
  }

  .hero-text {
    order: 2;
    flex: none !important;
  }

  .hero-image {
    order: 1;
    flex: none !important;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }

  .hero-buttons {
    flex-direction: column !important;
    gap: 1rem !important;
    width: 100% !important;
    margin-bottom: 5rem;
    /* margin: 1.5rem 0 !important; */
  }

  .btn {
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto !important;
  }

  .home-section {
    padding: 70px 0 2rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-green),
    var(--accent-blue),
    transparent
  );
  animation: navGlow 3s ease-in-out infinite alternate;
}

@keyframes navGlow {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 0.8;
  }
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-text {
  font-family: "Orbitron", monospace;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent-green);
  text-shadow: var(--glow-green);
}

.logo-subtitle {
  font-family: "Fira Code", monospace;
  font-size: 0.8rem;
  color: var(--accent-blue);
  opacity: 0.8;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

/* Theme Toggle */
.theme-toggle {
  position: relative;
  width: 60px;
  height: 30px;
  background: var(--border-color);
  border-radius: 15px;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: var(--accent-green);
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: var(--glow-green);
}

.theme-toggle.light::before {
  transform: translateX(30px);
  background: var(--accent-blue);
  box-shadow: var(--glow-blue);
}

.theme-toggle-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  transition: var(--transition);
}

.theme-toggle-icon.moon {
  left: 8px;
  opacity: 1;
}

.theme-toggle-icon.sun {
  right: 8px;
  opacity: 0.5;
}

.theme-toggle.light .theme-toggle-icon.moon {
  opacity: 0.5;
}

.theme-toggle.light .theme-toggle-icon.sun {
  opacity: 1;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--accent-green);
  margin: 3px 0;
  transition: var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-menu {
  position: fixed;
  top: 60px;
  left: -100%;
  width: 100%;
  height: calc(100vh - 60px);
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(15px);
  transition: left 0.3s ease;
  z-index: 999;
  overflow-y: auto;
  border-top: 1px solid rgba(0, 255, 65, 0.3);
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu ul {
  list-style: none;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-menu .nav-link {
  font-size: 1.2rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-green);
  text-shadow: var(--glow-green);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: var(--accent-green);
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* Home Section */
.home-section {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  background: radial-gradient(
      ellipse at 20% 80%,
      rgba(0, 255, 65, 0.2) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(0, 212, 255, 0.15) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 40% 40%,
      rgba(168, 85, 247, 0.12) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 60% 10%,
      rgba(255, 20, 147, 0.08) 0%,
      transparent 50%
    ),
    linear-gradient(135deg, var(--primary-bg) 0%, rgba(26, 26, 26, 0.95) 100%);
  overflow: hidden;
  animation: backgroundPulse 12s ease-in-out infinite alternate;
}

@keyframes backgroundPulse {
  0% {
    background: radial-gradient(
        ellipse at 20% 80%,
        rgba(0, 255, 65, 0.2) 0%,
        transparent 60%
      ),
      radial-gradient(
        ellipse at 80% 20%,
        rgba(0, 212, 255, 0.15) 0%,
        transparent 60%
      ),
      radial-gradient(
        ellipse at 40% 40%,
        rgba(168, 85, 247, 0.12) 0%,
        transparent 60%
      ),
      radial-gradient(
        ellipse at 60% 10%,
        rgba(255, 20, 147, 0.08) 0%,
        transparent 50%
      ),
      linear-gradient(135deg, var(--primary-bg) 0%, rgba(26, 26, 26, 0.95) 100%);
  }
  25% {
    background: radial-gradient(
        ellipse at 30% 70%,
        rgba(0, 255, 65, 0.25) 0%,
        transparent 65%
      ),
      radial-gradient(
        ellipse at 70% 30%,
        rgba(0, 212, 255, 0.2) 0%,
        transparent 65%
      ),
      radial-gradient(
        ellipse at 50% 50%,
        rgba(168, 85, 247, 0.15) 0%,
        transparent 65%
      ),
      radial-gradient(
        ellipse at 10% 90%,
        rgba(255, 20, 147, 0.1) 0%,
        transparent 55%
      ),
      linear-gradient(135deg, var(--primary-bg) 0%, rgba(26, 26, 26, 0.9) 100%);
  }
  50% {
    background: radial-gradient(
        ellipse at 40% 60%,
        rgba(0, 255, 65, 0.18) 0%,
        transparent 70%
      ),
      radial-gradient(
        ellipse at 60% 40%,
        rgba(0, 212, 255, 0.25) 0%,
        transparent 70%
      ),
      radial-gradient(
        ellipse at 20% 80%,
        rgba(168, 85, 247, 0.18) 0%,
        transparent 70%
      ),
      radial-gradient(
        ellipse at 80% 20%,
        rgba(255, 20, 147, 0.12) 0%,
        transparent 60%
      ),
      linear-gradient(135deg, var(--primary-bg) 0%, rgba(26, 26, 26, 0.85) 100%);
  }
  75% {
    background: radial-gradient(
        ellipse at 10% 90%,
        rgba(0, 255, 65, 0.22) 0%,
        transparent 65%
      ),
      radial-gradient(
        ellipse at 90% 10%,
        rgba(0, 212, 255, 0.18) 0%,
        transparent 65%
      ),
      radial-gradient(
        ellipse at 70% 30%,
        rgba(168, 85, 247, 0.2) 0%,
        transparent 65%
      ),
      radial-gradient(
        ellipse at 30% 70%,
        rgba(255, 20, 147, 0.15) 0%,
        transparent 55%
      ),
      linear-gradient(135deg, var(--primary-bg) 0%, rgba(26, 26, 26, 0.9) 100%);
  }
  100% {
    background: radial-gradient(
        ellipse at 25% 75%,
        rgba(0, 255, 65, 0.3) 0%,
        transparent 70%
      ),
      radial-gradient(
        ellipse at 75% 25%,
        rgba(0, 212, 255, 0.22) 0%,
        transparent 70%
      ),
      radial-gradient(
        ellipse at 45% 35%,
        rgba(168, 85, 247, 0.25) 0%,
        transparent 70%
      ),
      radial-gradient(
        ellipse at 55% 65%,
        rgba(255, 20, 147, 0.18) 0%,
        transparent 60%
      ),
      linear-gradient(135deg, var(--primary-bg) 0%, rgba(26, 26, 26, 0.8) 100%);
  }
}

/* Binary Rain Background */
.binary-rain {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
  overflow: hidden;
  background: radial-gradient(
      ellipse at center,
      rgba(0, 255, 65, 0.08) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse at 30% 70%,
      rgba(0, 212, 255, 0.05) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 70% 30%,
      rgba(168, 85, 247, 0.03) 0%,
      transparent 50%
    );
  animation: rainBackgroundShift 15s ease-in-out infinite alternate;
}

@keyframes rainBackgroundShift {
  0% {
    background: radial-gradient(
        ellipse at center,
        rgba(0, 255, 65, 0.08) 0%,
        transparent 70%
      ),
      radial-gradient(
        ellipse at 30% 70%,
        rgba(0, 212, 255, 0.05) 0%,
        transparent 60%
      ),
      radial-gradient(
        ellipse at 70% 30%,
        rgba(168, 85, 247, 0.03) 0%,
        transparent 50%
      );
  }
  100% {
    background: radial-gradient(
        ellipse at center,
        rgba(0, 255, 65, 0.12) 0%,
        transparent 80%
      ),
      radial-gradient(
        ellipse at 70% 30%,
        rgba(0, 212, 255, 0.08) 0%,
        transparent 70%
      ),
      radial-gradient(
        ellipse at 30% 70%,
        rgba(168, 85, 247, 0.06) 0%,
        transparent 60%
      );
  }
}

.binary-digit {
  position: absolute;
  font-family: "Fira Code", monospace;
  font-weight: 400;
  color: #00ff41;
  text-shadow: 0 0 5px #00ff41, 0 0 10px #00ff41, 0 0 15px #00ff41,
    0 0 20px #00ff41;
  pointer-events: none;
  user-select: text;
  transition: all 0.3s ease;
  animation: digitGlow 3s ease-in-out infinite alternate;
  filter: brightness(1.2) contrast(1.1);
}

.binary-digit.bright {
  color: #39ff14;
  text-shadow: 0 0 8px #39ff14, 0 0 16px #39ff14, 0 0 24px #39ff14,
    0 0 32px #39ff14, 0 0 40px #39ff14;
  font-weight: 600;
  transform: scale(1.15);
  filter: brightness(1.5) contrast(1.3);
  animation: brightPulse 2s ease-in-out infinite alternate;
}

@keyframes brightPulse {
  0% {
    text-shadow: 0 0 8px #39ff14, 0 0 16px #39ff14, 0 0 24px #39ff14,
      0 0 32px #39ff14, 0 0 40px #39ff14;
    transform: scale(1.15);
  }
  100% {
    text-shadow: 0 0 12px #39ff14, 0 0 20px #39ff14, 0 0 28px #39ff14,
      0 0 36px #39ff14, 0 0 44px #39ff14, 0 0 52px #39ff14;
    transform: scale(1.25);
  }
}

.binary-digit.fading {
  opacity: 0.3;
  color: #00aa2e;
  text-shadow: 0 0 5px #00aa2e;
}

.binary-digit.blue-variant {
  color: #00d4ff;
  text-shadow: 0 0 8px #00d4ff, 0 0 15px #00d4ff;
}

.binary-digit.blue-variant.bright {
  color: #40e0ff;
  text-shadow: 0 0 12px #40e0ff, 0 0 20px #40e0ff, 0 0 30px #40e0ff;
}

.binary-digit.purple-variant {
  color: #a855f7;
  text-shadow: 0 0 8px #a855f7, 0 0 15px #a855f7;
}

.binary-digit.purple-variant.bright {
  color: #c084fc;
  text-shadow: 0 0 12px #c084fc, 0 0 20px #c084fc, 0 0 30px #c084fc;
}

@keyframes digitGlow {
  0% {
    text-shadow: 0 0 8px #00ff41, 0 0 15px #00ff41;
  }
  100% {
    text-shadow: 0 0 12px #39ff14, 0 0 20px #39ff14, 0 0 25px #39ff14;
  }
}

@keyframes digitFall {
  0% {
    transform: translateY(-50px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(calc(100vh + 50px));
    opacity: 0;
  }
}

.binary-digit.flash {
  animation: flashEffect 0.3s ease-in-out;
}

@keyframes flashEffect {
  0% {
    color: #00ff41;
    text-shadow: 0 0 8px #00ff41, 0 0 15px #00ff41;
    transform: scale(1);
  }
  50% {
    color: #ffffff;
    text-shadow: 0 0 20px #ffffff, 0 0 30px #ffffff, 0 0 40px #00ff41;
    transform: scale(1.3);
  }
  100% {
    color: #00ff41;
    text-shadow: 0 0 8px #00ff41, 0 0 15px #00ff41;
    transform: scale(1);
  }
}

.binary-digit.matrix-cascade {
  animation: matrixCascade 0.5s ease-out;
}

@keyframes matrixCascade {
  0% {
    color: #ffffff;
    text-shadow: 0 0 25px #ffffff, 0 0 35px #ffffff, 0 0 45px #00ff41;
    transform: scale(1.5);
  }
  100% {
    color: #00ff41;
    text-shadow: 0 0 8px #00ff41, 0 0 15px #00ff41;
    transform: scale(1);
  }
}

.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  /* padding: 2rem; */
  z-index: 2;
  position: relative;
  min-height: calc(100vh - 90px);
  justify-content: center;
}

.hero-text {
  /* flex: 1; */
  animation: slideInLeft 1s ease-out;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 0;
  line-height: 1.1;
  position: relative;
  overflow: hidden;
}

.hero-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: titleShine 3s ease-in-out infinite;
}

@keyframes titleShine {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

.name-text {
  display: block;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, #ffffff, #00ff41, #00aeff, #a855f7);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.hero-description-container {
  margin-bottom: 0px;
}

.typing-text {
  display: block;
  color: var(--accent-green);
  text-shadow: var(--glow-green);
  font-size: 1.5rem;
  min-height: 2rem;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  /* margin-top: 0; */
  line-height: 1.2;
}

.hero-highlights {
  display: none;
}

.highlight-badge {
  background: rgba(0, 255, 65, 0.1);
  border: 1px solid var(--accent-green);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--accent-green);
  transition: var(--transition);
  cursor: default;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.highlight-badge:nth-child(1) {
  animation-delay: 0.2s;
}

.highlight-badge:nth-child(2) {
  animation-delay: 0.4s;
}

.highlight-badge:nth-child(3) {
  animation-delay: 0.6s;
}

.highlight-badge:nth-child(4) {
  animation-delay: 0.8s;
}

.highlight-badge:hover {
  background: rgba(0, 255, 65, 0.2);
  box-shadow: var(--glow-green);
  transform: translateY(-2px);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0;
  justify-content: flex-start;
}

/* Buttons */
.btn {
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 6px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.btn:nth-child(1) {
  animation-delay: 1s;
}

.btn:nth-child(2) {
  animation-delay: 1.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-green), var(--success));
  color: var(--primary-bg);
  box-shadow: var(--glow-green);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 255, 65, 0.5),
    0 5px 15px rgba(0, 255, 65, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, var(--success), var(--accent-green));
}

.btn-primary::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 ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  background: transparent;
  color: var(--accent-blue);
  border: 2px solid var(--accent-blue);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--accent-blue), #40e0ff);
  color: var(--primary-bg);
  box-shadow: 0 15px 35px rgba(0, 212, 255, 0.4),
    0 5px 15px rgba(0, 212, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-3px) scale(1.05);
}

.btn-secondary::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 ease;
}

.btn-secondary:hover::before {
  left: 100%;
}

/* Hero Image */
.hero-image {
  flex: 0 0 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideInRight 1s ease-out;
}

.image-container {
  position: relative;
  width: 300px;
  height: 300px;
}

.profile-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 65, 0.1),
    rgba(0, 212, 255, 0.1)
  );
  border: 2px solid var(--accent-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.profile-placeholder:hover {
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.6), 0 0 60px rgba(0, 255, 65, 0.4),
    0 0 90px rgba(0, 255, 65, 0.2);
  transform: scale(1.08) rotate(2deg);
  border-color: var(--success);
}

.profile-placeholder::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    var(--accent-green),
    var(--accent-blue),
    var(--accent-green)
  );
  border-radius: 50%;
  z-index: -1;
  animation: profileBorderRotate 3s linear infinite;
}

@keyframes profileBorderRotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-icon {
  font-size: 4rem;
  filter: grayscale(100%) brightness(1.2);
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-element {
  position: absolute;
  font-size: 1.5rem;
  color: var(--accent-green);
  animation: float 3s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  top: 20%;
  right: -20px;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  bottom: 30%;
  left: -20px;
  animation-delay: 1s;
}

.floating-element:nth-child(3) {
  top: 60%;
  right: -30px;
  animation-delay: 2s;
}

/* About Me Animations */
.about-content {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.about-content.animate {
  opacity: 1;
  transform: translateY(0);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 65, 0.1),
    rgba(0, 212, 255, 0.1)
  );
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: var(--transition);
  opacity: 0;
  transform: scale(0.8);
}

.stat-item.animate {
  opacity: 1;
  transform: scale(1);
  animation: statPulse 2s ease-in-out infinite alternate;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent-green);
  text-shadow: var(--glow-green);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-timeline {
  position: relative;
  margin: 3rem 0;
}

.timeline-item {
  position: relative;
  padding: 2rem 0 2rem 3rem;
  border-left: 2px solid var(--border-color);
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease;
}

.timeline-item.animate {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 2rem;
  width: 14px;
  height: 14px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: var(--glow-green);
}

.timeline-year {
  color: var(--accent-blue);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.timeline-title {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.timeline-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Research Section Styles - Force Visibility */
#research {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  min-height: 100vh;
  background: var(--primary-bg);
}

#research .section-title {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

#research .research-papers-grid {
  opacity: 1 !important;
  visibility: visible !important;
  display: grid !important;
}

#research .research-paper-card {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  display: block !important;
}

#research .research-stats {
  opacity: 1 !important;
  visibility: visible !important;
  display: grid !important;
}

#research .research-areas {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.research-papers-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
  width: 100%;
  opacity: 1 !important;
  visibility: visible !important;
}

@media (max-width: 768px) {
  .research-papers-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    margin: 2rem 0 !important;
  }
}

.research-paper-card {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.8s ease-out;
}

.research-paper-card:nth-child(1) {
  animation-delay: 0.1s;
}

.research-paper-card:nth-child(2) {
  animation-delay: 0.2s;
}

.research-paper-card:nth-child(3) {
  animation-delay: 0.3s;
}

.research-paper-card:nth-child(4) {
  animation-delay: 0.4s;
}

.research-paper-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.research-paper-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 255, 65, 0.2);
  border-color: var(--accent-green);
}

.research-paper-card.published {
  border-left: 4px solid var(--accent-green);
}

.research-paper-card.pending {
  border-left: 4px solid var(--accent-blue);
}

.paper-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem 1rem;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 65, 0.05),
    rgba(0, 212, 255, 0.05)
  );
}

.paper-number {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent-green);
  font-family: "Orbitron", monospace;
}

.status-badge {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.published {
  background: rgba(0, 255, 65, 0.2);
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
}

.status-badge.pending {
  background: rgba(0, 212, 255, 0.2);
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
}

.paper-content {
  padding: 0 2rem 1.5rem;
}

.paper-title {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.4;
  font-weight: 600;
}

.paper-authors {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.author {
  color: var(--text-secondary);
  margin-right: 0.5rem;
}

.author.primary {
  color: var(--accent-green);
  font-weight: 600;
}

.paper-affiliations {
  margin-bottom: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.affiliation {
  margin-bottom: 0.3rem;
}

.paper-abstract {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.paper-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.keyword {
  background: rgba(0, 255, 65, 0.1);
  color: var(--accent-green);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  border: 1px solid rgba(0, 255, 65, 0.3);
  transition: var(--transition);
}

.keyword:hover {
  background: rgba(0, 255, 65, 0.2);
  transform: translateY(-2px);
}

.paper-actions {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-color);
}

.action-btn {
  flex: 1;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.view-btn {
  background: linear-gradient(135deg, var(--accent-green), var(--success));
  color: var(--primary-bg);
}

.view-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 255, 65, 0.4);
}

.cite-btn {
  background: transparent;
  color: var(--accent-blue);
  border: 2px solid var(--accent-blue);
}

.cite-btn:hover {
  background: var(--accent-blue);
  color: var(--primary-bg);
  transform: translateY(-2px);
}

/* Research Statistics */
.research-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}

.stat-card {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 255, 65, 0.2);
  border-color: var(--accent-green);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-green);
  display: block;
  margin-bottom: 0.5rem;
  font-family: "Orbitron", monospace;
}

.stat-card .stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Research Areas */
.research-areas {
  margin: 4rem 0;
}

.areas-title {
  font-size: 1.8rem;
  color: var(--accent-green);
  text-align: center;
  margin-bottom: 3rem;
  font-family: "Orbitron", monospace;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.area-card {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.area-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 255, 65, 0.2);
  border-color: var(--accent-green);
}

.area-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.area-card h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.area-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9rem;
}

/* Cards */
.card {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.card.animate {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  border-color: var(--accent-green);
  box-shadow: 0 10px 30px rgba(0, 255, 65, 0.3), 0 0 20px rgba(0, 255, 65, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-8px) scale(1.02);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 65, 0.1),
    transparent
  );
  transition: left 0.5s ease;
  z-index: 1;
}

.card:hover::before {
  left: 100%;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);
}

.project-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 25px 50px rgba(0, 255, 65, 0.3),
    0 10px 20px rgba(0, 212, 255, 0.2), 0 0 30px rgba(0, 255, 65, 0.1);
  border-color: var(--accent-green);
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(0, 255, 65, 0.05),
    rgba(0, 212, 255, 0.05)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.project-card:hover::before {
  opacity: 1;
}

.project-card .project-content {
  position: relative;
  z-index: 2;
}

.project-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-bg), var(--secondary-bg));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--accent-green);
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-tag {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-blue);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  border: 1px solid rgba(0, 212, 255, 0.3);
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.skill-category-title {
  font-size: 1.5rem;
  color: var(--accent-green);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-item {
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: var(--transition);
  opacity: 0;
  transform: translateX(-30px);
}

.skill-item.animate {
  opacity: 1;
  transform: translateX(0);
}

.skill-item:hover {
  border-color: var(--accent-green);
  transform: translateY(-3px);
  box-shadow: var(--glow-green);
}

.skill-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.skill-level {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.skill-progress {
  width: 100%;
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.skill-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
  border-radius: 3px;
  transition: width 1.5s ease;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
  width: 0%;
}

.skill-progress-bar.animate {
  width: var(--progress-width);
}

/* Contact */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form {
  background: var(--secondary-bg);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s ease;
}

.contact-form.animate {
  opacity: 1;
  transform: translateX(0);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: var(--glow-green);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s ease;
}

.contact-info.animate {
  opacity: 1;
  transform: translateX(0);
}

.contact-info h3 {
  color: var(--accent-green);
  margin-bottom: 2rem;
  text-align: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.5rem;
  border-radius: 6px;
  transition: var(--transition);
}

.contact-item:hover {
  background: rgba(0, 255, 65, 0.1);
}

.contact-icon {
  font-size: 1.2rem;
  width: 30px;
  text-align: center;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 1rem 0 4rem 0;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.2rem;
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}

.social-link.animate {
  opacity: 1;
  transform: translateY(0);
}

.social-link:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
  box-shadow: var(--glow-green);
  transform: translateY(-3px);
}

/* Animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg) scale(1);
    text-shadow: 0 0 10px var(--accent-green);
  }
  25% {
    transform: translateY(-15px) rotate(90deg) scale(1.1);
    text-shadow: 0 0 15px var(--accent-blue);
  }
  50% {
    transform: translateY(-25px) rotate(180deg) scale(1.2);
    text-shadow: 0 0 20px var(--accent-green);
  }
  75% {
    transform: translateY(-15px) rotate(270deg) scale(1.1);
    text-shadow: 0 0 15px #a855f7;
  }
  100% {
    transform: translateY(0px) rotate(360deg) scale(1);
    text-shadow: 0 0 10px var(--accent-green);
  }
}

@keyframes statPulse {
  0% {
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
  }

  100% {
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.4);
  }
}

.particle {
  position: absolute;
  background: var(--accent-green);
  border-radius: 50%;
  pointer-events: none;
  animation: particleFloat 10s linear infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) translateX(0px);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-100px) translateX(100px);
    opacity: 0;
  }
}

/* Responsive */
@media screen and (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
  }

  .theme-toggle {
    display: none;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-title {
    font-size: 2rem;
  }

  .typing-text {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .stat-item {
    padding: 1.5rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .timeline-item {
    padding-left: 2rem;
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero-buttons {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 0.5rem;
  }

  .btn {
    width: auto;
    max-width: 150px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }
}

/* Chatbot Styles */
.chatbot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.chatbot-toggle {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-green), var(--success));
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-bg);
  box-shadow: 0 4px 20px rgba(0, 255, 65, 0.4);
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(0, 255, 65, 0.6);
}

.chatbot-toggle.active {
  background: var(--warning);
  animation: none;
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 20px rgba(0, 255, 65, 0.4);
  }

  50% {
    box-shadow: 0 4px 30px rgba(0, 255, 65, 0.8);
  }

  100% {
    box-shadow: 0 4px 20px rgba(0, 255, 65, 0.4);
  }
}

.chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 500px;
  background: var(--secondary-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transform: scale(0) translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.chatbot-window.active {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.chatbot-header {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
  color: var(--primary-bg);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.chatbot-controls {
  position: absolute;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
}

.chatbot-control-btn {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  transition: var(--transition);
}

.minimize-btn {
  background: #ffc107;
  color: #000;
}

.minimize-btn:hover {
  background: #ffb300;
}

.close-btn {
  background: #dc3545;
  color: #fff;
}

.close-btn:hover {
  background: #c82333;
}

.chatbot-window.minimized {
  height: 60px;
  overflow: hidden;
}

.chatbot-window.minimized .chatbot-messages,
.chatbot-window.minimized .chatbot-input {
  display: none;
}

.chatbot-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.chatbot-info h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.chatbot-status {
  font-size: 0.8rem;
  opacity: 0.8;
}

.chatbot-messages {
  height: 350px;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: var(--border-color);
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: var(--accent-green);
  border-radius: 3px;
}

.message {
  display: flex;
  gap: 0.5rem;
  animation: messageSlide 0.3s ease;
}

.message.user {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.message.bot .message-avatar {
  background: var(--accent-green);
  color: var(--primary-bg);
}

.message.user .message-avatar {
  background: var(--accent-blue);
  color: var(--primary-bg);
}

.message-content {
  background: var(--primary-bg);
  padding: 0.8rem 1rem;
  border-radius: 12px;
  max-width: 80%;
  word-wrap: break-word;
  border: 1px solid var(--border-color);
}

.message.user .message-content {
  background: var(--accent-blue);
  color: var(--primary-bg);
}

.message.bot .message-content {
  background: var(--secondary-bg);
  border-color: var(--accent-green);
}

.chatbot-input {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.5rem;
}

.chatbot-input input {
  flex: 1;
  padding: 0.8rem;
  background: var(--primary-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  outline: none;
}

.chatbot-input input:focus {
  border-color: var(--accent-green);
  box-shadow: var(--glow-green);
}

.chatbot-send {
  width: 40px;
  height: 40px;
  background: var(--accent-green);
  border: none;
  border-radius: 50%;
  color: var(--primary-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.chatbot-send:hover {
  background: var(--success);
  transform: scale(1.1);
}

.chatbot-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.typing-indicator {
  display: flex;
  gap: 0.3rem;
  padding: 0.8rem 1rem;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-10px);
  }
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.quick-reply {
  background: var(--border-color);
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.quick-reply:hover {
  background: var(--accent-green);
  color: var(--primary-bg);
  border-color: var(--accent-green);
}

/* Tablet Responsive */
@media screen and (max-width: 768px) {
  .chatbot-window {
    width: 320px;
    height: 450px;
  }

  .chatbot-messages {
    height: 300px;
  }

  .chatbot-toggle {
    width: 55px;
    height: 55px;
    font-size: 1.3rem;
  }
}

/* Mobile Responsive */
@media screen and (max-width: 480px) {
  .chatbot-container {
    bottom: 15px;
    right: 15px;
    left: 15px;
  }

  .chatbot-window {
    position: fixed;
    bottom: 80px;
    left: 15px;
    right: 15px;
    width: auto;
    height: 70vh;
    max-height: 500px;
    border-radius: 8px;
  }

  .chatbot-messages {
    height: calc(70vh - 180px);
    min-height: 250px;
    padding: 0.8rem;
    font-size: 14px;
  }

  .chatbot-header {
    padding: 0.8rem;
  }

  .chatbot-info h3 {
    font-size: 0.9rem;
  }

  .chatbot-status {
    font-size: 0.7rem;
  }

  .chatbot-input {
    padding: 0.8rem;
  }

  .chatbot-input input {
    padding: 0.7rem;
    font-size: 14px;
  }

  .chatbot-send {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .message-content {
    padding: 0.6rem 0.8rem;
    font-size: 14px;
    max-width: 85%;
  }

  .message-avatar {
    width: 25px;
    height: 25px;
    font-size: 0.8rem;
  }

  .quick-replies {
    gap: 0.3rem;
    margin-top: 0.3rem;
  }

  .quick-reply {
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
  }

  .chatbot-toggle {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    bottom: 15px;
    right: 15px;
  }

  .chatbot-control-btn {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .chatbot-controls {
    right: 0.8rem;
    gap: 0.3rem;
  }
}

/* Very Small Mobile */
@media screen and (max-width: 360px) {
  .chatbot-window {
    height: 75vh;
    max-height: 450px;
  }

  .chatbot-messages {
    height: calc(75vh - 170px);
    min-height: 200px;
    padding: 0.6rem;
    font-size: 13px;
  }

  .chatbot-header {
    padding: 0.6rem;
  }

  .chatbot-input {
    padding: 0.6rem;
  }

  .message-content {
    padding: 0.5rem 0.7rem;
    font-size: 13px;
  }

  .quick-reply {
    padding: 0.25rem 0.5rem;
    font-size: 0.65rem;
  }

  .chatbot-toggle {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

/* Landscape Mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .chatbot-window {
    height: 85vh;
    max-height: 400px;
  }

  .chatbot-messages {
    height: calc(85vh - 160px);
    min-height: 180px;
  }
}
/* Cu
stom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, var(--accent-green), var(--accent-blue));
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, var(--success), #40e0ff);
  box-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
}

/* Enhanced Loading Animations */
@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-100px) rotate(-5deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }
}

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(100px) rotate(5deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-10deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.1) rotate(5deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Enhanced Glow Effects */
.glow-effect {
  position: relative;
  overflow: hidden;
}

.glow-effect::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Magnetic Button Effect */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.3) 0%,
    transparent 70%
  );
  transition: all 0.3s ease;
  transform: translate(-50%, -50%);
}

.btn:hover::after {
  width: 300px;
  height: 300px;
}

/* Enhanced Particle System */
.particle {
  position: absolute;
  background: var(--accent-green);
  border-radius: 50%;
  pointer-events: none;
  animation: particleFloat 15s linear infinite;
  box-shadow: 0 0 6px var(--accent-green);
}

.particle:nth-child(2n) {
  background: var(--accent-blue);
  box-shadow: 0 0 6px var(--accent-blue);
  animation-duration: 18s;
}

.particle:nth-child(3n) {
  background: #a855f7;
  box-shadow: 0 0 6px #a855f7;
  animation-duration: 12s;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) translateX(0px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) translateX(200px) rotate(360deg);
    opacity: 0;
  }
}

/* Enhanced Section Transitions */
.section {
  position: relative;
  overflow: hidden;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-green),
    transparent
  );
  opacity: 0.5;
}

/* Enhanced Typography */
.section-title {
  position: relative;
  background: linear-gradient(
    45deg,
    var(--accent-green),
    var(--accent-blue),
    var(--accent-green)
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGradient 3s ease-in-out infinite;
}

@keyframes titleGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Enhanced Mobile Experience */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .binary-rain {
    opacity: 0.6;
  }

  .floating-element {
    font-size: 1.2rem;
  }

  .profile-placeholder {
    width: 250px;
    height: 250px;
  }
}

/* Performance Optimizations */
.binary-digit,
.particle,
.floating-element {
  will-change: transform, opacity;
}

.card,
.project-card,
.btn {
  will-change: transform, box-shadow;
}
