/* ===================================================================
   CYBERSECURITY PORTFOLIO DESIGN SYSTEM & STYLESHEET
   Author: Sujal Gayakwad
   Theme: Professional Recruiter-Ready Cyber Project Hub (Dark Mode)
   Engine: 100% Pure CSS (GitHub Pages Ready, Zero External Frameworks)
=================================================================== */

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

:root {
  /* Sunset Velvet Dark Mode Palette */
  --bg-primary: #121212;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #262626;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --bg-card-border: rgba(255, 255, 255, 0.06);
  --bg-card-border-hover: rgba(255, 255, 255, 0.15);

  --accent-cyan: #fb923c; /* Sunset Orange */
  --accent-blue: #fcd34d; /* Warm Amber */
  --accent-emerald: #f43f5e; /* Rose */
  --accent-purple: #e879f9; /* Soft Pink/Purple */
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --terminal-green: #fb923c;
  --terminal-prompt: #f43f5e;

  --gradient-cyan-blue: linear-gradient(135deg, #fb923c 0%, #f43f5e 100%);
  --gradient-purple-cyan: linear-gradient(135deg, #f43f5e 0%, #fb923c 100%);
  --gradient-cyber: linear-gradient(135deg, #e879f9 0%, #fb923c 100%);
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);

  --text-main: #fcfcfc;
  --text-muted: #d4d4d8;
  --text-dim: #a1a1aa;
  --border-subtle: rgba(255, 255, 255, 0.08);

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.45);
  --shadow-glow-cyan: 0 0 30px rgba(251, 146, 60, 0.25);

  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout & Safe Areas */
  --header-height: 78px;
  --dock-height: 64px;
  --max-width: 1240px;
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 20px;
  --border-radius-pill: 9999px;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: radial-gradient(circle at 50% -20%, #4c0519 0%, #121212 60%, #121212 100%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

body.nav-open,
body.modal-open {
  overflow: hidden;
}

::selection {
  background: var(--accent-cyan);
  color: #07090e;
}

::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

button, input, textarea, select {
  font-family: inherit;
  color: inherit;
  outline: none;
  border: none;
}

/* ================= Futuristic Cyber Background & Ambience ================= */
.cyber-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(251, 146, 60, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 146, 60, 0.04) 1px, transparent 1px);
  background-size: 55px 55px;
  background-position: center center;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 65%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 65%, transparent 95%);
  animation: gridPerspectiveShift 25s ease-in-out infinite alternate;
}

@keyframes gridPerspectiveShift {
  0% { transform: perspective(800px) rotateX(2deg) scale(1) translateY(0); }
  50% { transform: perspective(800px) rotateX(5deg) scale(1.05) translateY(-12px); }
  100% { transform: perspective(800px) rotateX(2deg) scale(1) translateY(0); }
}

.cyber-scanner-line {
  position: fixed;
  top: -10%;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(251, 146, 60, 0.15) 20%, rgba(251, 146, 60, 0.8) 50%, rgba(244, 63, 94, 0.8) 75%, transparent 100%);
  box-shadow: 0 0 18px rgba(251, 146, 60, 0.75), 0 0 35px rgba(251, 146, 60, 0.35);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  animation: cyberScanSweep 14s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes cyberScanSweep {
  0% { top: -5%; opacity: 0; height: 1px; }
  15% { opacity: 0.6; height: 4px; }
  85% { opacity: 0.6; height: 4px; }
  100% { top: 105%; opacity: 0; height: 1px; }
}

.mouse-glow-follower {
  position: fixed;
  width: 580px;
  height: 580px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.08) 0%, rgba(232, 121, 249, 0.04) 40%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: left, top;
}
.mouse-glow-follower.active {
  opacity: 1;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

.ambient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.28;
  mix-blend-mode: screen;
  will-change: transform;
}

