:root {
  /* Colors */
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --secondary: #ec4899;
  --accent: #06b6d4;
  --success: #10b981;
  
  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Background Colors */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: rgba(30, 41, 59, 0.5);
  --bg-glass: rgba(255, 255, 255, 0.03);
  
  /* Borders & Shadows */
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Font */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.light-mode {
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --bg-primary: #f8fafc;
  --bg-secondary: #e2e8f0;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-glass: rgba(0, 0, 0, 0.02);
  --border-color: rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--primary);
  color: white;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: 
    radial-gradient(ellipse 80% 80% at 50% -20%, rgba(99, 102, 241, 0.3), transparent),
    radial-gradient(ellipse 60% 60% at 100% 100%, rgba(236, 72, 153, 0.2), transparent),
    radial-gradient(ellipse 60% 60% at 0% 100%, rgba(6, 182, 212, 0.2), transparent),
    var(--bg-primary);
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  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='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(circle, rgba(99, 102, 241, 0.15) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.dot-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.floating-orbs {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: floatOrb 20s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4), transparent 70%);
  top: -10%;
  left: 20%;
  animation-delay: 0s;
  animation-duration: 25s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.35), transparent 70%);
  top: 60%;
  right: -5%;
  animation-delay: -5s;
  animation-duration: 22s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.35), transparent 70%);
  bottom: -10%;
  left: -5%;
  animation-delay: -10s;
  animation-duration: 28s;
}

.orb-4 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent 70%);
  top: 30%;
  right: 30%;
  animation-delay: -15s;
  animation-duration: 30s;
}

.orb-5 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.3), transparent 70%);
  top: 70%;
  left: 40%;
  animation-delay: -8s;
  animation-duration: 26s;
}

@keyframes floatOrb {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, -40px) scale(1.05);
  }
  50% {
    transform: translate(-20px, 20px) scale(0.95);
  }
  75% {
    transform: translate(40px, 30px) scale(1.02);
  }
}

body.light-mode .bg-gradient {
  background: 
    radial-gradient(ellipse 80% 80% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
    radial-gradient(ellipse 60% 60% at 100% 100%, rgba(236, 72, 153, 0.1), transparent),
    radial-gradient(ellipse 60% 60% at 0% 100%, rgba(6, 182, 212, 0.1), transparent),
    var(--bg-primary);
}

body.light-mode .bg-grid {
  background-image: radial-gradient(circle, rgba(99, 102, 241, 0.2) 1px, transparent 1px);
}

body.light-mode .orb {
  opacity: 0.3;
}

body.light-mode .project-card,
body.light-mode .skill-item,
body.light-mode .interest-card {
  background: rgba(255, 255, 255, 0.7);
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--bg-secondary);
  z-index: 1000;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px var(--primary);
}

.side-nav {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px 12px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
}

.nav-dot {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 1rem;
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
}

.nav-dot:hover,
.nav-dot.active {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
}

.nav-dot.active {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.nav-dot i {
  transition: var(--transition-normal);
}

.nav-dot:hover i {
  transform: scale(1.1);
}

.nav-dot::before {
  content: attr(data-tooltip);
  position: absolute;
  right: 55px;
  padding: 8px 14px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  border-radius: var(--radius-md);
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: var(--transition-normal);
  pointer-events: none;
  box-shadow: var(--shadow-md);
}

.nav-dot:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

@media (max-width: 768px) {
  .side-nav {
    display: none;
  }
}

.social-sidebar {
  position: fixed;
  left: 30px;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.2rem;
  text-decoration: none;
  transition: var(--transition-normal);
  border-radius: var(--radius-md);
}

.social-icon:hover {
  color: var(--primary);
  background: var(--bg-glass);
}

.social-line {
  width: 1px;
  height: 100px;
  background: linear-gradient(to top, var(--text-muted), transparent);
}

@media (max-width: 768px) {
  .social-sidebar {
    left: 15px;
    gap: 15px;
  }
  
  .social-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .social-line {
    height: 60px;
  }
}

.theme-toggle {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 100;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-normal);
}

