/* ============================================
   ARTEM KOSIKHIN - CREATIVE PORTFOLIO
   A Next-Level Developer Portfolio
   ============================================ */

/* CSS Variables */
:root {
  --primary: #667eea;
  --secondary: #764ba2;
  --accent: #f093fb;
  --accent-2: #f5576c;
  --bg-dark: #0a0a0f;
  --bg-card: rgba(255, 255, 255, 0.03);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-dark: #f5f5f7;
  --bg-card: rgba(0, 0, 0, 0.03);
  --text-primary: #1a1a2e;
  --text-secondary: rgba(26, 26, 46, 0.7);
  --text-muted: rgba(26, 26, 46, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .noise {
  opacity: 0.02;
}

[data-theme="light"] .cursor {
  background: var(--accent);
  mix-blend-mode: normal;
}

[data-theme="light"] .cursor-follower {
  border-color: var(--primary);
  mix-blend-mode: normal;
}

[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.7);
  border-bottom-color: rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(20px);
}

[data-theme="light"] .section-title,
[data-theme="light"] .hero-title,
[data-theme="light"] .card-title,
[data-theme="light"] .profile-name {
  color: #1a1a2e;
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(255, 255, 255, 0.75);
}

[data-theme="light"] .stack-terminal {
  background: rgba(245, 245, 247, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .terminal-bar {
  background: rgba(230, 230, 235, 0.95);
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .terminal-title,
[data-theme="light"] .terminal-content,
[data-theme="light"] .typing-text {
  color: #1a1a2e;
}

[data-theme="light"] .devicon-unity-plain {
  color: #1a1a2e !important;
}

[data-theme="light"] .skill-detail-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--primary);
  box-shadow: 0 25px 50px rgba(102, 126, 234, 0.25);
}

[data-theme="light"] .detail-level {
  color: #1a1a2e;
}

[data-theme="light"] .stack-terminal {
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15);
}

[data-theme="light"] .card-overlay,
[data-theme="light"] .overlay-content {
  color: white;
}

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

[data-theme="light"] .skill-card {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(102, 126, 234, 0.15);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.08);
}

[data-theme="light"] .skill-card:hover {
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
}

[data-theme="light"] .showcase-card {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.08);
}

[data-theme="light"] .showcase-card .card-info {
  background: transparent;
}

[data-theme="light"] .info-card,
[data-theme="light"] .contact-card {
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.08);
}

[data-theme="light"] .footer {
  background: linear-gradient(180deg, transparent 0%, rgba(245, 245, 247, 0.8) 100%);
}

[data-theme="light"] .footer-text,
[data-theme="light"] .footer-copyright {
  color: rgba(26, 26, 46, 0.7);
}

[data-theme="light"] .preloader {
  background: #f5f5f7;
}

[data-theme="light"] .boot-line {
  color: rgba(26, 26, 46, 0.7);
}

[data-theme="light"] .boot-version,
[data-theme="light"] .boot-status {
  color: rgba(26, 26, 46, 0.4);
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  font-size: 16px;
  scroll-snap-type: y proximity;
  overflow-x: hidden;
}

body {
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  cursor: none;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

a, button, .magnetic, .project-card, .tool-item, .contact-card, .info-card, .skill-card, .showcase-card, .nav-link, .tool-pill {
  cursor: none !important;
}

img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

/* Selection */
::selection {
  background: var(--primary);
  color: white;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.4);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 126, 234, 0.6);
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(102, 126, 234, 0.3);
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(102, 126, 234, 0.5);
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10001;
  mix-blend-mode: difference;
  transition: transform 0.1s ease;
}

.cursor-follower {
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  opacity: 0.5;
}

.cursor-follower.hovering {
  transform: scale(1.5);
  background: rgba(102, 126, 234, 0.1);
  border-color: var(--accent);
}

/* ============================================
   PARTICLES BACKGROUND
   ============================================ */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: float-particle 15s infinite ease-in-out;
}

