/* ==========================================================================
   Peeyush Tiwari Portfolio CSS Style Definitions - Premium Dark Aesthetic
   ========================================================================== */

/* 1. Global Reset & Variables */
:root {
  --bg-darker: #060709;
  --bg-dark: #0a0c10;
  --bg-card: rgba(13, 16, 23, 0.75);
  --bg-card-hover: rgba(20, 24, 35, 0.85);
  --primary: #00f2fe;
  --primary-rgb: 0, 242, 254;
  --secondary: #9b5de5;
  --secondary-rgb: 155, 93, 229;
  --accent: #ff007f;
  --text-main: #f1f5f9;
  --text-muted: #8a99ad;
  --border-glow: rgba(0, 242, 254, 0.15);
  --border-light: rgba(255, 255, 255, 0.06);
  --nav-height: 80px;
  --font-sans: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.18s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg-darker);
}

body {
  background-color: var(--bg-darker);
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
body::-webkit-scrollbar {
  width: 8px;
}
body::-webkit-scrollbar-track {
  background: var(--bg-darker);
}
body::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 254, 0.3);
  border-radius: 4px;
}
body::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  z-index: 999999;
  width: 0%;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
  transition: width 0.08s ease-out;
}

/* Focus Visible outline for Keyboard Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.filter-btn:focus-visible,
.timeline-item:focus-visible,
.project-card:focus-visible {
  outline: 2.5px solid var(--primary);
  outline-offset: 4px;
}

/* 2. Custom Interactive Cursor */
.custom-cursor {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--primary);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 99999;
  transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
  mix-blend-mode: screen;
}

.custom-cursor-dot {
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 99999;
}

/* Hover state for links */
.custom-cursor.hover {
  width: 60px;
  height: 60px;
  background-color: rgba(0, 242, 254, 0.08);
  border-color: var(--secondary);
}

@media (max-width: 1024px) {
  .custom-cursor, .custom-cursor-dot {
    display: none; /* Disable cursor on touch devices */
  }
}

/* 3. Interactive Neural Background Canvas & Ambient Animations */
#geo-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s ease;
}

#geo-canvas.geo-ready {
  opacity: 1;
}

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

.bg-effects {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Soft edge vignette — adds premium depth, keeps focus toward the center */
.bg-effects::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 242, 254, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 130% 100% at 50% 50%, transparent 55%, rgba(4, 5, 8, 0.55) 100%);
  z-index: 3;
}

/* Faint animated film grain — subtle texture that reads as "expensive" */
.bg-effects::before {
  content: '';
  position: absolute;
  inset: -50%;
  pointer-events: none;
  opacity: 0.035;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 7s steps(6) infinite;
}

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

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.3;
  will-change: transform, opacity;
  mix-blend-mode: screen;
}

.orb-1 {
  width: 560px;
  height: 560px;
  top: -120px;
  left: -120px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.5) 0%, rgba(0, 242, 254, 0) 70%);
  animation: float-orb-1 24s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate,
             orb-breathe 11s ease-in-out infinite alternate;
}

.orb-2 {
  width: 620px;
  height: 620px;
  bottom: 8%;
  right: -160px;
  background: radial-gradient(circle, rgba(155, 93, 229, 0.45) 0%, rgba(155, 93, 229, 0) 70%);
  animation: float-orb-2 28s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate,
             orb-breathe 13s ease-in-out infinite alternate -3s;
}

.orb-3 {
  width: 460px;
  height: 460px;
  top: 38%;
  left: 50%;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.4) 0%, rgba(0, 122, 255, 0) 70%);
  animation: float-orb-3 32s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate,
             orb-breathe 15s ease-in-out infinite alternate -6s;
}

/* Smoother multi-point drift — lively but never jerky */
@keyframes float-orb-1 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(18vw, 14vh) scale(1.1); }
  66%  { transform: translate(26vw, 32vh) scale(1.05); }
  100% { transform: translate(8vw, 46vh) scale(0.92); }
}

@keyframes float-orb-2 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-20vw, -16vh) scale(1.12); }
  66%  { transform: translate(-30vw, -24vh) scale(1.18); }
  100% { transform: translate(-14vw, -4vh) scale(0.96); }
}

@keyframes float-orb-3 {
  0%   { transform: translate(-50%, -50%) scale(1); }
  33%  { transform: translate(-38%, -38%) scale(1.18); }
  66%  { transform: translate(-24%, -30%) scale(1.28); }
  100% { transform: translate(-68%, -22%) scale(0.88); }
}

/* Gentle brightness pulse layered over the drift */
@keyframes orb-breathe {
  0%   { opacity: 0.22; }
  100% { opacity: 0.4; }
}

.cyber-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 78%);
  animation: grid-pulse 10s ease-in-out infinite alternate,
             grid-drift 40s linear infinite;
}

@keyframes grid-pulse {
  0%   { opacity: 0.35; }
  100% { opacity: 0.7; }
}

/* Slow diagonal drift keeps the grid alive without being distracting */
@keyframes grid-drift {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 64px 64px, 64px 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .glow-orb,
  .cyber-grid-overlay,
  .bg-effects::before {
    animation: none !important;
  }
}


