/* =============================================
   SURAJ DOBALE - Portfolio Styles v2
   Modern UI/UX Design System
   ============================================= */

/* ----- CSS Variables / Design Tokens ----- */
:root {
  --primary: #6c63ff;
  --primary-dark: #5a52d5;
  --primary-light: #8b85ff;
  --primary-glow: rgba(108, 99, 255, 0.4);
  --secondary: #00d4aa;
  --secondary-light: #00e6bb;
  --accent: #ff6b6b;
  --accent2: #ffd93d;
  --accent3: #6bcbff;

  --bg-primary: #0a0a1a;
  --bg-secondary: #0f0f25;
  --bg-card: rgba(26, 26, 62, 0.6);
  --bg-card-hover: rgba(34, 34, 85, 0.8);
  --bg-glass: rgba(26, 26, 62, 0.4);

  --text-primary: #f0f0ff;
  --text-secondary: #a0a0d0;
  --text-muted: #6a6a9a;

  --gradient-1: linear-gradient(135deg, #6c63ff, #00d4aa);
  --gradient-2: linear-gradient(135deg, #ff6b6b, #ffd93d);
  --gradient-3: linear-gradient(135deg, #6c63ff, #6bcbff);
  --gradient-hero: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 50%, #0a0a1a 100%);
  --gradient-glass: linear-gradient(135deg, rgba(108, 99, 255, 0.1), rgba(0, 212, 170, 0.05));
  --gradient-border: linear-gradient(135deg, rgba(108, 99, 255, 0.5), rgba(0, 212, 170, 0.2), rgba(108, 99, 255, 0.1));

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.2);
  --shadow-glow-intense: 0 0 60px rgba(108, 99, 255, 0.3);

  --border-radius: 16px;
  --border-radius-lg: 24px;
  --border-radius-xl: 32px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Fira Code', 'JetBrains Mono', monospace;

  --nav-height: 70px;
}

/* Light Mode Variables */
[data-theme="light"] {
  --bg-primary: #f8f9ff;
  --bg-secondary: #eef0ff;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-hover: rgba(255, 255, 255, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.5);
  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-muted: #8888aa;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.1);
  --shadow-glow-intense: 0 0 60px rgba(108, 99, 255, 0.15);
  --gradient-hero: linear-gradient(135deg, #f8f9ff 0%, #e8e8ff 50%, #f8f9ff 100%);
  --gradient-glass: linear-gradient(135deg, rgba(108, 99, 255, 0.05), rgba(0, 212, 170, 0.03));
}

/* Galaxy / Cosmic Theme Variables */
[data-theme="galaxy"] {
  --primary: #ff2d95;
  --primary-dark: #e01a7a;
  --primary-light: #ff6bcb;
  --primary-glow: rgba(255, 45, 149, 0.4);
  --secondary: #ffd700;
  --secondary-light: #ffe44d;
  --accent: #ff6b6b;
  --accent2: #00d4aa;
  --accent3: #6bcbff;

  --bg-primary: #0d0221;
  --bg-secondary: #150433;
  --bg-card: rgba(40, 10, 70, 0.6);
  --bg-card-hover: rgba(55, 20, 90, 0.8);
  --bg-glass: rgba(40, 10, 70, 0.4);

  --text-primary: #f0e6ff;
  --text-secondary: #c0a0e0;
  --text-muted: #705090;

  --gradient-1: linear-gradient(135deg, #ff2d95, #ffd700);
  --gradient-2: linear-gradient(135deg, #ffd700, #ff6b6b);
  --gradient-3: linear-gradient(135deg, #ff2d95, #6bcbff);
  --gradient-hero: linear-gradient(135deg, #0d0221 0%, #1f0040 50%, #0d0221 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 45, 149, 0.1), rgba(255, 215, 0, 0.05));
  --gradient-border: linear-gradient(135deg, rgba(255, 45, 149, 0.5), rgba(255, 215, 0, 0.2), rgba(255, 45, 149, 0.1));

  --shadow-glow: 0 0 40px rgba(255, 45, 149, 0.2);
  --shadow-glow-intense: 0 0 60px rgba(255, 45, 149, 0.3);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

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

/* ----- Smooth Theme Switching -----
   Activated via JS whenever the user clicks the theme toggle.
   Ensures all themed properties (backgrounds, colors, borders, shadows)
   transition gracefully between dark/light/galaxy modes.
*/
html.theme-switching,
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
  transition:
    background 0.6s ease,
    background-color 0.6s ease,
    color 0.6s ease,
    border-color 0.6s ease,
    border-top-color 0.6s ease,
    border-bottom-color 0.6s ease,
    box-shadow 0.6s ease,
    opacity 0.6s ease !important;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary);
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

::selection {
  background: rgba(108, 99, 255, 0.3);
  color: var(--text-primary);
}

/* Focus Styles */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

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

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  opacity: 0.8;
}

/* =============================================
   SCROLL PROGRESS BAR
   ============================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-1);
  z-index: 100000;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(108, 99, 255, 0.3);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9990;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition: var(--transition-bounce);
  box-shadow: var(--shadow-glow);
  font-size: 1.3rem;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.back-to-top:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-4px) scale(1.1);
  box-shadow: var(--shadow-glow-intense);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =============================================
   GALAXY STAR SHOWER CANVAS
   ============================================= */
#galaxy-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}

[data-theme="galaxy"] #galaxy-canvas {
  opacity: 1;
}

[data-theme="dark"] #galaxy-canvas {
  opacity: 0.4;
}

[data-theme="light"] #galaxy-canvas {
  opacity: 0.15;
}

/* =============================================
   GLOW ORB (Background Decoration)
   ============================================= */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(80px);
  opacity: 0.15;
  animation: floatOrb 20s ease-in-out infinite;
}

.glow-orb-1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.glow-orb-2 {
  width: 350px;
  height: 350px;
  background: var(--secondary);
  bottom: -100px;
  left: -100px;
  animation-delay: -7s;
  animation-duration: 25s;
}

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

/* ----- Preloader ----- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  position: relative;
  width: 60px;
  height: 60px;
}

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

.loader-ring:nth-child(2) {
  inset: 8px;
  border-top-color: var(--secondary);
  border-right-color: var(--accent);
  animation-direction: reverse;
  animation-duration: 1s;
}

.loader-dot {
  position: absolute;
  inset: 18px;
  background: var(--gradient-1);
  border-radius: 50%;
  animation: pulse 1s ease-in-out infinite;
}

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

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

/* ----- Navigation ----- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(10, 10, 26, 0.6);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid rgba(108, 99, 255, 0.08);
  z-index: 9999;
  transition: var(--transition);
}

[data-theme="light"] .navbar {
  background: rgba(248, 249, 255, 0.6);
  border-bottom-color: rgba(108, 99, 255, 0.08);
}

[data-theme="galaxy"] .navbar {
  background: rgba(13, 2, 33, 0.6);
  border-bottom-color: rgba(255, 45, 149, 0.12);
}

[data-theme="galaxy"] .navbar.scrolled {
  background: rgba(13, 2, 33, 0.85);
  box-shadow: 0 4px 30px rgba(255, 45, 149, 0.15);
}

.navbar.scrolled {
  background: rgba(10, 10, 26, 0.85);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(248, 249, 255, 0.85);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 50px;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(108, 99, 255, 0.12);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--gradient-1);
  transition: transform var(--transition);
  border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: translateX(-50%) scaleX(1);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  border-radius: 8px;
  transition: var(--transition);
}

.hamburger:hover {
  background: rgba(108, 99, 255, 0.1);
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
  width: 26px;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
  width: 26px;
}

/* Theme Toggle */
.theme-toggle {
  background: rgba(108, 99, 255, 0.1);
  border: 1px solid rgba(108, 99, 255, 0.15);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.theme-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gradient-1);
  opacity: 0;
  transition: var(--transition);
}

.theme-toggle:hover::before {
  opacity: 0.15;
}

.theme-toggle:hover {
  transform: rotate(15deg) scale(1.05);
  border-color: var(--primary);
}

.theme-toggle .icon {
  position: relative;
  z-index: 1;
}

/* ----- Section Dividers ----- */
.section-divider {
  position: relative;
  height: 120px;
  overflow: hidden;
  pointer-events: none;
  margin-top: -1px;
}

.section-divider svg {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  fill: var(--bg-primary);
}

/* ----- Hero Section ----- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--gradient-hero);
  overflow: hidden;
  padding: 120px 40px 80px;
}

/* Particle Canvas */
#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 24px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(108, 99, 255, 0.25);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--primary-light);
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease;
  box-shadow: var(--shadow-glow);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  animation: fadeInUp 1s ease 0.1s both;
  letter-spacing: -1.5px;
}

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

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-secondary);
  margin-bottom: 12px;
  animation: fadeInUp 1s ease 0.2s both;
  font-weight: 400;
}

