/* ===== CSS VARIABLES ===== */
:root {
  /* Enhanced Colors */
  --primary-color: #6366f1;
  --secondary-color: #8b5cf6;
  --accent-color: #06b6d4;
  --neon-blue: #00f5ff;
  --neon-purple: #bf00ff;
  --neon-green: #39ff14;
  --neon-orange: #ff6600;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --bg-primary: #0a0a0f;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #16213e;

  /* Enhanced Gradients */
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  --gradient-neon: linear-gradient(45deg, #00f5ff, #bf00ff, #39ff14, #ff6600);
  --gradient-hologram: linear-gradient(45deg, rgba(0,245,255,0.3), rgba(191,0,255,0.3), rgba(57,255,20,0.3));
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));

  /* 3D Shadows */
  --shadow-3d: 0 20px 60px rgba(99, 102, 241, 0.4), 0 0 40px rgba(139, 92, 246, 0.3);
  --shadow-neon: 0 0 20px currentColor, 0 0 40px currentColor, 0 0 60px currentColor;
  --shadow-hologram: 0 0 30px rgba(0,245,255,0.5), inset 0 0 30px rgba(191,0,255,0.2);

  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --section-padding: 120px 0;
  --container-padding: 0 20px;
  --border-radius: 16px;
  --border-radius-lg: 24px;

  /* Enhanced Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* 3D Transforms */
  --perspective: 1000px;
  --rotate-x: 0deg;
  --rotate-y: 0deg;
  --translate-z: 0px;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  perspective: var(--perspective);
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Enhanced Body Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Smooth Loading Animation */
body.loading {
  overflow: hidden;
}

body.loading::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 10000;
  animation: fadeOut 1s ease-out 2s forwards;
}

/* ===== ENHANCED CUSTOM CURSOR ===== */
.cursor {
  position: fixed;
  width: 24px;
  height: 24px;
  background: var(--gradient-neon);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: screen;
  transition: all 0.1s ease;
  box-shadow: var(--shadow-neon);
  animation: cursorPulse 2s ease-in-out infinite;
}

.cursor-follower {
  position: fixed;
  width: 50px;
  height: 50px;
  border: 2px solid var(--neon-blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.6;
  box-shadow: 0 0 20px var(--neon-blue);
}

.cursor-trail {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--neon-purple);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 0 10px var(--neon-purple);
}

/* Cursor Hover Effects */
.cursor.hover {
  transform: scale(1.5);
  background: var(--gradient-hologram);
}

.cursor-follower.hover {
  transform: scale(1.2);
  border-color: var(--neon-purple);
  box-shadow: 0 0 30px var(--neon-purple);
}

@keyframes cursorPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

/* ===== UTILITY CLASSES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 50px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo a {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-dot {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  transition: all var(--transition-normal);
}

/* ===== PROFESSIONAL HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
  padding: 2rem 0;
}

/* Subtle Background */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.wave-lines {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 50 Q25 25 50 50 T100 50' stroke='%236366f1' stroke-width='0.5' fill='none' opacity='0.3'/%3E%3Cpath d='M0 60 Q25 35 50 60 T100 60' stroke='%238b5cf6' stroke-width='0.5' fill='none' opacity='0.2'/%3E%3Cpath d='M0 40 Q25 15 50 40 T100 40' stroke='%2306b6d4' stroke-width='0.5' fill='none' opacity='0.2'/%3E%3C/svg%3E") repeat;
  animation: waveMove 20s linear infinite;
  opacity: 0.6;
}

@keyframes waveMove {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(-100px) translateY(-50px); }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  z-index: 10;
  position: relative;
  min-height: 100vh;
}

/* Hero Content */
.hero-content {
  z-index: 10;
  position: relative;
}

.hero-text {
  text-align: left;
}

.hero-title {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #8b5cf6 40%, #06b6d4 80%, #10b981 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 300% 300%;
  animation: gradientShift 4s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.3));
  text-transform: none;
}