/* 4. Loader screen */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #07080c;
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.8s cubic-bezier(0.85, 0, 0.15, 1);
  overflow: hidden;
}

/* Scanline / CRT glow effect overlay */
.loader-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(0, 242, 254, 0.04), rgba(155, 93, 229, 0.02), rgba(0, 242, 254, 0.04));
  background-size: 100% 4px, 6px 100%;
  opacity: 0.18;
  pointer-events: none;
  z-index: 10;
}

.loader-wrapper.loaded {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.loader-content {
  width: 90%;
  max-width: 500px;
  text-align: left;
  position: relative;
  z-index: 5;
}

.loader-terminal {
  background: rgba(13, 16, 23, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 242, 254, 0.15);
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(0, 242, 254, 0.04);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.terminal-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.65rem 1rem;
}

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

.terminal-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-dots .dot.red { background-color: #ff5f56; }
.terminal-dots .dot.yellow { background-color: #ffbd2e; }
.terminal-dots .dot.green { background-color: #27c93f; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  flex: 1;
  margin-right: 42px; /* Offset the dots width to center title */
}

.terminal-body {
  padding: 1.5rem;
  height: 180px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  scrollbar-width: none; /* Firefox */
}

.terminal-body::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.terminal-log-line {
  display: flex;
  align-items: center;
  white-space: pre-wrap;
}

.terminal-prompt {
  color: var(--secondary);
  margin-right: 0.5rem;
  user-select: none;
}

.status-done {
  color: var(--primary);
  margin-left: auto;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.3);
}

.loader-footer {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}

.loader-progress-bar {
  flex: 1;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.loader-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 4px;
  box-shadow: 0 0 10px var(--primary);
  transition: width 0.05s linear;
}

.loader-percentage {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  min-width: 45px;
  text-align: right;
  text-shadow: 0 0 6px rgba(0, 242, 254, 0.2);
}

/* 5. Typography & Elements */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.2rem;
  }
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 3.5rem;
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-title::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 242, 254, 0.4), transparent);
  max-width: 300px;
}

.section-title .number {
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--secondary);
  font-weight: 500;
}

.subsection-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

p strong {
  color: var(--text-main);
}

.large-text {
  font-size: 1.2rem;
  color: var(--text-main);
  line-height: 1.7;
}

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

.glow-link {
  color: var(--primary);
  position: relative;
}

.glow-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary);
  transition: var(--transition-smooth);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #000;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(0, 242, 254, 0.04);
  transform: translateY(-3px);
}

.btn-icon {
  width: 18px;
  height: 18px;
  transition: var(--transition-fast);
}

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

/* Résumé download button — glassy neon with an animated glow border */
.btn-resume {
  position: relative;
  background: rgba(0, 242, 254, 0.06);
  color: var(--primary);
  border: 1px solid rgba(0, 242, 254, 0.4);
  overflow: hidden;
}

.btn-resume::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(0, 242, 254, 0.18) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.btn-resume:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 8px 22px rgba(0, 242, 254, 0.28);
}

.btn-resume:hover::before {
  transform: translateX(120%);
}

.btn-resume:hover .btn-icon {
  animation: resume-bounce 0.7s ease infinite;
}

@keyframes resume-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(3px); }
}

/* 6. Navigation Bar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 0;
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 0.8rem 0;
}

.glass-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 12, 16, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 0.8rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: calc(100% - 4rem);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
}

header.scrolled .glass-nav {
  background: rgba(10, 12, 16, 0.75);
  border-color: rgba(0, 242, 254, 0.1);
  box-shadow: 0 10px 35px rgba(0, 242, 254, 0.05);
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.nav-logo span {
  font-weight: 400;
  font-size: 1rem;
  opacity: 0.8;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  transition: var(--transition-fast);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
  background: rgba(0, 242, 254, 0.05);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
}

.nav-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition-fast);
}

@media (max-width: 768px) {
  .glass-nav {
    width: calc(100% - 2rem);
  }
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 200px;
    background: rgba(10, 12, 16, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  /* Menu icon animation */
  .nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* 7. Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
  width: 100%;
}

.hero-content {
  text-align: left;
}

.hero-badge {
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.15);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.7);
  }
  70% {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(0, 242, 254, 0);
  }
  100% {
    transform: scale(0.9);
    box-shadow: 0 0 0 0 rgba(0, 242, 254, 0);
  }
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  height: 50px; /* Prevent height shifting during typing */
}

.hero-subtitle span.typewriter {
  color: var(--secondary);
}

.cursor-blink {
  animation: cursor-blink-anim 0.8s infinite;
  color: var(--secondary);
}

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

.hero-description {
  max-width: 600px;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 3.5rem;
}

.hero-socials {
  display: flex;
  gap: 1.5rem;
}

.hero-socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  transition: var(--transition-smooth);
}

.hero-socials a svg {
  width: 20px;
  height: 20px;
}

.hero-socials a:hover {
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
  transform: translateY(-3px);
  background: rgba(0, 242, 254, 0.02);
}