.ambient-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.85) 0%, rgba(252, 211, 77, 0.4) 50%, transparent 70%);
  top: -120px;
  right: -100px;
  animation: orbDrift1 20s infinite alternate ease-in-out;
}

.ambient-orb-2 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(232, 121, 249, 0.8) 0%, rgba(99, 102, 241, 0.35) 50%, transparent 70%);
  bottom: 5%;
  left: -150px;
  animation: orbDrift2 24s infinite alternate ease-in-out;
}

.ambient-orb-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.75) 0%, rgba(251, 146, 60, 0.35) 50%, transparent 70%);
  top: 40%;
  right: 5%;
  opacity: 0.22;
  animation: orbDrift3 28s infinite alternate ease-in-out;
}

.ambient-orb-4 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.65) 0%, rgba(232, 121, 249, 0.25) 50%, transparent 70%);
  top: 65%;
  left: 28%;
  opacity: 0.18;
  animation: orbDrift4 22s infinite alternate ease-in-out;
}

@keyframes orbDrift1 {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50% { transform: translate(-120px, 150px) scale(1.3) rotate(180deg); }
  100% { transform: translate(60px, 200px) scale(0.8) rotate(360deg); }
}

@keyframes orbDrift2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(160px, -120px) scale(1.4); }
  100% { transform: translate(-80px, -160px) scale(0.9); }
}

@keyframes orbDrift3 {
  0% { transform: translate(0, 0) scale(0.95); }
  50% { transform: translate(-140px, -100px) scale(1.35); }
  100% { transform: translate(80px, 120px) scale(1); }
}

@keyframes orbDrift4 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-100px, 140px) scale(1.25); }
  100% { transform: translate(120px, -90px) scale(0.85); }
}

.scroll-indicator-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-purple-cyan);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* ================= Containers & Sections ================= */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  position: relative;
  z-index: 1;
}

section {
  padding: clamp(65px, 8vw, 100px) 0;
  position: relative;
  z-index: 1;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--border-radius-pill);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(251, 146, 60, 0.08);
  border: 1px solid rgba(251, 146, 60, 0.25);
  color: var(--accent-cyan);
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--terminal-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--terminal-green);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.gradient-text {
  background: var(--gradient-purple-cyan);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* ================= Header & Navbar ================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: background var(--transition-normal), backdrop-filter var(--transition-normal), height var(--transition-fast);
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  background: rgba(7, 9, 14, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3.5vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-symbol {
  width: 32px;
  height: 32px;
  background: var(--gradient-purple-cyan);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: #07090e;
  box-shadow: 0 0 16px rgba(251, 146, 60, 0.35);
  flex-shrink: 0;
}

.logo-dot {
  color: var(--accent-cyan);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 28px);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-purple-cyan);
  transition: var(--transition-fast);
  border-radius: 2px;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.mobile-nav-cta {
  display: none;
}

.sound-toggle-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-pill);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.sound-toggle-btn:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(251, 146, 60, 0.08);
}

.sound-toggle-btn.muted svg {
  opacity: 0.35;
}

/* Animated Cyber Hamburger Button */
.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-sm);
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  position: relative;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  color: var(--text-main);
  z-index: 1001;
}

.mobile-menu-btn:hover {
  background: rgba(251, 146, 60, 0.08);
  border-color: var(--accent-cyan);
}

.hamburger-box {
  width: 20px;
  height: 14px;
  display: inline-block;
  position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 20px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  position: absolute;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, opacity 0.2s ease;
}

.hamburger-inner {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-inner::before {
  content: '';
  top: -6px;
}

.hamburger-inner::after {
  content: '';
  bottom: -6px;
}

.mobile-menu-btn.active .hamburger-inner {
  background-color: transparent;
}

.mobile-menu-btn.active .hamburger-inner::before {
  transform: translateY(6px) rotate(45deg);
  background-color: var(--accent-cyan);
}

.mobile-menu-btn.active .hamburger-inner::after {
  transform: translateY(-6px) rotate(-45deg);
  background-color: var(--accent-cyan);
}

/* Nav Drawer Backdrop */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 998;
}

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

