/*--------------------------------------------------------------
# Base / Theme
--------------------------------------------------------------*/
:root {
  --accent: #ff3b30;
  --accent-deep: #e63946;
  --accent-hover: #ff6a5e;
  --bg: #12121a;
  --bg-alt: #1a1a24;
  --surface: #1a1a24;
  --surface-2: #23232f;
  --border: #2a2a38;
  --border-accent: rgba(255, 59, 48, 0.25);
  --line: #8b8fa3;
  --text: #c9c9d3;
  --text-muted: #9a9aa5;
  --heading: #f5f5f7;
  --glow: radial-gradient(circle, rgba(255, 59, 48, 0.9), rgba(255, 59, 48, 0));
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
  line-height: 1.7;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--heading);
  letter-spacing: -0.02em;
}

::selection {
  background: var(--accent);
  color: #fff;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #333342;
  border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/*--------------------------------------------------------------
# Back to top
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: var(--accent);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
  box-shadow: 0 6px 18px rgba(255, 59, 48, 0.45);
}

.back-to-top i {
  font-size: 26px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: var(--accent-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(255, 59, 48, 0.6);
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Top Navigation
--------------------------------------------------------------*/
#topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9997;
  padding: 22px 0;
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

#topnav.scrolled {
  padding: 10px 0;
  background: rgba(18, 18, 26, 0.72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 59, 48, 0.12);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--heading);
}

.nav-logo:hover {
  color: var(--heading);
}

.logo-dot {
  color: var(--accent);
  animation: logoPulse 2.4s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { text-shadow: 0 0 4px rgba(255, 59, 48, 0.5); }
  50% { text-shadow: 0 0 16px rgba(255, 59, 48, 1); }
}

.nav-menu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px;
}

.nav-menu a {
  position: relative;
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-radius: 8px;
  overflow: hidden;
  transition: color 0.3s ease;
}

.nav-menu a::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  box-shadow: 0 0 8px rgba(255, 59, 48, 0.8);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--heading);
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent-deep));
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(255, 59, 48, 0.4);
  transition: all 0.3s ease;
}

.nav-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 59, 48, 0.6);
}

.nav-cta i {
  font-size: 16px;
}

/* Mobile nav toggle */
.mobile-nav-toggle {
  display: none;
  border: 0;
  font-size: 30px;
  color: var(--heading);
  background: transparent;
  line-height: 0;
  cursor: pointer;
}

@media (max-width: 991.98px) {
  body.mobile-nav-active {
    overflow: hidden;
  }

  .nav-menu,
  .nav-cta {
    display: none;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 59, 48, 0.15);
    border: 1px solid var(--border-accent);
    transition: all 0.3s ease;
  }

  .mobile-nav-toggle:hover {
    background: rgba(255, 59, 48, 0.3);
  }

  .mobile-nav-active .nav-menu {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 82vw);
    background: rgba(18, 18, 26, 0.97);
    backdrop-filter: blur(18px);
    border-left: 1px solid var(--border-accent);
    padding: 90px 20px 30px;
    z-index: 9998;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
    animation: slideInRight 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mobile-nav-active .nav-menu ul {
    flex-direction: column;
    gap: 4px;
  }

  .mobile-nav-active .nav-menu a {
    padding: 13px 16px;
    font-size: 16px;
  }

  .mobile-nav-active .nav-menu a::before {
    left: 16px;
    right: auto;
    width: 2px;
    height: 0;
    bottom: 6px;
    top: 6px;
    transform: scaleY(0);
  }

  .mobile-nav-active .nav-menu a:hover::before,
  .mobile-nav-active .nav-menu a.active::before {
    transform: scaleY(1);
  }
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background:
    linear-gradient(160deg, rgba(18, 18, 26, 0.9) 0%, rgba(26, 26, 36, 0.82) 55%, rgba(22, 18, 28, 0.72) 100%),
    url("../img/hero-bg-sketch.jpg") center/cover no-repeat;
  background-color: var(--bg);
  overflow: hidden;
}

