/* ============================================================
   PORTFOLIO — Cybersecurity Engineer
   Dark Theme + Particle Field + Scroll Animations
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  --bg-deep: #010308;
  --bg-surface: #0a1020;
  --bg-card: #0d1628;
  --border: #1a2a3a;
  --border-glow: #1e3a5a;

  --cyan: #00e5ff;
  --cyan-dim: #006080;
  --crimson: #ff3366;
  --crimson-dim: #801a33;
  --violet: #7b61ff;
  --violet-dim: #3d3080;
  --green: #00e676;

  --text-primary: #e0e8f0;
  --text-secondary: #8899aa;
  --text-muted: #4a5a6a;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --section-gap: 0;
  --content-max: 1100px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: auto; /* GSAP handles scroll */
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
  -ms-touch-action: manipulation;
}

body {
  overflow-x: hidden;
  background: transparent;
}

/* Vignette overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.45) 100%);
}

/* Scanline + noise overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.04) 2px,
      rgba(0, 0, 0, 0.04) 4px
    ),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.6;
}

/* Subtle screen flicker */
@keyframes crt-flicker {
  0%   { opacity: 1; }
  0.5% { opacity: 0.97; }
  1%   { opacity: 1; }
  50%  { opacity: 1; }
  50.5%{ opacity: 0.96; }
  51%  { opacity: 1; }
  100% { opacity: 1; }
}

::selection {
  background: rgba(0, 229, 255, 0.25);
  color: #fff;
}

/* --- No canvas — terminal-only background --- */

/* --- Terminal Breadcrumb --- */
#terminal-prompt {
  position: fixed;
  top: 24px;
  left: 28px;
  z-index: 100;
  font-size: 13px;
  color: var(--green);
  opacity: 0.9;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.terminal-cursor {
  animation: cursor-blink 1.2s step-end infinite;
  color: var(--green);
}

/* --- Navigation Dots --- */
#section-nav {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-dots {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  padding: 0;
}

.nav-dot:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
  transform: scale(1.3);
}

.nav-dot.active {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.5);
  transform: scale(1.2);
}

/* --- Scroll Progress --- */
#scroll-progress {
  position: fixed;
  bottom: 24px;
  left: 28px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(10, 16, 32, 0.85);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  backdrop-filter: blur(12px);
}

.progress-track {
  width: 80px;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--cyan);
  border-radius: 1px;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px var(--cyan);
}

.progress-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-secondary);
  min-width: 20px;
  text-align: right;
}

/* --- Main Content --- */
#main-content {
  position: relative;
  z-index: 1;
}

/* --- Sections --- */
.section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 32px;
  position: relative;
}

.section-content {
  width: 100%;
  max-width: var(--content-max);
}

/* --- Section Headers --- */
.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 64px;
}

.section-number {
  font-size: 16px;
  color: var(--cyan);
  opacity: 0.7;
  transition: all 0.5s ease;
}

.section.in-view .section-number {
  opacity: 1;
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-glow), transparent);
  margin-left: 8px;
  transition: all 0.5s ease;
}

.section.in-view .section-line {
  background: linear-gradient(90deg, var(--cyan), transparent);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

/* ============================================================
   FLOATING & BACKGROUND ANIMATIONS
   ============================================================ */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-6px) rotate(1deg); }
  66% { transform: translateY(4px) rotate(-1deg); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(0, 229, 255, 0.1); }
  50% { box-shadow: 0 0 25px rgba(0, 229, 255, 0.25), 0 0 50px rgba(0, 229, 255, 0.08); }
}

@keyframes border-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes scan-line {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

.floating {
  animation: float 6s ease-in-out infinite;
}

.floating-slow {
  animation: float-slow 8s ease-in-out infinite;
}

/* --- Utility --- */
.mono { font-family: var(--font-mono); }
.highlight { color: var(--cyan); }

/* ============================================================
   HERO
   ============================================================ */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  border: 1px solid var(--border-glow);
  border-radius: 100px;
  background: rgba(0, 229, 255, 0.03);
  opacity: 0;
  transform: translateY(30px);
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 6px var(--green); }
  50% { box-shadow: 0 0 20px var(--green), 0 0 30px rgba(0, 230, 118, 0.3); }
}

.badge-text {
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 2px;
}

.hero-name {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 0.9;
}

.name-line {
  font-size: clamp(56px, 10vw, 110px);
  font-weight: 900;
  letter-spacing: -0.03em;
  display: block;
}

.name-line--top {
  color: var(--text-primary);
}

.name-line--bottom {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--violet) 50%, var(--crimson) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-divider {
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(20px);
}

.divider-char {
  font-size: 18px;
  color: var(--cyan);
  opacity: 0.6;
}

.divider-char:last-child {
  animation: cursor-blink 1.2s step-end infinite;
}

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

.hero-title {
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 500;
  color: var(--text-secondary);
  max-width: 540px;
  opacity: 0;
  transform: translateY(20px);
}

.hero-subtitle {
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
}

.hero-cta {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
}

.cta-primary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(123, 97, 255, 0.1));
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 6px;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all var(--transition);
}

.cta-primary:hover {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.25), rgba(123, 97, 255, 0.2));
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.15);
  transform: translateY(-1px);
}

.cta-secondary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: all var(--transition);
}

.cta-secondary:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.cta-prompt {
  color: var(--green);
  opacity: 0.8;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 32px;
  opacity: 0;
  transform: translateY(20px);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Scroll Hint */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.5;
}

