:root {
  --bg: #0b0b0b;
  --red: #e5342e;
  --white: #f5f2ec;
  --gray: #c9c6c0;
}

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

html {
  scroll-behavior: smooth;
}

/* ---------------------------------------------------------------------
   Entrance Animations — staggered reveal on page load
--------------------------------------------------------------------- */

/* Base hidden state for all hero entrance elements */
[data-entrance] {
  opacity: 0;
  will-change: transform, opacity;
}

/* When .is-revealed is added to body, animate each element */
/* Nav is always visible — children animate independently via JS */
/* (nav entrance is handled by the greeting → pop-in sequence) */
body.is-revealed [data-entrance="social-rail"] {
  animation: entrance-slideRight 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}
body.is-revealed [data-entrance="headline"] {
  animation: entrance-fadeUp 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}
body.is-revealed [data-entrance="tagline"] {
  animation: entrance-fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}
body.is-revealed [data-entrance="cta"] {
  animation: entrance-fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}
body.is-revealed [data-entrance="stats"] {
  animation: entrance-fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.65s forwards;
}
body.is-revealed [data-entrance="photo"] {
  animation: entrance-scaleIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}
body.is-revealed [data-entrance="chip-1"] {
  animation: 
    entrance-popIn 0.7s cubic-bezier(0.34, 1.3, 0.64, 1) 0.8s forwards,
    chip-float 5s ease-in-out 1.5s infinite;
}
body.is-revealed [data-entrance="chip-2"] {
  animation: 
    entrance-popIn 0.7s cubic-bezier(0.34, 1.3, 0.64, 1) 1s forwards,
    chip-float 5s ease-in-out 2.4s infinite;
}
body.is-revealed [data-entrance="chip-3"] {
  animation: 
    entrance-popIn 0.7s cubic-bezier(0.34, 1.3, 0.64, 1) 1.2s forwards,
    chip-float 5s ease-in-out 3.3s infinite;
}

/* Keyframes */
@keyframes entrance-slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes entrance-slideRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes entrance-clipUp {
  from {
    opacity: 0;
    transform: translateY(40px);
    clip-path: inset(100% 0 0 0);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes entrance-fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes entrance-scaleIn {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes entrance-popIn {
  from {
    opacity: 0;
    transform: scale(0.3) translateY(15px);
  }
  60% {
    transform: scale(1.08) translateY(-3px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Hero photo shimmer placeholder — shows while image loads */
.hero-photo-wrapper {
  position: relative;
  width: 100%;
  max-width: 560px;
}

.hero-photo-shimmer {
  position: absolute;
  inset: 20px 0 0 0;
  border-radius: 20px;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.03) 30%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 70%
  );
  background-size: 200% 100%;
  animation: shimmer-slide 1.5s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

.hero-photo-wrapper img {
  position: relative;
  z-index: 1;
  transition: opacity 0.6s ease;
}

.hero-photo-wrapper img:not(.is-loaded) {
  opacity: 0;
}

.hero-photo-wrapper img.is-loaded {
  opacity: 1;
}

.hero-photo-wrapper img.is-loaded ~ .hero-photo-shimmer {
  opacity: 0;
  transition: opacity 0.4s ease 0.1s;
}

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

@media (prefers-reduced-motion: reduce) {
  body.is-revealed [data-entrance] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    clip-path: none !important;
  }
  .hero-photo-shimmer {
    animation: none;
  }
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--white);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
  width: 100vw;
}

.bg-grid {
  position: fixed;
  top: 0;
  right: 5%;
  width: 52%;
  height: 900px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 70px 70px;
  -webkit-mask-image: radial-gradient(
    ellipse 55% 60% at 60% 45%,
    #000 55%,
    transparent 80%
  );
  mask-image: radial-gradient(
    ellipse 55% 60% at 60% 45%,
    #000 55%,
    transparent 80%
  );
  pointer-events: none;
}

.bg-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-ambient .orb {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.4;
}

.bg-ambient .orb::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 52, 46, 0.28), transparent 70%);
}

.bg-ambient .orb:nth-child(1) {
  top: 18%;
  left: 10%;
  animation: orb-float 13s ease-in-out infinite;
}
.bg-ambient .orb:nth-child(2) {
  top: 32%;
  left: 88%;
  background: var(--white);
  opacity: 0.25;
  animation: orb-float 16s ease-in-out infinite -3s;
}
.bg-ambient .orb:nth-child(2)::after {
  background: radial-gradient(
    circle,
    rgba(245, 242, 236, 0.2),
    transparent 70%
  );
}
.bg-ambient .orb:nth-child(3) {
  top: 58%;
  left: 6%;
  animation: orb-float 11s ease-in-out infinite -6s;
}
.bg-ambient .orb:nth-child(4) {
  top: 74%;
  left: 72%;
  background: var(--white);
  opacity: 0.2;
  animation: orb-float 18s ease-in-out infinite -9s;
}
.bg-ambient .orb:nth-child(4)::after {
  background: radial-gradient(
    circle,
    rgba(245, 242, 236, 0.2),
    transparent 70%
  );
}
.bg-ambient .orb:nth-child(5) {
  top: 22%;
  left: 48%;
  animation: orb-float 14s ease-in-out infinite -2s;
}
.bg-ambient .orb:nth-child(6) {
  top: 50%;
  left: 94%;
  animation: orb-float 12s ease-in-out infinite -8s;
}