/* Full image, no cropping, on wide screens — show entire hero-bg.jpg */
@media (min-width: 992px) {
  #hero {
    background:
      linear-gradient(90deg, rgba(18, 18, 26, 0.96) 0%, rgba(18, 18, 26, 0.82) 45%, rgba(18, 18, 26, 0.28) 100%),
      url("../img/hero-bg-sketch.jpg");
    background-position: center center;
    background-size: contain, contain;
    background-repeat: no-repeat;
    background-color: var(--bg);
  }
}

/* Subtle tech grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;

  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 143, 163, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 143, 163, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 78%);
}

/* Floating glow blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
  animation: blobFloat 18s ease-in-out infinite;
}

.hero-blob-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at 40% 40%, rgba(255, 59, 48, 0.85), transparent 70%);
  top: -160px;
  right: -120px;
}

.hero-blob-2 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle at 50% 50%, rgba(138, 91, 156, 0.5), transparent 70%);
  bottom: -140px;
  left: -120px;
  animation-delay: -9s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 24px) scale(0.95); }
}

.hero-container {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 1280px;
  padding: 110px 30px 60px;
}

/* ---- Hero text ---- */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.eyebrow-tag {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(255, 59, 48, 0.9);
}

#hero h1 {
  margin: 0 0 14px;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  line-height: 1.02;
  color: var(--heading);
  letter-spacing: 1px;
}

.h1-accent {
  color: var(--accent);
  text-shadow: 0 0 30px rgba(255, 59, 48, 0.7);
}

.hero-role {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 500;
  color: var(--text);
}

.hero-role .typed {
  color: var(--accent);
}

.hero-role .typed::after {
  content: "|";
  margin-left: 2px;
  color: var(--accent-hover);
  animation: caretBlink 0.85s steps(1) infinite;
}

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

.hero-tagline {
  margin: 0 0 10px;
  max-width: 460px;
  font-size: 16px;
  color: var(--text-muted);
}

.hero-cta {
  margin-top: 30px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 34px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent-deep));
  border: 1px solid transparent;
  border-radius: 50px;
  transition: all 0.35s ease;
  box-shadow: 0 8px 24px rgba(255, 59, 48, 0.4);
}

.btn-hero:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(255, 59, 48, 0.65), 0 0 0 6px rgba(255, 59, 48, 0.12);
}

.btn-hero.btn-outline {
  background: transparent;
  border-color: rgba(139, 143, 163, 0.5);
  box-shadow: none;
  color: var(--heading);
}

.btn-hero.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  background: rgba(255, 59, 48, 0.08);
  box-shadow: 0 0 0 6px rgba(255, 59, 48, 0.1);
  transform: translateY(-3px);
}

/* ---- Hero visual ---- */
.hero-visual {
  position: relative;
  width: min(440px, 100%);
  aspect-ratio: 5 / 6;
  margin: 0 auto;
}

.hv-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;
}

