:root {
  /* Space Theme Colors */
  --primary-color: #00d4ff;
  --primary-dark: #0099cc;
  --accent-color: #ff6b35;
  --accent-secondary: #7c3aed;
  --text-primary: #ffffff;
  --text-secondary: #b0c4de;
  --text-muted: #6b7280;
  --background: #0a0a0f;
  --surface: #1a1a2e;
  --surface-light: #16213e;
  --border: #2d3748;
  --shadow: rgba(0, 212, 255, 0.1);
  --shadow-dark: rgba(0, 0, 0, 0.5);
  --glow: rgba(0, 212, 255, 0.3);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Orbitron', monospace;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 900;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  
  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Z-index */
  --z-navbar: 1000;
  --z-particles: 999;
  --z-modal: 1100;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
  overflow-x: hidden;
  cursor: default;
}

/* Custom Cursor */
#cursor-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: var(--z-particles);
}

.cursor-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-color);
  border-radius: 50%;
  pointer-events: none;
  animation: particleFade 1s ease-out forwards;
  box-shadow: 0 0 10px var(--primary-color);
  z-index: 999;
}

.static-particle {
  transition: all 0.1s ease-out;
}

@keyframes particleFade {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0);
  }
}

/* Stars Background */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.stars, .stars2, .stars3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  opacity: 0.3;
}

.stars {
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #eee, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, #fff, transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: zoom 20s infinite linear;
}

.stars2 {
  background-image: 
    radial-gradient(1px 1px at 40px 60px, #fff, transparent),
    radial-gradient(1px 1px at 120px 10px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 160px 90px, #eee, transparent);
  background-repeat: repeat;
  background-size: 300px 150px;
  animation: zoom 30s infinite linear;
}

.stars3 {
  background-image: 
    radial-gradient(1px 1px at 10px 10px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 150px 150px, rgba(255,255,255,0.4), transparent);
  background-repeat: repeat;
  background-size: 400px 200px;
  animation: zoom 40s infinite linear;
}

@keyframes zoom {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: var(--z-navbar);
  transition: all var(--transition-normal);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: var(--font-weight-black);
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px var(--glow);
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: var(--font-weight-medium);
  margin-top: -2px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-xl);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: all var(--transition-fast);
  position: relative;
  padding: var(--space-xs) 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--glow);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: all var(--transition-fast);
  transform: translateX(-50%);
  box-shadow: 0 0 10px var(--glow);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: var(--space-xs);
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: var(--transition-fast);
  border-radius: 2px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
}

.cosmic-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at center, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(124, 58, 237, 0.1) 0%, transparent 50%);
  animation: cosmicPulse 8s ease-in-out infinite;
}

@keyframes cosmicPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.floating-objects {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.gamepad {
  position: absolute;
  width: 120px;
  height: 80px;
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  border-radius: 20px;
  opacity: 0.2;
  border: 2px solid var(--primary-color);
  animation: float 8s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gamepad::before {
  content: '🎮';
  font-size: 2rem;
  opacity: 0.6;
}

.gamepad-1 {
  top: 15%;
  left: 10%;
  animation-delay: 0s;
}

.gamepad-2 {
  top: 70%;
  right: 15%;
  animation-delay: 3s;
}

.asteroid {
  position: absolute;
  background: var(--accent-secondary);
  opacity: 0.2;
  animation: rotate 12s linear infinite;
}

.asteroid-1 {
  width: 30px;
  height: 30px;
  top: 25%;
  right: 25%;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.asteroid-2 {
  width: 20px;
  height: 20px;
  bottom: 30%;
  left: 20%;
  border-radius: 50% 20% 80% 40% / 60% 30% 70% 40%;
  animation-delay: 4s;
}

.asteroid-3 {
  width: 25px;
  height: 25px;
  top: 60%;
  left: 60%;
  border-radius: 40% 60% 30% 70% / 50% 80% 20% 50%;
  animation-delay: 8s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(180deg); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 var(--space-lg);
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--primary-color);
  border-radius: var(--radius-2xl);
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(10px);
  animation: slideUp 0.8s ease-out forwards;
}

.badge-text {
  color: var(--primary-color);
  font-weight: var(--font-weight-medium);
  font-size: 0.875rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: var(--font-weight-black);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.title-line {
  display: block;
  opacity: 0;
  animation: slideUp 0.8s ease-out forwards;
}

.title-line:nth-child(2) {
  animation-delay: 0.2s;
}

.title-line.accent {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px var(--glow);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: slideUp 0.8s ease-out 0.4s forwards;
  line-height: 1.8;
}

.highlight {
  color: var(--accent-color);
  font-weight: var(--font-weight-semibold);
  text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: slideUp 0.8s ease-out 0.6s forwards;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  color: var(--primary-color);
  text-shadow: 0 0 20px var(--glow);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.hero-buttons {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: slideUp 0.8s ease-out 0.8s forwards;
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border-right: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
  cursor: pointer;
  margin: 0 auto var(--space-xs);
  box-shadow: 0 0 10px var(--glow);
}

.scroll-text {
  font-size: 0.875rem;
  color: var(--text-muted);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
  40% { transform: rotate(45deg) translateY(-10px); }
  60% { transform: rotate(45deg) translateY(-5px); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border: none;
  border-radius: var(--radius-xl);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  font-size: 1rem;
}

.btn span {
  position: relative;
  z-index: 2;
}

.btn-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform var(--transition-slow);
}

.btn:hover .btn-glow {
  transform: translateX(100%);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--background);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--surface);
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px var(--shadow-dark);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--background);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

/* Sections */
section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--primary-color);
  border-radius: var(--radius-2xl);
  color: var(--primary-color);
  font-weight: var(--font-weight-medium);
  font-size: 0.875rem;
  margin-bottom: var(--space-lg);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-md);
  position: relative;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  margin: 0 auto;
  border-radius: 2px;
  box-shadow: 0 0 20px var(--glow);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: var(--space-lg) auto 0;
  line-height: 1.8;
}

