/* ===== CSS Variables ===== */
:root {
  /* Colors */
  --primary: #00FFA3;
  --secondary: #7B61FF;
  --accent: #FF006E;
  --dark: #0A0A0A;
  --light: #FFFFFF;
  --gray-100: #F8F9FA;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-400: #CED4DA;
  --gray-500: #ADB5BD;
  --gray-600: #6C757D;
  --gray-700: #495057;
  --gray-800: #343A40;
  --gray-900: #212529;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-dark: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 100%);
  
  /* Typography */
  --font-primary: 'Space Grotesk', sans-serif;
  --font-secondary: 'Inter', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
  --spacing-xxl: 4rem;
  
  /* Animations */
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Z-index */
  --z-cursor: 9999;
  --z-preloader: 9998;
  --z-nav: 1000;
  --z-content: 1;
}

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

*::selection {
  background-color: var(--primary);
  color: var(--dark);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  cursor: none;
}

body {
  font-family: var(--font-secondary);
  color: var(--light);
  background-color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
  cursor: none;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== Custom Cursor ===== */
.cursor {
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: var(--z-cursor);
  transition: transform 0.1s ease, opacity 0.1s ease;
  mix-blend-mode: difference;
}

.cursor-follower {
  width: 40px;
  height: 40px;
  background: rgba(0, 255, 163, 0.1);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: calc(var(--z-cursor) - 1);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

body.cursor-hover .cursor {
  transform: scale(2);
  background: var(--primary);
}

/* ===== Preloader ===== */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-preloader);
  transition: opacity 0.6s ease;
}

#preloader.hide {
  opacity: 0;
  pointer-events: none;
}

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

.loader-text {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
}

.loader-text .letter {
  display: inline-block;
  animation: letterWave 1.5s ease-in-out infinite;
}

.loader-text .letter:nth-child(1) { animation-delay: 0s; }
.loader-text .letter:nth-child(2) { animation-delay: 0.1s; }
.loader-text .letter:nth-child(3) { animation-delay: 0.2s; }
.loader-text .letter:nth-child(4) { animation-delay: 0.3s; }
.loader-text .letter:nth-child(5) { animation-delay: 0.4s; }
.loader-text .letter:nth-child(6) { animation-delay: 0.5s; }
.loader-text .letter:nth-child(7) { animation-delay: 0.6s; }

@keyframes letterWave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.progress-bar {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  animation: progressFill 2s ease-out forwards;
}

@keyframes progressFill {
  from { width: 0%; }
  to { width: 100%; }
}

/* ===== Navigation ===== */
.nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-nav);
  transition: var(--transition-base);
}

.nav-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-menu.scrolled .nav-background {
  opacity: 1;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.nav-logo {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

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

.nav-links {
  display: flex;
  gap: 3rem;
}

.nav-link {
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  padding: 0.5rem 0;
}

.nav-link span {
  display: block;
  transition: transform 0.3s ease;
}

.nav-link::before {
  content: attr(data-text);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  color: var(--primary);
}

.nav-link:hover span {
  transform: translateY(-100%);
}

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

.nav-menu-toggle .bar {
  width: 24px;
  height: 2px;
  background: var(--light);
  transition: var(--transition-base);
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.hero-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.8) 0%, rgba(10, 10, 10, 0.4) 100%);
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

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

@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    padding: 0 2rem;
    gap: 2rem;
    text-align: center;
  }
}

.hero-title {
  font-family: var(--font-primary);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.title-line {
  display: inline-block;
  overflow: hidden;
}

.glitch {
  position: relative;
}

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

.glitch::before {
  animation: glitch-1 0.5s infinite;
  color: var(--primary);
  z-index: -1;
}

.glitch::after {
  animation: glitch-2 0.5s infinite;
  color: var(--accent);
  z-index: -1;
}

@keyframes glitch-1 {
  0%, 100% { 
    opacity: 0;
    transform: translate(0);
  }
  20% {
    opacity: 1;
    transform: translate(-2px, 2px);
  }
  40% {
    opacity: 1;
    transform: translate(-2px, -2px);
  }
}

@keyframes glitch-2 {
  0%, 100% { 
    opacity: 0;
    transform: translate(0);
  }
  20% {
    opacity: 1;
    transform: translate(2px, -2px);
  }
  40% {
    opacity: 1;
    transform: translate(2px, 2px);
  }
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.subtitle-prefix {
  color: var(--gray-400);
}

.typewriter {
  position: relative;
}

.typewriter-cursor {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gray-300);
  margin-bottom: 3rem;
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-family: var(--font-primary);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary);
  color: var(--dark);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 255, 163, 0.3);
}

.btn-secondary {
  border: 2px solid var(--light);
  color: var(--light);
}

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

.btn-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover .btn-bg {
  width: 300px;
  height: 300px;
}

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

.floating-shapes {
  position: relative;
  width: 400px;
  height: 400px;
}

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