.hero-typing {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--secondary);
  font-family: var(--font-mono);
  min-height: 2em;
  margin-bottom: 32px;
  animation: fadeInUp 1s ease 0.3s both;
}

.hero-typing .cursor {
  display: inline-block;
  width: 2px;
  height: 1.2em;
  background: var(--secondary);
  margin-left: 2px;
  animation: blink 0.7s step-end infinite;
  vertical-align: text-bottom;
}

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

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.4s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font-sans);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

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

/* Button Ripple */
.btn .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.btn-primary {
  background: var(--gradient-1);
  color: white;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.5);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  border: 1.5px solid rgba(108, 99, 255, 0.3);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(108, 99, 255, 0.15);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.btn-outline:active {
  transform: translateY(-1px);
}

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

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 48px;
  animation: fadeInUp 1s ease 0.5s both;
}

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

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: rgba(108, 99, 255, 0.15);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: fadeInUp 1s ease 0.8s both;
}

.mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  transition: var(--transition);
}

.mouse-dot {
  width: 3px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scrollMouse 2s ease-in-out infinite;
}

@keyframes scrollMouse {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.3; }
}

/* ----- Section Styling ----- */
.section {
  padding: 100px 40px;
  position: relative;
}

.section-container {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 18px;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(108, 99, 255, 0.15);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--primary-light);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ----- About Section ----- */
#about {
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  line-height: 1.4;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  border: 1px solid rgba(108, 99, 255, 0.06);
  transition: var(--transition);
}