/* Radial red glow burst */
.hv-glow {
  position: absolute;
  inset: 8% 0 0 4%;
  background: var(--glow);
  border-radius: 50%;
  animation: glowPulse 3.6s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes glowPulse {
  0%, 100% { transform: scale(0.82); opacity: 0.75; }
  50% { transform: scale(1.08); opacity: 1; }
}

/* Concentric HUD rings */
.hv-ring {
  position: absolute;
  border: 1px solid rgba(139, 143, 163, 0.35);
  border-radius: 50%;
  inset: 0;
  will-change: transform;
}

.hv-ring::before,
.hv-ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.hv-ring-1 {
  inset: -6%;
  border-style: dashed;
  animation: ringSpin 90s linear infinite;
}

.hv-ring-1::after {
  inset: 44% 44% 44% 44%;
  border: 1px dashed rgba(255, 59, 48, 0.4);
}

.hv-ring-2 {
  inset: 8%;
  border-width: 2px;
  border-color: rgba(255, 59, 48, 0.22);
  animation: ringSpin 120s linear infinite reverse;
}

.hv-ring-2::before {
  width: 10px;
  height: 10px;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  box-shadow: 0 0 14px rgba(255, 59, 48, 0.9);
}

.hv-ring-3 {
  inset: 16%;
  border-width: 1px;
  border-color: rgba(139, 143, 163, 0.28);
  animation: ringSpin 150s linear infinite;
}

@keyframes ringSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Constellation / network */
.hv-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hv-network line {
  stroke: rgba(139, 143, 163, 0.35);
  stroke-width: 1;
}

.hv-network circle {
  fill: #fff;
  filter: drop-shadow(0 0 4px rgba(255, 59, 48, 0.8));
  animation: nodeTwinkle 3s ease-in-out infinite;
}

.hv-network circle:nth-child(odd) { animation-delay: 0.4s; }
.hv-network circle:nth-child(3n) { animation-delay: 1.2s; }
.hv-network circle:nth-child(3n+1) { animation-delay: 2s; }

@keyframes nodeTwinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Low-poly shards */
.hv-shards {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shard {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0.8;
  filter: drop-shadow(0 0 10px rgba(255, 59, 48, 0.6));
  will-change: transform;
}

.shard-1 {
  top: 6%;
  right: 4%;
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 52px solid rgba(255, 59, 48, 0.85);
  animation: shardDrift 9s ease-in-out infinite;
}

.shard-2 {
  top: 42%;
  left: -2%;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 34px solid rgba(230, 57, 70, 0.7);
  animation: shardDrift 12s ease-in-out infinite reverse;
}

.shard-3 {
  bottom: 12%;
  right: -2%;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-top: 38px solid rgba(255, 59, 48, 0.55);
  animation: shardDrift 10s ease-in-out infinite;
  animation-delay: -4s;
}

.shard-4 {
  top: 18%;
  left: 8%;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 24px solid rgba(230, 57, 70, 0.45);
  animation: shardDrift 8s ease-in-out infinite reverse;
  animation-delay: -2s;
}

@keyframes shardDrift {
  0%, 100% { transform: rotate(0deg) translate(0, 0); }
  50% { transform: rotate(5deg) translate(6px, -8px); }
}

/* Portrait */
.hv-portrait {
  position: absolute;
  inset: 18% 10% 8%;
  border-radius: 24px;
  overflow: hidden;
  z-index: 5;
  animation: portraitFloat 5s ease-in-out infinite;
  will-change: transform;
  border: 1px solid rgba(255, 59, 48, 0.3);
}

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

.hv-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: portraitEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes portraitEntrance {
  from { opacity: 0; transform: scale(0.95) translateY(40px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.hv-rim {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 1px solid rgba(255, 59, 48, 0.4);
  box-shadow:
    inset 0 0 40px rgba(255, 59, 48, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 30px 80px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  transition: box-shadow 0.5s ease;
}

.hv-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(200deg, transparent 55%, rgba(255, 59, 48, 0.22));
  pointer-events: none;
}

.hv-portrait:hover .hv-rim {
  box-shadow:
    inset 0 0 60px rgba(255, 59, 48, 0.2),
    0 0 40px rgba(255, 59, 48, 0.35),
    0 30px 80px rgba(0, 0, 0, 0.6);
}

/* Spark particles canvas */
#sparks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 6;
  pointer-events: none;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.3s, color 0.3s;
}

.hero-scroll:hover {
  color: var(--accent-hover);
  opacity: 1;
}

.hero-scroll .bi-mouse {
  font-size: 22px;
  animation: mouseWheel 2s ease-in-out infinite;
}

@keyframes mouseWheel {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.35; }
}

/* Responsive hero */
@media (max-width: 991.98px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 130px;
    gap: 30px;
  }

  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    max-width: 360px;
  }

  #hero {
    min-height: auto;
  }
}

