/* ==========================================================================
   DESIGN SYSTEM & CORE TOKENS
   ========================================================================== */
:root {
  --color-bg-dark: #070708;
  /* Pure Slate Dark */
  --color-bg-light: #ffffff;
  --color-accent-red: #ff2a2a;
  /* Dynamic Crimson Red */
  --color-accent-gold: #f4c400;
  /* High-contrast Gold */
  --color-text-white: #ffffff;
  --color-text-dark: #070708;
  --color-text-gray: #71717a;
  /* Zinc 500 */
  --color-text-light-gray: #d4d4d8;
  /* Zinc 300 */
  --color-border-dark: #1f1f23;
  /* Zinc 800 */
  --color-border-light: #e4e4e7;
  /* Zinc 200 */

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-terminal: 'Fira Code', monospace;

  --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.3s ease;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  background-color: var(--color-bg-dark);
  font-family: var(--font-body);
  color: var(--color-text-white);
  overflow-x: hidden;
  scroll-behavior: auto;
  /* Lenis smooth scroll controls physics */
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-dark);
}

::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent-red);
}

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

p {
  line-height: 1.6;
  color: var(--color-text-gray);
  font-size: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Text Colors helper class */
.text-red {
  color: var(--color-accent-red) !important;
}

.text-gold {
  color: var(--color-accent-gold) !important;
}

.text-blue {
  color: #0088cc !important;
}

.text-orange {
  color: #ff9900 !important;
}

.text-green {
  color: #25d366 !important;
}

.text-purple {
  color: #cc2366 !important;
}

.text-gray {
  color: var(--color-text-gray) !important;
}

.text-yellow {
  color: #ffdd00 !important;
}

/* ==========================================================================
   NAVIGATION BAR (DYNAMIC TRANSLATE SCROLL TOGGLE)
   ========================================================================== */
.nav-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(7, 7, 8, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scroll hiding class triggered in script.js */
.nav-container.-translate-y-full {
  transform: translateY(-100%);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-text-white);
  letter-spacing: 0.05em;
}

.nav-logo span {
  color: var(--color-accent-red);
}

.nav-links {
  display: flex;
  gap: 2.25rem;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-light-gray);
  transition: var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent-red);
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--color-text-white);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--color-accent-red);
  color: var(--color-text-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.6rem 1.6rem;
  border-radius: 50px;
  transition: var(--transition-fast);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 42, 42, 0.4);
}

/* Mobile Menu Toggle Button styling */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--color-text-white);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 150;
  transition: var(--transition-fast);
  padding: 0.5rem;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle:hover {
  color: var(--color-accent-red);
}

/* ==========================================================================
   FIXED HERO SECTION (SCROLL SCALE PARALLAX REVEAL)
   ========================================================================== */
.fixed-hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-bg-dark);
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-bg-text-wrapper {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.hero-stroke-text {
  font-family: var(--font-heading);
  font-size: 15vw;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.08);
  text-align: center;
  text-transform: uppercase;
  transform: translateZ(0);
}

/* Main Content Wrapper positioned above fixed background */
.main-content {
  position: relative;
  z-index: 10;
  background: transparent;
}

.hero-spacer {
  height: 100vh;
  pointer-events: none;
}

/* ==========================================================================
   SECTION 1: HOME/INTRO (PARALLAX SPLIT COLUMNS)
   ========================================================================== */
.home-section {
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  padding: 8rem 2rem;
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.home-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.home-col {
  transition: transform 0.1s ease-out;
}

/* Hanging Polaroid Card frame details */
.polaroid-wire-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.polaroid-wire {
  width: 2px;
  height: 120px;
  background: linear-gradient(to bottom, rgba(7, 7, 8, 0.4), rgba(7, 7, 8, 0.8));
  margin-bottom: -10px;
  position: relative;
  z-index: 1;
}

.polaroid-frame {
  background: #ffffff;
  padding: 1.5rem 1.5rem 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(7, 7, 8, 0.05);
  width: 360px;
  transform: rotate(-3deg);
  transform-origin: top center;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
}

.polaroid-frame:hover {
  transform: rotate(0.5deg) translateY(5px);
}

.polaroid-photo-wrapper {
  width: 100%;
  height: 290px;
  overflow: hidden;
  background: #f0f0f2;
  position: relative;
}

.polaroid-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.polaroid-frame:hover .polaroid-photo {
  transform: scale(1.04);
}

.polaroid-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.polaroid-label {
  margin-top: 1.5rem;
  text-align: center;
}

.polaroid-label h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-text-dark);
  margin-bottom: 0.25rem;
}

.polaroid-label p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text-gray);
  font-weight: 500;
}