/* Floating interactive profile card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-card-glow {
  position: absolute;
  width: 110%;
  height: 110%;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.12) 0%, rgba(155, 93, 229, 0.12) 50%, transparent 100%);
  filter: blur(30px);
  z-index: 1;
  animation: float-slow 8s ease-in-out infinite alternate;
}

.profile-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  z-index: 2;
  transition: var(--transition-smooth);
  animation: float-card 6s ease-in-out infinite alternate;
  position: relative;
}

.profile-card::after {
  content: '';
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(to bottom, transparent, rgba(0, 242, 254, 0.4), transparent);
  animation: scan-line 5s linear infinite;
  pointer-events: none;
}

@keyframes scan-line {
  0% { top: -20%; }
  40% { top: 120%; }
  100% { top: 120%; }
}

.profile-card:hover {
  transform: scale(1.02) rotate(1deg);
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: 0 25px 50px rgba(0, 242, 254, 0.15);
}

.profile-card-header {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-light);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-card-header .circle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.profile-card-header .circle.red { background-color: #ff5f56; }
.profile-card-header .circle.yellow { background-color: #ffbd2e; }
.profile-card-header .circle.green { background-color: #27c93f; }

.card-title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.profile-card-body {
  padding: 1.5rem;
  font-size: clamp(0.75rem, 1.1vw, 0.85rem);
  line-height: 1.5;
  color: #c9d1d9;
}

.font-code {
  font-family: var(--font-mono);
}

.font-code .keyword { color: #ff7b72; }
.font-code .class-name { color: #f2cc60; }
.font-code .func-name { color: #d2a6ff; }
.font-code .str { color: #a5d6ff; }
.font-code .indent-1 { padding-left: 1.25rem; }
.font-code .indent-2 { padding-left: 2.5rem; }
.font-code .indent-3 { padding-left: 3.75rem; }

@keyframes float-card {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-15px) rotate(-1deg); }
}

@keyframes float-slow {
  0% { transform: scale(0.9) translate(0px, 0px); }
  100% { transform: scale(1.1) translate(10px, -10px); }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  z-index: 10;
}

.mouse {
  width: 22px;
  height: 36px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.mouse:hover {
  border-color: var(--primary);
}

.wheel {
  width: 4px;
  height: 8px;
  background-color: var(--text-muted);
  border-radius: 2px;
  animation: scroll-wheel 1.6s infinite;
}

.mouse:hover .wheel {
  background-color: var(--primary);
}

@keyframes scroll-wheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 4rem;
    padding-top: 2rem;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-visual {
    order: -1;
  }
  .scroll-indicator {
    display: none;
  }
}

/* ==========================================================================
   7. Unified Developer IDE Dashboard
   ========================================================================== */