@keyframes float-particle {
  0%, 100% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Noise Texture Overlay */
.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(20px);
  background: rgba(10, 10, 15, 0.8);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.4s var(--transition-smooth);
}

.navbar.scrolled {
  padding: 1rem 3rem;
  background: rgba(10, 10, 15, 0.95);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
}

.logo-text {
  position: relative;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  transition: clip-path 0.4s var(--transition-smooth);
}

.nav-logo:hover .logo-text::after {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: width 0.3s var(--transition-smooth);
}

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

.nav-link:hover::before {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 4rem 0 2rem;
  overflow: visible;
  width: 100vw;
  max-width: 100%;
  scroll-margin-top: 0;
}

.hero-content {
  max-width: 1400px;
  width: 100%;
  z-index: 1;
  padding: 0 8vw;
  margin-top: -3rem;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
  }
}

.hero-title-wrapper {
  overflow: visible;
  margin-bottom: 2rem;
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 12vw, 8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.title-line {
  display: block;
  overflow: visible;
}

.title-word {
  display: inline-block;
  animation: revealText 1.2s var(--transition-smooth) forwards;
  transform: translateY(100%);
}

.title-line:nth-child(1) .title-word {
  animation-delay: 0.3s;
}

.title-line:nth-child(2) .title-word {
  animation-delay: 0.5s;
}

@keyframes revealText {
  to {
    transform: translateY(0);
  }
}

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

.gradient-text::after {
  content: 'Developer';
  position: absolute;
  left: 0;
  top: 0;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glitch 5s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
}

@keyframes glitch {
  0%, 90%, 100% {
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  }
  92% {
    clip-path: polygon(0 15%, 100% 15%, 100% 35%, 0 35%);
    transform: translateX(-3px);
  }
  94% {
    clip-path: polygon(0 55%, 100% 55%, 100% 75%, 0 75%);
    transform: translateX(3px);
  }
  96% {
    clip-path: polygon(0 35%, 100% 35%, 100% 55%, 0 55%);
    transform: translateX(-2px);
  }
}

.hero-info {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6rem;
  align-items: center;
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.7s;
  opacity: 0;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-description {
  max-width: 600px;
}

.hero-description p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.hero-profile {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

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

.profile-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--primary);
  border-right-color: var(--secondary);
  animation: spin 3s linear infinite;
}

.ring-2 {
  inset: -12px;
  border-top-color: var(--accent);
  border-right-color: var(--accent-2);
  animation-direction: reverse;
  animation-duration: 4s;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--bg-dark);
}

.profile-details {
  text-align: left;
}

.profile-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.profile-role {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.9s;
  opacity: 0;
  transform: translateY(20px);
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 60px;
  transition: all 0.4s var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-1);
  color: white;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-2);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
}

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

.btn-secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-bg);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-secondary:hover::before {
  opacity: 1;
}

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

.btn-text {
  position: relative;
  z-index: 1;
}

.btn-icon {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon,
.btn-secondary:hover .btn-icon {
  transform: translateX(5px);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 1.2s;
  opacity: 0;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--glass-border);
  border-radius: 20px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(15px);
  }
}

.scroll-indicator span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Floating Shapes */
.floating-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 20s infinite ease-in-out;
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: 5%;
  right: 5%;
  animation-delay: 0s;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  bottom: 10%;
  left: 5%;
  animation-delay: -5s;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: var(--secondary);
  top: 50%;
  left: 50%;
  animation-delay: -10s;
}

.shape-4 {
  width: 250px;
  height: 250px;
  background: var(--accent-2);
  bottom: 25%;
  right: 15%;
  animation-delay: -15s;
}

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

/* ============================================
   SECTION STYLES - SMOOTH CARD STACK
   ============================================ */
section {
  position: relative;
  padding: 6rem 8vw;
  width: 100%;
  max-width: 100%;
  opacity: 1;
  transform: translateY(0);
  transition: 
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease-out;
  will-change: transform, opacity;
}

