/* 
 * Testfolio Premium Stylesheet
 * Contains design system, themes, layouts, and animations.
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* --- Theme Systems --- */
:root {
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-title: 'Space Grotesk', sans-serif;

  /* Default Theme: Midnight Neon */
  --bg-gradient: linear-gradient(135deg, #070714 0%, #03030a 100%);
  --bg-base: #04040c;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --primary: #00f2fe;
  --primary-glow: rgba(0, 242, 254, 0.4);
  --secondary: #a154f2;
  --secondary-glow: rgba(161, 84, 242, 0.3);
  
  --accent: #f43f5e;
  --accent-glow: rgba(244, 63, 94, 0.4);
  
  --glass-bg: rgba(13, 13, 33, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(0, 242, 254, 0.3);
  --glass-shadow: rgba(0, 0, 0, 0.5);
  
  --grid-color: rgba(0, 242, 254, 0.015);
  --grid-size: 50px;
}

[data-theme="solar"] {
  --bg-gradient: linear-gradient(135deg, #0f0b07 0%, #050402 100%);
  --bg-base: #060503;
  --text-primary: #fffbeb;
  --text-secondary: #d97706;
  --text-muted: #78350f;
  
  --primary: #ff7b00;
  --primary-glow: rgba(255, 123, 0, 0.4);
  --secondary: #eab308;
  --secondary-glow: rgba(234, 179, 8, 0.3);
  
  --accent: #ef4444;
  --accent-glow: rgba(239, 68, 68, 0.4);
  
  --glass-bg: rgba(22, 15, 10, 0.65);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-hover: rgba(255, 123, 0, 0.3);
  --glass-shadow: rgba(15, 7, 0, 0.6);
  
  --grid-color: rgba(255, 123, 0, 0.012);
}

[data-theme="cyber"] {
  --bg-gradient: linear-gradient(180deg, #000000 0%, #080808 100%);
  --bg-base: #000000;
  --text-primary: #00ff66;
  --text-secondary: #00cc52;
  --text-muted: #005a24;
  
  --primary: #00ff66;
  --primary-glow: rgba(0, 255, 102, 0.45);
  --secondary: #ff007f;
  --secondary-glow: rgba(255, 0, 127, 0.35);
  
  --accent: #00f0ff;
  --accent-glow: rgba(0, 240, 255, 0.4);
  
  --glass-bg: rgba(5, 5, 5, 0.85);
  --glass-border: rgba(0, 255, 102, 0.15);
  --glass-border-hover: rgba(255, 0, 127, 0.5);
  --glass-shadow: rgba(0, 255, 102, 0.05);
  
  --grid-color: rgba(0, 255, 102, 0.03);
  --grid-size: 40px;
}

/* --- Global Resets & Scroll --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg-gradient);
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Base Typo */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Background Grid Overlay */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  z-index: -2;
  pointer-events: none;
}

/* Morphing Glowing Blobs */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  z-index: -3;
  pointer-events: none;
  mix-blend-mode: screen;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: 10%;
  left: -10%;
  animation: morphBlob 20s infinite alternate ease-in-out;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: var(--secondary);
  bottom: 10%;
  right: -10%;
  animation: morphBlob 25s infinite alternate-reverse ease-in-out;
}

@keyframes morphBlob {
  0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; transform: translate(0, 0) scale(1); }
  100% { border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%; transform: translate(80px, -50px) scale(1.1); }
}

/* Dynamic Stars / Particles Canvas */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* Custom Cursor */
.custom-cursor {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: width 0.2s, height 0.2s, background-color 0.2s;
  box-shadow: 0 0 10px var(--primary);
}

.custom-cursor-glow {
  width: 32px;
  height: 32px;
  border: 1px solid var(--secondary);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.08s ease-out, width 0.2s, height 0.2s, border-color 0.2s;
}

body.cursor-hover .custom-cursor {
  width: 16px;
  height: 16px;
  background-color: var(--accent);
  box-shadow: 0 0 15px var(--accent);
}

body.cursor-hover .custom-cursor-glow {
  width: 48px;
  height: 48px;
  border-color: var(--accent);
  transform: translate(-50%, -50%) scale(1.2);
}

/* Hide default cursor on desktops */
@media (pointer: fine) {
  body {
    cursor: none;
  }
  a, button, [role="button"], input, textarea, select {
    cursor: none !important;
  }
}

/* --- Loader Section --- */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg-base);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.loader-logo {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logoPulse 1.5s infinite alternate ease-in-out;
  margin-bottom: 20px;
}