.theme-toggle:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

@media (max-width: 768px) {
  .theme-toggle {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}

.scroll-indicator {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: fadeInOut 2s ease-in-out infinite;
}

.mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s ease-in-out infinite;
}

@keyframes scroll {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.scroll-indicator.hidden {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .scroll-indicator {
    bottom: 20px;
  }
}

.snap-container {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.snap-section {
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  position: relative;
}

@media (max-width: 768px) {
  .snap-section {
    padding: 60px 15px;
  }
}

.section-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-number {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-md);
}

.section-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  margin: 0 auto;
}

.hero-section {
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2xl);
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero-image-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
}

.hero-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary);
  position: relative;
  z-index: 2;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, var(--primary), transparent 70%);
  opacity: 0.4;
  filter: blur(20px);
  animation: pulse 3s ease-in-out infinite;
}

.hero-image-ring {
  position: absolute;
  inset: -10px;
  border: 2px dashed var(--primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: spin 20s linear infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.1); opacity: 0.6; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-greeting {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.wave {
  display: inline-block;
  animation: wave 2s ease-in-out infinite;
  transform-origin: 70% 70%;
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(-4deg); }
  50%, 100% { transform: rotate(0deg); }
}

.hero-name {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-md);
}

.hero-title-wrapper {
  display: inline-block;
  padding: 8px 24px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  letter-spacing: 1px;
  min-width: 1px;
}

.hero-title:empty::before {
  content: '\00a0';
}

.typewriter-cursor {
  font-weight: 300;
  color: white;
  animation: blink 1s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-xl);
  transition: var(--transition-normal);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

@media (max-width: 900px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
}

.about-intro {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.detail-item {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  transition: var(--transition-normal);
}

.detail-item:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.detail-item i {
  font-size: 1.5rem;
  color: var(--primary);
  width: 40px;
  flex-shrink: 0;
}

.detail-content h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-xs);
}

.detail-content p {
  color: var(--text-primary);
  font-weight: 500;
}

.about-interests h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.interest-card {
  padding: var(--space-lg);
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  transition: var(--transition-normal);
}

.interest-card:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
  box-shadow: var(--shadow-md);
}

.interest-card i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.interest-card h4 {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.interest-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.skills-content {
  text-align: center;
}

.skills-intro {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: var(--space-lg);
  max-width: 800px;
  margin: 0 auto;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-xl);
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  transition: var(--transition-normal);
}

.skill-item:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
  box-shadow: var(--shadow-md);
}

.skill-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: var(--transition-normal);
}

.skill-item:hover img {
  filter: brightness(1.2);
}

.skill-item span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.projects-content {
  width: 100%;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.project-card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
  box-shadow: var(--shadow-md);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-lg);
}

.project-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-lg);
  color: white;
  font-size: 1.25rem;
}

.project-links {
  display: flex;
  gap: var(--space-sm);
}

.project-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}

.project-link:hover {
  color: var(--primary);
  background: var(--bg-glass);
}

.project-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.project-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: var(--space-lg);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.project-tag {
  padding: 4px 12px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-full);
}

.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-intro {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.contact-card {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-xl);
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  text-decoration: none;
  transition: var(--transition-normal);
}

.contact-card:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.contact-card:hover .contact-arrow {
  color: var(--primary);
}

.contact-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-icon.whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.contact-info {
  flex-grow: 1;
  text-align: left;
}

.contact-info h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.contact-info p {
  color: var(--text-primary);
  font-weight: 500;
}

.contact-arrow {
  color: var(--text-muted);
  transition: var(--transition-normal);
}

.contact-social {
  margin-top: var(--space-2xl);
}

.contact-social > p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.contact-social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
}

.contact-social-links a {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-size: 1.25rem;
  text-decoration: none;
  transition: var(--transition-normal);
}