/* Right Column Intro layout */
.intro-badge {
  display: inline-block;
  background: rgba(255, 42, 42, 0.06);
  border: 1px solid rgba(255, 42, 42, 0.15);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-accent-red);
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.intro-heading {
  font-size: 4rem;
  line-height: 1.05;
  color: var(--color-text-dark);
  margin-bottom: 2rem;
}

/* Vertical Role Ticker */
.role-ticker-wrapper {
  display: inline-block;
  height: 4.2rem;
  overflow: hidden;
  vertical-align: bottom;
  position: relative;
}

.role-ticker-container {
  display: flex;
  flex-direction: column;
}

.role-item {
  height: 4.2rem;
  font-family: var(--font-heading);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-text-dark);
  display: block;
}

.intro-description {
  color: var(--color-text-gray);
  max-width: 500px;
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

/* Social Icon Transforms */
.social-links {
  display: flex;
  gap: 1.25rem;
}

.social-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  border: 1px solid rgba(7, 7, 8, 0.12);
  color: var(--color-text-dark);
  font-size: 1.2rem;
  background: transparent;
  transition: var(--transition-smooth);
}

.social-btn:hover {
  transform: translateY(-4px);
  border-color: transparent;
  color: var(--color-text-white);
}

.social-btn.email:hover {
  background: #ea4335;
}

.social-btn.linkedin:hover {
  background: #0077b5;
}

.social-btn.github:hover {
  background: #24292e;
}

.social-btn.whatsapp:hover {
  background: #25d366;
}

/* ==========================================================================
   SECTION 2: HERMES-OPENCLAW AI COMMAND CENTER
   ========================================================================== */
.hermes-section {
  background-color: var(--color-bg-dark);
  padding: 5rem 2rem 8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  min-height: 100svh;
}

.hermes-container {
  max-width: 1200px;
  margin: 0 auto;
}

.hermes-header {
  text-align: center;
  margin-bottom: 4rem;
}

.sub-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-accent-red);
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  display: block;
  text-transform: uppercase;
}

.section-title {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
}

.section-desc {
  font-size: 1.25rem;
  color: var(--color-text-light-gray);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
  font-style: italic;
}

.hermes-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

/* Futuristic Terminal Styling */
.terminal-col {
  perspective: 1000px;
}