/* Desktop: text left, portrait visual right */
@media (min-width: 992px) {
  .hero-container {
    grid-template-columns: 1.1fr 0.9fr;
    max-width: 1280px;
    padding: 150px 30px 90px;
    gap: 48px;
    text-align: left;
  }

  .hero-text {
    text-align: left;
    padding-top: 24px;
  }

  .hero-tagline {
    margin-left: 0;
    margin-right: 0;
    max-width: 480px;
  }

  .hero-cta {
    justify-content: flex-start;
    margin-top: 30px;
  }

  .hero-visual {
    margin: 0 auto;
  }
}

@media (max-width: 767.98px) {
  .hero-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-blob-1 {
    width: 340px;
    height: 340px;
    filter: blur(70px);
  }
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 90px 0;
  overflow: hidden;
  position: relative;
}

.section-bg {
  background: var(--bg-alt);
}

.section-title {
  padding-bottom: 40px;
}

.section-title h2 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 56px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  box-shadow: 0 0 14px rgba(255, 59, 48, 0.9);
}

.section-accent {
  color: var(--accent);
  text-shadow: 0 0 20px rgba(255, 59, 48, 0.5);
}

.section-title p {
  margin-bottom: 0;
  max-width: 720px;
  color: var(--text-muted);
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about-card {
  position: relative;
}

.about-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-accent);
  box-shadow: var(--shadow);
}

.about-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(210deg, transparent 55%, rgba(255, 59, 48, 0.18));
  z-index: 2;
}

.about-img {
  border-radius: 20px;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-frame:hover .about-img {
  transform: scale(1.04);
}

.about-tag {
  position: absolute;
  left: -12px;
  bottom: 22px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent-deep));
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(255, 59, 48, 0.45);
}

.about .content h3 {
  font-weight: 700;
  font-size: 26px;
  color: var(--heading);
  margin-bottom: 16px;
}

.about .content > p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.about .content ul li:hover {
  transform: translateX(6px);
}

.about .content ul strong {
  margin-right: 10px;
  color: var(--heading);
}

.about .content ul i {
  font-size: 18px;
  margin-right: 8px;
  color: var(--accent);
  line-height: 0;
}

/* Stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.stat {
  padding: 20px 12px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.35s ease;
}

.stat:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 24px rgba(255, 59, 48, 0.18);
  transform: translateY(-4px);
}

.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 18px rgba(255, 59, 48, 0.55);
  line-height: 1.1;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

/*--------------------------------------------------------------
# Skills
--------------------------------------------------------------*/
.skills .progress {
  height: 60px;
  display: block;
  background: none;
  border-radius: 0;
}

.skills .progress .skill {
  padding: 0;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  display: block;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--heading);
  letter-spacing: 0.5px;
}

.skills .progress .skill .val {
  float: right;
  font-style: normal;
  color: var(--accent);
}

.skills .progress-bar-wrap {
  background: var(--surface-2);
  height: 12px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.skills .progress-bar {
  width: 0;
  height: 12px;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-hover));
  background-size: 200% 100%;
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
  animation: barShimmer 3s linear infinite;
  box-shadow: 0 0 14px rgba(255, 59, 48, 0.5);
}

@keyframes barShimmer {
  0% { background-position: 0% 0; }
  100% { background-position: -200% 0; }
}

/*--------------------------------------------------------------
# Projects
--------------------------------------------------------------*/
.project-card {
  height: 100%;
  padding: 28px 24px;
  background: linear-gradient(160deg, rgba(35, 35, 47, 0.85), rgba(26, 26, 36, 0.85));
  border: 1px solid var(--border);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(120deg, rgba(255, 59, 48, 0.6), transparent 40%, transparent 60%, rgba(255, 59, 48, 0.4));
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.project-card > * {
  position: relative;
  z-index: 1;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--border-accent);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), 0 0 30px rgba(255, 59, 48, 0.22);
}

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

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.project-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 26px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 8px 22px rgba(255, 59, 48, 0.45);
  transition: transform 0.4s ease;
}