.detail-item:hover {
  border-color: rgba(108, 99, 255, 0.15);
  background: var(--bg-card);
  transform: translateX(4px);
}

.detail-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.detail-value {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
  margin-left: auto;
}

/* About Avatar */
.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.avatar-frame {
  width: 320px;
  height: 320px;
  border-radius: var(--border-radius-xl);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px var(--primary-glow);
}

.avatar-frame::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--border-radius-xl);
  background: conic-gradient(var(--primary), var(--secondary), var(--primary-light), var(--secondary), var(--primary));
  z-index: -1;
  animation: rotateGradient 6s linear infinite;
  filter: blur(4px);
}

.avatar-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius-xl);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
  pointer-events: none;
  z-index: 2;
}

@keyframes rotateGradient {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.avatar-placeholder,
.avatar-img {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: var(--bg-card);
  border-radius: var(--border-radius-xl);
  margin: 3px;
  width: calc(100% - 6px);
  height: calc(100% - 6px);
  transition: var(--transition);
}

.avatar-img {
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.avatar-frame:hover .avatar-img {
  transform: scale(1.05);
}

/* ----- Skills Section ----- */
#skills {
  background: var(--bg-primary);
}

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

.skill-category {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border-radius: var(--border-radius);
  padding: 28px;
  border: 1px solid rgba(108, 99, 255, 0.08);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-border);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

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

.skill-category:hover {
  border-color: rgba(108, 99, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-hover);
}

.skill-category-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.skill-category-title .icon {
  font-size: 1.3rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  padding: 6px 16px;
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.1);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--transition);
  cursor: default;
}

.skill-tag:hover {
  background: rgba(108, 99, 255, 0.15);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 99, 255, 0.15);
}

.skill-tag.highlight {
  background: var(--gradient-1);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(108, 99, 255, 0.2);
}

/* Skill Bars */
.skill-bars-section {
  margin-top: 60px;
}

.skill-bars-section h3 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.3rem;
}

.skill-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.skill-bar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.skill-bar-name {
  font-weight: 600;
}