.terminal-bar {
  background: #18181c;
  padding: 0.75rem 1.25rem;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.t-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.t-dot.red {
  background-color: #ff5f56;
}

.t-dot.yellow {
  background-color: #ffbd2e;
}

.t-dot.green {
  background-color: #27c93f;
}

.terminal-title {
  font-family: var(--font-terminal);
  font-size: 0.8rem;
  color: var(--color-text-gray);
  margin-left: 2rem;
}

.terminal-body {
  background: rgba(18, 18, 22, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-top: none;
  padding: 2rem;
  height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--font-terminal);
  font-size: 0.9rem;
  line-height: 1.6;
}

.terminal-lines {
  overflow-y: auto;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.term-line {
  margin-bottom: 0.5rem;
}

.term-line.system {
  color: #575765;
}

.term-line.command {
  color: var(--color-accent-gold);
}

.term-line.output {
  color: var(--color-text-light-gray);
}

.term-line.action {
  color: var(--color-accent-red);
}

.terminal-input-line {
  display: flex;
  align-items: center;
}

.terminal-prompt {
  color: var(--color-accent-red);
  margin-right: 0.5rem;
  font-weight: 600;
}

.terminal-typed-input {
  color: #ffffff;
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--color-accent-red);
  margin-left: 3px;
  animation: blink 0.8s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

/* Neural Network Node Graph */
.neural-scene {
  background: rgba(18, 18, 22, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  height: 400px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.glow-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(255, 42, 42, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* SVGs node layout */
.neural-connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.connection-line {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1.5px;
}

/* SVG Line Pulsing Animations */
.line-pulse-1 {
  stroke-dasharray: 100;
  animation: pulsePath 3s linear infinite;
  stroke: rgba(0, 119, 181, 0.3);
}

.line-pulse-2 {
  stroke-dasharray: 100;
  animation: pulsePath 3s linear infinite reverse;
  stroke: rgba(37, 211, 102, 0.3);
}

.line-pulse-3 {
  stroke-dasharray: 100;
  animation: pulsePath 4s linear infinite;
  stroke: rgba(255, 42, 42, 0.3);
}

.line-pulse-4 {
  stroke-dasharray: 100;
  animation: pulsePath 4s linear infinite reverse;
  stroke: rgba(244, 196, 0, 0.3);
}

@keyframes pulsePath {
  0% {
    stroke-dashoffset: 200;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

.neural-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #18181c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  width: 64px;
  height: 64px;
  color: var(--color-text-light-gray);
  font-size: 1.25rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
  cursor: help;
  z-index: 10;
}

.neural-node span {
  position: absolute;
  bottom: -22px;
  white-space: nowrap;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--color-text-gray);
}

.neural-node:hover {
  border-color: var(--color-accent-red);
  color: #ffffff;
  transform: scale(1.1);
}

.node-telegram {
  top: 15%;
  left: 10%;
  border-color: rgba(0, 119, 181, 0.4);
  color: #0088cc;
}

.node-whatsapp {
  bottom: 15%;
  left: 10%;
  border-color: rgba(37, 211, 102, 0.4);
  color: #25d366;
}

.node-core {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  font-size: 2rem;
  background: #201214;
  border-color: rgba(255, 42, 42, 0.3);
  color: var(--color-accent-red);
}

.node-core span {
  bottom: -25px;
  font-size: 0.8rem;
  color: var(--color-text-light-gray);
}

.node-core.node-active {
  animation: pulseActive 2.5s infinite alternate;
}

@keyframes pulseActive {
  0% {
    box-shadow: 0 0 15px rgba(255, 42, 42, 0.2);
  }

  100% {
    box-shadow: 0 0 35px rgba(255, 42, 42, 0.6);
  }
}

.node-action-1 {
  top: 15%;
  right: 10%;
  border-color: rgba(255, 42, 42, 0.4);
  color: var(--color-accent-red);
}

.node-action-2 {
  bottom: 15%;
  right: 10%;
  border-color: rgba(244, 196, 0, 0.4);
  color: var(--color-accent-gold);
}

/* ==========================================================================
   SECTION 3: TECH ECOSYSTEM & TOOLS
   ========================================================================== */
.tech-section {
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  padding: 8rem 2rem;
  min-height: 100svh;
}

.tech-container {
  max-width: 1200px;
  margin: 0 auto;
}

.tech-header {
  text-align: center;
  margin-bottom: 4rem;
}

.tech-header .section-desc {
  color: var(--color-text-gray);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.tech-category-card {
  background: var(--color-bg-dark);
  color: var(--color-text-white);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.tech-category-card:hover {
  transform: translateY(-8px);
}

.tech-category-card h4 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.75rem;
}

.tech-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  z-index: 2;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.tech-item i {
  font-size: 1.15rem;
  width: 20px;
  text-align: center;
}

.tech-item:hover {
  transform: translateX(4px);
}

/* Category Glow Gadients */
.tech-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.tech-card-glow.bg-gold {
  background: radial-gradient(circle at top left, rgba(244, 196, 0, 0.08) 0%, transparent 60%);
}

.tech-card-glow.bg-red {
  background: radial-gradient(circle at top left, rgba(255, 42, 42, 0.08) 0%, transparent 60%);
}

.tech-card-glow.bg-blue {
  background: radial-gradient(circle at top left, rgba(0, 119, 181, 0.08) 0%, transparent 60%);
}

.tech-card-glow.bg-red-gold {
  background: radial-gradient(circle at top left, rgba(255, 42, 42, 0.1) 0%, rgba(244, 196, 0, 0.04) 40%, transparent 70%);
}

/* Double size card layout for AI showcase */
.tech-highlight-card {
  grid-column: span 3;
  border: 1px solid rgba(255, 42, 42, 0.15);
  background: radial-gradient(ellipse at center, #181214 0%, #0d0d0f 100%);
}

.tech-highlight-card h4 {
  border-color: rgba(255, 42, 42, 0.2);
  color: var(--color-accent-red);
}

.tech-highlight-card .tech-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.tech-item.highlight {
  font-weight: 600;
  font-size: 1.1rem;
}

.tech-item.highlight i {
  font-size: 1.35rem;
}

/* ==========================================================================
   SECTION 4: PROJECTS GRID (UNPACK ARCHIVE)
   ========================================================================== */
.portfolio-section {
  background-color: var(--color-bg-dark);
  color: var(--color-text-white);
  padding: 6rem 2rem 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  position: relative;
  min-height: 100svh;
}

.portfolio-stage-container {
  position: relative;
  width: 100%;
  min-height: 760px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  perspective: 1000px;
}

.portfolio-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* Server Disclaimer banner styles */
.server-disclaimer-banner {
  background: rgba(255, 165, 0, 0.04);
  border: 1px dashed rgba(255, 165, 0, 0.2);
  padding: 1.25rem 2rem;
  border-radius: 12px;
  max-width: 900px;
  margin: 2rem auto 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-align: left;
}

.disclaimer-badge {
  background: rgba(255, 165, 0, 0.12);
  color: #ffa500;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.server-disclaimer-banner p {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--color-text-light-gray);
}

.blink-orange {
  color: #ffa500;
  animation: pulseOrange 1s infinite alternate;
}

@keyframes pulseOrange {
  0% {
    opacity: 0.4;
    transform: scale(0.95);
  }

  100% {
    opacity: 1;
    transform: scale(1.05);
  }
}

/* 3D Projects Carousel Viewport */
/* ==========================================================================
   GRID BACKGROUND & LIGHT BEAM OVERLAYS
   ========================================================================== */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center;
  transform: rotateX(65deg);
  transform-origin: center center;
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
}

.light-beam {
  position: absolute;
  bottom: 220px;
  left: 50%;
  transform: translateX(-50%) scaleY(0);
  transform-origin: bottom center;
  width: 320px;
  height: 400px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.9) 0%, rgba(56, 189, 248, 0.5) 25%, rgba(99, 102, 241, 0.15) 60%, transparent 100%);
  clip-path: polygon(15% 100%, 85% 100%, 100% 0%, 0% 0%);
  filter: blur(18px);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  will-change: transform, opacity;
}

/* ==========================================================================
   SLATE-STYLE 3D PROJECTS OPENING FOLDER
   ========================================================================== */
.folder-stage-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 40;
  position: absolute;
  bottom: 180px;
  left: 50%;
  transform: translateX(-50%);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.user-folder-container {
  position: relative;
  z-index: 45;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.user-folder-container:not(.archive-open) {
  transition: transform 0.3s ease;
}

.user-folder-container:hover {
  transform: translateY(-8px) scale(1.03);
}

.user-folder-wrapper {
  width: 224px;
  height: 176px;
  position: relative;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.user-folder-back {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, #1e293b, #334155);
  border-radius: 1rem;
  border-top-left-radius: 0;
  border: 1px solid rgba(71, 85, 105, 0.3);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  transform-style: preserve-3d;
  transition: box-shadow 0.6s ease, border-color 0.6s ease;
}

.user-folder-container.archive-open .user-folder-back {
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.45), 0 0 80px rgba(255, 255, 255, 0.25), 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  border-color: rgba(56, 189, 248, 0.4);
}

.user-folder-tab {
  position: absolute;
  top: -12px;
  left: 0;
  width: 64px;
  height: 16px;
  background: #334155;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

.user-folder-inner-screen {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  height: 128px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.98) 0%, rgba(56, 189, 248, 0.75) 45%, rgba(15, 23, 42, 0.98) 100%);
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.7), inset 0 2px 4px 0 rgba(255, 255, 255, 0.4);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  z-index: 5;
}

.user-folder-screen-bar {
  width: 100%;
  height: 12px;
  background: #27272a;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  gap: 0.25rem;
  border-bottom: 1px solid #3f3f46;
}

.user-folder-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.user-folder-front {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, rgba(71, 85, 105, 0.82), rgba(99, 102, 241, 0.45));
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.2), 0 10px 30px rgba(0, 0, 0, 0.4);
  transform-origin: bottom center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.folder-front-design {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-white);
  font-family: var(--font-heading);
}

.folder-front-design i {
  font-size: 2.25rem;
  color: #6366f1;
  text-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

.folder-front-design span {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.85);
}

.user-folder-hint {
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: userPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* ==========================================================================
   PROJECTS SPOTLIGHT SHOWCASE CAROUSEL
   ========================================================================== */
.projects-card-wrapper {
  width: 100%;
  height: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 20px;
  left: 0;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.projects-card-wrapper.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Overflow-hidden viewport that houses the card track */
.showcase-viewport {
  width: 100%;
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Track: all cards are absolutely centered here */
.showcase-track {
  position: relative;
  width: 100%;
  height: 510px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Individual showcase cards ---- */
.showcase-card {
  position: absolute;
  width: 390px;
  height: 490px;
  background: linear-gradient(145deg,
    rgba(22, 22, 36, 0.70) 0%,
    rgba(8, 8, 16, 0.80) 100%);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.72),
    0 6px 16px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  padding: 2.1rem 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  overflow: hidden;
  will-change: transform, opacity;
  user-select: none;
}

/* Colored top accent stripe */
.showcase-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-accent, rgba(255, 255, 255, 0.14));
  border-radius: 22px 22px 0 0;
}

/* Radial top glow from accent */
.showcase-card::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 110%;
  height: 170px;
  background: radial-gradient(ellipse at 50% 0%,
    var(--card-accent, transparent), transparent 68%);
  opacity: 0.1;
  pointer-events: none;
}

/* Hover glow on the active (centered) card */
.showcase-card:hover {
  border-color: var(--card-accent, rgba(255, 255, 255, 0.2));
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.78),
    0 0 40px var(--card-accent, rgba(255, 255, 255, 0.04)),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* ---- Card inner layout ---- */
.sc-num {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--card-accent, rgba(255, 255, 255, 0.28));
  letter-spacing: 0.24em;
  margin-bottom: 0.85rem;
}

