/**
 * Chamika Sandeepa Ranasinha (CHAMI-csr) - Portfolio Stylesheet
 * Cyberpunk & Neo-Glassmorphism High-Performance Theme
 * Supports Seamless Cyber-Dark and Cyber-Light Modes
 */

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

/* ==========================================================================
   THEME VARIABLES
   ========================================================================== */
:root {
  /* Cyber Dark (Default) */
  --bg-base: #06080d;
  --bg-darker: #030407;
  --bg-surface: rgba(12, 17, 29, 0.75);
  --bg-surface-elevated: rgba(18, 26, 44, 0.85);
  --bg-glass: rgba(14, 20, 34, 0.6);
  --bg-glass-strong: rgba(15, 23, 42, 0.9);
  --bg-glass-hover: rgba(22, 33, 56, 0.7);

  --accent-cyan: #00f0ff;
  --accent-cyan-dim: rgba(0, 240, 255, 0.15);
  --accent-cyan-glow: 0 0 24px rgba(0, 240, 255, 0.5);

  --accent-purple: #a855f7;
  --accent-purple-dim: rgba(168, 85, 247, 0.15);
  --accent-purple-glow: 0 0 24px rgba(168, 85, 247, 0.5);

  --accent-green: #00ff9d;
  --accent-green-dim: rgba(0, 255, 157, 0.15);
  --accent-green-glow: 0 0 24px rgba(0, 255, 157, 0.5);

  --accent-amber: #f59e0b;
  --accent-amber-dim: rgba(245, 158, 11, 0.15);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-highlight: #ffffff;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glow-cyan: rgba(0, 240, 255, 0.4);
  --border-glow-purple: rgba(168, 85, 247, 0.4);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-display: 'Orbitron', 'Space Grotesk', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 35px rgba(0, 240, 255, 0.25);
  --shadow-purple-glow: 0 0 35px rgba(168, 85, 247, 0.25);

  --card-top-border: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  --floating-badge-bg: rgba(10, 15, 26, 0.9);
  --floating-badge-color: #ffffff;
  --input-bg: rgba(7, 10, 18, 0.7);
  --input-text: #ffffff;
  --navbar-scrolled-bg: rgba(6, 8, 13, 0.85);
  --modal-backdrop-bg: rgba(0, 0, 0, 0.85);
  --modal-box-bg: rgba(18, 26, 44, 0.95);
  --quote-color: #e2e8f0;
  --tag-bg: rgba(255, 255, 255, 0.05);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Cyber Light Mode Overrides */
[data-theme="cyber-light"] {
  --bg-base: #f0f4f8;
  --bg-darker: #e2e8f0;
  --bg-surface: rgba(255, 255, 255, 0.88);
  --bg-surface-elevated: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.8);
  --bg-glass-strong: rgba(255, 255, 255, 0.98);
  --bg-glass-hover: rgba(241, 245, 249, 0.95);

  --accent-cyan: #0284c7;
  --accent-cyan-dim: rgba(2, 132, 199, 0.12);
  --accent-cyan-glow: 0 0 20px rgba(2, 132, 199, 0.3);

  --accent-purple: #7c3aed;
  --accent-purple-dim: rgba(124, 58, 237, 0.12);
  --accent-purple-glow: 0 0 20px rgba(124, 58, 237, 0.3);

  --accent-green: #059669;
  --accent-green-dim: rgba(5, 150, 105, 0.12);
  --accent-green-glow: 0 0 20px rgba(5, 150, 105, 0.3);

  --accent-amber: #d97706;
  --accent-amber-dim: rgba(217, 119, 6, 0.12);

  --text-main: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --text-highlight: #0f172a;

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-glass: rgba(15, 23, 42, 0.12);
  --border-glow-cyan: rgba(2, 132, 199, 0.45);
  --border-glow-purple: rgba(124, 58, 237, 0.45);

  --shadow-card: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.18);
  --shadow-purple-glow: 0 0 25px rgba(124, 58, 237, 0.18);

  --card-top-border: linear-gradient(90deg, transparent, rgba(2, 132, 199, 0.25), transparent);
  --floating-badge-bg: rgba(255, 255, 255, 0.95);
  --floating-badge-color: #0f172a;
  --input-bg: #ffffff;
  --input-text: #0f172a;
  --navbar-scrolled-bg: rgba(255, 255, 255, 0.9);
  --modal-backdrop-bg: rgba(15, 23, 42, 0.65);
  --modal-box-bg: #ffffff;
  --quote-color: #0f172a;
  --tag-bg: rgba(15, 23, 42, 0.05);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  color-scheme: dark;
  transition: background-color var(--transition-normal);
}