.gradient-text {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 3s ease-in-out infinite;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Dynamic Text Animation */
.dynamic-text {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), #10b981);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  font-size: 1.1em;
  min-width: 280px;
  text-align: left;
  height: 1.6em;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.text-item {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateY(30px) scale(0.9);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-item.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.text-item.fade-out {
  opacity: 0;
  transform: translateY(-30px) scale(0.9);
}

/* Enhanced Typewriter effect */
.text-item.typing::after {
  content: '|';
  animation: blink 1.2s infinite;
  color: var(--secondary-color);
  background: none;
  -webkit-text-fill-color: var(--secondary-color);
  margin-left: 2px;
  font-weight: 300;
}

@keyframes blink {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

/* Glow effect on hover */
.dynamic-text:hover .text-item.active {
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.5));
  transform: translateY(0) scale(1.02);
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.hero-buttons .btn {
  font-size: 1.1rem;
  padding: 1rem 2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.hero-buttons .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(139, 92, 246, 0.4);
}

.hero-buttons .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.hero-buttons .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* Gaming Setup Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.gaming-setup-container {
  position: relative;
  max-width: 600px;
  width: 100%;
}

.gaming-setup-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gaming-setup-image:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 80px rgba(139, 92, 246, 0.4);
}

.setup-glow {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 30px;
  opacity: 0.1;
  z-index: -1;
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.1; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(1.05); }
}