.sc-icon {
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 0 22px currentColor);
  margin-bottom: 0.8rem;
}

.sc-badge {
  font-family: var(--font-heading);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--card-accent, var(--color-accent-gold));
  margin-bottom: 0.55rem;
  opacity: 0.82;
}

.sc-title {
  font-family: var(--font-heading);
  font-size: 1.48rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.18;
  margin: 0 0 0.65rem 0;
}

.sc-desc {
  font-size: 0.82rem;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.52);
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin-bottom: 0.85rem;
}

.sc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-bottom: 0.9rem;
}

.sc-tags span {
  font-family: var(--font-heading);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.62rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.52);
}

.sc-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

.sc-live-btn,
.sc-about-btn {
  font-family: var(--font-heading);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.38rem 0.82rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
  white-space: nowrap;
  line-height: 1;
}

.sc-live-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.60);
}

.sc-live-btn:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.sc-about-btn {
  background: transparent;
  border: 1px solid var(--card-accent, rgba(255, 42, 42, 0.45));
  color: var(--card-accent, var(--color-accent-red));
}

.sc-about-btn:hover {
  background: var(--card-accent, var(--color-accent-red));
  color: #ffffff;
}

/* ---- Navigation bar ---- */
.showcase-nav-bar {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 0.7rem 0;
  flex-shrink: 0;
  z-index: 50;
}

