/* ============================================
   MAIN STYLES - Siddharth Rajpal Portfolio
   ============================================ */

/* === PRELOADER / INTRO ANIMATION === */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  transition: opacity 0.5s ease;
}

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

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  z-index: 2;
}

.preloader-logo {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.preloader-bracket {
  color: var(--accent-primary);
  opacity: 0;
  animation: bracketReveal 0.6s ease forwards;
}

.preloader-bracket:first-child {
  animation-delay: 0.2s;
  transform: translateX(20px);
}

.preloader-bracket:last-child {
  animation-delay: 0.8s;
  transform: translateX(-20px);
}

@keyframes bracketReveal {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.preloader-text {
  color: var(--text-primary);
  opacity: 0;
  animation: textRevealPreloader 0.5s ease 0.5s forwards;
}

@keyframes textRevealPreloader {
  from {
    opacity: 0;
    transform: scale(0.5);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

.preloader-tagline {
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 2vw, 1rem);
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  overflow: hidden;
}

.preloader-tagline span {
  display: inline-block;
  opacity: 0;
  animation: taglineReveal 0.8s ease 1s forwards;
}

@keyframes taglineReveal {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.preloader-progress {
  width: 200px;
  height: 3px;
  background: var(--glass-bg);
  border-radius: 10px;
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 0.3s ease 1.2s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.preloader-bar {
  height: 100%;
  width: 0;
  background: var(--gradient-primary);
  border-radius: 10px;
  animation: loadProgress 1.5s ease 1.3s forwards;
}

@keyframes loadProgress {
  0% { width: 0; }
  50% { width: 70%; }
  100% { width: 100%; }
}

/* === SPLASH PARTICLES === */
.splash-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

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

/* Randomize particle positions and delays */
.splash-particle:nth-child(1) { left: 5%; animation-delay: 0s; width: 3px; height: 3px; }
.splash-particle:nth-child(2) { left: 10%; animation-delay: 0.2s; width: 5px; height: 5px; }
.splash-particle:nth-child(3) { left: 15%; animation-delay: 0.4s; }
.splash-particle:nth-child(4) { left: 20%; animation-delay: 0.1s; width: 6px; height: 6px; }
.splash-particle:nth-child(5) { left: 25%; animation-delay: 0.6s; width: 3px; height: 3px; }
.splash-particle:nth-child(6) { left: 35%; animation-delay: 0.3s; }
.splash-particle:nth-child(7) { left: 40%; animation-delay: 0.8s; width: 5px; height: 5px; }
.splash-particle:nth-child(8) { left: 50%; animation-delay: 0.5s; width: 3px; height: 3px; }
.splash-particle:nth-child(9) { left: 55%; animation-delay: 0.7s; }
.splash-particle:nth-child(10) { left: 60%; animation-delay: 0.2s; width: 6px; height: 6px; }
.splash-particle:nth-child(11) { left: 65%; animation-delay: 0.9s; width: 3px; height: 3px; }
.splash-particle:nth-child(12) { left: 70%; animation-delay: 0.4s; }
.splash-particle:nth-child(13) { left: 75%; animation-delay: 1s; width: 5px; height: 5px; }
.splash-particle:nth-child(14) { left: 80%; animation-delay: 0.6s; width: 3px; height: 3px; }
.splash-particle:nth-child(15) { left: 85%; animation-delay: 0.1s; }
.splash-particle:nth-child(16) { left: 90%; animation-delay: 0.8s; width: 4px; height: 4px; }
.splash-particle:nth-child(17) { left: 95%; animation-delay: 0.3s; width: 3px; height: 3px; }
.splash-particle:nth-child(18) { left: 30%; animation-delay: 1.1s; width: 5px; height: 5px; }
.splash-particle:nth-child(19) { left: 45%; animation-delay: 0.9s; }
.splash-particle:nth-child(20) { left: 3%; animation-delay: 0.7s; width: 6px; height: 6px; }

/* Alternate colors */
.splash-particle:nth-child(odd) {
  background: var(--accent-secondary);
}
.splash-particle:nth-child(3n) {
  background: var(--accent-warm);
}
.splash-particle:nth-child(5n) {
  background: var(--accent-ember);
}

@keyframes splashFloat {
  0% {
    bottom: -10%;
    opacity: 0;
    transform: translateX(0) scale(0);
  }
  10% {
    opacity: 0.8;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    bottom: 110%;
    opacity: 0;
    transform: translateX(20px) scale(0.5);
  }
}

/* Add glow to some particles */
.splash-particle:nth-child(2),
.splash-particle:nth-child(4),
.splash-particle:nth-child(7),
.splash-particle:nth-child(10),
.splash-particle:nth-child(13),
.splash-particle:nth-child(18) {
  box-shadow: 0 0 10px currentColor, 0 0 20px currentColor;
}

/* Hide particles when preloader exits */
.preloader.exit .splash-particles {
  animation: particlesFadeOut 0.5s ease forwards;
}

@keyframes particlesFadeOut {
  to {
    opacity: 0;
  }
}

/* Reveal animation - curtain effect */
.preloader-reveal {
  position: absolute;
  inset: 0;
  background: var(--bg-primary);
  transform: scaleY(0);
  transform-origin: bottom;
  z-index: 1;
}

.preloader.exit .preloader-content {
  animation: contentExit 0.5s ease forwards;
}

@keyframes contentExit {
  to {
    opacity: 0;
    transform: scale(0.9);
    filter: blur(10px);
  }
}

.preloader.exit .preloader-reveal {
  animation: revealCurtain 0.8s cubic-bezier(0.77, 0, 0.175, 1) 0.3s forwards;
}

@keyframes revealCurtain {
  0% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
  50% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  50.1% {
    transform-origin: top;
  }
  100% {
    transform: scaleY(0);
    transform-origin: top;
  }
}

/* Body loading state - prevent scrolling */
body.loading {
  overflow: hidden;
}

body.loading .navbar,
body.loading .hero,
body.loading .bg-gradient,
body.loading #particles {
  opacity: 0;
}

body.loaded .navbar,
body.loaded .hero,
body.loaded .bg-gradient,
body.loaded #particles {
  animation: pageReveal 1s ease forwards;
}

@keyframes pageReveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Hero special entrance after preloader */
body.loaded .hero-content {
  animation: heroEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

@keyframes heroEntrance {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

body.loaded .hero-greeting {
  animation: textSlideUp 0.6s ease 0.4s both;
}

body.loaded .hero-name {
  animation: nameReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

@keyframes nameReveal {
  from {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

body.loaded .hero-roles {
  animation: textSlideUp 0.6s ease 0.7s both;
}

body.loaded .hero-tagline {
  animation: textSlideUp 0.6s ease 0.8s both;
}

body.loaded .hero-cta {
  animation: textSlideUp 0.6s ease 0.9s both;
}

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

body.loaded .scroll-indicator {
  animation: fadeInBounce 0.6s ease 1.2s both;
}

@keyframes fadeInBounce {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* === RESET & BASE === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  min-height: 100vh;
}

/* === ANIMATED BACKGROUND === */
.bg-gradient {
  position: fixed;
  inset: 0;
  z-index: var(--z-behind);
  background: var(--bg-primary);
  overflow: hidden;
}

.bg-gradient::before,
.bg-gradient::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  animation: orbFloat 20s ease-in-out infinite;
}

.bg-gradient::before {
  width: 600px;
  height: 600px;
  background: var(--accent-primary);
  top: -10%;
  left: -10%;
  animation-delay: 0s;
}

.bg-gradient::after {
  width: 500px;
  height: 500px;
  background: var(--accent-secondary);
  bottom: -10%;
  right: -10%;
  animation-delay: -10s;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
  animation: orbFloat 25s ease-in-out infinite;
}

.bg-orb-1 {
  width: 400px;
  height: 400px;
  background: var(--accent-warm);
  top: 50%;
  left: 30%;
  animation-delay: -5s;
}

.bg-orb-2 {
  width: 300px;
  height: 300px;
  background: var(--accent-ember);
  top: 20%;
  right: 20%;
  animation-delay: -15s;
}

/* === CONTAINER === */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* === SECTIONS === */
.section {
  position: relative;
  padding: var(--space-section) 0;
  z-index: var(--z-normal);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

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

a:hover {
  color: var(--accent-tertiary);
}

/* === GRADIENT TEXT === */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 5s ease infinite;
}

/* === GLASSMORPHISM COMPONENTS === */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-normal);
}

.glass:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-glow);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  padding: var(--space-xl);
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Glass card with animated border */
.glass-card-glow {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  z-index: 1;
  overflow: hidden;
}

.glass-card-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(45deg,
    var(--accent-primary),
    var(--accent-secondary),
    var(--accent-tertiary),
    var(--accent-primary)
  );
  background-size: 400% 400%;
  animation: gradientRotate 8s linear infinite;
  z-index: -2;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.glass-card-glow::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-lg) - 1px);
  background: var(--bg-primary);
  z-index: -1;
}

.glass-card-glow:hover::before {
  opacity: 1;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-xl);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 159, 28, 0.4), var(--shadow-glow);
}

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