.developer-ide {
  width: 100%;
  max-width: 530px;
  background: radial-gradient(circle 200px at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(var(--primary-rgb), 0.08), rgba(var(--secondary-rgb), 0.02) 50%, transparent 100%), rgba(10, 12, 16, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  z-index: 2;
  transition: transform 0.15s ease-out, border-color 0.3s, box-shadow 0.3s;
  animation: float-card 6s ease-in-out infinite alternate;
  position: relative;
}

.developer-ide:hover {
  border-color: rgba(0, 242, 254, 0.25);
  box-shadow: 0 25px 50px rgba(0, 242, 254, 0.12);
}

.developer-ide::after {
  content: '';
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(to bottom, transparent, rgba(0, 242, 254, 0.3), transparent);
  animation: scan-line 5s linear infinite;
  pointer-events: none;
}

.ide-header {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.ide-controls {
  display: flex;
  gap: 0.4rem;
}

.control-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.control-dot.red { background-color: #ff5f56; }
.control-dot.yellow { background-color: #ffbd2e; }
.control-dot.green { background-color: #27c93f; }

.ide-tabs {
  display: flex;
  gap: 0.5rem;
}

.ide-tab {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: 0.35rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ide-tab.active {
  background: rgba(13, 16, 23, 0.5);
  color: var(--primary);
  border-color: rgba(0, 242, 254, 0.15);
}

.tab-icon {
  width: 12px;
  height: 12px;
}

.ide-workspace {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ide-sidebar {
  width: 190px;
  background: rgba(5, 7, 10, 0.3);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.sidebar-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.sidebar-dot.blue { background-color: var(--primary); }
.sidebar-dot.purple { background-color: var(--secondary); }
.sidebar-dot.green { background-color: #27c93f; }

.sidebar-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.ide-editor {
  flex: 1;
  padding: 0.8rem;
  display: flex;
  gap: 0.8rem;
  background: rgba(13, 16, 23, 0.2);
  text-align: left;
  overflow-x: auto;
}

.line-numbers {
  display: flex;
  flex-direction: column;
  color: rgba(255, 255, 255, 0.15);
  font-size: 0.72rem;
  text-align: right;
  user-select: none;
}

.code-content {
  color: #c9d1d9;
  font-size: 0.72rem;
  line-height: 1.45;
}

.ide-terminal {
  background: rgba(5, 7, 10, 0.45);
  padding: 0.6rem 0.8rem;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
}

.terminal-badge {
  margin-left: auto;
  font-size: 0.55rem;
  background-color: rgba(39, 201, 63, 0.12);
  color: #27c93f;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 700;
}

/* Console scrolling logs */
.widget-terminal-console {
  background: rgba(5, 7, 10, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 0.5rem;
  font-size: 0.65rem;
  line-height: 1.4;
  height: 80px;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
  text-align: left;
}

.widget-terminal-console .log-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: console-fade-in 0.25s ease-out;
}

@keyframes console-fade-in {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.text-success { color: #27c93f; }
.text-warning { color: #ffbd2e; }
.text-error { color: #ff5f56; }
.text-info { color: var(--primary); }
.text-purple { color: var(--secondary); }
.text-muted { color: var(--text-muted); }

/* Git Grid Activity */
.git-grid {
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  gap: 2px;
  margin-bottom: 0.4rem;
  background: rgba(5, 7, 10, 0.4);
  padding: 0.3rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.02);
  width: 100%;
}

.git-cell {
  width: 7.5px;
  height: 7.5px;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 1.5px;
  transition: transform 0.1s ease, background-color 0.2s;
}

.git-cell:hover {
  transform: scale(1.3);
  z-index: 10;
  box-shadow: 0 0 8px currentColor;
}

.git-cell.active-0 { background-color: rgba(255, 255, 255, 0.03); color: transparent; }
.git-cell.active-1 { background-color: rgba(0, 242, 254, 0.15); color: rgba(0, 242, 254, 0.3); }
.git-cell.active-2 { background-color: rgba(0, 242, 254, 0.35); color: rgba(0, 242, 254, 0.5); }
.git-cell.active-3 { background-color: rgba(0, 242, 254, 0.65); color: rgba(0, 242, 254, 0.8); }
.git-cell.active-4 { background-color: var(--primary); color: var(--primary); box-shadow: 0 0 4px rgba(0, 242, 254, 0.4); }

.git-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  width: 100%;
  padding: 0 0.1rem;
}

.git-stats-pct {
  color: #27c93f;
  font-weight: 600;
}

/* System metrics radial loader */
.radial-loader {
  position: relative;
  width: 50px;
  height: 50px;
  margin-bottom: 0.2rem;
}

.circular-chart {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

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

.circle {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.8;
  stroke-linecap: round;
  filter: drop-shadow(0 0 3px var(--primary));
  transition: stroke-dasharray 0.3s ease;
}

.radial-loader .percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: bold;
  color: var(--text-main);
}

.radar-metrics {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.radar-label {
  font-size: 0.58rem;
  color: var(--text-muted);
}

.radar-status {
  font-size: 0.52rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 2px;
  letter-spacing: 0.5px;
}
.radar-status.green { color: #27c93f; background-color: rgba(39, 201, 63, 0.12); }
.radar-status.orange { color: #ffbd2e; background-color: rgba(255, 189, 46, 0.12); }

/* ==========================================================================
   7b. Animated Lanyard ID Card
   ========================================================================== */
.id-lanyard {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 340px;
  padding-top: 4px;
  transform-origin: top center;
  cursor: pointer;
  /* Entrance: drop smoothly from top ceiling */
  opacity: 0;
  transform: translateY(-80vh);
  animation: lanyard-drop 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.8s forwards;
}

.id-lanyard.drop-bounce {
  opacity: 1 !important;
  animation: lanyard-drop-interactive 1.0s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards !important;
}

/* Lanyard strap ribbon */
.lanyard-strap {
  position: relative;
  width: 46px;
  height: 118px;
  background: linear-gradient(180deg, var(--secondary) 0%, var(--primary) 100%);
  box-shadow: 0 0 18px rgba(var(--primary-rgb), 0.35), inset 0 0 12px rgba(0, 0, 0, 0.35);
  border-radius: 3px 3px 0 0;
  overflow: hidden;
  transform-origin: top center;
  animation: lanyard-sway 6s ease-in-out 3.6s infinite alternate;
  z-index: 1;
}

.strap-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(6, 7, 9, 0.65);
  text-transform: uppercase;
}

/* Metal clip connecting strap to card */
.lanyard-clip {
  width: 34px;
  height: 16px;
  margin-top: -2px;
  background: linear-gradient(180deg, #d7dbe0 0%, #8b929c 45%, #d7dbe0 100%);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 3;
  transform-origin: top center;
  animation: lanyard-sway 6s ease-in-out 1.4s infinite alternate;
}
.lanyard-clip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border: 2.5px solid #b8bec7;
  border-radius: 50%;
  background: var(--bg-darker);
}

/* The swinging card itself */
.id-card {
  position: relative;
  width: 100%;
  margin-top: 10px;
  padding: 1.1rem 1.1rem 0.9rem;
  background: rgba(13, 16, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transform-origin: top center;
  /* Card swings harder on entrance after drop, then settles into gentle idle sway */
  animation: card-entrance 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.8s both,
             card-swing 6s ease-in-out 3.3s infinite alternate;
  transition: box-shadow 0.3s ease;
}

.id-card:hover {
  box-shadow: 0 26px 60px rgba(var(--primary-rgb), 0.18);
  animation-play-state: paused;
}

/* Holographic sheen sweep */
.id-holo {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(var(--primary-rgb), 0.14) 45%, rgba(var(--secondary-rgb), 0.14) 55%, transparent 70%);
  transform: translateX(-120%);
  animation: holo-sweep 5s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}

.id-punch-hole {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 8px;
  background: var(--bg-darker);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  z-index: 4;
}

.id-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.id-org {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary);
}

.id-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 700;
  color: #27c93f;
}

.id-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #27c93f;
  animation: pulse-glow 2s infinite;
}

.id-card-body {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0 0.9rem;
}

.id-photo-wrap {
  position: relative;
  flex-shrink: 0;
  width: 92px;
  height: 92px;
}

.id-photo {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(var(--primary-rgb), 0.4);
  filter: grayscale(15%) contrast(1.05);
}

.id-photo-ring {
  position: absolute;
  inset: -4px;
  border-radius: 15px;
  border: 1.5px solid transparent;
  background: linear-gradient(135deg, var(--primary), var(--secondary)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: ring-rotate 4s linear infinite;
  opacity: 0.7;
}

.id-info {
  min-width: 0;
}

.id-name {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 2px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.id-role {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  letter-spacing: 0.5px;
}

.id-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.id-meta-row {
  display: flex;
  gap: 6px;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.55rem;
}
.id-meta-row span {
  color: var(--text-muted);
  width: 30px;
  flex-shrink: 0;
}
.id-meta-row b {
  color: var(--text-main);
  font-weight: 500;
}

.id-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0.2rem 0 0.9rem;
}
.id-skills span {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  padding: 3px 8px;
  border-radius: 20px;
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.07);
  border: 1px solid rgba(var(--primary-rgb), 0.18);
}

.id-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.id-barcode {
  display: flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 26px;
}
.id-barcode i {
  display: block;
  width: 2px;
  height: 100%;
  background: var(--text-main);
  opacity: 0.85;
}
.id-barcode i:nth-child(3n)   { width: 3px; height: 70%; }
.id-barcode i:nth-child(4n)   { width: 1px; height: 100%; }
.id-barcode i:nth-child(5n)   { width: 3.5px; height: 85%; }
.id-barcode i:nth-child(2n)   { opacity: 0.55; }
.id-barcode i:nth-child(7n)   { height: 60%; }

.id-signature {
  font-family: 'Outfit', cursive;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
  transform: rotate(-4deg);
}

/* Swing animations — strap, clip and card share timing so they move as one unit */
@keyframes lanyard-sway {
  0%   { transform: rotate(-2.5deg); }
  100% { transform: rotate(2.5deg); }
}
@keyframes card-swing {
  0%   { transform: rotate(-3deg); }
  50%  { transform: rotate(1.5deg); }
  100% { transform: rotate(3deg); }
}
@keyframes holo-sweep {
  0%, 65%  { transform: translateX(-120%); }
  100%     { transform: translateX(120%); }
}
@keyframes ring-rotate {
  to { transform: rotate(360deg); }
}

/* Entrance: whole lanyard drops down from above and fades in */
@keyframes lanyard-drop {
  0%   { opacity: 0; transform: translateY(-80vh) scale(0.9); }
  45%  { opacity: 1; transform: translateY(20px) scale(1.02); }
  65%  { transform: translateY(-10px) scale(0.99); }
  85%  { transform: translateY(4px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Interactive click bounce: pulls up slightly then drops with a spring */
@keyframes lanyard-drop-interactive {
  0%   { opacity: 1; transform: translateY(-30px) scale(0.98); }
  40%  { opacity: 1; transform: translateY(15px) scale(1.02); }
  65%  { opacity: 1; transform: translateY(-6px) scale(0.99); }
  85%  { opacity: 1; transform: translateY(2px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Entrance: card overshoots on the strap then settles (pendulum on drop) */
@keyframes card-entrance {
  0%   { transform: rotate(-15deg); }
  45%  { transform: rotate(10deg); }
  65%  { transform: rotate(-5deg); }
  85%  { transform: rotate(2deg); }
  100% { transform: rotate(-3deg); }
}

/* Inner content rises + fades in after the card lands */
.id-card-header,
.id-card-body,
.id-skills,
.id-card-footer {
  opacity: 0;
  animation: id-content-in 0.6s ease-out forwards;
}
.id-card-header { animation-delay: 2.3s; }
.id-card-body   { animation-delay: 2.5s; }
.id-skills      { animation-delay: 2.7s; }
.id-card-footer { animation-delay: 2.9s; }

@keyframes id-content-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Photo reveals with a soft zoom once loaded */
.id-photo {
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.5s ease, transform 0.6s ease;
}
.id-photo.loaded {
  opacity: 1;
  transform: scale(1);
}

/* Initials fallback sits behind the photo; visible only if the image fails */
.id-photo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-main);
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.25), rgba(var(--secondary-rgb), 0.25));
  border: 1px solid rgba(var(--primary-rgb), 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .id-lanyard, .lanyard-strap, .lanyard-clip, .id-card, .id-holo, .id-photo-ring,
  .id-card-header, .id-card-body, .id-skills, .id-card-footer {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .id-photo { opacity: 1; transform: none; }
}

/* Responsive scale to prevent viewport overflow on narrow desktops */
@media (max-width: 1200px) {
  .developer-ide {
    transform: scale(0.95);
  }
}

@media (max-width: 1100px) {
  .developer-ide {
    transform: scale(0.9);
  }
}

@media (max-width: 950px) {
  .hero-visual {
    order: -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 2rem;
  }
  
  .developer-ide {
    transform: none !important;
    animation: float-card-mobile 6s ease-in-out infinite alternate !important;
    max-width: 500px;
  }
}

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

@media (max-width: 768px) {
  .ide-workspace {
    flex-direction: column;
  }
  
  .ide-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    gap: 1.5rem;
    padding: 0.8rem 1rem;
  }
  
  .sidebar-section {
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
    justify-content: center;
  }
  
  .section-header {
    margin-bottom: 0;
  }
  
  .sidebar-body {
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    width: auto;
  }
  
  .git-grid {
    width: 143px;
    margin-bottom: 0;
  }
  
  .git-stats-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    width: auto;
  }
  
  .radial-loader {
    margin-bottom: 0;
  }
  
  .radar-metrics {
    align-items: flex-start;
  }
}

/* Animated ID card — responsive scaling for every display */
@media (max-width: 950px) {
  .id-lanyard { max-width: 330px; }
}
@media (max-width: 400px) {
  .id-lanyard { max-width: 285px; }
  .id-card { padding: 0.9rem 0.9rem 0.8rem; }
  .id-card-body { gap: 0.7rem; }
  .id-photo, .id-photo-wrap { width: 74px; height: 74px; }
  .id-name { font-size: 1rem; }
  .id-meta-row, .id-skills span { font-size: 0.5rem; }
}

@media (max-width: 540px) {
  .ide-sidebar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  
  .sidebar-section {
    width: 100%;
    justify-content: flex-start;
  }
  
  .sidebar-body {
    width: 100%;
    justify-content: space-between;
  }
  
  .git-grid {
    width: 143px;
  }
  
  .git-stats-row {
    flex-direction: row;
    justify-content: space-between;
    flex: 1;
    margin-left: 0.5rem;
  }
  
  .radar-metrics {
    flex-direction: row;
    justify-content: space-between;
    flex: 1;
    margin-left: 0.5rem;
  }
}

/* 8. About Section */
.about-section {
  padding: 8rem 0;
  position: relative;
  z-index: 1;
}

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

.about-bio p {
  font-size: 1.05rem;
}

.bio-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 0.95rem;
}

.detail-item {
  color: var(--text-muted);
}

.detail-item strong {
  color: var(--primary);
  margin-right: 0.5rem;
}

.education-card {
  background: radial-gradient(circle 250px at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(var(--primary-rgb), 0.12), rgba(var(--secondary-rgb), 0.04) 50%, transparent 100%), var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease-out, border-color 0.3s, box-shadow 0.3s;
  transform-style: preserve-3d;
}

.education-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  opacity: 0.5;
  transition: var(--transition-fast);
}

.education-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 242, 254, 0.2);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.05);
}

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

.edu-year {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.edu-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.edu-institution {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.edu-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.certifications-wrapper {
  margin-top: 5rem;
  width: 100%;
}

.cert-layout {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  width: 100%;
}

/* Playgrounds Row styling */
.cert-playgrounds {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  width: 100%;
}

@media (min-width: 768px) {
  .cert-playgrounds {
    grid-template-columns: 1fr 1fr;
  }
}

.playground-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.playground-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.75;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.playground-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

.cert-canvas-container {
  width: 100%;
  height: 320px;
  border-radius: 12px;
  background: rgba(13, 16, 23, 0.45);
  border: 1px solid var(--border-light);
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
}

.cert-canvas-container:hover {
  border-color: rgba(0, 242, 254, 0.25);
  box-shadow: inset 0 0 30px rgba(0, 242, 254, 0.05), 0 10px 30px rgba(0, 0, 0, 0.4);
}

#canvas-3d-certs, #canvas-3d-n8n {
  width: 100%;
  height: 100%;
  display: block;
}

/* Certifications Cards Grid */
.cert-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.5rem;
  width: 100%;
}

.cert-list li {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.cert-list li:hover {
  border-color: rgba(0, 242, 254, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 1px rgba(0, 242, 254, 0.3);
  background: var(--bg-card-hover);
}

.cert-left {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  margin-bottom: 1.25rem;
}

.cert-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  padding: 10px;
  transition: var(--transition-smooth);
}

.cert-list li:hover .cert-icon {
  transform: scale(1.06);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.cert-icon svg {
  width: 100%;
  height: 100%;
}

.cert-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.cert-info strong {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.4;
  font-weight: 600;
}

.cert-issuer {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cert-id {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--secondary);
  opacity: 0.85;
  margin-top: 0.2rem;
}

.cert-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: rgba(0, 242, 254, 0.04);
  border: 1px solid rgba(0, 242, 254, 0.12);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition-fast);
  width: 100%;
  margin-top: auto;
}

.cert-link-btn svg {
  width: 14px;
  height: 14px;
}

.cert-link-btn:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* 9. Experience Section */
.experience-section {
  padding: 8rem 0;
  position: relative;
  z-index: 1;
}

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

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 32px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary) 0%, var(--secondary) 100%);
  opacity: 0.2;
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
  padding-left: 80px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 23px;
  top: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-darker);
  border: 3px solid var(--primary);
  z-index: 2;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-dot {
  border-color: var(--secondary);
  box-shadow: 0 0 15px rgba(155, 93, 229, 0.75);
  transform: scale(1.2);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
  position: relative;
}

.timeline-item:hover .timeline-content {
  border-color: rgba(0, 242, 254, 0.25);
  box-shadow: 0 15px 35px rgba(0, 242, 254, 0.08);
  transform: translateY(-3px);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1rem;
}

.timeline-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Logo + title row (used by ECSoC and any logo'd role) */
.timeline-title-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.timeline-logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 6px rgba(0, 242, 254, 0.28));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.timeline-logo svg { display: block; }

.timeline-item:hover .timeline-logo {
  transform: rotate(-6deg) scale(1.08);
}

.timeline-header .company {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 500;
}

.timeline-summary {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 0;
}

.expand-btn {
  background: transparent;
  border: none;
  color: var(--secondary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
  padding: 0;
}

.expand-btn:hover {
  color: var(--primary);
}

.expand-btn span {
  font-size: 1.2rem;
  line-height: 1;
}

.timeline-details-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-details-panel.open {
  max-height: 500px; /* High enough value to contain bullet points */
}

.experience-bullets {
  list-style: none;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.experience-bullets li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.experience-bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--primary);
}

@media (max-width: 600px) {
  .timeline::before,
  .timeline::after {
    left: 20px;
  }
  .timeline-dot {
    left: 11px;
  }
  .timeline-item {
    padding-left: 45px;
  }
  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 10. Projects Section */
.projects-section {
  padding: 8rem 0;
  position: relative;
  z-index: 1;
}

.project-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(0, 242, 254, 0.02);
}

.filter-btn.active {
  color: #000;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
}

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

.project-card {
  background: radial-gradient(circle 350px at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(var(--primary-rgb), 0.12), rgba(var(--secondary-rgb), 0.04) 50%, transparent 100%), var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.15s ease-out, border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
}

.project-card-inner {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: 0 15px 35px rgba(0, 242, 254, 0.1);
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.project-short-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

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

.project-tech-tags span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  color: var(--text-muted);
}

.btn-card-details {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(0, 242, 254, 0.25);
  width: 100%;
  padding: 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
}

.btn-card-details:hover {
  background: var(--primary);
  color: #000;
  box-shadow: 0 5px 15px rgba(0, 242, 254, 0.2);
}

/* Hide animation for grid layout filtering */
.project-card.hide {
  display: none;
}

/* 11. Modal Detail System */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 5, 8, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  padding: 1rem;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #0d1017;
  border: 1px solid rgba(0, 242, 254, 0.15);
  border-radius: 16px;
  width: 100%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 242, 254, 0.15);
  transform: translateY(30px);
  transition: var(--transition-smooth);
  padding: 3rem;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) #0d1017;
}

.modal-card::-webkit-scrollbar {
  width: 6px;
}
.modal-card::-webkit-scrollbar-track {
  background: #0d1017;
}
.modal-card::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 254, 0.2);
  border-radius: 3px;
}