.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--primary);
  top: 0;
  left: 0;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  background: var(--secondary);
  bottom: 0;
  right: 0;
  animation-delay: 5s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  background: var(--accent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  animation: bounce 2s infinite;
}

.mouse {
  width: 25px;
  height: 40px;
  border: 2px solid var(--light);
  border-radius: 20px;
  margin: 0 auto 1rem;
  position: relative;
}

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

@keyframes wheel {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 20px; }
}

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

/* ===== Stats Section ===== */
.stats-section {
  padding: var(--spacing-xxl) 0;
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 255, 163, 0.1) 0%, transparent 70%);
  animation: rotate 30s linear infinite;
}

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

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
}

.stat-item {
  position: relative;
}

.stat-number {
  font-family: var(--font-primary);
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-block;
}

.stat-suffix {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-block;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--gray-400);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== Work Section ===== */
.work-section {
  padding: var(--spacing-xxl) 0;
  background: var(--dark);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.split-text span {
  display: inline-block;
  position: relative;
}

.split-text span:nth-child(2) {
  color: var(--primary);
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--gray-400);
}

.work-showcase {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

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

.work-item.reverse {
  direction: rtl;
}

.work-item.reverse > * {
  direction: ltr;
}

.work-media {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--gray-900);
}

.work-image {
  width: 100%;
  height: 100%;
  position: relative;
}

.work-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-item:hover .work-image img {
  transform: scale(1.05);
}

.work-video {
  position: relative;
  padding-bottom: 56.25%;
  overflow: hidden;
}

.work-video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, transparent 100%);
  display: flex;
  align-items: flex-start;
  padding: 2rem;
}

.work-number {
  font-family: var(--font-primary);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.1);
}

.work-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.work-title {
  font-family: var(--font-primary);
  font-size: 2.5rem;
  font-weight: 700;
}

.work-role {
  font-size: 1.1rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.work-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gray-300);
}

.work-tags {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.tag {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-size: 0.9rem;
  transition: var(--transition-base);
}

.tag:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary);
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-primary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  transition: var(--transition-base);
}

.work-link:hover {
  gap: 1rem;
}

/* Enhanced Portfolio Button */
.work-link.enhanced-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  margin-top: 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.5px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  border: 2px solid transparent;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  }
  50% {
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
  }
}

.work-link.enhanced-button .button-text {
  position: relative;
  z-index: 2;
  font-size: 1.1rem;
  font-weight: 600;
}

.work-link.enhanced-button .button-icon {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  transition: transform 0.4s ease;
}

.work-link.enhanced-button .button-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.work-link.enhanced-button:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 20px 50px rgba(102, 126, 234, 0.5);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  gap: 20px;
}

.work-link.enhanced-button:hover .button-icon {
  transform: translateX(5px);
  animation: arrow-bounce 0.5s ease infinite;
}

.work-link.enhanced-button:hover .button-glow {
  left: 100%;
}

@keyframes arrow-bounce {
  0%, 100% {
    transform: translateX(5px);
  }
  50% {
    transform: translateX(10px);
  }
}

.work-link.enhanced-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.work-link.enhanced-button:active::before {
  width: 300px;
  height: 300px;
}

/* Projects Grid */
.projects-grid {
  margin-top: var(--spacing-xxl);
  text-align: center;
}

.grid-title {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.grid-subtitle {
  color: var(--gray-400);
  margin-bottom: 3rem;
}

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

.project-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

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

.card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.card-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--primary);
}

.project-card h4 {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.project-card p {
  color: var(--gray-400);
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.card-arrow {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition-base);
}

.project-card:hover .card-arrow {
  transform: translate(5px, -5px);
}

/* ===== About Section ===== */
.about-section {
  padding: var(--spacing-xxl) 0;
  position: relative;
  overflow: hidden;
}

.about-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.gradient-mesh {
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(at 20% 30%, var(--primary) 0%, transparent 50%),
    radial-gradient(at 80% 70%, var(--secondary) 0%, transparent 50%),
    radial-gradient(at 50% 50%, var(--accent) 0%, transparent 50%);
  opacity: 0.1;
  filter: blur(100px);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  margin-bottom: var(--spacing-xl);
}

.about-intro {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 2rem;
  line-height: 1.4;
}

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

.skills-showcase {
  display: grid;
  gap: 2rem;
}

.skill-category {
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
}

.skill-category h4 {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #00FFA3;
  position: relative;
  display: inline-block;
  background: none;
  padding: 0;
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0.5rem 0;
}

.skill-item {
  padding: 0.5rem 1rem;
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 5px;
  font-size: 0.9rem;
  color: #ffffff;
  transition: var(--transition-base);
  position: relative;
  z-index: 2;
  display: inline-block;
}

.skill-item:hover {
  background: rgba(102, 126, 234, 0.2);
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-2px);
}

/* About Visual */
.about-visual {
  position: relative;
}