.btn-secondary {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-sm));
  -webkit-backdrop-filter: blur(var(--blur-sm));
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: var(--glass-bg-hover);
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(255, 159, 28, 0.2);
  transform: translateY(-3px);
}

.btn-icon {
  transition: transform var(--transition-normal);
}

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

/* === SECTION TITLES === */
.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-subtitle {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

.section-description {
  max-width: 600px;
  margin: var(--space-lg) auto 0;
  color: var(--text-muted);
}

/* === NAVIGATION === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: var(--space-md) 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(10, 10, 26, 0.9);
  backdrop-filter: blur(var(--blur-md));
  -webkit-backdrop-filter: blur(var(--blur-md));
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-lg);
  padding: var(--space-sm) 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-logo span {
  color: var(--accent-primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-weight: var(--fw-medium);
  position: relative;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-normal);
}

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: var(--space-xs);
  z-index: var(--z-max);
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-normal);
  border-radius: var(--radius-full);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* === HERO SECTION === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: var(--space-4xl) 0;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  padding: var(--space-3xl);
  position: relative;
  z-index: var(--z-normal);
}

/* Enhanced glassmorphism for hero card */
.hero-content.glass-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(255, 159, 28, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-content.glass-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(255, 159, 28, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: var(--fs-body);
  color: var(--accent-primary);
  margin-bottom: var(--space-md);
  letter-spacing: 2px;
}

.hero-name {
  font-size: var(--fs-hero);
  font-weight: var(--fw-black);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.hero-roles {
  font-size: var(--fs-h3);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  min-height: 2.5rem;
}

.typing-text {
  color: var(--accent-tertiary);
  font-weight: var(--fw-semibold);
}

.cursor {
  display: inline-block;
  color: var(--accent-primary);
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}

.hero-tagline {
  font-size: var(--fs-body);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: var(--fs-small);
  animation: bounce 2s ease infinite;
}

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

.mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: var(--radius-full);
  animation: scrollWheel 2s ease infinite;
}

/* === ABOUT SECTION === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-3xl);
  align-items: start;
}

.about-image-wrapper {
  position: relative;
}

.profile-card {
  text-align: center;
  animation: float 6s ease-in-out infinite;
}

.profile-image {
  position: relative;
  width: 250px;
  height: 250px;
  margin: 0 auto var(--space-xl);
}

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

.profile-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: var(--gradient-primary);
  background-size: 400% 400%;
  animation: gradientRotate 4s linear infinite;
  z-index: 1;
}

.profile-ring::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--bg-primary);
}

.profile-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  position: relative;
  z-index: 2;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  color: var(--accent-primary);
  display: block;
}

.stat-label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Glass box for about content section */
.about-content {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(255, 159, 28, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all var(--transition-normal);
}

.about-content:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(255, 159, 28, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

.about-content h3 {
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.about-text {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: var(--fs-small);
  color: var(--text-secondary);
  transition: all var(--transition-normal);
}

.highlight-badge:hover {
  background: var(--glass-bg-hover);
  border-color: var(--accent-primary);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.highlight-badge .badge-icon {
  font-size: 1rem;
}

/* Leadership Roles */
.leadership-section {
  margin-top: var(--space-3xl);
}

.leadership-section h3 {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.role-card {
  text-align: center;
  padding: var(--space-xl);
}

.role-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  display: block;
}

.role-card h4 {
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.role-card p {
  color: var(--text-muted);
  font-size: var(--fs-small);
  margin-bottom: 0;
}

/* === PROJECTS SECTION === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-xl);
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.project-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 26, 0.95) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

.project-link {
  padding: var(--space-sm) var(--space-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-sm));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  transform: translateY(20px);
  transition: all var(--transition-normal);
  cursor: pointer;
}

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

.project-link:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--bg-primary);
}

.project-content {
  padding: var(--space-xl);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-sm));
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.project-type {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-achievement {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: var(--space-2xs) var(--space-sm);
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  color: var(--accent-gold);
}

.project-achievement.winner {
  background: rgba(255, 159, 28, 0.15);
  border-color: rgba(255, 159, 28, 0.4);
  color: var(--accent-primary);
  animation: glowPulse 2s ease infinite;
}

.project-title {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.project-description {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.tech-tag {
  padding: var(--space-2xs) var(--space-sm);
  background: rgba(255, 159, 28, 0.1);
  border: 1px solid rgba(255, 159, 28, 0.2);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent-primary);
  transition: all var(--transition-fast);
}

.tech-tag:hover {
  background: rgba(255, 159, 28, 0.2);
  transform: translateY(-2px);
}

/* === SKILLS SECTION === */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.skill-category {
  padding: var(--space-xl);
}

.category-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.category-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

.category-header h3 {
  font-size: var(--fs-h4);
  color: var(--text-primary);
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.skill-item {
  position: relative;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-xs);
}

.skill-name {
  font-weight: var(--fw-medium);
  color: var(--text-primary);
}

.skill-level {
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.skill-bar {
  height: 8px;
  background: var(--glass-bg);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

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

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

.skill-progress.animate {
  width: var(--progress);
}

/* Skills as icons grid */
.skills-icons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: var(--space-md);
}

.skill-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  cursor: default;
}

.skill-icon-item:hover {
  background: var(--glass-bg-hover);
  border-color: var(--accent-primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.skill-icon-item .icon {
  font-size: 2rem;
}

.skill-icon-item span {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-align: center;
}

/* === CONTACT SECTION === */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  transition: all var(--transition-normal);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(255, 159, 28, 0.1);
}

.form-group label {
  position: absolute;
  left: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: var(--fs-body);
  pointer-events: none;
  transition: all var(--transition-normal);
  background: transparent;
  padding: 0 var(--space-xs);
}

.form-group textarea ~ label {
  top: var(--space-md);
  transform: translateY(0);
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: 0;
  transform: translateY(-50%);
  font-size: var(--fs-xs);
  color: var(--accent-primary);
  background: var(--bg-primary);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-intro h3 {
  margin-bottom: var(--space-md);
}

.contact-intro p {
  color: var(--text-muted);
  line-height: 1.8;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.social-link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all var(--transition-normal);
}

.social-link:hover {
  background: var(--glass-bg-hover);
  border-color: var(--accent-primary);
  color: var(--text-primary);
  transform: translateX(10px);
}

.social-link .icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border-radius: var(--radius-sm);
}

.resume-download {
  margin-top: var(--space-lg);
}

.resume-btn {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-xl);
  background: var(--gradient-secondary);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-weight: var(--fw-semibold);
  transition: all var(--transition-normal);
  text-decoration: none;
}

.resume-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

/* === FOOTER === */
.footer {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.footer-text {
  color: var(--text-muted);
  font-size: var(--fs-small);
}

.footer-text a {
  color: var(--accent-primary);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: all var(--transition-normal);
}

.footer-social a:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--bg-primary);
  transform: translateY(-3px);
}

/* === UTILITY CLASSES === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* === PARTICLES CONTAINER === */
#particles {
  position: fixed;
  inset: 0;
  z-index: var(--z-behind);
  pointer-events: none;
}

/* === SELECTION STYLING === */
::selection {
  background: var(--accent-primary);
  color: var(--bg-primary);
}

/* === SCROLLBAR STYLING === */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--glass-bg-strong);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* === PROJECT MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 26, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-2xl);
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  line-height: 1;
}

.modal-close:hover {
  background: var(--accent-warm);
  border-color: var(--accent-warm);
  transform: rotate(90deg);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.modal-icon {
  font-size: 3rem;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.modal-title-wrapper {
  flex: 1;
}

.modal-type {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: var(--space-xs);
}

.modal-title {
  font-size: var(--fs-h3);
  color: var(--text-primary);
  line-height: 1.3;
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: rgba(255, 159, 28, 0.1);
  border: 1px solid rgba(255, 159, 28, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--fs-small);
  color: var(--accent-primary);
  margin-bottom: var(--space-xl);
}

.modal-badge.gold {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.3);
  color: var(--accent-gold);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.modal-section h3 {
  font-size: var(--fs-h4);
  color: var(--accent-primary);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.modal-section h3::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

.modal-section p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0;
}

.modal-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.modal-features li {
  color: var(--text-secondary);
  padding-left: var(--space-lg);
  position: relative;
  line-height: 1.6;
}

.modal-features li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-size: 1.2rem;
}

.modal-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.modal-tech .tech-tag {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--fs-small);
}

/* Modal scrollbar */
.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-track {
  background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: var(--radius-full);
}

/* Modal responsive */
@media (max-width: 640px) {
  .modal-content {
    padding: var(--space-lg);
  }

  .modal-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .modal-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  .modal-title {
    font-size: var(--fs-h4);
  }

  .modal-badge {
    margin: 0 auto var(--space-lg);
  }
}

/* === FALLBACK FOR BACKDROP-FILTER === */
@supports not (backdrop-filter: blur(10px)) {
  .glass,
  .glass-card,
  .navbar.scrolled,
  .modal-overlay {
    background: rgba(18, 18, 42, 0.95);
  }
}