.contact-social-links a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
}

.footer {
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-color);
}

.footer p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.snap-section .section-container,
.snap-section .hero-content {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.snap-section.visible .section-container,
.snap-section.visible .hero-content {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .hero-image-wrapper {
    width: 140px;
    height: 140px;
  }
  
  .hero-name {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-bg-text {
    display: none;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
  
  .skill-item {
    padding: var(--space-lg);
  }
  
  .skill-item img {
    width: 36px;
    height: 36px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-card {
    padding: var(--space-md);
  }
}

@media (max-width: 480px) {
  .snap-section {
    padding: 40px 15px;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .interests-grid {
    grid-template-columns: 1fr;
  }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-glass) 25%, var(--bg-secondary) 50%, var(--bg-glass) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.project-card,
.interest-card,
.skill-item,
.contact-card,
.detail-item {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.project-card::after,
.interest-card::after,
.skill-item::after,
.contact-card::after,
.detail-item::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 10;
  transition: background 0.15s ease-out;
  background: transparent;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: loaderSpin 1.5s linear infinite;
}

.loader-ring:nth-child(2) {
  width: 80%;
  height: 80%;
  border-top-color: var(--secondary);
  animation-duration: 1.2s;
  animation-direction: reverse;
}

.loader-ring:nth-child(3) {
  width: 60%;
  height: 60%;
  border-top-color: var(--accent);
  animation-duration: 0.9s;
}

.loader-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: loaderPulse 1s ease-in-out infinite;
}

@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 100px;
  z-index: 99;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  border-radius: var(--radius-xl);
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

@media (max-width: 768px) {
  .back-to-top {
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations for children */
.stagger-animate > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-animate.animated > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-animate.animated > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-animate.animated > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-animate.animated > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-animate.animated > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-animate.animated > *:nth-child(6) { transition-delay: 0.6s; }
.stagger-animate.animated > *:nth-child(7) { transition-delay: 0.7s; }
.stagger-animate.animated > *:nth-child(8) { transition-delay: 0.8s; }
.stagger-animate.animated > *:nth-child(9) { transition-delay: 0.9s; }
.stagger-animate.animated > *:nth-child(10) { transition-delay: 1s; }
.stagger-animate.animated > *:nth-child(11) { transition-delay: 1.1s; }

.stagger-animate.animated > * {
  opacity: 1;
  transform: translateY(0);
}

.cursor-trail {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.2s, height 0.2s, opacity 0.2s;
}

.cursor-trail::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--primary-color);
  opacity: 0.3;
  animation: cursorPulse 1.5s ease-in-out infinite;
}

@keyframes cursorPulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.5); opacity: 0; }
}

/* Hide cursor trail on mobile */
@media (max-width: 768px) {
  .cursor-trail {
    display: none !important;
  }
}

.nav-dot,
.theme-toggle,
.social-link,
.scroll-indicator {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card,
.interest-card,
.skill-item,
contact-card,
.detail-item {
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.3s ease, background 0.3s ease !important;
}

#hero .profile-image,
.hero-content {
  transition: transform 0.1s linear, opacity 0.1s linear;
  will-change: transform, opacity;
}

.btn-primary,
.nav-dot {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:active::before {
  width: 300px;
  height: 300px;
}

.project-card:hover,
.interest-card:hover,
.contact-card:hover {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.social-link:hover i,
.project-link:hover i {
  filter: drop-shadow(0 0 8px var(--primary-color));
}

.project-card:hover,
.interest-card:hover {
  z-index: 10;
}

.snap-section {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.snap-section.visible {
  opacity: 1;
}

.interest-card i {
  animation: floatIcon 3s ease-in-out infinite;
}

.interest-card:nth-child(2) i {
  animation-delay: 0.5s;
}

.interest-card:nth-child(3) i {
  animation-delay: 1s;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.skill-item:hover img {
  animation: skillBounce 0.5s ease;
}

@keyframes skillBounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