.showcase-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.24s ease, border-color 0.24s ease, color 0.24s ease;
  flex-shrink: 0;
}

.showcase-arrow:hover {
  background: var(--color-accent-red);
  border-color: var(--color-accent-red);
  color: #ffffff;
}

.showcase-dots {
  display: flex;
  gap: 0.46rem;
  align-items: center;
}

.showcase-dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease, border-radius 0.3s ease;
  flex-shrink: 0;
}

.showcase-dot.active {
  background: var(--color-accent-red);
  width: 22px;
  border-radius: 4px;
}

/* Instruction text in the bottom controls bar */
.deck-spread-instruction {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-gray);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}

/* ==========================================================================
   GLOBAL PROJECTS MODAL OVERLAY
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 7, 8, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

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

.modal-wrapper {
  width: 100%;
  max-width: 720px;
  padding: 2rem;
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-wrapper {
  transform: scale(1);
}

.modal-card {
  background: #121215;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 3.5rem;
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.65);
  position: relative;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.modal-close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text-gray);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 42, 42, 0.1);
  color: var(--color-accent-red);
}

.modal-header-section {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.modal-badge {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-accent-gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.modal-title {
  font-size: 2.25rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.modal-links-bar {
  display: flex;
  gap: 1rem;
}

.modal-link-btn {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-light-gray);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.modal-link-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.modal-scroll-content {
  overflow-y: auto;
  flex-grow: 1;
  padding-right: 1rem;
}

/* Custom Scrollbar inside modal */
.modal-scroll-content::-webkit-scrollbar {
  width: 4px;
}

.modal-scroll-content::-webkit-scrollbar-track {
  background: transparent;
}

.modal-scroll-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.modal-info-block {
  margin-bottom: 1.75rem;
}

.modal-info-block h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 750;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-info-block p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-text-light-gray);
}

.modal-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ==========================================================================
   SECTION 5: CHRONO-DIAL TIMELINE (EDUCATION SCROLL OVERHAUL)
   ========================================================================== */
.timeline-section {
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  min-height: 100svh;
  position: relative;
  z-index: 10;
  overflow: hidden;
}

.timeline-scroll-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem;
  height: 100vh;
  display: flex;
  align-items: center;
}

.timeline-columns {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 6rem;
  align-items: center;
  width: 100%;
}

/* Chrono-Dial layout */
.timeline-dial-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.dial-scene {
  position: relative;
  width: 380px;
  height: 380px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dial-glow-aura {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 42, 42, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.chrono-dial-svg {
  width: 100%;
  height: 100%;
  transform-origin: center center;
  will-change: transform;
}

.dial-text {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 900;
  fill: rgba(7, 7, 8, 0.25);
  letter-spacing: 0.05em;
  transition: fill 0.3s ease;
}

/* Chrono-Dial Active indicator details overlay */
.dial-indicator-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 5;
}

.dial-year-active {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text-dark);
}