/* ================= Buttons ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 24px;
  border-radius: var(--border-radius-pill);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-purple-cyan);
  color: #f8fafc;
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 25px rgba(59, 130, 246, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(251, 146, 60, 0.3);
  color: var(--accent-cyan);
}

.btn-outline:hover {
  background: rgba(251, 146, 60, 0.1);
  border-color: var(--accent-cyan);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.84rem;
}

/* ================= Hero Section ================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 20px);
  padding-bottom: clamp(40px, 8vw, 70px);
  overflow: hidden;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: clamp(30px, 4vw, 50px);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.terminal-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px clamp(8px, 2.5vw, 14px);
  border-radius: var(--border-radius-sm);
  background: rgba(12, 16, 23, 0.9);
  border: 1px solid rgba(251, 146, 60, 0.2);
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 2.2vw, 0.82rem);
  color: var(--accent-cyan);
  margin-bottom: 18px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.terminal-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #f43f5e; }

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 5.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.terminal-typing-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: clamp(0.82rem, 2.6vw, 1.35rem);
  font-weight: 600;
  color: var(--accent-cyan);
  min-height: 2.2rem;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.02);
  padding: 6px 14px;
  border-radius: 8px;
  border-left: 3px solid var(--accent-cyan);
  max-width: 100%;
  width: fit-content;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.terminal-typing-prompt {
  color: var(--text-dim);
  flex-shrink: 0;
}

.terminal-cursor {
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background: var(--accent-cyan);
  animation: blink 0.8s infinite;
  flex-shrink: 0;
}

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

.hero-desc {
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  min-height: 40px;
  border-radius: var(--border-radius-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition-fast);
  user-select: none;
}

.social-pill svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.social-pill:hover {
  background: rgba(251, 146, 60, 0.08);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.social-pill.linkedin:hover {
  background: rgba(10, 102, 194, 0.15);
  border-color: #0a66c2;
  color: #fcd34d;
}

.social-pill.github:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.social-pill.instagram:hover {
  background: rgba(225, 48, 108, 0.15);
  border-color: #e1306c;
  color: #f43f5e;
}

/* Avatar Card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}

.avatar-wrapper {
  position: relative;
  width: min(360px, 85vw);
  max-width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.avatar-glow {
  position: absolute;
  inset: -12px;
  background: var(--gradient-purple-cyan);
  border-radius: 34px;
  filter: blur(35px);
  opacity: 0.38;
  z-index: -1;
  animation: glowPulse 4s infinite alternate ease-in-out;
}

@keyframes glowPulse {
  0% { opacity: 0.28; transform: scale(0.96); }
  100% { opacity: 0.52; transform: scale(1.03); }
}

.avatar-card {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.avatar-card:hover .avatar-img {
  transform: scale(1.04);
}

/* Floating Chips */
.floating-chip {
  position: absolute;
  padding: 8px 14px;
  background: rgba(12, 16, 23, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--border-radius-md);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
  font-size: 0.82rem;
  font-weight: 600;
  animation: floatChip 5s infinite ease-in-out alternate;
  max-width: 90%;
}

.floating-chip-1 { top: 12px; left: -14px; }
.floating-chip-2 { bottom: 25px; right: -14px; animation-delay: -2.5s; }
.floating-chip-3 { bottom: -12px; left: 18px; animation-delay: -1.2s; }

@keyframes floatChip {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

.chip-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.chip-icon.cyan { background: rgba(251, 146, 60, 0.15); color: var(--accent-cyan); }
.chip-icon.purple { background: rgba(232, 121, 249, 0.15); color: var(--accent-purple); }
.chip-icon.emerald { background: rgba(244, 63, 94, 0.15); color: var(--accent-emerald); }

/* ================= Section 2: About Me ================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 45px;
  align-items: center;
}

.about-text-col p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 18px;
}

.about-text-col strong {
  color: var(--text-main);
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.pillar-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  padding: 16px;
  transition: var(--transition-fast);
}

.pillar-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(251, 146, 60, 0.3);
  transform: translateY(-2px);
}

.pillar-icon {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.pillar-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.pillar-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* About Details Card */
.about-details-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}