[data-theme="cyber-light"] {
  color-scheme: light;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Text Selection */
::selection {
  background: var(--accent-cyan);
  color: #fff;
}

/* Base Canvas & Atmosphere */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

[data-theme="cyber-light"] #particle-canvas {
  opacity: 0.85;
}

.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
  will-change: transform;
}

[data-theme="cyber-light"] .ambient-glow {
  opacity: 0.08;
}

.glow-1 {
  top: -150px;
  left: -100px;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
}

.glow-2 {
  bottom: 10%;
  right: -100px;
  background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
}

.glow-3 {
  top: 50%;
  left: 30%;
  background: radial-gradient(circle, var(--accent-green) 0%, transparent 70%);
  opacity: 0.1;
}

/* Container & Section */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: 6.5rem 0;
  position: relative;
}

@media (max-width: 768px) {
  .section {
    padding: 4.5rem 0;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-highlight);
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: var(--text-muted);
}

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

a:hover {
  color: var(--text-highlight);
  text-shadow: 0 0 10px var(--accent-cyan);
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #38bdf8 30%, var(--accent-purple) 70%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 4rem auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--accent-cyan-dim);
  border: 1px solid var(--border-glow-cyan);
  border-radius: var(--radius-full);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Glassmorphic Card */
.glass-card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-normal);
  position: relative;
  overflow: hidden;
}

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

.glass-card:hover {
  border-color: var(--border-glow-cyan);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* Cyber Box Corner Accents */
.cyber-box {
  position: relative;
}
.cyber-box::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 14px;
  height: 14px;
  border-bottom: 2px solid var(--accent-cyan);
  border-right: 2px solid var(--accent-cyan);
  pointer-events: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  outline: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #0284c7 100%);
  color: #ffffff;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.35);
}

[data-theme="cyber-dark"] .btn-primary {
  color: #030712;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #38bdf8 0%, var(--accent-cyan) 100%);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.65);
  transform: translateY(-2px);
  color: #ffffff;
}

[data-theme="cyber-dark"] .btn-primary:hover {
  color: #000000;
}

.btn-outline {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-highlight);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
  transform: translateY(-2px);
}

.btn-purple {
  background: linear-gradient(135deg, var(--accent-purple) 0%, #7c3aed 100%);
  color: #ffffff;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.35);
}

.btn-purple:hover {
  background: linear-gradient(135deg, #c084fc 0%, var(--accent-purple) 100%);
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.65);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-sm {
  padding: 0.5rem 1.15rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  padding: 0.75rem 0;
  background: var(--navbar-scrolled-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-highlight);
}

.brand-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

[data-theme="cyber-dark"] .brand-logo .logo-icon {
  color: #030712;
}

.brand-logo span.tag {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

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

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-cyan);
  transition: width var(--transition-fast);
  box-shadow: 0 0 8px var(--accent-cyan);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-highlight);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Sound & Theme Controls */
.control-btn {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1.15rem;
}

.control-btn:hover, .control-btn.active {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
  background: var(--accent-cyan-dim);
}

.menu-toggle {
  display: none;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Mobile Nav Drawer */
@media (max-width: 992px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 340px;
    height: 100vh;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(25px);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2.5rem 3rem 2.5rem;
    gap: 1.5rem;
    border-left: 1px solid var(--border-glass);
    transition: right var(--transition-normal);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.4);
  }

  .nav-link {
    font-size: 1.15rem;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 7.5rem;
  padding-bottom: 4rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.15rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-highlight);
  width: fit-content;
  box-shadow: var(--shadow-card);
}

@media (max-width: 992px) {
  .status-badge {
    margin: 0 auto;
  }
}

.status-pulse {
  width: 10px;
  height: 10px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulseGlow 2s infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  font-weight: 800;
  line-height: 1.1;
}

.hero-subtitle-box {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2rem;
}

@media (max-width: 992px) {
  .hero-subtitle-box {
    justify-content: center;
  }
}

.typed-cursor {
  display: inline-block;
  width: 3px;
  height: 1.3em;
  background-color: var(--accent-cyan);
  animation: cursorBlink 0.8s infinite;
  vertical-align: middle;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 580px;
}