/* Section above viewport - compressed and faded */
section.section-scroll-out {
  transform: translateY(-40px) scale(0.96);
  opacity: 0;
  pointer-events: none;
}

/* Section below viewport - waiting to enter */
section.section-scroll-in {
  transform: translateY(100px);
  opacity: 0;
}

/* Section in view - fully visible */
section.section-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* Hero should always be visible initially */
.hero {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

.hero.section-scroll-out,
.hero.section-scroll-in,
.hero.section-visible {
  opacity: 1 !important;
  transform: none !important;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 4rem;
}

.section-tag {
  display: inline-block;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.875rem;
  color: var(--primary);
  letter-spacing: 3px;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.title-decoration {
  width: 60px;
  height: 4px;
  background: var(--gradient-1);
  margin: 0 auto;
  border-radius: 2px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
  background: radial-gradient(ellipse at center, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
  overflow: visible;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 0;
  scroll-margin-top: 80px;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4rem;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.about-cards {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.info-card {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: box-shadow 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.info-card:hover {
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.15);
}

.card-icon {
  margin-bottom: 1rem;
}

.info-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.info-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.card-glow {
  position: absolute;
  inset: 0;
  background: var(--gradient-1);
  opacity: 0;
  filter: blur(40px);
  transition: opacity 0.4s ease;
  z-index: -1;
  pointer-events: none;
}

.info-card:hover .card-glow {
  opacity: 0.2;
}

/* Glass Card Style */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(20px);
}

/* ============================================
   SKILLS SECTION - INTERACTIVE TECH STACK
   ============================================ */
.skills-section {
  overflow: visible;
  background: radial-gradient(ellipse at center, rgba(118, 75, 162, 0.08) 0%, transparent 70%);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 0;
  scroll-margin-top: 80px;
}

.tech-stack-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem;
  position: relative;
}

/* Terminal Header */
.stack-terminal {
  background: rgba(15, 15, 20, 0.9);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.terminal-bar {
  background: rgba(30, 30, 40, 0.95);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #ffbd2e; }
.terminal-dots span:nth-child(3) { background: #28ca41; }

.terminal-title {
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
}

.terminal-content {
  padding: 1rem 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.terminal-prompt {
  color: #28ca41;
  font-weight: bold;
}

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

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

@keyframes blink {
  50% { opacity: 0; }
}

/* Skills Showcase Layout */
.skills-showcase {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Skill Category */
.skill-category {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.skill-category:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(102, 126, 234, 0.3);
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.1);
}

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

.category-icon {
  width: 45px;
  height: 45px;
  background: var(--gradient-1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.category-icon svg {
  width: 22px;
  height: 22px;
  stroke: white;
}

.category-header h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
}

.category-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--glass-border) 0%, transparent 100%);
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
}

/* Skill Card */
.skill-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1);
}

.skill-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  background: var(--gradient-1);
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.skill-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--primary);
  background: rgba(102, 126, 234, 0.1);
  box-shadow: 
    0 20px 40px rgba(102, 126, 234, 0.2),
    0 0 0 1px rgba(102, 126, 234, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.skill-card:hover .skill-glow {
  opacity: 0.3;
}

.skill-card:hover .skill-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
}

.skill-card:hover .level-fill {
  animation: levelPulse 1.5s ease infinite;
}

@keyframes levelPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.skill-icon-wrapper {
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.skill-icon-wrapper i {
  font-size: 2.8rem;
  transition: transform 0.3s ease;
}

.skill-icon-wrapper svg {
  width: 40px;
  height: 40px;
}

.skill-icon-text {
  font-family: 'JetBrains Mono', 'Syne', monospace;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px currentColor;
}

.skill-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  text-align: center;
}

/* Skill Level Bar */
.skill-level-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.25rem;
}

.level-fill {
  height: 100%;
  width: var(--level);
  background: var(--gradient-1);
  border-radius: 2px;
  transition: width 1s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
}

.level-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.skill-percentage {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}

/* Tools Showcase */
.tools-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tool-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tool-dot {
  width: 6px;
  height: 6px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.tool-pill:hover {
  background: var(--gradient-1);
  border-color: transparent;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.tool-pill:hover .tool-dot {
  background: white;
  box-shadow: 0 0 10px white;
}

/* Floating Skill Detail Card */
.skill-detail-card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(20, 20, 30, 0.95);
  border: 1px solid var(--primary);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  min-width: 250px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  backdrop-filter: blur(20px);
  box-shadow: 
    0 25px 50px rgba(102, 126, 234, 0.3),
    0 0 0 1px rgba(102, 126, 234, 0.2),
    0 0 80px rgba(102, 126, 234, 0.15);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.skill-detail-card.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.detail-skill-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.detail-years {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent);
  background: rgba(240, 147, 251, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.detail-bar-container {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.detail-bar-fill {
  height: 100%;
  background: var(--gradient-1);
  border-radius: 4px;
  width: 0;
  transition: width 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.detail-level {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
  .tech-stack-container {
    padding: 0 1.5rem;
  }
  
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .skill-card {
    padding: 1.25rem 1rem;
  }
  
  .category-header h3 {
    font-size: 1.1rem;
  }
}

.tool-item.intermediate {
  border-color: rgba(79, 172, 254, 0.4);
}

.tool-item {
  position: relative;
}

/* ============================================
   PROJECTS SECTION - SHOWCASE GALLERY
   ============================================ */
.projects-section {
  background: 
    radial-gradient(ellipse at 30% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 50%, rgba(118, 75, 162, 0.12) 0%, transparent 50%);
  width: 100%;
  min-height: 100vh;
  padding: 8rem 0;
  overflow: visible;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-margin-top: 80px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 500px;
  margin: -1rem auto 3rem;
  padding: 0 2rem;
}

/* Showcase Grid */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 0 8vw;
  max-width: 1400px;
  margin: 0 auto;
}

/* Showcase Card */
.showcase-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.showcase-card:hover {
  transform: translateY(-12px);
  border-color: var(--primary);
  box-shadow: 
    0 25px 50px -12px rgba(102, 126, 234, 0.25),
    0 0 0 1px rgba(102, 126, 234, 0.1);
}

/* Featured Card - Takes 2 columns */
.showcase-card.featured {
  grid-column: span 2;
}

/* Card Image */
.card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.showcase-card.featured .card-image {
  aspect-ratio: 21/10;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.showcase-card:hover .card-image img {
  transform: scale(1.08);
}

/* Card Overlay */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 15, 0) 0%,
    rgba(10, 10, 15, 0.4) 50%,
    rgba(10, 10, 15, 0.95) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.overlay-content {
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  width: 100%;
}

.showcase-card:hover .overlay-content {
  transform: translateY(0);
}

.card-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* Card Actions */
.card-actions {
  display: flex;
  gap: 1rem;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.action-btn.primary {
  background: var(--gradient-1);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.action-btn.primary:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.action-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.action-btn:hover svg {
  transform: translateX(4px);
}

/* Card Info */
.card-info {
  padding: 1.5rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.card-number {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.6;
}

.card-tags {
  display: flex;
  gap: 0.5rem;
}

.tag {
  font-size: 0.7rem;
  padding: 0.3rem 0.7rem;
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 20px;
  color: var(--primary);
  transition: all 0.3s ease;
}

.showcase-card:hover .tag {
  background: rgba(102, 126, 234, 0.2);
  border-color: var(--primary);
}

.card-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
}

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

.card-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Card Accent Line */
.card-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.showcase-card:hover .card-accent {
  transform: scaleX(1);
}

/* In Development Badge */
.dev-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(240, 147, 251, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  box-shadow: 0 4px 15px rgba(240, 147, 251, 0.4);
}

.dev-badge .pulse {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
  }
}

/* Progress Indicator for In-Dev */
.progress-indicator {
  margin-top: 1rem;
}

.progress-bar-mini {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill-mini {
  height: 100%;
  background: var(--gradient-2);
  border-radius: 2px;
  transition: width 1s ease;
}

.progress-label {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 500;
}

/* Showcase CTA */
.showcase-cta {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  padding: 0 8vw;
}

.github-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.4s ease;
}

.github-link:hover {
  border-color: var(--primary);
  background: rgba(102, 126, 234, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.github-link svg {
  transition: transform 0.3s ease;
}

.github-link:hover svg {
  transform: rotate(360deg);
}

/* Responsive Showcase Grid */
@media (max-width: 1024px) {
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .showcase-card.featured {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1.5rem;
  }
  
  .showcase-card.featured {
    grid-column: span 1;
  }
  
  .showcase-card.featured .card-image {
    aspect-ratio: 16/10;
  }
  
  .card-title {
    font-size: 1.2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-section {
  position: relative;
  overflow: visible;
  min-height: 100vh;
  padding: 8rem 0;
  background: transparent;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-margin-top: 80px;
}

.contact-wrapper {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 0 8vw;
}

.contact-content {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-text {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 2rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.contact-card:hover {
  border-color: var(--primary);
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.2);
}

.contact-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-1);
  border-radius: 50%;
  transition: transform 0.3s var(--transition-bounce);
}

.contact-card:hover .contact-icon {
  transform: scale(1.1) rotate(10deg);
}

.contact-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.contact-value {
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.contact-card:hover .contact-value {
  color: var(--text-primary);
}

.card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.contact-card:hover .card-shine {
  transform: translateX(100%);
}

.contact-bg {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.5;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: 0;
  left: 10%;
  animation: float 15s infinite ease-in-out;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--accent);
  bottom: 0;
  right: 15%;
  animation: float 20s infinite ease-in-out reverse;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 3rem 8vw;
  text-align: center;
  position: relative;
  width: 100%;
  overflow: visible;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 15, 0.5) 100%);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-logo span {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-decoration .line {
  width: 100px;
  height: 3px;
  background: var(--gradient-1);
  margin: 2rem auto 0;
  border-radius: 2px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--transition-smooth);
}

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

.split-text {
  overflow: hidden;
}

/* Magnetic Effect */
.magnetic {
  transition: transform 0.3s var(--transition-smooth);
}

/* Tilt Effect */
[data-tilt] {
  transform-style: preserve-3d;
  transition: transform 0.5s var(--transition-smooth);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .hero-info {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-cards {
    justify-content: center;
  }
  
  .skills-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .contact-links {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.5rem;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(10, 10, 15, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.4s var(--transition-smooth);
    border-left: 1px solid var(--glass-border);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .hero {
    padding: 5rem 1.5rem 2rem;
  }
  
  .hero-content {
    padding: 0 1.5rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .hero-profile {
    flex-direction: column;
    text-align: center;
  }
  
  .about-cards {
    flex-direction: column;
    align-items: center;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    padding: 0;
  }
  
  .info-card {
    max-width: 100%;
    width: 100%;
  }
  
  .skills-orbit {
    width: 280px;
    height: 280px;
  }
  
  .orbit-center {
    width: 70px;
    height: 70px;
  }
  
  .skill-item {
    width: 50px;
    height: 50px;
  }
  
  .skill-icon {
    font-size: 0.65rem;
  }
  
  /* Update orbit positions for mobile */
  .orbit-1:nth-child(2), .orbit-1:nth-child(3),
  .orbit-2:nth-child(4), .orbit-2:nth-child(5),
  .orbit-3:nth-child(6), .orbit-3:nth-child(7),
  .orbit-4:nth-child(8), .orbit-4:nth-child(9),
  .orbit-5:nth-child(10), .orbit-5:nth-child(11) {
    transform-origin: 140px 140px;
  }
  
  .skills-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .tools-list {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    padding: 0 1.5rem;
  }
  
  section {
    padding: 4rem 5vw;
  }
  
  .section-header {
    padding: 0 1rem;
  }
  
  .about-content,
  .skills-container {
    padding: 0 1.5rem;
  }
  
  /* Hide custom cursor on mobile */
  .cursor,
  .cursor-follower {
    display: none;
  }
  
  body {
    cursor: auto;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .tools-list {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PRELOADER - RETRO BOOT SCREEN
   ============================================ */
.preloader {
  position: fixed;
  inset: 0;
  background: #0a0a0f;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  cursor: none;
}

/* Hide scrollbar when preloader is active */
body:has(.preloader:not(.loaded)) {
  overflow: hidden !important;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-screen {
  width: 100%;
  max-width: 500px;
  padding: 2rem;
  font-family: 'JetBrains Mono', monospace;
}

.boot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(102, 126, 234, 0.3);
}

.boot-brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: #667eea;
  letter-spacing: 2px;
}

.boot-version {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.boot-terminal {
  margin-bottom: 2rem;
}

.boot-line {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(5px);
  animation: bootLineIn 0.3s ease forwards;
}

.boot-line:nth-child(1) { animation-delay: 0.5s; }
.boot-line:nth-child(2) { animation-delay: 1.5s; }
.boot-line:nth-child(3) { animation-delay: 2.5s; }
.boot-line:nth-child(4) { animation-delay: 3.5s; }

@keyframes bootLineIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.boot-ok {
  color: #28ca41;
  font-weight: 600;
}

.boot-progress-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.boot-progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.boot-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
  transition: width 0.1s ease;
}

.boot-percentage {
  font-size: 0.9rem;
  color: #667eea;
  min-width: 40px;
  text-align: right;
}

.boot-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(102, 126, 234, 0.3);
}

.boot-status {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.boot-cursor {
  color: #667eea;
  animation: cursorBlink 1s step-end infinite;
}

@keyframes cursorBlink {
  50% { opacity: 0; }
}

/* Party Line Easter Egg */
.party-line {
  color: #f093fb !important;
}

.party-line .boot-ok {
  color: #f093fb !important;
}

/* Party Mode - Rainbow cycling - apply to content only, not cursor */
.party-mode .noise,
.party-mode .particles,
.party-mode .navbar,
.party-mode .hero,
.party-mode .floating-shapes,
.party-mode .about-section,
.party-mode .skills-section,
.party-mode .projects-section,
.party-mode .contact-section,
.party-mode .footer,
.party-mode .back-to-top {
  animation: partyRainbow 3s linear infinite;
}

@keyframes partyRainbow {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* ============================================
   THEME TOGGLE
   ============================================ */
.theme-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 1rem;
}

.theme-toggle:hover {
  background: var(--glass-border);
  transform: rotate(180deg);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-primary);
  transition: all 0.3s ease;
}

.theme-toggle .sun-icon {
  display: block;
}

.theme-toggle .moon-icon {
  display: none;
}

[data-theme="light"] .theme-toggle .sun-icon {
  display: none;
}

[data-theme="light"] .theme-toggle .moon-icon {
  display: block;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: rgba(102, 126, 234, 0.15);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 12px;
  cursor: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  backdrop-filter: blur(10px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  background: rgba(102, 126, 234, 0.25);
  border-color: rgba(102, 126, 234, 0.5);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: var(--primary);
}

[data-theme="light"] .back-to-top {
  background: rgba(102, 126, 234, 0.1);
  border-color: rgba(102, 126, 234, 0.2);
}

[data-theme="light"] .back-to-top:hover {
  background: rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.4);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-form {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  background: var(--bg-dark);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem;
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.submit-btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.form-status {
  font-size: 0.9rem;
  padding: 0.75rem;
  border-radius: 8px;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}