.skill-bar-percent {
  color: var(--primary-light);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.skill-bar-track {
  height: 6px;
  background: rgba(108, 99, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--gradient-1);
  width: 0%;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.skill-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  animation: shimmer 2s infinite;
}

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

/* ----- Projects Section ----- */
#projects {
  background: var(--bg-secondary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border-radius: var(--border-radius);
  border: 1px solid rgba(108, 99, 255, 0.08);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
  display: flex;
  flex-direction: column;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-1);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
  z-index: 2;
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-glass);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
  z-index: 1;
}

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

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow-intense);
  border-color: rgba(108, 99, 255, 0.2);
}

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

/* ----- Project Screenshot / Mockup Image ----- */
.project-screenshot {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  z-index: 1;
}

.project-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: block;
}

.project-card:hover .project-screenshot img {
  transform: scale(1.08);
}

.project-screenshot-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.85), rgba(0, 212, 170, 0.75));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.overlay-links-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

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

.overlay-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, border-color 0.3s ease;
}

.project-card:hover .overlay-link {
  transform: translateY(0);
}

.overlay-link:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.overlay-link svg {
  width: 18px;
  height: 18px;
}

.overlay-link-demo {
  background: rgba(0, 212, 170, 0.25);
  border-color: rgba(0, 212, 170, 0.4);
}

.overlay-link-demo:hover {
  background: rgba(0, 212, 170, 0.4);
  border-color: rgba(0, 212, 170, 0.6);
  box-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
}

/* Galaxy theme: overlay demo links use gold accent */
[data-theme="galaxy"] .overlay-link-demo {
  background: rgba(255, 215, 0, 0.25);
  border-color: rgba(255, 215, 0, 0.4);
}

[data-theme="galaxy"] .overlay-link-demo:hover {
  background: rgba(255, 215, 0, 0.4);
  border-color: rgba(255, 215, 0, 0.6);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

/* ----- Project Body ----- */
.project-body {
  padding: 24px 28px 28px;
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-body > *:last-child {
  margin-top: auto;
}

.project-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(108, 99, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
  transition: var(--transition);
}

.project-card:hover .project-icon {
  background: rgba(108, 99, 255, 0.2);
  transform: scale(1.1);
}

.project-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 14px;
  line-height: 1.6;
}

.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.project-techs span {
  padding: 4px 12px;
  background: rgba(108, 99, 255, 0.06);
  border-radius: 50px;
  border: 1px solid rgba(108, 99, 255, 0.08);
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  transition: var(--transition);
}

.project-techs span:hover {
  background: rgba(108, 99, 255, 0.12);
  color: var(--primary-light);
}

.project-links {
  display: flex;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(108, 99, 255, 0.06);
}

.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-light);
  padding: 8px 16px;
  background: rgba(108, 99, 255, 0.06);
  border-radius: 8px;
  border: 1px solid rgba(108, 99, 255, 0.08);
  transition: var(--transition);
  text-decoration: none;
}

.project-links a:hover {
  background: rgba(108, 99, 255, 0.15);
  color: var(--secondary);
  border-color: rgba(108, 99, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(108, 99, 255, 0.15);}.project-links a:active {
  transform: translateY(0);
}

.project-links .btn-demo {
  color: var(--secondary);
  border-color: rgba(0, 212, 170, 0.2);
  background: rgba(0, 212, 170, 0.06);
}

.project-links .btn-demo:hover {
  background: rgba(0, 212, 170, 0.15);
  border-color: rgba(0, 212, 170, 0.4);
  box-shadow: 0 4px 16px rgba(0, 212, 170, 0.2);
  color: var(--secondary-light);
}

/* ----- Education / Timeline Section ----- */
#education {
  background: var(--bg-primary);
}

.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary), var(--primary-light));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 30px;
  transition: var(--transition);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item:hover {
  transform: translateX(4px);
}

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--primary);
  box-shadow: 0 0 0 2px var(--primary), 0 0 16px rgba(108, 99, 255, 0.3);
  transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
  background: var(--primary);
  box-shadow: 0 0 0 2px var(--primary), 0 0 24px rgba(108, 99, 255, 0.5);
  transform: scale(1.2);
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--secondary);
  font-family: var(--font-mono);
  font-weight: 600;
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

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

/* ----- Experience Section ----- */
#experience {
  background: var(--bg-secondary);
}