@keyframes orb-float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(10px, -22px);
  }
}

.deco-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.deco-glow-a {
  width: 380px;
  height: 380px;
  top: -140px;
  left: -140px;
  background: radial-gradient(circle, rgba(229, 52, 46, 0.16), transparent 70%);
}
.deco-glow-b {
  width: 340px;
  height: 340px;
  bottom: -120px;
  right: -120px;
  background: radial-gradient(
    circle,
    rgba(245, 242, 236, 0.07),
    transparent 70%
  );
}
.deco-glow-c {
  width: 460px;
  height: 460px;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(229, 52, 46, 0.1), transparent 72%);
}
.deco-glow-d {
  width: 320px;
  height: 320px;
  top: -100px;
  right: -80px;
  background: radial-gradient(circle, rgba(229, 52, 46, 0.14), transparent 70%);
}

.deco-corner {
  position: absolute;
  width: 40px;
  height: 40px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}
.deco-corner::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
}
.deco-corner-tl {
  top: 28px;
  left: 28px;
  border-top: 1.5px solid rgba(255, 255, 255, 0.16);
  border-left: 1.5px solid rgba(255, 255, 255, 0.16);
}
.deco-corner-tl::after {
  top: -3px;
  left: -3px;
}
.deco-corner-br {
  bottom: 28px;
  right: 28px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.16);
  border-right: 1.5px solid rgba(255, 255, 255, 0.16);
}
.deco-corner-br::after {
  bottom: -3px;
  right: -3px;
}
.deco-corner-cbl {
  bottom: 28px;
  left: 28px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.16);
  border-left: 1.5px solid rgba(255, 255, 255, 0.16);
}
.deco-corner-cbl::after {
  bottom: -3px;
  left: -3px;
}

.deco-rail {
  position: absolute;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 0;
  pointer-events: none;
}
.deco-rail i {
  width: 5px;
  height: 5px;
  margin-left: -2px;
  border-radius: 50%;
  background: rgba(229, 52, 46, 0.45);
}
.deco-rail-left {
  left: 14px;
}
.deco-rail-right {
  right: 14px;
}

.deco-dots {
  position: absolute;
  top: 18%;
  bottom: 18%;
  width: 180px;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.14) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(
    ellipse 70% 80% at 50% 50%,
    #000 35%,
    transparent 85%
  );
  mask-image: radial-gradient(
    ellipse 70% 80% at 50% 50%,
    #000 35%,
    transparent 85%
  );
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}
.deco-dots-left {
  left: 0;
}
.deco-dots-right {
  right: 0;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 32% 28%,
    #ff6b62 0%,
    var(--red) 55%,
    #ac1c17 100%
  );
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  font-family: "Inter", sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  will-change: transform, opacity;
  transform: translate(-50%, -50%) scale(0.3);
  transition:
    opacity 0.35s ease,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.3s ease;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 16px 40px rgba(229, 52, 46, 0.45),
    inset 0 0 22px rgba(255, 255, 255, 0.08);
}
.custom-cursor.is-visible.is-small {
  transform: translate(-50%, -50%) scale(0.5);
}
.custom-cursor.is-clicking.is-small {
  transform: translate(-50%, -50%) scale(0.55);
}
.custom-cursor::before {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.35);
  animation: cursor-spin 6s linear infinite;
  pointer-events: none;
}
.custom-cursor::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.custom-cursor-text,
.custom-cursor i {
  position: relative;
  z-index: 1;
}
.custom-cursor.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.custom-cursor.is-clicking {
  transform: translate(-50%, -50%) scale(0.82);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 6px 18px rgba(229, 52, 46, 0.5),
    inset 0 0 14px rgba(255, 255, 255, 0.08);
}
.custom-cursor.is-clicking::before {
  animation-play-state: paused;
}
.custom-cursor i {
  font-size: 13px;
  transition: transform 0.3s ease;
}
.custom-cursor.is-visible i {
  animation: cursor-arrow-float 1.8s ease-in-out infinite;
}
@keyframes cursor-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes cursor-arrow-float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(2px, -2px);
  }
}

/* ----- Nav Ambient Glow (elements in bg that form frosted glass blur) ----- */
.nav-glow {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  height: 70px;
  z-index: 998;
  pointer-events: none;
  overflow: visible;
}
.nav-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
}
.nav-glow-1 {
  width: 140px;
  height: 50px;
  top: 6px;
  left: 15px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.12) 0%, rgba(229, 52, 46, 0.16) 50%, transparent 80%);
  animation: nav-orb-drift 8s ease-in-out infinite;
}
.nav-glow-2 {
  display: block;
  width: 150px;
  height: 48px;
  top: 8px;
  right: 15px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.14) 0%, rgba(200, 200, 255, 0.08) 50%, transparent 80%);
  animation: nav-orb-drift 10s ease-in-out infinite -4s;
}
.nav-glow-3 {
  display: block;
  width: 200px;
  height: 40px;
  top: 12px;
  left: 32%;
  background: radial-gradient(ellipse at center, rgba(229, 52, 46, 0.1) 0%, transparent 70%);
  animation: nav-orb-drift 9s ease-in-out infinite -2s;
}
@keyframes nav-orb-drift {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.04); }
}

.nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; /* Starts at width 0 */
  height: 50px; /* Sleek capsule height matching reference */
  border-radius: 100px;
  background: linear-gradient(
    180deg,
    rgba(24, 24, 24, 0.65) 0%,
    rgba(12, 12, 12, 0.78) 100%
  );
  backdrop-filter: blur(32px) saturate(1.8);
  -webkit-backdrop-filter: blur(32px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.65),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0; /* Starts at padding 0 */
  opacity: 0; /* Starts hidden */
  z-index: 999;
  overflow: hidden; /* Prevent text overflow during 0 -> auto transitions */
  transition: 
    width 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s ease,
    background-color 0.4s ease;
}

/* Greeting Mode: show capsule with small size */
.nav.nav-greeting-mode {
  width: 240px;
  padding: 0 14px;
  opacity: 1;
}

/* Greeting Mode: hide normal nav elements */
.nav.nav-greeting-mode .logo,
.nav.nav-greeting-mode .nav-links {
  display: none !important;
}

/* Expanded Mode: hide greeting element */
.nav.nav-expanded-mode .nav-greeting {
  display: none !important;
}

/* Expanded State: centered layout matching reference */
.nav.nav-expanded-mode {
  width: 440px; /* Fitting 4 links perfectly */
  max-width: 95vw;
  justify-content: center;
  padding: 0 6px;
  opacity: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px; /* Pill items matching reference */
}

.nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

/* Active link inner pill styling matching image */
.nav a.active {
  color: #ffffff;
  font-weight: 600;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.06) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.22),
    0 2px 8px rgba(0, 0, 0, 0.35);
  position: relative;
}

/* ----- Nav Greeting Capsule ----- */
.nav-greeting {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-greeting-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.nav-greeting svg,
.nav-greeting i {
  width: 16px;
  height: 16px;
  font-size: 15px;
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
}
.nav-greeting .greeting-icon-morning {
  color: #ffb347;
}
.nav-greeting .greeting-icon-afternoon {
  color: #ffa726;
}
.nav-greeting .greeting-icon-evening {
  color: #b39ddb;
}
.nav-greeting .greeting-icon-night {
  color: #90caf9;
}
.nav-greeting.is-visible {
  opacity: 1;
  transform: scale(1);
}
.nav-greeting.is-hiding {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* ----- Nav Items Hidden → Gentle Pop-in ----- */
.nav .nav-item {
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
}
.nav .nav-item.is-popped {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: nav-pop 0.45s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes nav-pop {
  0% {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90svh;
  padding: 0 60px;
  z-index: 1;
  overflow: hidden;
}
.hero-fixed::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 250px;
  background: linear-gradient(
    to bottom,
    rgba(11, 11, 11, 0) 0%,
    rgba(11, 11, 11, 0.6) 50%,
    rgba(11, 11, 11, 1) 100%
  );
  pointer-events: none;
  z-index: 10;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 0 0;
  position: relative;
  z-index: 5;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-text {
  font-family: "Anton", sans-serif;
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: 0.5px;
  color: var(--white);
}
.logo-text em {
  font-style: normal;
  color: var(--red);
}
.logo-crown {
  margin-left: -4px;
  transform: translateY(-6px);
}

.social-rail {
  position: absolute;
  left: 60px;
  top: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  z-index: 5;
}
.rail-line {
  width: 1px;
  height: 70px;
  background: rgba(255, 255, 255, 0.35);
}
.social-rail a {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--white);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  text-decoration: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: end;
  min-height: 760px;
  padding-top: 20px;
  z-index: 2;
}
.hero-copy {
  position: relative;
  z-index: 11;
  bottom: 10%;
  padding-left: 60px;
  padding-bottom: 40px;
  margin-left: 100px;
}
.headline-wrap {
  position: relative;
  margin-bottom: 28px;
}
.spark-mark {
  position: absolute;
  top: -24px;
  left: 2px;
  pointer-events: none;
}
.headline {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.headline .line {
  display: block;
  font-size: clamp(30px, 3.8vw, 54px);
}
.line-red {
  color: var(--red);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.crown-mark {
  display: inline-block;
  transform: translateY(-4px) rotate(8deg);
  transform-origin: center bottom;
  pointer-events: none;
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}
.headline-wrap:hover .crown-mark {
  transform: translateY(-6px) rotate(14deg) scale(1.08);
}
.line-white {
  color: var(--white);
}
.tape {
  position: absolute;
  top: 34%;
  left: 30%;
  width: 230px;
  height: 34px;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.06) 0 6px,
      transparent 6px 12px
    ),
    linear-gradient(#4a4a4a, #6b6b6b);
  opacity: 0.85;
  transform: rotate(-6deg) skewX(-4deg);
  clip-path: polygon(0% 15%, 4% 0%, 96% 8%, 100% 100%, 92% 92%, 3% 100%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}
.tagline {
  max-width: 430px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--gray);
  margin-bottom: 34px;
}
.tagline strong {
  color: var(--red);
  font-weight: 700;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 16px 26px;
  border-radius: 8px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.btn-outline i {
  color: var(--red);
}
.btn-outline:hover {
  background: var(--white);
  color: #111;
}
.handwritten {
  font-family: "Caveat", cursive;
  font-size: 26px;
  color: var(--white);
  position: relative;
}
.handwritten::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--white);
  transform: rotate(-1deg);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 40px;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.hero-stat-icon {
  width: 46px;
  height: 46px;
  border: 1.5px solid rgba(229, 52, 46, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 17px;
}
.hero-stat-icon svg {
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
  flex-shrink: 0;
}
.hero-stat-number {
  font-family: "Anton", sans-serif;
  font-size: 24px;
  color: var(--white);
  font-weight: 400;
}
.hero-stat-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gray);
  white-space: nowrap;
}
.hero-stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.hero-photo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  perspective: 1000px;
}
.hero-photo img {
  position: relative;
  bottom: 20px;
  width: 100%;
  max-width: 560px;
  height: auto;
  object-fit: cover;
  object-position: top;
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.5s ease;
  will-change: transform;
  filter: drop-shadow(0 30px 55px rgba(229, 52, 46, 0.3));
}
.floating-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(20, 20, 20, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--white);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  z-index: 4;
  pointer-events: none;
}
.floating-chip i {
  color: var(--red);
  font-size: 14px;
}
.chip-1 {
  top: 10%;
  left: 6%;
  animation-delay: 0s;
}
.chip-2 {
  top: 52%;
  right: 8%;
  animation-delay: 1.4s;
}
.chip-3 {
  bottom: 8%;
  left: 20%;
  animation-delay: 2.8s;
}
@keyframes chip-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(-2.5deg);
  }
}
.hero-spacer {
  height: 100vh;
}