.dial-status-active {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-accent-red);
  letter-spacing: 0.1em;
  margin-top: 0.25rem;
}

/* Right side milestones stack */
.timeline-cards-col {
  position: relative;
  height: 380px;
}

.chrono-milestones-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.milestone-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.milestone-card.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.milestone-badge {
  align-self: flex-start;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.milestone-badge.bg-gold {
  background-color: var(--color-accent-gold);
  color: var(--color-text-dark);
}

.milestone-badge.bg-blue {
  background-color: #0088cc;
}

.milestone-badge.bg-purple {
  background-color: #a200ff;
}

.milestone-card h3 {
  font-size: 2.25rem;
  color: var(--color-text-dark);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.milestone-inst {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-accent-red);
  margin-bottom: 1.25rem;
}

.milestone-card p {
  color: var(--color-text-gray);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.milestone-footer {
  display: flex;
  gap: 0.75rem;
}

/* ==========================================================================
   SECTION 6: CERTIFICATIONS CAROUSEL (3D DRAG ORBIT)
   ========================================================================== */
.certifications-section {
  background-color: var(--color-bg-dark);
  color: var(--color-text-white);
  padding: 8rem 2rem;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: visible;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.certifications-header {
  text-align: center;
  margin-bottom: 5rem;
}

.carousel-viewport {
  width: 100%;
  height: 460px;
  perspective: 2000px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: grab;
}

.carousel-viewport:active {
  cursor: grabbing;
}

.carousel-ring {
  width: 290px;
  height: 380px;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.carousel-item-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #111113;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 2.25rem;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.55);
  transition: border-color 0.3s ease;
}

.carousel-item-card:hover {
  border-color: var(--color-accent-red);
}

.card-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-num {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-accent-red);
  opacity: 0.8;
}

.card-icon {
  font-size: 2.5rem;
  color: var(--color-text-white);
  margin-bottom: 0.5rem;
}

.carousel-item-card h4 {
  font-size: 1.45rem;
  color: var(--color-text-white);
  line-height: 1.15;
}

.cert-desc {
  font-size: 0.82rem;
  color: var(--color-text-gray);
  line-height: 1.45;
  height: 72px;
  overflow: hidden;
}

.card-btn {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent-red);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.card-btn::after {
  content: '\f061';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.carousel-item-card:hover .card-btn::after {
  transform: translateX(4px);
}

/* ==========================================================================
   SECTION 7: CONTACT FORM (DARK ACCENTS)
   ========================================================================== */
.contact-section {
  background-color: var(--color-bg-dark);
  padding: 8rem 2rem;
  min-height: 100svh;
  overflow: visible;
  display: flex;
  align-items: center;
  z-index: 10;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.contact-header {
  text-align: center;
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-header p {
  color: var(--color-text-light-gray);
  font-size: 1.1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}

.form-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-accent-gold);
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.75rem 0;
  color: var(--color-text-white);
  font-family: var(--font-body);
  font-size: 1.05rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-group textarea {
  resize: none;
}

.input-focus-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  transition: var(--transition-smooth);
}

.form-group input:focus~.input-focus-bar,
.form-group textarea:focus~.input-focus-bar {
  width: 100%;
}

/* Glowing Submit Button */
.submit-btn {
  align-self: center;
  background: var(--color-text-white);
  color: var(--color-text-dark);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  padding: 1.2rem 3.5rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.05);
}

.submit-btn i {
  font-size: 0.95rem;
  transition: transform 0.3s ease;
}

.submit-btn:hover {
  background: var(--color-accent-red);
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(255, 42, 42, 0.35);
}

.submit-btn:hover i {
  transform: translate(4px, -4px);
  color: #ffffff !important;
}

/* ==========================================================================
   FOOTER (RED CONTAINER WITH TICKERS)
   ========================================================================== */
.main-footer {
  background-color: #0a0a0c;
  color: var(--color-text-white);
  padding: 0;
  position: relative;
  z-index: 20;
  border-top: 1px solid rgba(255, 42, 42, 0.18);
  box-shadow: 0 -10px 40px rgba(255, 42, 42, 0.08);
  overflow: hidden;
}

/* Footer marquee ticker */
.footer-tickers-container {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 42, 42, 0.12);
  padding: 1.5rem 0;
  gap: 1.25rem;
}

.footer-ticker {
  overflow: hidden;
  display: flex;
  width: 100%;
}

.marquee-track {
  display: flex;
  white-space: nowrap;
  gap: 1.25rem;
}

.marquee-track span {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  padding-right: 1.25rem;
}

.marquee-left .marquee-track {
  animation: scrollLeft 45s linear infinite;
}

.marquee-right .marquee-track {
  animation: scrollRight 45s linear infinite;
}

.marquee-left:hover .marquee-track,
.marquee-right:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes scrollRight {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

/* Badge styling for footer tags */
.marquee-tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--color-text-light-gray);
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  user-select: none;
}