/* About Section */
.about {
  background: var(--surface);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(124, 58, 237, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
  z-index: 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.text-block {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.text-block:nth-child(2) { animation-delay: 0.2s; }
.text-block:nth-child(3) { animation-delay: 0.4s; }
.text-block:nth-child(4) { animation-delay: 0.6s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro-text {
  font-size: 1.25rem;
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
}

.text-block p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.about-visual {
  position: relative;
}

.code-window {
  background: var(--surface-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 40px var(--shadow-dark);
  border: 1px solid var(--border);
}

.window-header {
  background: var(--background);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  border-bottom: 1px solid var(--border);
}

.window-controls {
  display: flex;
  gap: var(--space-xs);
}

.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.875rem;
  font-weight: var(--font-weight-medium);
}

.code-content {
  padding: var(--space-lg);
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
}

.code-line {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-xs);
}

.line-number {
  color: var(--text-muted);
  width: 30px;
  text-align: right;
  margin-right: var(--space-md);
  user-select: none;
}

.keyword { color: var(--accent-color); }
.class { color: var(--primary-color); }
.comment { color: var(--text-muted); font-style: italic; }

/* Journey Section */
.journey {
  position: relative;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
  transform: translateX(-50%);
  box-shadow: 0 0 20px var(--glow);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-3xl);
  opacity: 0;
  animation: slideInTimeline 0.8s ease-out forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }
.timeline-item:nth-child(4) { animation-delay: 0.8s; }

@keyframes slideInTimeline {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 20px var(--glow);
  z-index: 2;
}

.timeline-content {
  background: var(--surface-light);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  margin-left: calc(50% + 40px);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px var(--shadow-dark);
  position: relative;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 0;
  margin-right: calc(50% + 40px);
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 10px;
  left: -10px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid var(--surface-light);
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: auto;
  right: -10px;
  border-right: none;
  border-left: 10px solid var(--surface-light);
}

.timeline-date {
  color: var(--primary-color);
  font-weight: var(--font-weight-bold);
  font-size: 0.875rem;
  margin-bottom: var(--space-xs);
}

.timeline-content h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-md);
}

.timeline-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.timeline-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.tech-tag {
  padding: var(--space-xs) var(--space-sm);
  background: rgba(0, 212, 255, 0.1);
  color: var(--primary-color);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

/* Skills Section */
.skills {
  background: var(--surface);
  position: relative;
}

.skills::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 30% 30%, rgba(255, 107, 53, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 70%, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
  z-index: 0;
}

.skills-content {
  display: grid;
  gap: var(--space-3xl);
  position: relative;
  z-index: 1;
}

.skills-category {
  text-align: center;
}

.category-title {
  font-size: 1.75rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-xl);
  color: var(--text-primary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.skill-item {
  background: var(--surface-light);
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 30px var(--shadow-dark);
  transition: all var(--transition-fast);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.skill-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.skill-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px var(--shadow-dark);
}

.skill-item:hover::before {
  opacity: 1;
}

.skill-item.learning {
  border-color: var(--accent-color);
  position: relative;
}

.skill-item.learning::after {
  content: 'Learning';
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: var(--accent-color);
  color: var(--background);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
}

.skill-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.skill-name {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  font-size: 1.125rem;
}

.skill-level {
  width: 100%;
}

.skill-bar {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 3px;
  transition: width 1s ease-out;
  box-shadow: 0 0 10px var(--glow);
}

/* Projects Section */
.projects {
  position: relative;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-xl);
}

.project-card {
  background: var(--surface-light);
  border-radius: var(--radius-2xl);
  box-shadow: 0 10px 30px var(--shadow-dark);
  transition: all var(--transition-fast);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
}

.project-card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--surface-light), var(--surface));
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(255, 107, 53, 0.1));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.project-card:hover .card-glow {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-15px) rotateX(5deg);
  box-shadow: 0 25px 50px var(--shadow-dark);
}