.about-info-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
}

.info-item {
  display: flex;
  flex-direction: column;
}

.info-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.info-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.social-cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-connect-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  transition: var(--transition-normal);
}

.social-connect-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
}

.social-connect-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-avatar-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-connect-card.linkedin .social-avatar-icon {
  background: rgba(10, 102, 194, 0.15);
  color: #fcd34d;
}
.social-connect-card.github .social-avatar-icon {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.social-connect-card.instagram .social-avatar-icon {
  background: rgba(225, 48, 108, 0.15);
  color: #f43f5e;
}

.social-connect-card.linkedin:hover { border-color: #0a66c2; }
.social-connect-card.github:hover { border-color: #fff; }
.social-connect-card.instagram:hover { border-color: #e1306c; }

.social-info-name { font-weight: 600; font-size: 0.9rem; }
.social-info-handle { font-size: 0.78rem; color: var(--text-dim); font-family: var(--font-mono); }
.social-arrow-icon { color: var(--text-dim); transition: transform var(--transition-fast); }
.social-connect-card:hover .social-arrow-icon { transform: translateX(3px); color: var(--text-main); }

/* ================= Section 3: PROJECTS (THE CORE FOCUS) ================= */
.project-filters-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.project-filter-btn {
  padding: 8px 18px;
  border-radius: var(--border-radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.project-filter-btn:hover,
.project-filter-btn.active {
  background: var(--gradient-purple-cyan);
  color: #07090e;
  font-weight: 600;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(251, 146, 60, 0.28);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  backdrop-filter: blur(14px);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--bg-card-border-hover);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), var(--shadow-glow-cyan);
}

.project-thumbnail {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  background: #0f141f;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.project-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  border-radius: var(--border-radius-pill);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(7, 9, 14, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: var(--accent-cyan);
  z-index: 2;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(7, 9, 14, 0.95) 100%);
  pointer-events: none;
}

.project-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-main);
}

.project-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-muted);
}

.tech-tag.cyan {
  color: var(--accent-cyan);
  border-color: rgba(251, 146, 60, 0.25);
  background: rgba(251, 146, 60, 0.05);
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

/* ================= PROJECT DETAILS MODAL ================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: clamp(10px, 3vw, 24px);
}

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

.modal-container {
  background: #0b0f17;
  border: 1px solid rgba(251, 146, 60, 0.25);
  border-radius: var(--border-radius-lg);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), var(--shadow-glow-cyan);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(12, 16, 23, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: var(--transition-fast);
  backdrop-filter: blur(8px);
}

.modal-close-btn:hover {
  background: var(--accent-rose);
  transform: rotate(90deg);
}

.modal-header-img {
  width: 100%;
  height: clamp(160px, 32vw, 260px);
  object-fit: cover;
}

.modal-content-inner {
  padding: clamp(16px, 4vw, 32px);
}

.modal-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3.8vw, 1.75rem);
  font-weight: 800;
  margin-bottom: 6px;
  word-break: break-word;
}

.modal-tagline {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
}

/* Structured Q&A Presentation */
.modal-section-block {
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-section-title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.modal-section-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.technical-evidence-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.technical-evidence-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.6;
}

.evidence-bullet {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-weight: 700;
  flex-shrink: 0;
}

.modal-action-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ================= Section 4: CYBERSECURITY COMPETITIONS / CTFs ================= */
.competitions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.competition-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  padding: 24px;
  backdrop-filter: blur(12px);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.competition-card:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 146, 60, 0.3);
  box-shadow: var(--shadow-sm);
}

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

.comp-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}