.loader-bar {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.loader-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  transition: width 0.1s linear;
}

@keyframes logoPulse {
  0% { filter: drop-shadow(0 0 5px var(--primary-glow)); transform: scale(0.98); }
  100% { filter: drop-shadow(0 0 20px var(--primary)); transform: scale(1.02); }
}

/* --- Header / Nav Bar --- */
.navbar {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  width: 90%;
  max-width: 850px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  padding: 12px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 30px var(--glass-shadow);
  transition: top 0.3s, border-color 0.3s;
}

.navbar:hover {
  border-color: var(--glass-border-hover);
}

.nav-logo {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary);
  animation: badgeGlow 1.5s infinite alternate ease-in-out;
}

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

.nav-link {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 20px;
  transition: color 0.3s, background-color 0.3s, transform 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.05);
}

.nav-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s, background-color 0.3s, transform 0.2s;
  position: relative;
}

.icon-btn:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.08);
}

/* Scroll progress top indicator */
.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1000;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--primary), var(--secondary));
}

/* --- Hero Section --- */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 20px 40px;
  position: relative;
}

.hero-badge-container {
  margin-bottom: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 15px var(--accent-glow);
  animation: badgePulse 2s infinite alternate ease-in-out;
  cursor: pointer;
  user-select: none;
}

.badge:hover {
  transform: scale(1.05);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  animation: badgeGlow 1s infinite alternate;
}

@keyframes badgeGlow {
  0% { box-shadow: 0 0 2px var(--accent); opacity: 0.5; }
  100% { box-shadow: 0 0 10px var(--accent); opacity: 1; }
}

@keyframes badgePulse {
  0% { box-shadow: 0 0 10px var(--accent-glow); }
  100% { box-shadow: 0 0 25px var(--accent-glow); }
}

.hero-title-container {
  overflow: hidden;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  background: linear-gradient(to right, var(--text-primary) 20%, var(--primary) 50%, var(--secondary) 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textFlow 8s linear infinite, slideReveal 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}

@keyframes textFlow {
  0% { background-position: 0% center; }
  100% { background-position: -200% center; }
}

@keyframes slideReveal {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 650px;
  margin-bottom: 40px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s cubic-bezier(0.25, 1, 0.5, 1) 0.6s forwards;
}

@keyframes fadeUp {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.hero-buttons {
  display: flex;
  gap: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s cubic-bezier(0.25, 1, 0.5, 1) 0.8s forwards;
}

/* Premium Buttons */
.btn {
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.3s, background-color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #04040c;
  border: none;
  box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: 0.75s;
  opacity: 0;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--primary);
}

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

.btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255,255,255,0.05);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1s ease 1.2s forwards;
}

.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheelAnimation 1.6s infinite ease-in-out;
}

@keyframes scrollWheelAnimation {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* --- Structural Sections --- */
section {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-tag {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Fade-in scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(5px);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Glass Card styles */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 10px 40px var(--glass-shadow);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: 0 15px 50px rgba(0, 242, 254, 0.1);
}

/* Spotlight Hover Effect */
.spotlight-card {
  position: relative;
}

.spotlight-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(
    250px circle at var(--mouse-x, 0) var(--mouse-y, 0),
    rgba(255, 255, 255, 0.12),
    transparent 40%
  );
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.5s;
  opacity: 0;
}

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

/* Glass Reflection Shine effect on Hover */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: 0.75s;
  pointer-events: none;
}

.glass-card:hover::before {
  left: 150%;
}