@media (max-width: 992px) {
  .hero-description {
    margin: 0 auto;
  }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.75rem;
}

@media (max-width: 992px) {
  .hero-cta {
    justify-content: center;
  }
}

.hero-tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

@media (max-width: 992px) {
  .hero-tech-pills {
    justify-content: center;
  }
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tech-pill i {
  color: var(--accent-cyan);
}

/* Avatar Frame & Cyber Rings */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.avatar-wrapper {
  position: relative;
  width: 360px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 576px) {
  .avatar-wrapper {
    width: 290px;
    height: 290px;
  }
}

.cyber-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.cyber-ring-outer {
  width: 108%;
  height: 108%;
  border: 2px dashed rgba(0, 240, 255, 0.4);
  animation: rotateClockwise 30s linear infinite;
}

.cyber-ring-middle {
  width: 118%;
  height: 118%;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-top-color: var(--accent-purple);
  border-bottom-color: var(--accent-cyan);
  animation: rotateCounterClockwise 20s linear infinite;
}

.avatar-frame {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple), var(--accent-green));
  box-shadow: var(--shadow-glow);
  position: relative;
  z-index: 2;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) brightness(1.02);
  transition: transform var(--transition-slow);
}

.avatar-wrapper:hover .avatar-img {
  transform: scale(1.03);
}

/* Floating Cyber Badge Pills */
.floating-badge {
  position: absolute;
  z-index: 3;
  padding: 0.65rem 1.15rem;
  background: var(--floating-badge-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glow-cyan);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--floating-badge-color);
  box-shadow: var(--shadow-card);
  white-space: nowrap;
  animation: floatUpDown 6s ease-in-out infinite;
}

.badge-top-right {
  top: 5%;
  right: -25px;
  border-color: var(--border-glow-cyan);
}

.badge-bottom-left {
  bottom: 5%;
  left: -25px;
  border-color: var(--border-glow-purple);
  animation-delay: -3s;
}

@media (max-width: 768px) {
  .badge-top-right {
    right: 0;
  }
  .badge-bottom-left {
    left: 0;
  }
}

/* ==========================================================================
   ABOUT & STATS SECTION
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.stat-icon {
  font-size: 2.2rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  display: inline-block;
  background: var(--accent-cyan-dim);
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 14px;
}

.stat-number {
  font-size: 2.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text-highlight);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-weight: 600;
  color: var(--text-highlight);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.stat-detail {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.ethos-quote {
  padding: 1.5rem;
  border-left: 3px solid var(--accent-cyan);
  background: var(--accent-cyan-dim);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--quote-color);
  margin: 1.5rem 0;
  font-size: 1rem;
  line-height: 1.7;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.highlight-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.highlight-item:hover {
  border-color: var(--border-glow-cyan);
  transform: translateX(6px);
}

.highlight-icon {
  font-size: 1.5rem;
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
  padding: 0.6rem;
  border-radius: 10px;
  flex-shrink: 0;
}

.highlight-content h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.highlight-content p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
.skills-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent-cyan-dim);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

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

.skill-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--transition-normal);
}

.skill-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skill-title-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.skill-icon {
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tag-bg);
}

.skill-name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-highlight);
}

.skill-level-num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.skill-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(125, 125, 125, 0.15);
  border-radius: 3px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-lg);
  position: relative;
}

.project-banner {
  height: 160px;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.project-banner-icon {
  font-size: 4rem;
  position: absolute;
  right: 15px;
  top: 10px;
  opacity: 0.15;
  color: #fff;
}

.project-badge {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 1;
}

.project-lang-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: var(--bg-surface);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.project-title {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.project-tagline {
  font-size: 0.95rem;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
  font-weight: 500;
}

.project-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: var(--tag-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

/* Project Modal Details */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--modal-backdrop-bg);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--modal-box-bg);
  border: 1px solid var(--border-glow-cyan);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  box-shadow: 0 0 50px rgba(0, 240, 255, 0.25);
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-backdrop.active .modal-box {
  transform: translateY(0) scale(1);
}

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

.modal-close:hover {
  color: var(--text-highlight);
  border-color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
}

.modal-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.modal-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-main);
}

.modal-highlights li i {
  color: var(--accent-cyan);
  margin-top: 0.2rem;
}

/* ==========================================================================
   GITHUB LIVE ACTIVITY SECTION
   ========================================================================== */