.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-fast);
  z-index: 5;
}

.modal-close:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}

/* Modal Content Styling */
.modal-project-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.modal-project-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.modal-project-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-section-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.modal-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.modal-bullets li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.modal-bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.modal-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.modal-tech-list span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: rgba(0, 242, 254, 0.04);
  border: 1px solid rgba(0, 242, 254, 0.15);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  color: var(--primary);
}

/* Project modal action links (Live Demo / View Code) */
.modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
  background: rgba(0, 242, 254, 0.06);
  border: 1px solid rgba(0, 242, 254, 0.4);
  transition: var(--transition-smooth);
}
.modal-link-btn svg { width: 17px; height: 17px; }

.modal-link-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: rgba(0, 242, 254, 0.12);
  box-shadow: 0 6px 18px rgba(0, 242, 254, 0.25);
}

/* First link gets the filled gradient treatment for emphasis */
.modal-link-btn:first-child {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #000;
  border: none;
}
.modal-link-btn:first-child:hover {
  box-shadow: 0 8px 22px rgba(0, 242, 254, 0.4);
}

.modal-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 600px) {
  .modal-card {
    padding: 2rem 1.5rem;
  }
}

/* 12. Skills Dashboard Section */
.skills-section {
  padding: 8rem 0;
  position: relative;
  z-index: 1;
}

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