.scroll-hint-text {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.scroll-hint-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, var(--text-muted), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%, 100% { transform: scaleY(0.3); opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 0.8; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(20px);
}

.about-lead {
  color: var(--text-primary) !important;
  font-size: 17px !important;
  font-weight: 500;
}

.about-philosophy {
  display: block;
  margin-top: 28px;
  padding: 16px 20px;
  background: rgba(0, 229, 255, 0.03);
  border-left: 2px solid var(--cyan);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.7;
  opacity: 0;
  transform: translateX(-20px);
}

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

.about-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all var(--transition);
  opacity: 0;
  transform: translateX(30px);
}

.about-card:hover {
  border-color: var(--border-glow);
  background: rgba(0, 229, 255, 0.02);
}

.about-card-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 255, 0.06);
  border-radius: 8px;
}

.about-card-content h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.about-card-content p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.skill-cat-title {
  font-size: 13px;
  color: var(--cyan);
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
  font-weight: 500;
}

.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skill-bar {
  opacity: 0;
  transform: translateX(-20px);
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 13px;
}

.skill-info span:first-child {
  color: var(--text-secondary);
}

.skill-info .mono {
  color: var(--text-muted);
  font-size: 11px;
}

.skill-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tools-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-tag {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(10px);
}

.tool-tag:hover {
  border-color: var(--border-glow);
  color: var(--cyan);
  background: rgba(0, 229, 255, 0.04);
}

/* ============================================================
   EXPERIENCE / TIMELINE
   ============================================================ */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--border-glow), var(--border), var(--border-glow));
  --line-scale: 0;
  transform: scaleY(var(--line-scale));
  transform-origin: top center;
  transition: transform 0.1s ease-out;
}

.timeline-item {
  display: flex;
  gap: 32px;
  padding-bottom: 48px;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
}

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

.timeline-marker {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 2px solid var(--border-glow);
  background: var(--bg-deep);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: all var(--transition);
  margin-top: 4px;
}

.timeline-item:hover .timeline-marker {
  border-color: var(--cyan);
  background: rgba(0, 229, 255, 0.15);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  flex: 1;
  transition: all var(--transition);
}

.timeline-card:hover {
  border-color: var(--border-glow);
}

.timeline-date {
  font-size: 12px;
  color: var(--cyan);
  opacity: 0.8;
  margin-bottom: 8px;
  display: block;
}

.timeline-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 14px;
  color: var(--violet);
  font-weight: 500;
  display: block;
  margin-bottom: 12px;
}

.timeline-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

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

.timeline-tags span {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 3px;
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(40px);
}

.project-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 30px rgba(123, 97, 255, 0.08);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.project-icon {
  font-size: 22px;
  color: var(--cyan);
}

.project-links {
  display: flex;
  gap: 12px;
}

.project-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color var(--transition);
}

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

.project-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.project-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.project-tech span {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--cyan);
  opacity: 0.8;
  padding: 3px 10px;
  background: rgba(0, 229, 255, 0.06);
  border-radius: 4px;
}

.project-stats {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   CERTIFICATIONS
   ============================================================ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.cert-card {
  display: flex;
  gap: 18px;
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  align-items: center;
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(20px);
}

.cert-card:hover {
  border-color: var(--border-glow);
  background: rgba(0, 229, 255, 0.03);
  transform: translateX(6px);
}

.cert-badge {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--cyan);
  padding: 12px 14px;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 6px;
  flex-shrink: 0;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.cert-card:hover .cert-badge {
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
  background: rgba(0, 229, 255, 0.1);
}

.cert-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

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

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-cta {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.contact-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: all var(--transition);
  padding: 8px 0;
}

.contact-method:hover {
  color: var(--cyan);
}

.contact-icon {
  font-size: 13px;
  color: var(--cyan);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 255, 0.06);
  border-radius: 6px;
  flex-shrink: 0;
}

.pgp-key {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.pgp-label {
  color: var(--crimson);
  font-weight: 600;
}

.pgp-fingerprint {
  color: var(--text-muted);
  word-break: break-all;
}

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

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

.form-group label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  transition: all var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--border-glow);
  background: rgba(0, 229, 255, 0.02);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

.form-submit {
  padding: 14px 24px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(123, 97, 255, 0.08));
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 6px;
  color: var(--cyan);
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
  align-self: flex-start;
}

.form-feedback {
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 4px;
  text-align: center;
}

.form-feedback.success {
  display: block !important;
  color: var(--green);
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.2);
}

.form-feedback.error {
  display: block !important;
  color: var(--crimson);
  background: rgba(255, 51, 102, 0.08);
  border: 1px solid rgba(255, 51, 102, 0.2);
}

.form-submit:hover {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.2), rgba(123, 97, 255, 0.15));
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.15);
}

/* --- Cloudflare Turnstile --- */
.cf-turnstile {
  margin-bottom: 16px;
}

/* --- Footer --- */
.footer {
  margin-top: 120px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-text {
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  #terminal-prompt {
    display: none;
  }

  .section {
    padding: 80px 20px;
  }

  #section-nav {
    right: 8px;
  }

  .nav-dot {
    width: 8px;
    height: 8px;
  }

  #scroll-progress {
    display: none;
  }

  .about-grid,
  .skills-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .stat-value {
    font-size: 22px;
  }

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

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

  .timeline-item {
    gap: 20px;
  }

  .timeline::before {
    left: 9px;
  }

  .timeline-marker {
    width: 19px;
    height: 19px;
  }

  .contact-form {
    order: -1;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }

  .name-line {
    font-size: clamp(40px, 12vw, 60px);
  }

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

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-stats {
    gap: 16px;
    margin-top: 20px;
  }

  .stat-value {
    font-size: 18px;
  }

  .stat-label {
    font-size: 9px;
  }

  .scroll-hint {
    position: relative;
    left: auto;
    transform: none;
    bottom: auto;
    margin-top: 32px;
    opacity: 0.4;
  }
}