.about::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(
    to bottom,
    rgba(11, 11, 11, 0) 0%,
    rgba(11, 11, 11, 0.4) 40%,
    rgba(11, 11, 11, 0.8) 70%,
    var(--bg) 100%
  );
  pointer-events: none;
}
.about {
  min-height: 100vh;
  position: relative;
  z-index: 2;
  background: #0b0b0b;
  padding: 100px 60px 60px;
  display: flex;
  align-items: center;
}
.about-deco {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.about-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 70px;
  position: relative;
  z-index: 1;
}
.about-eyebrow {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--red);
  display: block;
  margin-bottom: 22px;
  margin-top: 45px;
}

.ph-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}
.ph-kicker-line {
  width: 34px;
  height: 2px;
  background: var(--red);
  border-radius: 2px;
}
.ph-title {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: clamp(70px, 11vw, 165px);
  line-height: 0.88;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  margin: 0;
}
@media (max-width: 1200px) {
  .ph-title {
    font-size: clamp(54px, 10vw, 100px);
  }
}
.text-red {
  color: var(--red);
}
.about-heading {
  display: flex;
  flex-direction: column;
}
.about-title-simple {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 48px);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--white);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.skill-card {
  position: relative;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.015)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 30px;
  transition:
    transform 0.35s cubic-bezier(0.075, 0.82, 0.165, 1),
    border-color 0.35s ease;
}
.skill-card:hover {
  transform: translateY(-6px);
  border-color: rgba(229, 52, 46, 0.4);
}
.skill-card h3 {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 16px 10px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}
.skill-tag:hover {
  transform: translateY(-3px);
  border-color: rgba(229, 52, 46, 0.5);
  background: rgba(229, 52, 46, 0.06);
}
.skill-tag i {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 12px;
  color: #fff;
  background: var(--red);
  flex-shrink: 0;
}
.icon-html {
  background: #e34f26;
}
.icon-css {
  background: #1572b6;
}
.icon-js {
  background: #f0db4f;
  color: #1a1a1a;
}
.icon-react {
  background: #20232a;
  color: #61dafb;
}
.icon-node {
  background: #2f7c3e;
}
.icon-express {
  background: #2b2b2b;
}
.icon-django {
  background: #0c4b33;
}
.icon-python {
  background: #2b5b84;
}
.icon-cpp {
  background: #004482;
}
.icon-mongo {
  background: #10b981;
}
.icon-sqlite {
  background: #0f5e97;
}
.icon-git {
  background: #f1502f;
}
.icon-github {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.icon-vscode {
  background: #007acc;
}
.icon-linux {
  background: #1a1a1a;
  color: #f5c518;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.cert-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.015)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  cursor: none;
  text-decoration: none;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.cert-card:hover {
  transform: translateY(-6px);
  border-color: var(--red);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.cert-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}
.cert-card:hover img {
  transform: scale(1.08);
}
.cert-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(11, 11, 11, 0.95) 0%,
    rgba(11, 11, 11, 0.4) 40%,
    transparent 100%
  );
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.cert-card:hover .cert-overlay {
  opacity: 1;
}
.cert-overlay h4 {
  font-family: "Anton", sans-serif;
  font-size: 22px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 4px;
}
.cert-overlay p {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
  margin: 0;
}
.cert-index {
  position: absolute;
  right: 10px;
  bottom: -10px;
  font-family: "Anton", sans-serif;
  font-size: 60px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(229, 52, 46, 0.3);
  z-index: 3;
  pointer-events: none;
  transition: -webkit-text-stroke-color 0.4s ease;
}
.cert-card:hover .cert-index {
  -webkit-text-stroke-color: rgba(229, 52, 46, 0.8);
}

[data-anim] {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
[data-anim].in-view {
  opacity: 1;
  transform: translateY(0);
}
.skills-grid .skill-card,
.certs-grid .cert-card {
  transition-delay: 0s;
}
.skills-grid .skill-card:nth-child(1),
.certs-grid .cert-card:nth-child(1) {
  transition-delay: 0.05s;
}
.skills-grid .skill-card:nth-child(2),
.certs-grid .cert-card:nth-child(2) {
  transition-delay: 0.12s;
}
.skills-grid .skill-card:nth-child(3),
.certs-grid .cert-card:nth-child(3) {
  transition-delay: 0.19s;
}
.skills-grid .skill-card:nth-child(4),
.certs-grid .cert-card:nth-child(4) {
  transition-delay: 0.26s;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="stagger"] > * {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
[data-reveal="stagger"].in-view > * {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal="stagger"] > *:nth-child(1) {
  transition-delay: 0.05s;
}
[data-reveal="stagger"] > *:nth-child(2) {
  transition-delay: 0.15s;
}
[data-reveal="stagger"] > *:nth-child(3) {
  transition-delay: 0.25s;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal="stagger"] > *,
  [data-anim] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .bg-ambient .orb {
    animation: none !important;
  }
}

/* ---------------------------------------------------------------------
   Projects Layout (Updated sticky side-by-side design + Mobile stacked)
--------------------------------------------------------------------- */
.projects {
  position: relative;
  z-index: 2;
  background: var(--bg);
  padding: 100px 4% 100px;
}

.projects-layout {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.projects-heading-side {
  margin-bottom: 60px;
}

/* DESKTOP STYLES */
.projects-desktop {
  display: block;
}

.projects-mobile {
  display: none;
}

.proj-content-wrapper {
  display: flex;
  gap: 100px;
  align-items: flex-start;
}

.proj-cards-column {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  gap: 200px;
  padding-bottom: 20vh;
}

.proj-desc-column {
  flex: 1;
  position: sticky;
  top: 15vh;
  height: 70vh;
}

.proj-desc-sticky {
  position: relative;
  width: 100%;
  height: 100%;
}

.proj-card {
  width: 100%;
  min-height: 500px;
  border-radius: 28px;
  padding: 50px;
  display: flex;
  flex-direction: column;
  gap: 50px;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
  overflow: hidden;
  position: relative;
  cursor: none;
}

.projects-desktop .proj-card:hover {
  transform: translateY(-5px);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: var(--white);
}

.card-top h3 {
  font-family: "Inter", sans-serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.4;
  max-width: 80%;
}

.card-top i {
  font-size: 28px;
  opacity: 0.7;
  transition: transform 0.3s ease;
}

.projects-desktop .proj-card:hover .card-top i {
  transform: translateX(8px);
}

.card-pink {
  background: linear-gradient(135deg, #d82b70, #96194b);
}
.card-blue {
  background: linear-gradient(135deg, #2b49e0, #132485);
}
.card-dark {
  background: linear-gradient(135deg, #1f1f23, #0d0d10);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.card-orange {
  background: linear-gradient(135deg, #d67a18, #995007);
}

/* Desktop-specific full-bleed wrap for Cards 2 & 4 */
.projects-desktop .card-blue,
.projects-desktop .card-orange {
  padding-bottom: 0;
}
.projects-desktop .card-blue .card-img-wrap,
.projects-desktop .card-orange .card-img-wrap {
  margin-left: -50px;
  margin-right: -50px;
  width: calc(100% + 100px);
  height: 440px;
  position: relative;
  border-radius: 0;
  margin-top: auto;
}

/* ======================================================================
   CARD 1 (ROSE) — Clean 3-image spread
   Center stays centered, left & right separate with even spacing
====================================================================== */
.image-stack {
  position: relative;
  width: 100%;
  height: 400px;
}

.image-stack .img {
  position: absolute;
  width: 260px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.55s ease;
  will-change: transform;
}

/* Default stacked positions */
.image-stack .left {
  left: 50%;
  top: 15%;
  transform: translateX(-50%) translateX(-80px) rotate(-8deg);
  z-index: 1;
}
.image-stack .center {
  left: 50%;
  top: 0%;
  transform: translateX(-50%);
  z-index: 3;
  width: 290px;
}
.image-stack .right {
  left: 50%;
  top: 15%;
  transform: translateX(-50%) translateX(80px) rotate(8deg);
  z-index: 1;
}

/* On hover: spread out evenly — left goes left, right goes right, center stays */
.projects-desktop .proj-card:hover .image-stack .left {
  transform: translateX(-70%) translateX(-170px) translateY(-10px) rotate(-6deg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.projects-desktop .proj-card:hover .image-stack .center {
  transform: translateX(-50%) translateY(-14px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
}
.projects-desktop .proj-card:hover .image-stack .right {
  transform: translateX(-30%) translateX(170px) translateY(-10px) rotate(6deg);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

/* ======================================================================
   CARDS 2, 3, 4 — Single image wrapper base
   Image sits at bottom by default; on hover it rises + zooms + tilts
====================================================================== */
.card-img-wrap {
  width: 100%;
  height: 400px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
}

.card-img-wrap img {
  width: 88%;
  height: auto;
  max-height: 96%;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.35);
  display: block;
  transform: translateY(18px) scale(0.97);
  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s ease;
  will-change: transform;
}

/* CARDS 2 & 4 (Blue & Orange) — image flush to bottom with clean margin on top/sides */
.projects-desktop .card-blue .card-img-wrap img,
.projects-desktop .card-orange .card-img-wrap img {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 88%;
  max-width: 600px;
  height: auto;
  max-height: 90%;
  border-radius: 20px 20px 0 0;
  -webkit-border-radius: 20px 20px 0 0;
  clip-path: inset(0 0 0 0 round 20px 20px 0 0);
  -webkit-clip-path: inset(0 0 0 0 round 20px 20px 0 0);
  transform: translateX(-50%);
  transform-origin: bottom center;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.4);
}
.projects-desktop .card-blue:hover .card-img-wrap img {
  transform: translateX(-50%) translateY(10px) scale(1.07) rotate(-1.5deg);
  box-shadow: 0 -10px 45px rgba(0, 0, 0, 0.5);
}
.projects-desktop .card-orange:hover .card-img-wrap img {
  transform: translateX(-50%) translateY(10px) scale(1.07) rotate(1.5deg);
  box-shadow: 0 -10px 45px rgba(0, 0, 0, 0.5);
}

/* CARD 3 (Telegram / Dark) — zoom up + slight right tilt */
.projects-desktop .card-dark:hover .card-img-wrap img {
  transform: translateY(-14px) scale(1.05) rotate(2deg);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
}


.desc {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    visibility 0.5s ease;
  backdrop-filter: blur(6px);
  padding: 50px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
}

.desc.active-desc {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.desc::before {
  content: attr(data-index);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 20px;
  display: block;
}

.desc-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.desc-dash {
  width: 34px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  flex-shrink: 0;
}
.desc-head h2 {
  font-family: "Anton", sans-serif;
  font-size: clamp(26px, 2.8vw, 36px);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--white);
  margin: 0;
}
.desc-text {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  color: var(--gray);
  max-width: 520px;
  margin-bottom: 30px;
}
.desc-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.desc-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-family: "Inter", sans-serif;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--white);
}
.desc-bullets svg {
  flex-shrink: 0;
  margin-top: 4px;
}
.desc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.desc-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 16px;
  border-radius: 8px;
}
.desc-tag i {
  font-size: 14px;
  color: var(--red);
}

/* ---------------------------------------------------------------------
   Contact & Footer
--------------------------------------------------------------------- */
.contact {
  position: relative;
  z-index: 2;
  background: var(--bg);
  padding: 140px 60px 120px;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(
    to bottom,
    rgba(11, 11, 11, 0) 0%,
    var(--bg) 100%
  );
  pointer-events: none;
}
.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}
.contact-heading {
  max-width: 640px;
  margin-bottom: 60px;
}
.contact-sub {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray);
  max-width: 480px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: stretch;
}

.contact-info {
  position: relative;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.015)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  overflow: hidden;
}
.contact-info::before {
  content: "";
  position: absolute;
  bottom: -50%;
  left: -20%;
  width: 260px;
  height: 260px;
  background: radial-gradient(
    circle,
    rgba(229, 52, 46, 0.14) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-info-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1.5px solid rgba(229, 52, 46, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 17px;
  background: rgba(229, 52, 46, 0.06);
}
.contact-info-item h4 {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 6px;
}
.contact-info-item a,
.contact-info-item p {
  font-family: "Inter", sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  line-height: 1.5;
}
.contact-info-item a:hover {
  color: var(--red);
}

.contact-socials {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.contact-socials a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}
.contact-socials a:hover {
  transform: translateY(-3px);
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.contact-form-wrap {
  position: relative;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.015)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 40px;
  overflow: hidden;
}
.contact-form-wrap::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(
    circle,
    rgba(229, 52, 46, 0.18) 0%,
    transparent 70%
  );
  pointer-events: none;
}
#contactform {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.hidden-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form-group label {
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray);
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: "Inter", sans-serif;
  font-size: 14.5px;
  color: var(--white);
  outline: none;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(201, 198, 192, 0.45);
}
.form-group input:hover,
.form-group textarea:hover {
  border-color: rgba(255, 255, 255, 0.22);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--red);
  background: rgba(229, 52, 46, 0.04);
  box-shadow: 0 0 0 4px rgba(229, 52, 46, 0.12);
  animation: input-focus-pulse 0.6s ease-out;
}
@keyframes input-focus-pulse {
  0% {
    box-shadow:
      0 0 0 4px rgba(229, 52, 46, 0.12),
      0 0 0 0 rgba(229, 52, 46, 0.5);
  }
  60% {
    box-shadow:
      0 0 0 4px rgba(229, 52, 46, 0.12),
      0 0 0 14px rgba(229, 52, 46, 0);
  }
  100% {
    box-shadow:
      0 0 0 4px rgba(229, 52, 46, 0.12),
      0 0 0 0 rgba(229, 52, 46, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .form-group input:focus,
  .form-group textarea:focus {
    animation: none;
  }
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}
.form-submit {
  cursor: pointer;
  background: var(--white);
  color: #111;
  border: none;
  justify-content: center;
  width: 100%;
  position: relative;
}
.form-submit:hover {
  background: var(--red);
  color: var(--white);
}
.form-submit:hover i {
  color: var(--white);
}
.form-submit:disabled {
  cursor: not-allowed;
  opacity: 0.75;
}
.form-submit .btn-spinner {
  display: none;
}
.form-submit.is-loading .btn-text,
.form-submit.is-loading .btn-arrow {
  display: none;
}
.form-submit.is-loading .btn-spinner {
  display: inline-block;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.form-status {
  min-height: 18px;
  font-family: "Inter", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
}
.form-status.is-success {
  color: #4ade80;
}
.form-status.is-error {
  color: var(--red);
}

.site-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  background: #060606;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 70px 60px 0;
  overflow: hidden;
}
.footer-glow {
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 560px;
  height: 280px;
  background: radial-gradient(
    ellipse,
    rgba(229, 52, 46, 0.16) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.footer-glow-2 {
  top: auto;
  bottom: -160px;
  left: 8%;
  transform: none;
  width: 320px;
  height: 220px;
  background: radial-gradient(
    ellipse,
    rgba(245, 242, 236, 0.06) 0%,
    transparent 70%
  );
}
.footer-top {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 80px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-brand .logo {
  position: static;
}
.footer-tagline {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray);
  max-width: 300px;
  margin: 0;
}
.footer-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}
.footer-socials a:hover {
  transform: translateY(-3px);
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-col-title {
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.footer-links a {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  text-decoration: none;
  width: fit-content;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}
.footer-links a:hover {
  color: var(--white);
  transform: translateX(3px);
}
.footer-credits a {
  font-size: 13px;
}
.footer-cta {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-email {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  width: fit-content;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 2px;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}
.footer-email:hover {
  color: var(--red);
  border-color: var(--red);
}
.footer-cta-text {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray);
  max-width: 300px;
  margin: -2px 0 2px;
}
.footer-btn {
  padding: 12px 20px;
  font-size: 12.5px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-bottom {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p {
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  color: rgba(201, 198, 192, 0.55);
  margin: 0;
}
.footer-madeby {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-madeby::before {
  content: "\f004";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--red);
  font-size: 11px;
}

/* ---------------------------------------------------------------------
   Media Queries & Mobile Overrides
--------------------------------------------------------------------- */

@media (max-width: 980px) {
  .site-footer {
    padding: 60px 40px 0;
  }
  .footer-top {
    grid-template-columns: 1.3fr 1fr;
    gap: 45px 50px;
  }
  .custom-cursor {
    display: none;
  }
  .proj-card,
  .cert-card {
    cursor: pointer;
  }
  .footer-cta {
    grid-column: 1 / -1;
  }
  .footer-cta-text {
    max-width: 420px;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-fixed {
    position: relative;
    height: auto;
    min-height: 100svh;
    padding: 0 24px;
    overflow: visible;
  }
  .hero-fixed::after,
  .hero-spacer,
  .social-rail,
  .deco-rail,
  .deco-corner,
  .deco-dots {
    display: none;
  }

  .header {
    padding-top: 90px;
    flex-wrap: wrap;
    gap: 16px;
  }
  .nav {
    padding: 0 24px;
  }
  .nav-links {
    gap: 20px;
    font-size: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 40px;
  }
  .hero-copy {
    padding-left: 0;
    bottom: 0;
    order: 2;
    padding-top: 30px;
    margin-left: 0;
  }
  .hero-photo {
    order: 1;
    justify-content: center;
  }
  .hero-photo img {
    max-width: 360px;
  }
  .headline .line {
    font-size: clamp(30px, 8vw, 44px);
  }
  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
  }
  .hero-stat-divider {
    display: none;
  }

  .contact {
    padding: 100px 40px 90px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-form-wrap {
    padding: 32px;
  }

  /* Activate Mobile Projects View */
  .projects-desktop {
    display: none;
  }
  .projects-mobile {
    display: flex;
    flex-direction: column;
    gap: 80px;
    width: 100%;
  }

  .project-item-mobile {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  /* Reset Card & Desc for Mobile Flow */
  .projects-mobile .proj-card {
    min-height: 350px;
    padding: 30px;
    pointer-events: auto; /* allows click event on mobile */
  }
  .projects-mobile .card-top h3 {
    font-size: 20px;
  }

  .projects-mobile .image-stack {
    height: 250px;
  }
  .projects-mobile .image-stack .img {
    width: 160px;
  }
  .projects-mobile .image-stack .center {
    width: 200px;
  }
  .projects-mobile .card-img-wrap {
    height: 250px;
    margin: 0;
    width: 100%;
    border-radius: 14px;
  }
  .projects-mobile .card-dark .card-img-wrap img {
    width: 90%;
    max-height: 96%;
    height: auto;
    object-fit: contain;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto;
    transform: none;
  }

  /* Mobile bottom-attached cards (Cards 2 & 4) */
  .projects-mobile .card-blue,
  .projects-mobile .card-orange {
    padding-bottom: 0 !important;
  }
  .projects-mobile .card-blue .card-img-wrap,
  .projects-mobile .card-orange .card-img-wrap {
    margin-left: -30px !important;
    margin-right: -30px !important;
    width: calc(100% + 60px) !important;
    height: 250px !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
  }
  .projects-mobile .card-blue .card-img-wrap img,
  .projects-mobile .card-orange .card-img-wrap img {
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    width: 90% !important;
    max-width: 400px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: unset !important;
    border-radius: 20px 20px 0 0 !important;
    -webkit-border-radius: 20px 20px 0 0 !important;
    clip-path: inset(0 0 0 0 round 20px 20px 0 0) !important;
    -webkit-clip-path: inset(0 0 0 0 round 20px 20px 0 0) !important;
    transform: translateX(-50%) !important;
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.4) !important;
    display: block !important;
  }

  /* Disable all project hover animations on mobile */
  .projects-mobile .proj-card:hover {
    transform: none;
  }
  .projects-mobile .proj-card:hover .card-top i {
    transform: none;
  }
  .projects-mobile .proj-card:hover .image-stack .img {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }
  .projects-mobile .proj-card:hover .image-stack .left {
    transform: translateX(-50%) translateX(-80px) rotate(-8deg);
  }
  .projects-mobile .proj-card:hover .image-stack .center {
    transform: translateX(-50%);
  }
  .projects-mobile .proj-card:hover .image-stack .right {
    transform: translateX(-50%) translateX(80px) rotate(8deg);
  }
  .projects-mobile .proj-card:hover .card-img-wrap img {
    transform: none;
  }
  .projects-mobile .card-blue:hover .card-img-wrap img,
  .projects-mobile .card-orange:hover .card-img-wrap img {
    transform: translateX(-50%);
  }

  .projects-mobile .desc {
    position: relative; /* override desktop absolute */
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 10px 0 0 0;
    background: transparent;
    backdrop-filter: none;
    height: auto;
  }
}

@media (max-width: 600px) {
  .header,
  .nav {
    display: none;
  }
  .site-footer {
    padding: 50px 24px 0;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-bottom: 40px;
  }
  .footer-brand {
    gap: 16px;
  }
  .footer-tagline,
  .footer-cta-text {
    max-width: 100%;
  }
  .footer-cta {
    grid-column: auto;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 0 26px;
  }

  .about {
    padding: 100px 10px;
  }
  .hero-photo img {
    margin-top: 17px;
  }

  .floating-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 12px;
    background: rgba(20, 20, 20, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: var(--white);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
    z-index: 4;
    pointer-events: none;
  }
  .floating-chip i {
    color: var(--red);
    font-size: 14px;
  }

  .hero-stats {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 40px;
    width: 100%;
  }
  .cta-row {
    justify-content: center;
  }

  .contact {
    padding: 80px 20px 70px;
  }
  .contact-heading {
    margin-bottom: 40px;
  }
  .contact-info {
    padding: 28px 24px;
  }
  .contact-form-wrap {
    padding: 24px;
    border-radius: 18px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .bg-ambient {
    display: none;
  }

  /* Mobile Projects Tweaks for smallest screens */
  .projects-mobile .proj-card {
    padding: 20px;
    min-height: 280px;
  }
  .projects-mobile .card-blue,
  .projects-mobile .card-orange {
    padding-bottom: 0 !important;
  }
  .projects-mobile .image-stack,
  .projects-mobile .card-img-wrap {
    height: 200px;
    margin: 0;
    width: 100%;
  }
  .projects-mobile .card-blue .card-img-wrap,
  .projects-mobile .card-orange .card-img-wrap {
    margin-left: -20px !important;
    margin-right: -20px !important;
    width: calc(100% + 40px) !important;
    height: 220px !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
  }
  .projects-mobile .card-blue .card-img-wrap img,
  .projects-mobile .card-orange .card-img-wrap img {
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    width: 90% !important;
    max-width: 350px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: unset !important;
    border-radius: 18px 18px 0 0 !important;
    -webkit-border-radius: 18px 18px 0 0 !important;
    clip-path: inset(0 0 0 0 round 18px 18px 0 0) !important;
    -webkit-clip-path: inset(0 0 0 0 round 18px 18px 0 0) !important;
    transform: translateX(-50%) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4) !important;
    display: block !important;
  }
  .projects-mobile .card-dark .card-img-wrap img {
    width: 92%;
    max-height: 96%;
  }
  .projects-mobile .image-stack .img {
    width: 130px;
  }
  .projects-mobile .image-stack .center {
    width: 170px;
  }

  /* Tap interaction */
  .projects-mobile .proj-card:active {
    transform: scale(0.97);
  }
}

@media (hover: hover) {
  .cert-card:hover {
    transform: translateY(-6px);
    border-color: var(--red);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  }
  .cert-card:hover img {
    transform: scale(1.08);
  }
  .cert-card:hover .cert-overlay {
    opacity: 1;
  }
  .cert-card:hover .cert-index {
    -webkit-text-stroke-color: rgba(229, 52, 46, 0.8);
  }
}

@media (hover: none), (max-width: 980px) {
  .cert-overlay {
    opacity: 0.9;
    background: linear-gradient(
      to top,
      rgba(11, 11, 11, 0.95) 0%,
      rgba(11, 11, 11, 0.6) 50%,
      transparent 100%
    );
  }
}