.marquee-tag:hover {
  background: rgba(244, 196, 0, 0.08);
  border-color: var(--color-accent-gold);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(244, 196, 0, 0.25);
  transform: scale(1.05) rotate(-1deg);
}

.marquee-tag.highlight {
  border-color: rgba(255, 42, 42, 0.15);
  background: rgba(255, 42, 42, 0.02);
}

.marquee-tag.highlight:hover {
  background: rgba(255, 42, 42, 0.08);
  border-color: var(--color-accent-red);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 42, 42, 0.25);
  transform: scale(1.05) rotate(1deg);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
}

.footer-logo-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  font-size: 2.25rem;
  font-weight: 900;
}

.footer-logo span {
  color: var(--color-accent-gold);
}

.footer-logo-col p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  max-width: 400px;
}

.footer-links-col h4,
.footer-social-col h4 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

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

.footer-links-col a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  transition: var(--transition-fast);
}

.footer-links-col a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-bg-dark);
  color: var(--color-accent-red);
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.footer-socials a:hover {
  transform: translateY(-4px);
  background: #ffffff;
  color: var(--color-bg-dark);
}

/* ==========================================================================
   RESPONSIVENESS (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .home-container {
    grid-template-columns: 1fr;
    gap: 5rem;
  }

  .home-col-left {
    display: flex;
    justify-content: center;
  }

  .polaroid-wire {
    height: 60px;
  }

  .hermes-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .tech-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tech-highlight-card {
    grid-column: span 2;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-columns {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .timeline-scroll-wrapper {
    height: auto;
    padding: 6rem 2rem;
  }

  .timeline-dial-col {
    display: none;
  }

  .timeline-cards-col {
    height: auto;
  }

  .milestone-card {
    position: relative !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    margin-bottom: 3rem;
    height: auto !important;
  }

  .milestone-card:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(7, 7, 8, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem 2rem;
    gap: 1.75rem;
    align-items: center;
    z-index: 140;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
  }

  .nav-links.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-cta {
    display: none;
  }

  .intro-heading {
    font-size: 3rem;
  }

  .role-ticker-wrapper,
  .role-item {
    height: 3.2rem;
  }

  .intro-badge {
    font-size: 0.75rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }

  .tech-highlight-card {
    grid-column: span 1;
  }

  .tech-highlight-card .tech-items {
    grid-template-columns: 1fr;
  }

  /* Responsive Projects Showcase overrides */
  .portfolio-stage-container {
    height: 700px;
  }

  .projects-card-wrapper {
    height: 660px;
  }

  /* All sections revert to auto height on mobile — address bar shifts viewport on iOS */
  .home-section, .hermes-section, .tech-section,
  .certifications-section, .contact-section, .timeline-section {
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }
  .portfolio-section {
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }

  .folder-stage-container {
    bottom: 120px;
  }

  .projects-carousel-wrapper {
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    height: 440px;
    z-index: 30;
  }

  .light-beam {
    bottom: 60px;
    height: 380px;
    width: 200px;
  }

  .projects-carousel-viewport {
    height: 440px;
  }

  .projects-carousel-track {
    width: 280px;
    height: 380px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .polaroid-frame {
    width: 320px;
  }

  .polaroid-photo-wrapper {
    height: 250px;
  }

  .modal-card {
    padding: 2rem;
  }

  .modal-title {
    font-size: 1.75rem;
  }

  /* Responsive Certifications Carousel styles */
  .carousel-ring {
    width: 220px;
    height: 310px;
  }

  .carousel-item-card {
    padding: 1.25rem;
  }

  .carousel-item-card h4 {
    font-size: 1.15rem;
  }

  .cert-desc {
    font-size: 0.75rem;
    height: 85px;
  }

  .card-icon {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .portfolio-stage-container {
    height: 720px;
  }

  .folder-stage-container {
    bottom: 90px;
  }

  .projects-carousel-wrapper {
    position: absolute;
    top: 5px;
    height: 380px;
  }

  .light-beam {
    bottom: 40px;
    height: 320px;
    width: 160px;
  }
}

/* ==========================================================================
   CAROUSEL CONTROLS BAR & CLOSE BUTTON
   ========================================================================== */
.carousel-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 920px;
  padding: 0.85rem 1.5rem;
  margin-top: 0.5rem;
  z-index: 50;
  flex-shrink: 0;
}