.comp-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: var(--border-radius-pill);
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.comp-involvement {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.comp-meta-row {
  margin-bottom: 12px;
}

.comp-meta-label {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.comp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.comp-learned {
  font-size: 0.88rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 14px;
  border-radius: 8px;
  border-left: 2px solid var(--accent-purple);
  margin-bottom: 18px;
  margin-top: auto;
}

.comp-evidence-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.comp-evidence-btn:hover {
  text-decoration: underline;
}

/* ================= Section 5: PRACTICAL LEARNING (TRYHACKME / HTB) ================= */
.practical-labs-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  padding: 32px;
  backdrop-filter: blur(14px);
}

.lab-stats-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.lab-stat-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  padding: 18px;
  text-align: center;
}

.lab-stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}

.lab-stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.lab-tabs-nav {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.lab-tab-btn {
  padding: 10px 20px;
  background: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lab-tab-btn:hover,
.lab-tab-btn.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
}

.lab-content-panel {
  display: none;
}

.lab-content-panel.active {
  display: block;
}

.lab-rooms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.lab-room-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.room-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 3px;
}

.room-topic {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.room-status-badge {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--border-radius-pill);
  background: rgba(244, 63, 94, 0.12);
  color: var(--accent-emerald);
  font-family: var(--font-mono);
  font-weight: 600;
}

/* ================= Section 6: CERTIFICATIONS ================= */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  transition: var(--transition-normal);
}

.cert-card:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 146, 60, 0.3);
}

.cert-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.cert-title {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cert-reason {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 14px;
  flex-grow: 1;
}

.cert-areas {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  margin-bottom: 16px;
}

.cert-link-placeholder {
  font-size: 0.82rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ================= Section 7: ACHIEVEMENTS & COMMUNITY ================= */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.achievement-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  padding: 22px;
  backdrop-filter: blur(12px);
  transition: var(--transition-normal);
}

.achievement-card:hover {
  border-color: rgba(232, 121, 249, 0.35);
  transform: translateY(-3px);
}

.achievement-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.achievement-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.achievement-impact {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ================= Section 8: CONTACT ================= */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 45px;
  align-items: flex-start;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-method-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  backdrop-filter: blur(12px);
  transition: var(--transition-normal);
  max-width: 100%;
  overflow: hidden;
}

.contact-method-card:hover {
  border-color: var(--accent-cyan);
  transform: translateX(4px);
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(251, 146, 60, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-method-meta {
  flex-grow: 1;
  min-width: 0;
}

.contact-method-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  text-transform: uppercase;
}

.contact-method-value {
  font-size: clamp(0.82rem, 2.4vw, 0.98rem);
  font-weight: 600;
  color: var(--text-main);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.copy-btn:hover {
  background: var(--accent-cyan);
  color: #07090e;
}

/* Contact Form */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-lg);
  padding: 34px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 7px;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-sm);
  color: var(--text-main);
  font-size: 16px; /* Prevents auto-zoom on iOS */
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-cyan);
  background: rgba(251, 146, 60, 0.03);
  box-shadow: 0 0 14px rgba(251, 146, 60, 0.15);
}

select.form-control {
  cursor: pointer;
}

select.form-control option {
  background: var(--bg-secondary);
  color: var(--text-main);
}

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

.form-status {
  margin-top: 14px;
  font-size: 0.88rem;
  min-height: 22px;
}

.form-status.success { color: var(--accent-emerald); }
.form-status.error { color: var(--accent-rose); }

/* ================= Footer ================= */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 50px 0 25px;
  background: #05070a;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 35px;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

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

.footer-link:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 22px;
  color: var(--text-dim);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ================= Back to Top & Toast ================= */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-purple-cyan);
  color: #07090e;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: var(--transition-normal);
  box-shadow: 0 4px 18px rgba(251, 146, 60, 0.35);
}

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

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 25px rgba(251, 146, 60, 0.6);
}