.image-container {
  position: relative;
  width: 400px;
  height: 500px;
  margin: 0 auto;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  position: relative;
  z-index: 2;
}

.image-frame {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--primary);
  border-radius: 20px;
  z-index: 1;
}

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

.float-el {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
}

.el-1 {
  width: 100px;
  height: 100px;
  background: var(--primary);
  top: -50px;
  right: -50px;
  animation: float 15s infinite ease-in-out;
}

.el-2 {
  width: 80px;
  height: 80px;
  background: var(--secondary);
  bottom: -40px;
  left: -40px;
  animation: float 20s infinite ease-in-out reverse;
}

.el-3 {
  width: 60px;
  height: 60px;
  background: var(--accent);
  top: 50%;
  right: -30px;
  animation: float 25s infinite ease-in-out;
}

/* Experience Timeline */
.experience-timeline {
  margin-top: var(--spacing-xl);
}

.timeline-title {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
}

.timeline-items {
  display: grid;
  gap: 2rem;
  position: relative;
  padding-left: 3rem;
}

.timeline-items::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -3.5rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border: 3px solid var(--dark);
  border-radius: 50%;
}

.timeline-date {
  font-family: var(--font-primary);
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.timeline-content h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline-content p {
  color: var(--gray-400);
}

/* ===== Contact Section ===== */
.contact-section {
  padding: var(--spacing-xxl) 0;
  position: relative;
  overflow: hidden;
  background: var(--gradient-dark);
}

.contact-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#contact-canvas {
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

.contact-content {
  position: relative;
  z-index: 1;
}

.contact-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.contact-subtitle {
  font-size: 1.2rem;
  color: var(--gray-400);
}

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

.info-item {
  margin-bottom: 3rem;
}

.info-item h4 {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary);
}

.info-item p {
  color: var(--gray-300);
  line-height: 1.8;
}

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

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  transition: var(--transition-base);
}

.social-link:hover {
  background: var(--primary);
  color: var(--dark);
  transform: translateY(-2px);
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.5rem 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  color: var(--light);
  font-size: 1rem;
  transition: var(--transition-base);
  outline: none;
}

.form-group label {
  position: absolute;
  left: 0;
  top: 1.5rem;
  color: var(--gray-500);
  font-size: 1rem;
  transition: var(--transition-base);
  pointer-events: none;
}

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

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:valid ~ label {
  top: -0.5rem;
  font-size: 0.8rem;
  color: var(--primary);
}

.btn-submit {
  padding: 1.25rem 3rem;
  background: var(--primary);
  color: var(--dark);
  border: none;
  border-radius: 50px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
  align-self: flex-start;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 255, 163, 0.3);
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  transition: var(--transition-base);
}

.form-status.success {
  color: var(--primary);
}

.form-status.error {
  color: var(--accent);
}

/* ===== Footer ===== */
.footer {
  padding: 3rem 0;
  background: var(--dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-content p {
  color: var(--gray-500);
  font-size: 0.9rem;
}

.back-to-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-400);
  transition: var(--transition-base);
}

.back-to-top:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

/* ===== Utilities ===== */
.magnetic-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

[data-aos] {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos="fade-up"] {
  transform: translateY(50px);
}

[data-aos="fade-right"] {
  transform: translateX(-50px);
}

[data-aos="fade-left"] {
  transform: translateX(50px);
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translate(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: calc(100vh - 70px);
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
    padding: 40px 30px;
    gap: 30px;
    transition: right 0.3s ease;
    z-index: 999;
    display: flex !important;
    overflow-y: auto;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-link {
    font-size: 1.2rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    text-align: left;
  }
  
  .nav-menu-toggle {
    display: flex;
    z-index: 1001;
    position: relative;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
  }
  
  .nav-menu-toggle .bar {
    position: absolute;
    width: 24px;
    transition: all 0.3s ease;
  }
  
  .nav-menu-toggle .bar:first-child {
    transform: translateY(-8px);
  }
  
  .nav-menu-toggle .bar:last-child {
    transform: translateY(8px);
  }
  
  .nav-menu-toggle.active .bar:first-child {
    transform: rotate(45deg);
  }
  
  .nav-menu-toggle.active .bar:last-child {
    transform: rotate(-45deg);
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-visual {
    display: none;
  }
  
  .work-item {
    grid-template-columns: 1fr;
  }
  
  .work-item.reverse {
    direction: ltr;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .container {
    padding: 0 2rem;
  }
  
  .nav-container {
    padding: 1.5rem 2rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .project-cards {
    grid-template-columns: 1fr;
  }
  
  .image-container {
    width: 100%;
    max-width: 300px;
    height: 400px;
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-xl: 3rem;
    --spacing-xxl: 3rem;
  }
  
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .social-links {
    flex-direction: column;
  }
  
  .social-link {
    width: 100%;
    justify-content: center;
  }
}