.experience-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border-radius: var(--border-radius);
  padding: 32px;
  border: 1px solid rgba(108, 99, 255, 0.08);
  max-width: 700px;
  margin: 0 auto;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.experience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-1);
  border-radius: 0 2px 2px 0;
}

.experience-card:hover {
  border-color: rgba(108, 99, 255, 0.2);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.exp-company {
  font-weight: 700;
  font-size: 1.2rem;
}

.exp-date {
  color: var(--secondary);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 4px 12px;
  background: rgba(0, 212, 170, 0.1);
  border-radius: 50px;
}

.exp-role {
  color: var(--primary-light);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.exp-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ----- Achievements Section ----- */
#achievements {
  background: var(--bg-primary);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.achievement-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border-radius: var(--border-radius);
  padding: 28px;
  text-align: center;
  border: 1px solid rgba(108, 99, 255, 0.08);
  transition: var(--transition);
}

.achievement-card:hover {
  border-color: rgba(108, 99, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.achievement-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.achievement-card h4 {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

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

/* ----- Contact Section ----- */
#contact {
  background: var(--bg-primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}

.contact-card {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border-radius: var(--border-radius);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid rgba(108, 99, 255, 0.08);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.contact-card:hover {
  border-color: rgba(108, 99, 255, 0.2);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-hover);
}

.contact-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(108, 99, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.5rem;
  transition: var(--transition);
}

.contact-card:hover .contact-card-icon {
  background: rgba(108, 99, 255, 0.2);
  transform: scale(1.1);
}

.contact-card-icon svg {
  color: var(--primary-light);
  transition: var(--transition);
}

.contact-card:hover .contact-card-icon svg {
  color: var(--primary);
}

.contact-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  word-break: break-word;
}

/* ----- Footer ----- */
.footer {
  background: var(--bg-secondary);
  padding: 40px;
  text-align: center;
  border-top: 1px solid rgba(108, 99, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-border);
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer .nav-logo {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 2;
}

.footer a {
  color: var(--text-muted);
  transition: var(--transition);
}

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

/* ----- Stagger Animation Classes ----- */
.stagger-children > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.08s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.16s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.40s; }

/* ----- Animations ----- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ----- Floating Shapes (Background decoration) ----- */
.floating-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.025;
  animation: floatShape 20s ease-in-out infinite;
}

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

.shape:nth-child(2) {
  width: 250px;
  height: 250px;
  background: var(--secondary);
  top: 60%;
  right: -80px;
  animation-delay: -5s;
  animation-duration: 25s;
}

.shape:nth-child(3) {
  width: 200px;
  height: 200px;
  background: var(--accent);
  bottom: -50px;
  left: 30%;
  animation-delay: -10s;
  animation-duration: 18s;
}

@keyframes floatShape {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.1); }
  50% { transform: translate(-20px, 20px) scale(0.9); }
  75% { transform: translate(40px, 30px) scale(1.05); }
}

/* ----- Mouse Follower ----- */
.mouse-follower {
  position: fixed;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(108, 99, 255, 0.1);
  border: 1.5px solid rgba(108, 99, 255, 0.2);
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  backdrop-filter: blur(4px);
}

/* ----- Reduced Motion ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .skill-bar-fill {
    transition: none !important;
  }

  #particles-canvas {
    display: none;
  }

  .floating-shapes,
  .glow-orb {
    display: none;
  }

  .mouse-follower {
    display: none !important;
  }

  .hero-typing .cursor {
    animation: none !important;
  }

  .back-to-top {
    display: none;
  }
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

@media (max-width: 1024px) {
  .about-grid {
    gap: 40px;
  }



  .skill-bars {
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 16px;
    gap: 2px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    border-bottom: 1px solid rgba(108, 99, 255, 0.08);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    width: 100%;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 1rem;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .section {
    padding: 60px 20px;
  }

  .section-divider {
    height: 60px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-visual {
    order: -1;
  }

  .avatar-frame {
    width: 200px;
    height: 200px;
  }

  .about-details {
    grid-template-columns: 1fr;
  }

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

  .skill-bars {
    grid-template-columns: 1fr;
  }

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

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .experience-card {
    padding: 24px;
  }

  .project-body {
    padding: 20px 20px 24px;
  }

  .timeline {
    padding-left: 30px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

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

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-stats {
    flex-direction: row;
    gap: 20px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

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

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

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