.project-card:hover .project-icon {
  transform: rotate(-8deg) scale(1.1);
}

.project-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border-accent);
  padding: 4px 12px;
  border-radius: 30px;
  background: rgba(255, 59, 48, 0.08);
}

.project-card h4 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
}

.project-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.project-tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags li {
  font-size: 12px;
  color: var(--line);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.project-card:hover .project-tags li {
  border-color: var(--border-accent);
  color: var(--heading);
}

/*--------------------------------------------------------------
# Timeline
--------------------------------------------------------------*/
.timeline .timeline-title {
  font-size: 26px;
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 30px;
  color: var(--heading);
  position: relative;
  padding-left: 18px;
}

.timeline .timeline-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.7);
}

.timeline .timeline-item {
  padding: 0 0 30px 34px;
  position: relative;
  border-left: 1px solid var(--border);
}

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

.timeline .t-node {
  position: absolute;
  left: -7px;
  top: 4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.5);
  animation: nodePulse 2.6s ease-in-out infinite;
  transition: background 0.3s;
}

.timeline .timeline-item:hover .t-node {
  background: var(--accent);
  box-shadow: 0 0 0 8px rgba(255, 59, 48, 0.15);
}

@keyframes nodePulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(255, 59, 48, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

.timeline .timeline-item h4 {
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--heading);
  margin-bottom: 8px;
}

.timeline .timeline-item h5 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--accent);
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  background: rgba(255, 59, 48, 0.07);
}

.timeline .timeline-item p,
.timeline .timeline-item ul li {
  color: var(--text-muted);
  font-size: 14.5px;
}

.timeline .timeline-item ul {
  padding-left: 18px;
  margin: 0;
}

.timeline .timeline-item ul li {
  padding-bottom: 8px;
}

.timeline .timeline-item ul li::marker {
  color: var(--accent);
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
#contact {
  padding-bottom: 90px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

.contact .info {
  padding: 34px;
  background: var(--surface);
  width: 100%;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}

.contact .info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}

.contact .info i {
  font-size: 20px;
  color: var(--accent);
  float: left;
  width: 44px;
  height: 44px;
  background: rgba(255, 59, 48, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  border: 1px solid var(--border-accent);
  transition: all 0.35s ease-in-out;
}

.contact .info h4 {
  padding: 0 0 0 60px;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--heading);
}

.contact .info p {
  padding: 0 0 10px 60px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.contact .info .email p {
  padding-top: 5px;
}

.contact .info .social-links {
  padding-left: 60px;
}

.contact .info .social-links a {
  font-size: 18px;
  display: inline-block;
  background: var(--bg);
  color: var(--text);
  line-height: 1;
  padding: 8px 0;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: all 0.3s;
  margin-right: 10px;
  border: 1px solid var(--border);
}

.contact .info .social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 59, 48, 0.4);
}

.contact .info .email:hover i,
.contact .info .address:hover i,
.contact .info .phone:hover i {
  background: var(--accent);
  color: #fff;
  transform: rotateY(180deg);
  box-shadow: 0 6px 16px rgba(255, 59, 48, 0.4);
}

.contact .info .map-wrap {
  margin-top: 14px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  line-height: 0;
}

.contact .info .map-wrap img {
  display: block;
  width: 100%;
  height: 290px;
  object-fit: cover;
  filter: grayscale(0.4) contrast(1.1) invert(0.9) hue-rotate(190deg);
  transition: filter 0.4s ease, transform 0.6s ease;
}

.contact .info .map-wrap:hover img {
  filter: grayscale(0.2) contrast(1.1);
  transform: scale(1.03);
}

.contact .email-form {
  width: 100%;
  padding: 34px;
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}

.contact .email-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}

.contact .email-form .form-group {
  margin-bottom: 15px;
}

.contact .email-form label {
  padding-bottom: 8px;
  color: var(--heading);
  font-weight: 600;
  font-size: 14px;
}