.skill-category {
  background: radial-gradient(circle 300px at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(var(--primary-rgb), 0.12), rgba(var(--secondary-rgb), 0.04) 50%, transparent 100%), var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2.2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease-out, border-color 0.3s, box-shadow 0.3s;
  transform-style: preserve-3d;
}

.skill-category:hover {
  transform: translateY(-5px);
  border-color: rgba(155, 93, 229, 0.25);
  box-shadow: 0 15px 35px rgba(155, 93, 229, 0.08);
}

.skill-cat-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.8rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.skill-cat-title svg {
  width: 20px;
  height: 20px;
  color: var(--secondary);
}

.skill-category:hover .skill-cat-title svg {
  color: var(--primary);
  transform: scale(1.1);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  padding: 0.45rem 1rem;
  border-radius: 6px;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.skill-tag:hover {
  color: var(--primary);
  background: rgba(0, 242, 254, 0.05);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

/* 13. Contact Section */
.contact-section {
  padding: 8rem 0 12rem 0;
  position: relative;
  z-index: 1;
}

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

.contact-info-panel p {
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

.contact-card-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail-card {
  background: radial-gradient(circle 250px at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(var(--primary-rgb), 0.12), rgba(var(--secondary-rgb), 0.04) 50%, transparent 100%), var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  transition: transform 0.15s ease-out, border-color 0.3s, box-shadow 0.3s;
  transform-style: preserve-3d;
}

.contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(0, 242, 254, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-text {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

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

.contact-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  word-break: break-all;
}

.btn-copy {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-copy:hover {
  background: var(--primary);
  color: #000;
  border-color: var(--primary);
}

.btn-copy.copied {
  background: #27c93f;
  color: #000;
  border-color: #27c93f;
}

/* Contact Form Styling */
.contact-form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

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

/* Netlify spam honeypot — visually hidden, off-screen, not focusable/announced */
.hidden-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-group input, .form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.9rem 1.2rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.btn-submit {
  width: 100%;
  border: none;
}

.submit-icon {
  width: 16px;
  height: 16px;
  margin-left: 0.5rem;
}

.form-success-msg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0d1017;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  transform: translateY(100%);
  transition: var(--transition-smooth);
}

.form-success-msg.show {
  transform: translateY(0);
}

.form-success-msg svg {
  width: 60px;
  height: 60px;
  color: #27c93f;
  background: rgba(39, 201, 63, 0.08);
  padding: 1rem;
  border-radius: 50%;
  animation: scale-up-check 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scale-up-check {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .contact-form-panel {
    padding: 2rem;
  }
}

/* 14. Footer Layout */
footer {
  background: #040507;
  border-top: 1px solid var(--border-light);
  padding: 3rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* 15. Scroll Reveal Animations (JS-controlled classes) */
.reveal-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-slide {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-slide.active {
  opacity: 1;
  transform: translateX(0);
}

/* Click Ripple Style */
.click-ripple {
  position: fixed;
  width: 10px;
  height: 10px;
  background: transparent;
  border: 2px solid var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999999;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  transition: transform 0.6s cubic-bezier(0.1, 0.8, 0.3, 1), opacity 0.6s ease-out, border-color 0.6s ease;
}

/* 16. Prefers Reduced Motion Configuration */
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  .reveal-fade, .reveal-slide {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .profile-card,
  .profile-card-glow,
  .pulse-dot {
    animation: none !important;
  }
  .custom-cursor,
  .custom-cursor-dot {
    display: none !important;
  }
}

/* 17. Mobile Viewport Elements Polish */
@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.8rem;
  }
  .hero-buttons .btn {
    width: 100%;
  }
}

/* 18. Loader Responsive */
@media (max-width: 768px) {
  .loader-content {
    width: 94%;
    max-width: 420px;
  }
  .terminal-body {
    height: 140px;
    padding: 1rem;
    font-size: 0.72rem;
  }
  .loader-footer {
    gap: 0.8rem;
  }
  .loader-percentage {
    font-size: 0.78rem;
    min-width: 38px;
  }
}

@media (max-width: 400px) {
  .loader-content {
    width: 96%;
    max-width: 340px;
  }
  .terminal-body {
    height: 120px;
    padding: 0.75rem;
    font-size: 0.65rem;
    gap: 0.4rem;
  }
  .terminal-header-bar {
    padding: 0.5rem 0.75rem;
  }
  .terminal-title {
    font-size: 0.62rem;
  }
  .terminal-dots .dot {
    width: 8px;
    height: 8px;
  }
  .loader-progress-bar {
    height: 4px;
  }
  .loader-percentage {
    font-size: 0.7rem;
    min-width: 34px;
  }
}

/* 20. Timeline Actions & View Live Button */
.timeline-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn-live-demo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 600;
  color: #0f0;
  background: rgba(0, 255, 0, 0.06);
  border: 1px solid rgba(0, 255, 0, 0.2);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-live-demo:hover {
  background: rgba(0, 255, 0, 0.12);
  border-color: rgba(0, 255, 0, 0.5);
  box-shadow: 0 0 14px rgba(0, 255, 0, 0.15);
  color: #4f4;
}

.btn-live-demo svg {
  stroke: currentColor;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