/* --- About Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-content h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.about-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.about-bullet-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.about-bullet-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.about-bullet-icon {
  color: var(--primary);
  display: flex;
  font-size: 1.1rem;
}

.about-profile {
  display: flex;
  justify-content: center;
}

.profile-glow-container {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  box-shadow: 0 0 30px var(--primary-glow);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatProfile 6s infinite ease-in-out;
}

@keyframes floatProfile {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}

.profile-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #0d0d21;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 4px solid var(--bg-base);
  overflow: hidden;
}

.profile-avatar-svg {
  width: 50%;
  height: 50%;
  fill: var(--text-secondary);
  margin-bottom: 12px;
}

.profile-placeholder span {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Projects Section --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.project-card {
  padding: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  transform: perspective(1000px);
}

.project-thumbnail {
  height: 200px;
  width: 100%;
  position: relative;
  overflow: hidden;
  border-top-left-radius: 23px;
  border-top-right-radius: 23px;
  background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.08) 100%);
}

.project-gradient-art {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--thumb-grad-start, var(--primary)), var(--thumb-grad-end, var(--secondary)));
  opacity: 0.65;
  transition: opacity 0.5s, transform 0.5s;
}

.project-card:hover .project-gradient-art {
  opacity: 0.9;
  transform: scale(1.05);
}

.project-placeholder-text {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: #fff;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.project-details {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-details h4 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.project-details p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

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

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

.project-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s, color 0.2s;
}

.project-link:hover {
  color: var(--text-primary);
  gap: 8px;
}

/* --- Skills Section --- */
.skills-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.skills-subsection h3 {
  font-size: 1.6rem;
  margin-bottom: 30px;
  color: var(--text-primary);
  border-left: 3px solid var(--primary);
  padding-left: 12px;
}

/* Pills list style */
.skills-pills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.skill-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.skill-pill:hover {
  color: var(--text-primary);
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 15px var(--primary-glow);
  transform: translateY(-2px);
}

.skill-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  fill: currentColor;
}

/* Circular indicators style */
.skills-circular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.skill-circular-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.circular-progress-wrap {
  width: 100px;
  height: 100px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}

.circular-progress-wrap svg {
  transform: rotate(-90deg);
}

.circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.04);
  stroke-width: 8;
}

.circle-val {
  fill: none;
  stroke: url(#skill-grad);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 251.2;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.progress-text {
  position: absolute;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.skill-circular-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* --- Timeline Section --- */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

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

.timeline-item {
  margin-bottom: 60px;
  position: relative;
  width: 50%;
  padding: 0 40px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 4px solid var(--primary);
  position: absolute;
  top: 10px;
  z-index: 5;
  box-shadow: 0 0 10px var(--primary);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -9px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -9px;
}

.timeline-content {
  padding: 24px;
  border-radius: 16px;
}

.timeline-item:hover .timeline-dot {
  background: var(--primary);
  box-shadow: 0 0 18px var(--primary);
  transform: scale(1.1);
  transition: 0.3s;
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
  display: block;
}

.timeline-content h4 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Fun Section --- */
.fun-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.fun-widget {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.widget-title {
  font-size: 1.1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
}

.widget-icon {
  color: var(--primary);
}

/* Quote Generator Styles */
.quote-text {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  min-height: 70px;
}

.quote-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-align: right;
  margin-bottom: 12px;
}

/* Dynamic Clock Styles */
.clock-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  flex-grow: 1;
}

.clock-time {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.clock-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Theme Switcher Widget Styles */
.theme-selector {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  justify-content: center;
}

.theme-opt-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s;
  cursor: pointer;
}

.theme-opt-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--primary);
  color: var(--text-primary);
}

.theme-opt-btn.active {
  background: rgba(0, 242, 254, 0.08);
  border-color: var(--primary);
  color: var(--text-primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.theme-dot-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--theme-color-val, var(--primary));
}