.contact .email-form .error-message {
  display: none;
  color: #fff;
  background: var(--accent-deep);
  text-align: left;
  padding: 15px;
  font-weight: 600;
  border-radius: 8px;
}

.contact .email-form .sent-message {
  display: none;
  color: #fff;
  background: #18d26e;
  text-align: center;
  padding: 15px;
  font-weight: 600;
  border-radius: 8px;
  animation: popIn 0.5s ease;
}

@keyframes popIn {
  0% { opacity: 0; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

.contact .email-form .loading {
  display: none;
  background: var(--surface-2);
  color: var(--text);
  text-align: center;
  padding: 15px;
  border-radius: 8px;
}

.contact .email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent);
  border-top-color: transparent;
  animation: animate-loading 0.8s linear infinite;
}

.contact .email-form input,
.contact .email-form textarea {
  border-radius: 10px;
  box-shadow: none;
  font-size: 14px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact .email-form input:focus,
.contact .email-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.15), 0 0 18px rgba(255, 59, 48, 0.25);
  color: var(--text);
  background: var(--bg);
}

.contact .email-form input::placeholder,
.contact .email-form textarea::placeholder {
  color: #6b6b78;
}

.contact .email-form input {
  height: 46px;
}

.contact .email-form textarea {
  padding: 10px 15px;
}

.contact .email-form button[type=submit] {
  background: linear-gradient(120deg, var(--accent), var(--accent-deep));
  border: 0;
  padding: 13px 36px;
  color: #fff;
  transition: all 0.35s ease;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-family: var(--font-heading);
  box-shadow: 0 8px 22px rgba(255, 59, 48, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact .email-form button[type=submit]:hover {
  background: linear-gradient(120deg, var(--accent-hover), var(--accent));
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(255, 59, 48, 0.6);
}

.contact .email-form button[type=submit]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

@keyframes animate-loading {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  padding: 26px 0;
  color: var(--heading);
  font-size: 14px;
  background: #0e0e14;
  border-top: 1px solid var(--border-accent);
  text-align: center;
}

#footer .copyright {
  text-align: center;
}

#footer .credits {
  padding-top: 5px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

#footer .credits a {
  color: var(--accent-hover);
}

/*--------------------------------------------------------------
# Reduced motion
--------------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/*--------------------------------------------------------------
# Responsive refinements
--------------------------------------------------------------*/
@media (max-width: 1199.98px) {
  .hero-container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 991.98px) {
  section {
    padding: 64px 0;
  }

  .section-title {
    padding-bottom: 28px;
  }

  .hero-eyebrow {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .about-tag {
    left: 10px;
    right: 10px;
    bottom: 14px;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    padding: 9px 14px;
  }

  .contact .info,
  .contact .email-form {
    padding: 26px 22px;
  }
}

@media (max-width: 767.98px) {
  section {
    padding: 56px 0;
  }

  .section-title h2 {
    font-size: 30px;
  }

  #hero h1 {
    font-size: clamp(40px, 12vw, 56px);
  }

  .hero-eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

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

  .contact .info h4 {
    font-size: 20px;
  }

  .stat-num {
    font-size: 28px;
  }

  .stat {
    padding: 16px 8px;
  }

  .timeline .timeline-title {
    font-size: 22px;
  }

  .back-to-top {
    width: 40px;
    height: 40px;
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width: 575.98px) {
  #topnav .nav-inner {
    gap: 12px;
  }

  .nav-logo {
    font-size: 19px;
  }

  .hero-container {
    padding: 122px 16px 50px;
  }

  .hero-visual {
    max-width: 300px;
  }

  .hero-scroll {
    font-size: 11px;
  }

  .section-title h2 {
    font-size: 26px;
  }

  .about-tag {
    font-size: 11px;
  }

  .project-card {
    padding: 22px 18px;
  }

  .contact .info,
  .contact .email-form {
    padding: 20px 16px;
  }
}