.workstation-container {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.workstation-setup {
  position: relative;
  width: 100%;
}

.monitor {
  width: 100%;
  height: 300px;
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  border-radius: 12px 12px 0 0;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
}

.screen {
  width: 100%;
  height: 100%;
  background: #0d1117;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.code-editor {
  width: 100%;
  height: 100%;
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
}

.editor-header {
  background: #21262d;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #30363d;
}

.editor-controls {
  display: flex;
  gap: 4px;
}

.control {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.control.close { background: #ff5f56; }
.control.minimize { background: #ffbd2e; }
.control.maximize { background: #27ca3f; }

.editor-title {
  color: #8b949e;
  font-size: 0.7rem;
  margin-left: auto;
}

.editor-content {
  padding: 12px;
  line-height: 1.4;
}

.code-line {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.line-number {
  color: #6e7681;
  width: 20px;
  text-align: right;
  margin-right: 12px;
  font-size: 0.65rem;
}

.code-text {
  color: #e6edf3;
  font-size: 0.65rem;
}

.keyword { color: #ff7b72; }
.module { color: #79c0ff; }
.function { color: #d2a8ff; }
.comment { color: #8b949e; }

.monitor-stand {
  width: 60px;
  height: 20px;
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  margin: 0 auto;
  border-radius: 0 0 8px 8px;
}

.desk {
  width: 120%;
  height: 40px;
  background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
  margin: 0 auto;
  border-radius: 8px;
  position: relative;
  left: -10%;
}

.keyboard {
  width: 80px;
  height: 12px;
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  border-radius: 4px;
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.mouse {
  width: 16px;
  height: 20px;
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  border-radius: 8px 8px 4px 4px;
  position: absolute;
  bottom: 8px;
  right: 20px;
}



/* Animations */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  25% { background-position: 100% 50%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
  100% { background-position: 0% 50%; }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-visual {
    order: -1;
  }

  .workstation-container {
    max-width: 400px;
  }



  .hero-buttons {
    justify-content: center;
  }
}

.btn-secondary-3d:hover {
  transform: translateY(-3px) rotateX(-10deg);
  background: var(--primary-color);
  box-shadow:
    var(--shadow-hologram),
    0 25px 60px rgba(139, 92, 246, 0.5);
}

.btn-secondary-3d:hover .btn-glow {
  opacity: 0.6;
}

.btn-3d:active {
  transform: translateY(0) rotateX(0deg);
}

/* ===== 3D HERO SCENE ===== */
.hero-3d-scene {
  position: relative;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.three-scene {
  width: 100%;
  height: 80%;
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

/* Floating Tech Logos */
.floating-tech-logos {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tech-logo {
  position: absolute;
  width: 80px;
  height: 80px;
  cursor: pointer;
  pointer-events: all;
  transition: all var(--transition-normal);
  animation: floatTech 6s ease-in-out infinite;
}

.logo-3d {
  width: 100%;
  height: 100%;
  background: var(--gradient-glass);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  transition: all var(--transition-normal);
}

.logo-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  opacity: 0.6;
  filter: blur(20px);
  z-index: 1;
  transition: all var(--transition-normal);
}

/* Individual Tech Logo Colors */
.tensorflow .logo-3d { color: #ff6f00; }
.tensorflow .logo-glow { background: #ff6f00; }

.pytorch .logo-3d { color: #ee4c2c; }
.pytorch .logo-glow { background: #ee4c2c; }

.docker .logo-3d { color: #2496ed; }
.docker .logo-glow { background: #2496ed; }

.github .logo-3d { color: #ffffff; }
.github .logo-glow { background: #ffffff; }

.fastapi .logo-3d { color: #009688; }
.fastapi .logo-glow { background: #009688; }

.aws .logo-3d { color: #ff9900; }
.aws .logo-glow { background: #ff9900; }

/* Tech Logo Positioning */
.tensorflow { top: 15%; left: 10%; animation-delay: 0s; }
.pytorch { top: 25%; right: 15%; animation-delay: 1s; }
.docker { bottom: 35%; left: 5%; animation-delay: 2s; }
.github { bottom: 15%; right: 10%; animation-delay: 3s; }
.fastapi { top: 45%; left: 20%; animation-delay: 4s; }
.aws { top: 60%; right: 25%; animation-delay: 5s; }

/* Tech Logo Hover Effects */
.tech-logo:hover {
  transform: scale(1.2) rotateY(180deg);
  z-index: 10;
}

.tech-logo:hover .logo-3d {
  transform: rotateX(20deg) rotateY(20deg);
  box-shadow: var(--shadow-3d);
}

.tech-logo:hover .logo-glow {
  opacity: 1;
  filter: blur(30px);
  transform: scale(1.5);
}

/* Tech Logo Tooltip */
.tech-logo::after {
  content: attr(data-tech);
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-glass);
  backdrop-filter: blur(20px);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0;
  transition: all var(--transition-normal);
  pointer-events: none;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tech-logo:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

/* Holographic Code Display */
.holographic-code {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
}

.holo-screen {
  background: var(--gradient-glass);
  backdrop-filter: blur(30px);
  border: 2px solid rgba(0, 245, 255, 0.3);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow:
    var(--shadow-hologram),
    inset 0 0 50px rgba(0, 245, 255, 0.1);
  animation: holoFloat 4s ease-in-out infinite;
}

.holo-header {
  background: rgba(0, 245, 255, 0.1);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(0, 245, 255, 0.2);
}

.holo-controls {
  display: flex;
  gap: 0.5rem;
}

.holo-control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  position: relative;
}

.holo-control.close {
  background: var(--neon-orange);
  box-shadow: 0 0 10px var(--neon-orange);
}

.holo-control.minimize {
  background: var(--neon-green);
  box-shadow: 0 0 10px var(--neon-green);
}

.holo-control.maximize {
  background: var(--neon-blue);
  box-shadow: 0 0 10px var(--neon-blue);
}

.holo-title {
  color: var(--neon-blue);
  font-size: 0.9rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-shadow: 0 0 10px currentColor;
}

.holo-content {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  min-width: 400px;
}

.holo-line {
  display: flex;
  align-items: center;
  margin-bottom: 0.3rem;
  opacity: 0;
  animation: codeReveal 0.5s ease forwards;
}

.holo-line:nth-child(1) { animation-delay: 0.5s; }
.holo-line:nth-child(2) { animation-delay: 0.7s; }
.holo-line:nth-child(3) { animation-delay: 0.9s; }
.holo-line:nth-child(4) { animation-delay: 1.1s; }
.holo-line:nth-child(5) { animation-delay: 1.3s; }
.holo-line:nth-child(6) { animation-delay: 1.5s; }
.holo-line:nth-child(7) { animation-delay: 1.7s; }
.holo-line:nth-child(8) { animation-delay: 1.9s; }
.holo-line:nth-child(9) { animation-delay: 2.1s; }

.line-num {
  color: var(--text-muted);
  width: 30px;
  text-align: right;
  margin-right: 1rem;
  user-select: none;
  opacity: 0.6;
}

.holo-glow {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: var(--gradient-hologram);
  border-radius: var(--border-radius-lg);
  filter: blur(40px);
  opacity: 0.3;
  z-index: -1;
  animation: holoGlow 3s ease-in-out infinite;
}

/* Sound Visualizer */
.sound-visualizer {
  position: absolute;
  bottom: 5%;
  right: 5%;
  display: flex;
  align-items: end;
  gap: 4px;
  z-index: 5;
}

.sound-bar {
  width: 4px;
  background: var(--gradient-neon);
  border-radius: 2px;
  animation: soundWave 1.5s ease-in-out infinite;
  animation-delay: var(--delay);
  box-shadow: 0 0 10px currentColor;
}

.sound-bar:nth-child(1) { height: 20px; }
.sound-bar:nth-child(2) { height: 35px; }
.sound-bar:nth-child(3) { height: 50px; }
.sound-bar:nth-child(4) { height: 30px; }
.sound-bar:nth-child(5) { height: 25px; }

/* Animations */
@keyframes floatTech {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-15px) rotate(90deg); }
  50% { transform: translateY(-10px) rotate(180deg); }
  75% { transform: translateY(-20px) rotate(270deg); }
}

@keyframes holoFloat {
  0%, 100% { transform: translateX(-50%) translateY(0px); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes holoGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

@keyframes codeReveal {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes soundWave {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

@keyframes fadeOut {
  to { opacity: 0; visibility: hidden; }
}

.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-element {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  animation: float 6s ease-in-out infinite;
  animation-delay: var(--delay);
}

.floating-element:nth-child(1) { top: 10%; left: 10%; }
.floating-element:nth-child(2) { top: 20%; right: 10%; }
.floating-element:nth-child(3) { bottom: 30%; left: 5%; }
.floating-element:nth-child(4) { bottom: 10%; right: 15%; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.code-window {
  background: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.window-header {
  background: var(--bg-tertiary);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.window-controls {
  display: flex;
  gap: 8px;
}

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.control.close { background: #ff5f57; }
.control.minimize { background: #ffbd2e; }
.control.maximize { background: #28ca42; }

.window-title {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-family: var(--font-mono);
}

.code-content {
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.6;
}

.code-line {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.line-number {
  color: var(--text-muted);
  width: 30px;
  text-align: right;
  margin-right: 16px;
  user-select: none;
}

.keyword { color: #c792ea; }
.module { color: #82aaff; }
.function { color: #ffcb6b; }
.string { color: #c3e88d; }
.comment { color: var(--text-muted); }
.parameter { color: #f78c6c; }

/* ===== HERO BACKGROUND ===== */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.1;
  animation: floatShape 20s ease-in-out infinite;
}

.shape-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 10%;
  animation-delay: 5s;
}

.shape-3 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 20%;
  animation-delay: 10s;
}

.shape-4 {
  width: 120px;
  height: 120px;
  top: 30%;
  right: 30%;
  animation-delay: 15s;
}

@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(30px, -30px) rotate(90deg); }
  50% { transform: translate(-20px, 20px) rotate(180deg); }
  75% { transform: translate(20px, 30px) rotate(270deg); }
}

/* ===== SECTIONS ===== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* ===== ABOUT SECTION ===== */
.about {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content-simple {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-paragraph {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.about-paragraph::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 ease;
}

.about-paragraph:hover::before {
  left: 100%;
}

.about-paragraph:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.about-text-large {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0;
  text-align: left;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.accent-text {
  color: var(--accent-color);
  font-weight: 600;
}

.tech-highlight {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-weight: 500;
  border: 1px solid rgba(99, 102, 241, 0.2);
  white-space: nowrap;
}

.about-text-centered {
  padding: 2rem 0;
}

.about-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

/* Enhanced About Section */
.about-content-enhanced {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.about-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.about-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 ease;
}

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

.about-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.card-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.card-content {
  position: relative;
}

.highlight-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.highlight-text:last-child {
  margin-bottom: 0;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.accent-text {
  color: var(--accent-color);
  font-weight: 600;
}

.tech-highlight {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-weight: 500;
  border: 1px solid rgba(99, 102, 241, 0.2);
  white-space: nowrap;
}

.about-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.1;
  animation: floatShape 20s infinite linear;
}

.floating-shape.shape-1 {
  width: 80px;
  height: 80px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.floating-shape.shape-2 {
  width: 60px;
  height: 60px;
  top: 60%;
  right: 15%;
  animation-delay: 7s;
}

.floating-shape.shape-3 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 80%;
  animation-delay: 14s;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.about-image {
  display: flex;
  justify-content: center;
}

.image-container {
  position: relative;
  width: 300px;
  height: 300px;
}

.profile-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-color);
  position: relative;
  z-index: 2;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-decoration {
  position: absolute;
  top: -20px;
  left: -20px;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  opacity: 0.3;
  z-index: 1;
}

/* ===== SKILLS SECTION ===== */
.skills {
  padding: var(--section-padding);
}

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

.skill-card {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.skill-card:hover::before {
  transform: scaleX(1);
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-primary);
}

.skill-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1.5rem;
}

.skill-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.skill-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== WORK EXPERIENCE SECTION ===== */
.work {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-primary);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 20px;
  background: var(--gradient-primary);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
  border: 4px solid var(--bg-secondary);
}

.timeline-content {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: calc(50% - 40px);
  position: relative;
  box-shadow: var(--shadow-secondary);
  transition: all var(--transition-normal);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-primary);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: auto;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
}

.timeline-date {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline-company {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.timeline-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.timeline-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ===== PROJECTS SECTION ===== */
.projects {
  padding: var(--section-padding);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-secondary);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
  position: relative;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-primary);
}

.project-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
  background-color: var(--bg-secondary);
  display: block;
  opacity: 1 !important;
}

/* Fallback background when image fails to load */
.project-image.image-error {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image.image-error::after {
  content: "Image Loading...";
  color: white;
  font-size: 14px;
  text-align: center;
  opacity: 0.8;
}

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

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

.project-link {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  transition: transform var(--transition-fast);
}

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

.project-content {
  padding: 2rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

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

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: rgba(139, 92, 246, 0.1);
  color: var(--secondary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

/* ===== CONTACT SECTION ===== */
.contact {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  flex-shrink: 0;
}

.contact-details h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-details p {
  color: var(--text-secondary);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  width: 50px;
  height: 50px;
  background: var(--bg-primary);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.2rem;
  transition: all var(--transition-normal);
}

.social-link:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-3px);
}

.contact-form {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg-secondary);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: border-color var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-primary);
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-text {
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-color);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-paragraph {
    padding: 2rem;
  }

  .about-text-large {
    font-size: 1.1rem;
    line-height: 1.7;
  }

  .about-content-simple {
    max-width: 100%;
    padding: 0 20px;
  }

  .tech-highlight {
    padding: 0.2rem 0.4rem;
    font-size: 0.95rem;
    margin: 0.1rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    flex-direction: row !important;
  }

  .timeline-marker {
    left: 20px;
    transform: translateX(-50%);
  }

  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px !important;
    margin-right: 0 !important;
  }
}

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

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: left var(--transition-normal);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero-buttons {
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

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

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .dynamic-text {
    min-width: 200px;
    font-size: 1rem;
    height: 1.5em;
  }

  /* About Section Mobile Optimization */
  .about-content-simple {
    max-width: 100%;
    padding: 0 10px;
  }

  .about-paragraph {
    padding: 1.5rem;
    margin: 0 10px;
    border-radius: 16px;
  }

  .about-text-large {
    font-size: 1rem;
    line-height: 1.6;
    text-align: left;
  }

  .tech-highlight {
    padding: 0.15rem 0.4rem;
    font-size: 0.9rem;
    margin: 0.1rem;
    display: inline-block;
  }

  .gradient-text {
    font-size: 1rem;
  }

  .accent-text {
    font-size: 1rem;
  }

  .text-item.typing::after {
    margin-left: 1px;
  }

  .hero-buttons {
    gap: 1rem;
    margin-top: 2rem;
  }

  .hero-buttons .btn {
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
  }

  .typing-container {
    font-size: 1rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

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

  .code-window {
    font-size: 0.8rem;
  }

  .floating-element {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .timeline-content {
    padding: 1.5rem;
  }

  .project-content {
    padding: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
}