/* Fun Facts Widget Styles */
.fun-fact-box {
  min-height: 80px;
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Contact Section --- */
.contact-container {
  max-width: 650px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.form-input {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 15px var(--primary-glow);
}

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

.contact-btn {
  width: 100%;
  justify-content: center;
  cursor: pointer;
}

/* Success Banner */
.form-success-banner {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid #10b981;
  color: #10b981;
  border-radius: 12px;
  padding: 16px;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  animation: formSuccessFade 0.5s ease-out forwards;
}

@keyframes formSuccessFade {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.success-icon-svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* --- Infinite Marquee Banner --- */
.marquee-container {
  width: 100vw;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 20px 0;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin: 60px 0 30px;
}

.marquee-content {
  display: flex;
  white-space: nowrap;
  animation: marqueeAnimation 15s linear infinite;
  gap: 40px;
}

.marquee-item {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 16px;
}

.marquee-sep {
  width: 10px;
  height: 10px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary);
}

@keyframes marqueeAnimation {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* --- Footer Section --- */
footer {
  border-top: 1px solid var(--glass-border);
  background: rgba(5, 5, 15, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 40px 24px;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-link {
  color: var(--text-secondary);
  font-size: 1.25rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.social-link:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px var(--primary-glow);
}

.footer-copyright {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-text {
  font-family: var(--font-title);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: textGlowPulse 2s infinite alternate ease-in-out;
}

@keyframes textGlowPulse {
  0% { text-shadow: 0 0 4px var(--accent-glow); opacity: 0.8; }
  100% { text-shadow: 0 0 12px var(--accent); opacity: 1; }
}

/* --- Back To Top & Widgets --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: opacity 0.3s, transform 0.3s, border-color 0.3s;
  opacity: 0;
  pointer-events: none;
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 0 15px var(--primary-glow);
}

/* Keyboard Outline Accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px dashed var(--primary);
  outline-offset: 4px;
}

/* --- Developer Console (Konami Easter Egg) --- */
#dev-console-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10001;
  display: none;
  font-family: 'Space Grotesk', Courier, monospace;
  color: #00ff66;
  padding: 40px;
  flex-direction: column;
  overflow: auto;
  box-shadow: inset 0 0 100px rgba(0, 255, 102, 0.3);
}

#dev-console-overlay::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 10002;
  background-size: 100% 4px, 6px 100%;
  pointer-events: none;
}

.crt-header {
  font-size: 1.5rem;
  border-bottom: 2px solid #00ff66;
  padding-bottom: 10px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  justify-content: space-between;
}

.crt-history {
  flex-grow: 1;
  margin-bottom: 20px;
  white-space: pre-wrap;
  line-height: 1.6;
}

.crt-input-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.crt-prompt {
  font-weight: 700;
}

#crt-cmd-input {
  background: transparent;
  border: none;
  color: #00ff66;
  font-family: inherit;
  font-size: 1.1rem;
  flex-grow: 1;
}

#crt-cmd-input:focus {
  outline: none;
}

/* Keyboard Shortcut Help Overlay */
.shortcuts-help {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 99;
}

.shortcuts-toggle-btn {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: all 0.3s;
}

.shortcuts-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--primary);
}

.shortcuts-panel {
  position: absolute;
  bottom: 45px;
  left: 0;
  width: 250px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 35px var(--glass-shadow);
  display: none;
  flex-direction: column;
  gap: 12px;
}

.shortcuts-panel.visible {
  display: flex;
}

.shortcuts-panel h5 {
  font-size: 0.9rem;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 6px;
}

.shortcut-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.shortcut-key {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  padding: 2px 6px;
  font-family: var(--font-title);
  color: var(--primary);
}

/* --- Widget Text Transitions --- */
.quote-text, .quote-author, .fun-fact-box {
  transition: opacity 0.3s ease;
}

/* --- Ripple Click Effect --- */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: scale(0);
  animation: rippleExpand 0.5s ease-out forwards;
  pointer-events: none;
  z-index: 10;
}

@keyframes rippleExpand {
  0% { transform: scale(0); opacity: 0.5; }
  100% { transform: scale(4); opacity: 0; }
}

/* Project cards floating idle animation */
.project-card {
  animation: floatCard 6s ease-in-out infinite;
}
.project-card:nth-child(2n) {
  animation-delay: -1.5s;
}
.project-card:nth-child(3n) {
  animation-delay: -3s;
}

@keyframes floatCard {
  0%, 100% { transform: perspective(1000px) translateY(0); }
  50% { transform: perspective(1000px) translateY(-8px); }
}

/* Mobile hamburger button - hidden on desktop */
.mobile-menu-btn {
  display: none;
}

/* --- Media Queries --- */
@media (max-width: 868px) {
  .navbar {
    width: 95%;
    padding: 10px 16px;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }
  .nav-links.mobile-open {
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links .nav-link {
    font-size: 1.4rem;
    padding: 14px 28px;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-profile {
    order: -1;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .skills-container {
    grid-template-columns: 1fr;
  }
  .timeline::before {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
  }
  .timeline-item:nth-child(odd) {
    text-align: left;
  }
  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 11px;
  }
  .timeline-item:nth-child(even) {
    left: 0;
  }
  .shortcuts-help {
    display: none;
  }
  /* Hide custom cursor on touch screens */
  .custom-cursor, .custom-cursor-glow {
    display: none !important;
  }
  body {
    cursor: auto !important;
  }
}

/* Accessibility: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  .blob, .bg-grid, .scroll-wheel {
    animation: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .custom-cursor, .custom-cursor-glow {
    display: none !important;
  }
  body {
    cursor: auto !important;
  }
}
