/* ============================================
   RASAJ PUTUWAR — PORTFOLIO DESIGN SYSTEM
   Global Styles, Animations & Components
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Colors */
  --bg-dark: #0a0a1a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --bg-nav: rgba(10, 10, 26, 0.85);
  --accent-blue: #00d4ff;
  --accent-orange: #ff6b35;
  --accent-purple: #a855f7;
  --accent-green: #10b981;
  --text-primary: #e8e8f0;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 212, 255, 0.3);
  --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.15);
  --gradient-accent: linear-gradient(135deg, var(--accent-blue), var(--accent-orange));
  --gradient-hero: linear-gradient(135deg, #0a0a1a 0%, #1a1a3e 50%, #0a0a1a 100%);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --nav-height: 72px;
  --section-padding: 80px;
  --container-max: 1100px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color 0.3s var(--ease-smooth);
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

/* ===== NAVIGATION BAR ===== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 30px;
  transition: background 0.3s var(--ease-smooth);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid rgba(0, 212, 255, 0.3);
  transition: border-color 0.3s, transform 0.3s;
}

.nav-logo img:hover {
  border-color: var(--accent-orange);
  transform: scale(1.08);
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s var(--ease-smooth);
  white-space: nowrap;
}

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

.nav-links a .nav-icon {
  font-size: 15px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1002;
  background: none;
  border: none;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-smooth);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
  background: var(--accent-orange);
}

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

.hamburger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
  background: var(--accent-orange);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: rgba(10, 10, 26, 0.97);
  backdrop-filter: blur(30px);
  z-index: 1001;
  padding: 90px 24px 40px;
  flex-direction: column;
  gap: 8px;
  transition: right 0.4s var(--ease-smooth);
  border-left: 1px solid var(--border-subtle);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s;
}

.mobile-overlay.open {
  opacity: 1;
}

/* ===== PAGE LAYOUT ===== */
.page-body {
  padding-top: var(--nav-height);
  min-height: 100vh;
}

.section {
  padding: var(--section-padding) 24px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.section-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  margin-bottom: 12px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 600px;
}

/* ===== GLASS CARD ===== */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.4s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 212, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s var(--ease-smooth);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--accent-blue);
  border: 1.5px solid var(--accent-blue);
}

.btn-outline:hover {
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-2px);
  color: var(--accent-blue);
}

/* ===== TAGS / PILLS ===== */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tag-blue {
  background: rgba(0, 212, 255, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.tag-orange {
  background: rgba(255, 107, 53, 0.12);
  color: var(--accent-orange);
  border: 1px solid rgba(255, 107, 53, 0.2);
}

.tag-purple {
  background: rgba(168, 85, 247, 0.12);
  color: var(--accent-purple);
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.tag-green {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ===== SKILL BARS ===== */
.skill-bar-container {
  margin-bottom: 20px;
}

.skill-bar-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}

.skill-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--gradient-accent);
  width: 0%;
  transition: width 1.5s var(--ease-smooth);
}

/* ===== FOOTER ===== */
.site-footer {
  text-align: center;
  padding: 30px 24px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer .footer-socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.site-footer .footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 18px;
  transition: all 0.3s;
}

.site-footer .footer-socials a:hover {
  background: var(--bg-card-hover);
  color: var(--accent-blue);
  border-color: var(--border-glow);
  transform: translateY(-3px);
}

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

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

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

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

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

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

/* ===== ANIMATED GRADIENT TEXT ===== */
.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== GLOW IMAGE ===== */
.glow-image {
  border-radius: 16px;
  border: 2px solid rgba(0, 212, 255, 0.2);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.1);
  transition: all 0.4s;
}

.glow-image:hover {
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 50px rgba(0, 212, 255, 0.2);
  transform: scale(1.02);
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-blue), var(--accent-orange));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-blue);
  border: 2px solid var(--bg-dark);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .mobile-overlay {
    display: block;
    pointer-events: none;
  }

  .mobile-overlay.open {
    pointer-events: auto;
  }

  :root {
    --section-padding: 50px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 40px 16px;
  }

  .glass-card {
    padding: 20px;
  }

  :root {
    --nav-height: 64px;
  }
}

/* ===== PARTICLE CANVAS ===== */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.9);
  transition: transform 0.3s;
}

.lightbox-overlay.active img {
  transform: scale(1);
}

/* ===== CURSOR GLOW ===== */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.07), transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
  mix-blend-mode: screen;
}

@media (hover: none) {
  .cursor-glow { display: none; }
}

/* ===== ENHANCED GLASS CARD GLOW ===== */
.glass-card {
  position: relative;
}

.glass-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.5s;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 212, 255, 0.06),
    transparent 40%
  );
  pointer-events: none;
  z-index: 0;
}

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

/* ===== STAGGER ANIMATION DELAYS ===== */
.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.4s; }
.reveal:nth-child(7) { transition-delay: 0.48s; }

/* ===== PAGE TRANSITION FADE ===== */
.page-body {
  animation: pageFadeIn 0.6s ease-out;
}

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

/* ===== VIGNETTE OVERLAY ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
  z-index: 9998;
}

/* ===== 3D PERSPECTIVE TILT CARDS ===== */
.tilt-card {
  transition: transform 0.15s ease-out, box-shadow 0.3s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-card:hover {
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.25), 0 0 80px rgba(255, 107, 53, 0.15);
}

/* ===== AUDIO EQUALIZER HUD ===== */
.equalizer-hud {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  padding: 0 6px;
}

.eq-bar {
  width: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
  animation: eqPulse 1.2s ease-in-out infinite alternate;
}

.eq-bar:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.eq-bar:nth-child(2) { height: 80%; animation-delay: 0.3s; }
.eq-bar:nth-child(3) { height: 100%; animation-delay: 0.2s; }
.eq-bar:nth-child(4) { height: 60%; animation-delay: 0.4s; }

@keyframes eqPulse {
  0% { height: 20%; opacity: 0.5; }
  100% { height: 100%; opacity: 1; filter: drop-shadow(0 0 6px var(--accent-blue)); }
}

/* ===== CLICK SPARKLE PARTICLES ===== */
.sparkle-particle {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  z-index: 99999;
  animation: sparkleFade 0.7s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes sparkleFade {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}

/* ===== CYBER GLITCH TEXT EFFECT ===== */
.glitch-hover:hover {
  animation: glitchText 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  text-shadow: 2px 0 var(--accent-orange), -2px 0 var(--accent-blue);
}

@keyframes glitchText {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
  100% { transform: translate(0); }
}

/* ===== NEON PULSE BADGES ===== */
.floating-badge {
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
  transition: all 0.3s var(--ease-smooth);
}

.floating-badge:hover {
  transform: scale(1.15) translateY(-5px) !important;
  box-shadow: 0 0 25px rgba(255, 107, 53, 0.5);
  border-color: var(--accent-orange);
}