.toast-notification {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg-secondary);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--border-radius-pill);
  padding: 11px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), var(--shadow-glow-cyan);
  z-index: 3000;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 90vw;
  white-space: nowrap;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-icon {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

/* ================= Mobile App Bottom Navigation Dock ================= */
.mobile-app-dock {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(7, 10, 16, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-top: 1px solid rgba(251, 146, 60, 0.22);
  z-index: 1500;
  padding: 6px 12px calc(6px + var(--safe-bottom));
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.8), 0 0 20px rgba(251, 146, 60, 0.08);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 500;
  font-family: var(--font-body);
  transition: all var(--transition-fast);
  padding: 4px 10px;
  border-radius: var(--border-radius-md);
  position: relative;
  min-width: 52px;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}

.dock-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.dock-icon-wrapper svg {
  stroke: currentColor;
  transition: transform var(--transition-fast);
}

.dock-badge {
  position: absolute;
  top: -2px;
  right: -5px;
  background: var(--gradient-purple-cyan);
  color: #07090e;
  font-size: 0.62rem;
  font-weight: 800;
  font-family: var(--font-mono);
  padding: 1px 5px;
  border-radius: 999px;
  line-height: 1.2;
  box-shadow: 0 0 8px rgba(251, 146, 60, 0.6);
}

.dock-label {
  font-size: 0.7rem;
  letter-spacing: 0.2px;
  transition: color var(--transition-fast), font-weight var(--transition-fast);
}

.dock-item.active {
  color: var(--accent-cyan);
}

.dock-item.active .dock-icon-wrapper {
  background: rgba(251, 146, 60, 0.16);
  color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(251, 146, 60, 0.4);
  transform: translateY(-2px);
}

.dock-item.active .dock-icon-wrapper svg {
  stroke: var(--accent-cyan);
}

.dock-item.active .dock-label {
  color: var(--text-main);
  font-weight: 700;
}

.dock-item:active {
  transform: scale(0.92);
}

.sheet-drag-handle {
  display: none;
}

/* ================= Comprehensive Multi-Device Responsive Design System ================= */

/* ----- 1. Tablet Landscape & Medium Desktops (1024px and below) ----- */
@media (max-width: 1024px) {
  :root {
    --header-height: 74px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .terminal-typing-box {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group,
  .hero-socials {
    justify-content: center;
  }

  .about-grid,
  .projects-grid,
  .contact-grid,
  .competitions-grid {
    grid-template-columns: 1fr;
  }

  .avatar-wrapper {
    width: min(320px, 75vw);
  }

  .floating-chip-1 { top: 8px; left: -10px; }
  .floating-chip-2 { bottom: 20px; right: -10px; }
  .floating-chip-3 { bottom: -10px; left: 16px; }

  .certs-grid,
  .achievements-grid,
  .lab-stats-banner {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ----- 2. Tablets & Small Laptops (860px and below) - Mobile Drawer Activation ----- */
@media (max-width: 860px) {
  :root {
    --header-height: 68px;
  }

  /* Show mobile hamburger, hide inline menu */
  .mobile-menu-btn {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(7, 10, 16, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 24px 20px calc(32px + var(--safe-bottom));
    gap: 12px;
    border-bottom: 1px solid rgba(251, 146, 60, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 999;
  }

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

  .nav-link {
    font-size: 1.05rem;
    padding: 12px 16px;
    width: 100%;
    text-align: center;
    border-radius: var(--border-radius-sm);
    transition: background var(--transition-fast), color var(--transition-fast);
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(251, 146, 60, 0.08);
    color: var(--accent-cyan);
  }

  .nav-link::after {
    display: none;
  }

  .mobile-nav-cta {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .form-group-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ambient-orb {
    filter: blur(90px);
    opacity: 0.18;
  }
}

/* ----- 3. Mobile App Mode (768px and below) - App Dock Active ----- */
@media (max-width: 768px) {
  /* Activate Mobile Bottom App Dock */
  .mobile-app-dock {
    display: flex;
  }

  /* Add bottom offset to body so bottom content isn't obscured by App Dock */
  body {
    padding-bottom: calc(var(--dock-height) + var(--safe-bottom) + 10px);
  }

  /* Reposition Back to Top above bottom app dock */
  .back-to-top {
    bottom: calc(var(--dock-height) + var(--safe-bottom) + 16px);
    right: 18px;
  }

  .toast-notification {
    bottom: calc(var(--dock-height) + var(--safe-bottom) + 18px);
  }

  /* Fluid Horizontal Scroll for Project Filters (Native App Feel) */
  .project-filters-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 6px 4px 14px;
    gap: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    width: calc(100% + 32px);
    margin-left: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .project-filters-nav::-webkit-scrollbar {
    display: none;
  }

  .project-filter-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 16px;
  }
}

/* ----- 4. Standard Mobile Phones (640px and below) - App Sheet Modal ----- */
@media (max-width: 640px) {
  :root {
    --header-height: 64px;
  }

  .desktop-nav-cta {
    display: none;
  }

  .sound-toggle-btn {
    width: 36px;
    height: 36px;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-title {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }

  .badge {
    padding: 5px 12px;
    font-size: 0.75rem;
  }

  /* Hero Section Mobile */
  .hero {
    padding-top: calc(var(--header-height) + 16px);
    padding-bottom: 40px;
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(2rem, 7.5vw, 2.8rem);
  }

  .hero-desc {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  .avatar-wrapper {
    width: min(270px, 75vw);
  }

  /* Contained Floating Chips */
  .floating-chip {
    padding: 7px 11px;
    font-size: 0.74rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.65);
    max-width: 86%;
  }

  .floating-chip-1 {
    top: 2px;
    left: 0;
  }

  .floating-chip-2 {
    bottom: 14px;
    right: 0;
  }

  .floating-chip-3 {
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
  }

  .chip-icon {
    width: 22px;
    height: 22px;
    font-size: 0.82rem;
  }

  /* About Me Mobile */
  .about-pillars {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 20px;
  }

  .about-info-list {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 18px;
  }

  .about-details-card {
    padding: clamp(18px, 4vw, 24px);
  }

  .social-connect-card {
    padding: 11px 14px;
  }

  /* Projects Mobile */
  .project-thumbnail {
    height: clamp(180px, 48vw, 220px);
  }

  .project-body {
    padding: clamp(16px, 4vw, 22px);
  }

  .project-title {
    font-size: 1.22rem;
  }

  .project-actions {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }

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

  /* ================= Native Bottom-Sheet App Modal on Mobile ================= */
  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .modal-container {
    max-height: 88vh;
    border-radius: 24px 24px 0 0;
    border-bottom: none;
    border-left: 1px solid rgba(251, 146, 60, 0.35);
    border-right: 1px solid rgba(251, 146, 60, 0.35);
    border-top: 1px solid rgba(251, 146, 60, 0.45);
    transform: translateY(100%);
    box-shadow: 0 -15px 45px rgba(0, 0, 0, 0.95), 0 0 35px rgba(251, 146, 60, 0.2);
    padding-bottom: calc(20px + var(--safe-bottom));
  }

  .modal-backdrop.active .modal-container {
    transform: translateY(0);
  }

  .sheet-drag-handle {
    display: block;
    width: 44px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    margin: 10px auto 4px;
  }

  .modal-close-btn {
    top: 12px;
    right: 14px;
    width: 38px;
    height: 38px;
  }

  .modal-header-img {
    height: 180px;
    border-radius: 16px 16px 0 0;
  }

  .modal-content-inner {
    padding: clamp(16px, 4vw, 22px);
  }

  .modal-action-bar {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .modal-action-bar .btn {
    width: 100%;
    justify-content: center;
  }

  /* Contact Mobile */
  .contact-form-card {
    padding: clamp(18px, 4vw, 24px);
  }

  .contact-method-card {
    padding: 14px;
    gap: 12px;
  }

  /* Form Control font-size strictly 16px to prevent iOS auto-zoom */
  .form-control {
    font-size: 16px !important;
    padding: 13px 14px;
  }

  /* Footer Mobile */
  .footer {
    padding: 36px 0 20px;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    margin-bottom: 24px;
  }

  .footer-links {
    justify-content: center;
    gap: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding-top: 18px;
  }

  /* Performance tweaks for mobile ambient lights */
  .ambient-orb-1 { width: 220px; height: 220px; top: -30px; right: -40px; }
  .ambient-orb-2 { width: 240px; height: 240px; left: -60px; bottom: 0; }
  .ambient-orb-3, .ambient-orb-4 { display: none; }
  .cyber-scanner-line { display: none; }
}

/* ----- 5. Compact Mobile Phones (480px and below) ----- */
@media (max-width: 480px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 10px;
  }

  .hero-cta-group .btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    padding: 13px 20px;
  }

  .hero-socials {
    width: 100%;
    justify-content: center;
    gap: 8px;
  }

  .social-pill {
    padding: 7px 12px;
    font-size: 0.8rem;
    min-height: 40px;
    flex: 1 1 calc(33.333% - 8px);
    justify-content: center;
  }

  .contact-method-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .copy-btn {
    align-self: flex-start;
    margin-top: 4px;
    padding: 6px 12px;
  }
}

/* ----- 6. Ultra-Narrow Phones (360px and below, e.g. iPhone SE / 320px screens) ----- */
@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }

  .logo {
    font-size: 1.15rem;
    gap: 6px;
  }

  .logo-symbol {
    width: 28px;
    height: 28px;
    font-size: 0.95rem;
  }

  .hero-title {
    font-size: 1.85rem;
    letter-spacing: -0.3px;
  }

  .terminal-header-badge {
    font-size: 0.68rem;
    padding: 4px 8px;
    gap: 6px;
  }

  .terminal-dots {
    display: none;
  }

  .avatar-wrapper {
    width: 220px;
  }

  .floating-chip {
    padding: 5px 8px;
    font-size: 0.68rem;
    gap: 6px;
  }

  .chip-icon {
    width: 18px;
    height: 18px;
    font-size: 0.72rem;
  }

  .floating-chip-1 { top: -6px; left: 0; }
  .floating-chip-2 { bottom: 6px; right: 0; }
  .floating-chip-3 { bottom: -12px; left: 50%; }

  .project-filter-btn {
    padding: 6px 12px;
    font-size: 0.74rem;
  }

  .dock-item {
    min-width: 44px;
    padding: 4px 6px;
  }

  .dock-label {
    font-size: 0.64rem;
  }
}

/* ----- 7. Landscape Orientation on Small Devices ----- */
@media (max-height: 520px) and (orientation: landscape) {
  :root {
    --header-height: 56px;
    --dock-height: 52px;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 12px);
    padding-bottom: 30px;
  }

  .modal-container {
    max-height: 94vh;
  }

  .modal-header-img {
    height: 130px;
  }

  .nav-menu {
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }
}

/* ----- 8. Touch & Pointer Ergonomics ----- */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 25px rgba(251, 146, 60, 0.45);
  }

  .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    transform: translateY(-2px);
  }

  .project-card:hover {
    transform: translateY(-6px);
    border-color: var(--bg-card-border-hover);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), var(--shadow-glow-cyan);
  }

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

  .social-pill:hover {
    transform: translateY(-2px);
  }
}

@media (hover: none) or (pointer: coarse) {
  .btn:active,
  .project-card:active,
  
  .social-pill:active,
  .mobile-menu-btn:active,
  .dock-item:active {
    transform: scale(0.97);
    opacity: 0.92;
  }

  /* Disable hover transform jumps on touch screens */
  .project-card:hover {
    transform: none;
  }
}