.close-archive-btn {
  background: rgba(255, 42, 42, 0.08);
  border: 1px solid rgba(255, 42, 42, 0.28);
  color: var(--color-accent-red);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: var(--transition-fast);
  letter-spacing: 0.04em;
}

.close-archive-btn:hover {
  background: var(--color-accent-red);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(255, 42, 42, 0.4);
}

/* ==========================================================================
   SECTION GAP DECORATORS
   ========================================================================== */
/* Thin gradient line between white Tech section and dark Portfolio section */
.tech-section {
  position: relative;
}
.tech-section::after {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 42, 42, 0.25), rgba(244, 196, 0, 0.2), transparent);
  margin-top: 0;
}

/* Thin red divider above certifications (after hermes now properly closed) */
.certifications-section {
  border-top: 1px solid rgba(255, 42, 42, 0.08);
}

/* ==========================================================================
   RESUME MODAL
   ========================================================================== */
.resume-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 8, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

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

.resume-modal-box {
  width: min(860px, 96vw);
  height: min(92vh, 960px);
  background: #111113;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
  transform: scale(0.94) translateY(20px);
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.resume-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.6rem;
  background: #18181c;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.resume-modal-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text-white);
  letter-spacing: 0.02em;
}

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

.resume-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-accent-red);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition-fast);
  letter-spacing: 0.04em;
}

.resume-download-btn:hover {
  background: #e51e1e;
  box-shadow: 0 0 18px rgba(255, 42, 42, 0.45);
  transform: translateY(-1px);
}

.resume-close-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--color-text-gray);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.resume-close-btn:hover {
  background: rgba(255, 42, 42, 0.12);
  color: var(--color-accent-red);
  border-color: rgba(255, 42, 42, 0.3);
}

.resume-modal-body {
  flex: 1;
  overflow: hidden;
  background: #0e0e12;
}

.resume-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* nav-cta as button */
button.nav-cta {
  background: var(--color-accent-red);
  color: var(--color-text-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.6rem 1.6rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

button.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 42, 42, 0.4);
}

/* ---- Responsive showcase adjustments for mobile ---- */
@media (max-width: 768px) {
  .portfolio-stage-container { min-height: 700px; height: auto; }
  .projects-card-wrapper { height: 660px; }

  .showcase-card {
    width: 310px;
    height: 440px;
    padding: 1.6rem 1.5rem 1.3rem;
  }

  .sc-title { font-size: 1.2rem; }
  .sc-icon { font-size: 2.4rem; }

  .resume-modal-box {
    border-radius: 12px;
  }
}

/* ==========================================================================
   SERVER WAKE TOAST NOTIFICATION
   ========================================================================== */
.server-wake-toast {
  position: fixed;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%) translateY(90px);
  background: rgba(10, 10, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0.9rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.26, 0.64, 1);
  z-index: 9000;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  pointer-events: none;
  min-width: 300px;
  max-width: 90vw;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.55);
}

.server-wake-toast.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.live-link-disclaimer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 7, 8, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 9100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.live-link-disclaimer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.live-link-disclaimer-box {
  width: min(520px, 92vw);
  background: linear-gradient(145deg, rgba(18, 18, 28, 0.96), rgba(10, 10, 18, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
  padding: 2rem;
  transform: scale(0.94) translateY(18px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}

.live-link-disclaimer-overlay.active .live-link-disclaimer-box {
  transform: scale(1) translateY(0);
}

.live-link-disclaimer-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 196, 0, 0.12);
  color: var(--color-accent-gold);
  font-size: 1.6rem;
  box-shadow: inset 0 0 0 1px rgba(244, 196, 0, 0.18);
}

.live-link-disclaimer-title {
  font-size: 1.6rem;
  margin-bottom: 0.9rem;
  color: var(--color-text-white);
}

.live-link-disclaimer-text {
  color: var(--color-text-light-gray);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 0.65rem;
}

.live-link-disclaimer-actions {
  margin-top: 1.35rem;
}

.live-link-disclaimer-btn {
  min-width: 120px;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: none;
  background: var(--color-accent-red);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 26px rgba(255, 42, 42, 0.24);
}

.live-link-disclaimer-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
}

.live-link-disclaimer-btn:not(:disabled):hover {
  transform: translateY(-1px);
}

.toast-icon {
  font-size: 1.3rem;
  color: #f4c400;
  flex-shrink: 0;
}

.toast-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.toast-title {
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.toast-sub {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.50);
  line-height: 1.45;
}