.card-content {
  padding: var(--space-xl);
  position: relative;
  z-index: 2;
}

.project-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  background: rgba(255, 107, 53, 0.1);
  color: var(--accent-color);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-md);
  border: 1px solid rgba(255, 107, 53, 0.2);
}

.project-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.project-title {
  font-size: 1.5rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.project-tech {
  color: var(--primary-color);
  font-weight: var(--font-weight-medium);
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
}

.project-description {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.feature {
  padding: var(--space-xs) var(--space-sm);
  background: rgba(0, 212, 255, 0.1);
  color: var(--primary-color);
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

/* Contact Section */
.contact {
  background: var(--surface);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at 25% 25%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 75%, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
  z-index: 0;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  position: relative;
  z-index: 1;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--surface-light);
  border-radius: var(--radius-xl);
  transition: all var(--transition-fast);
  border: 1px solid var(--border);
  box-shadow: 0 5px 15px var(--shadow-dark);
}

.contact-item:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 25px var(--shadow-dark);
}

.contact-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: var(--background);
  border-radius: var(--radius-xl);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-details h4 {
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-xs);
  color: var(--text-primary);
}

.contact-details a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-details a:hover {
  color: var(--primary-color);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-lg) 0 var(--space-sm);
  border: none;
  border-bottom: 2px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  font-size: 1rem;
  transition: all var(--transition-fast);
  resize: vertical;
}

.form-group textarea {
  min-height: 120px;
  padding-top: var(--space-xl);
}

.form-group label {
  position: absolute;
  top: var(--space-lg);
  left: 0;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  pointer-events: none;
}

.input-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: width var(--transition-fast);
  box-shadow: 0 0 10px var(--glow);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: transparent;
}

.form-group input:focus ~ .input-glow,
.form-group textarea:focus ~ .input-glow {
  width: 100%;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
  top: -10px;
  font-size: 0.875rem;
  color: var(--primary-color);
}

/* Footer */
.footer {
  background: var(--background);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.footer-text {
  color: var(--text-muted);
}

.footer-text p {
  margin: var(--space-xs) 0;
  font-size: 0.875rem;
}

.footer-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-color);
}

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 968px) {
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: var(--space-lg);
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-content {
    margin-left: 60px;
    margin-right: 0;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    margin-left: 60px;
    margin-right: 0;
  }
  
  .timeline-content::before {
    left: -10px;
    border-right: 10px solid var(--surface-light);
    border-left: none;
  }
  
  .timeline-item:nth-child(even) .timeline-content::before {
    left: -10px;
    right: auto;
    border-right: 10px solid var(--surface-light);
    border-left: none;
  }
  
  .timeline-marker {
    left: 20px;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  #cursor-particles {
    display: none;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: var(--space-3xl);
    transition: left var(--transition-normal);
    box-shadow: 0 4px 20px var(--shadow-dark);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 250px;
  }
  
  .hero-stats {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-lg);
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .project-card.featured {
    grid-column: 1;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }
  
  .nav-container {
    padding: 0 var(--space-md);
  }
  
  .hero-content {
    padding: 0 var(--space-md);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  section {
    padding: var(--space-2xl) 0;
  }
  
  .card-content {
    padding: var(--space-lg);
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-content {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-primary {
    border: 2px solid;
  }
  
  .project-card,
  .skill-item,
  .contact-item {
    border: 2px solid var(--border);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .stars, .stars2, .stars3 {
    animation: none;
  }
  
  .floating-objects * {
    animation: none;
  }
}

/* Print styles */
@media print {
  .navbar,
  .scroll-indicator,
  .floating-objects,
  .hero-buttons,
  .contact-form,
  .stars-container,
  #cursor-particles {
    display: none;
  }
  
  .hero {
    min-height: auto;
    padding: var(--space-lg) 0;
  }
  
  section {
    padding: var(--space-lg) 0;
  }
  
  body {
    background: white;
    color: black;
  }
}