.github-hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 900px) {
  .github-hub-grid {
    grid-template-columns: 1fr;
  }
}

.github-profile-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gh-user-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.gh-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.gh-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gh-metric-box {
  background: var(--tag-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
}

.gh-metric-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

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

.gh-badges-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.gh-badge-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
  border: 1px solid var(--border-subtle);
}

.recent-repos-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.repo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.repo-item:hover {
  border-color: var(--border-glow-cyan);
  transform: translateX(6px);
}

.repo-title {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-highlight);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.repo-title i {
  color: var(--accent-cyan);
}

/* ==========================================================================
   INTERACTIVE CLI DEVELOPER TERMINAL (Always High-Contrast Dark Console)
   ========================================================================== */
.terminal-wrapper {
  background: #030508;
  border: 1px solid var(--border-glow-cyan);
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.15);
  overflow: hidden;
  font-family: var(--font-mono);
}

.terminal-header {
  background: #0c111c;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.terminal-title {
  font-size: 0.85rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.terminal-body {
  padding: 1.5rem;
  height: 380px;
  overflow-y: auto;
  font-size: 0.9rem;
  color: #a7f3d0;
  line-height: 1.6;
  background: #030508;
}

.terminal-output {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.term-line {
  word-break: break-word;
}
.term-cyan { color: #00f0ff; }
.term-purple { color: #c084fc; }
.term-green { color: #34d399; }
.term-yellow { color: #fde047; }
.term-muted { color: #64748b; }

.terminal-input-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.term-prompt {
  color: #00f0ff;
  font-weight: 700;
  white-space: nowrap;
}

.terminal-input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff !important;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  width: 100%;
}

.terminal-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.term-hint-btn {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  color: #00f0ff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.term-hint-btn:hover {
  background: #00f0ff;
  color: #000;
}

/* Matrix Rain Fullscreen Canvas */
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  pointer-events: auto;
}

.matrix-close-btn {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 10000;
  background: #000;
  border: 1px solid #00ff9d;
  color: #00ff9d;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.5);
  display: none;
}

/* ==========================================================================
   GAMING & HARDWARE ZONE
   ========================================================================== */
.gaming-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 900px) {
  .gaming-grid {
    grid-template-columns: 1fr;
  }
}

.specs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (max-width: 600px) {
  .specs-list {
    grid-template-columns: 1fr;
  }
}

.spec-item {
  padding: 1.25rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.spec-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.spec-val {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-highlight);
}

/* ==========================================================================
   CONTACT SECTION & FORM
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-icon.whatsapp { background: rgba(37, 211, 102, 0.15); color: #25d366; border: 1px solid rgba(37, 211, 102, 0.35); }
.contact-icon.email { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.contact-icon.discord { background: rgba(114, 137, 218, 0.15); color: #7289da; border: 1px solid rgba(114, 137, 218, 0.3); }
.contact-icon.coffee { background: rgba(255, 221, 0, 0.15); color: #d97706; border: 1px solid rgba(255, 221, 0, 0.3); }
.contact-icon.social { background: rgba(0, 240, 255, 0.15); color: var(--accent-cyan); border: 1px solid var(--border-glow-cyan); }

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #ffffff !important;
  box-shadow: 0 0 25px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #4ade80 0%, #25d366 100%);
  box-shadow: 0 0 35px rgba(37, 211, 102, 0.65);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.contact-details h4 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
  color: var(--text-highlight);
}

.contact-details p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-highlight);
}

.form-control {
  width: 100%;
  padding: 0.9rem 1.25rem;
  background: var(--input-bg);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--input-text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.form-control::placeholder {
  color: var(--text-dim);
}

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

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  padding: 1rem 1.5rem;
  background: var(--bg-surface-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glow-cyan);
  box-shadow: var(--shadow-card);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--text-highlight);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInRight 0.3s ease;
  min-width: 280px;
}

.toast.success {
  border-color: var(--accent-green);
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.3);
}

.toast.error {
  border-color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: 4rem 0 2rem 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-darker);
  position: relative;
  transition: background-color var(--transition-normal);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.25rem;
  transition: all var(--transition-fast);
}

.social-btn:hover {
  color: var(--text-highlight);
  border-color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glow-cyan);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  cursor: pointer;
  z-index: 900;
  box-shadow: var(--shadow-card);
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
}

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

.back-to-top-btn:hover {
  background: var(--accent-cyan);
  color: #ffffff;
  transform: translateY(-4px);
}
