/* ========================================
   LUXURY PORTFOLIO - PREMIUM STYLESHEET
   ======================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  --bg-primary: #0d0d0d;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --bg-card: #141414;
  --bg-card-hover: #1c1c1c;
  --text-primary: #f5f5f5;
  --text-secondary: #aaaaaa;
  --text-muted: #777777;
  --red-deep: #8b0000;
  --red-primary: #a4161a;
  --red-accent: #c41e24;
  --red-glow: rgba(164, 22, 26, 0.6);
  --red-glow-soft: rgba(164, 22, 26, 0.25);
  --red-glow-faint: rgba(164, 22, 26, 0.1);
  --gold-accent: #d4a853;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(164, 22, 26, 0.3);
  --glass-bg: rgba(20, 20, 20, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(164, 22, 26, 0.15);
  --shadow-glow-strong: 0 0 60px rgba(164, 22, 26, 0.3);
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: all 0.2s ease;
  --font-heading: "Playfair Display", "Georgia", serif;
  --font-body: "Poppins", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;
  --container-width: 1200px;
  --section-padding: 120px 0;
  --navbar-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--red-primary);
  color: var(--text-primary);
}

::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--red-deep);
  border-radius: 4px;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Code Icon </> */
.preloader-code-icon {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  animation: codeIconPulse 2s ease-in-out infinite;
}

.code-bracket {
  color: var(--red-accent);
  text-shadow:
    0 0 20px var(--red-glow),
    0 0 40px var(--red-glow-soft);
  animation: bracketGlow 2s ease-in-out infinite;
}

.code-slash {
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

@keyframes codeIconPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes bracketGlow {
  0%,
  100% {
    text-shadow:
      0 0 20px var(--red-glow),
      0 0 40px var(--red-glow-soft);
  }
  50% {
    text-shadow:
      0 0 30px var(--red-glow),
      0 0 60px var(--red-glow),
      0 0 80px var(--red-glow-soft);
  }
}

/* Code Lines */
.preloader-code-lines {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-align: left;
  padding: 16px 24px;
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  min-width: 320px;
  backdrop-filter: blur(10px);
}

.code-line {
  padding: 4px 0;
  opacity: 0;
  transform: translateX(-10px);
  white-space: nowrap;
}

.code-line:nth-child(1) {
  animation: codeLineIn 0.5s ease 0.3s forwards;
}
.code-line:nth-child(2) {
  animation: codeLineIn 0.5s ease 0.8s forwards;
}
.code-line:nth-child(3) {
  animation: codeLineIn 0.5s ease 1.3s forwards;
}

@keyframes codeLineIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cl-keyword {
  color: #c678dd;
}
.cl-var {
  color: #e06c75;
}
.cl-string {
  color: #98c379;
}
.cl-func {
  color: #61afef;
}
.cl-comment {
  color: #5c6370;
  font-style: italic;
}

/* Progress Bar */
.preloader-progress {
  width: 200px;
  height: 3px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
}

.preloader-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--red-deep), var(--red-accent));
  border-radius: 3px;
  box-shadow: 0 0 10px var(--red-glow);
  animation: progressFill 2s ease-in-out forwards;
}

@keyframes progressFill {
  0% {
    width: 0%;
  }
  30% {
    width: 40%;
  }
  60% {
    width: 70%;
  }
  90% {
    width: 90%;
  }
  100% {
    width: 100%;
  }
}

.preloader-text {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: dotsFlicker 1.5s step-end infinite;
}

@keyframes dotsFlicker {
  0% {
    content: "";
  }
  25% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  75% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  z-index: 1000;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
  position: relative;
}

.nav-logo span {
  color: var(--red-primary);
  text-shadow: 0 0 20px var(--red-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  transition: var(--transition-fast);
  padding: 4px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red-primary), var(--red-accent));
  transition: width 0.3s ease;
  border-radius: 2px;
  box-shadow: 0 0 8px var(--red-glow);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
}

.nav-toggle span {
  width: 28px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-smooth);
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--navbar-height);
}

.hero-bg-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#heroParticles {
  width: 100%;
  height: 100%;
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 20% 50%,
      rgba(164, 22, 26, 0.08) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 80% 20%,
      rgba(139, 0, 0, 0.06) 0%,
      transparent 50%
    ),
    linear-gradient(180deg, transparent 0%, rgba(13, 13, 13, 0.3) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

/* -- Hero Split Layout -- */
.hero-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-width: 1200px;
  width: 90%;
  text-align: left;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border: 1px solid var(--border-glow);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--red-accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 28px;
  background: var(--red-glow-faint);
  animation: fadeInDown 1s ease 0.2s both;
}

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

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  animation: fadeInUp 1s ease 0.4s both;
  position: relative;
  overflow: hidden;
  display: inline-block;
}

/* Shimmer on Hero Name */
.hero-name::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    transparent 30%,
    rgba(255, 255, 255, 0.06) 45%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(196, 30, 36, 0.1) 55%,
    transparent 70%,
    transparent 100%
  );
  animation: shimmerSweep 5s ease-in-out 2s infinite;
  pointer-events: none;
}

.hero-name .highlight {
  background: linear-gradient(
    135deg,
    var(--red-primary),
    var(--red-accent),
    var(--gold-accent)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 12px;
  animation: fadeInUp 1s ease 0.6s both;
}

.hero-tagline {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--text-muted);
  margin-bottom: 40px;
  animation: fadeInUp 1s ease 0.8s both;
  font-style: italic;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 1s both;
}

/* -- 3D Neon Portrait -- */
.hero-portrait-wrapper {
  flex-shrink: 0;
  position: relative;
  animation: fadeInRight 1.2s ease 0.6s both;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-portrait-3d {
  position: relative;
  width: 340px;
  height: 420px;
  perspective: 1000px;
  transform-style: preserve-3d;
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0) rotateY(0deg) rotateX(0deg);
  }
  25% {
    transform: translateY(-12px) rotateY(2deg) rotateX(1deg);
  }
  50% {
    transform: translateY(-6px) rotateY(-1deg) rotateX(-1deg);
  }
  75% {
    transform: translateY(-14px) rotateY(1deg) rotateX(0.5deg);
  }
}

/* Neon Glow Rings */
.neon-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
  pointer-events: none;
}

.neon-ring-1 {
  width: 380px;
  height: 380px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-color: rgba(196, 30, 36, 0.25);
  box-shadow:
    0 0 15px rgba(196, 30, 36, 0.15),
    inset 0 0 15px rgba(196, 30, 36, 0.05);
  animation:
    neonPulse1 4s ease-in-out infinite,
    neonRotate 20s linear infinite;
}

.neon-ring-2 {
  width: 420px;
  height: 420px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-color: rgba(164, 22, 26, 0.12);
  border-style: dashed;
  box-shadow: 0 0 20px rgba(164, 22, 26, 0.08);
  animation:
    neonPulse2 5s ease-in-out infinite,
    neonRotateReverse 25s linear infinite;
}

.neon-ring-3 {
  width: 460px;
  height: 460px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-color: rgba(139, 0, 0, 0.08);
  box-shadow: 0 0 30px rgba(139, 0, 0, 0.05);
  animation:
    neonPulse3 6s ease-in-out infinite,
    neonRotate 30s linear infinite;
}

@keyframes neonPulse1 {
  0%,
  100% {
    box-shadow:
      0 0 15px rgba(196, 30, 36, 0.15),
      inset 0 0 15px rgba(196, 30, 36, 0.05);
  }
  50% {
    box-shadow:
      0 0 35px rgba(196, 30, 36, 0.35),
      inset 0 0 25px rgba(196, 30, 36, 0.12);
    border-color: rgba(196, 30, 36, 0.45);
  }
}

@keyframes neonPulse2 {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(164, 22, 26, 0.08);
  }
  50% {
    box-shadow: 0 0 40px rgba(164, 22, 26, 0.2);
    border-color: rgba(164, 22, 26, 0.25);
  }
}

@keyframes neonPulse3 {
  0%,
  100% {
    box-shadow: 0 0 30px rgba(139, 0, 0, 0.05);
  }
  50% {
    box-shadow: 0 0 50px rgba(139, 0, 0, 0.15);
    border-color: rgba(139, 0, 0, 0.15);
  }
}

@keyframes neonRotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes neonRotateReverse {
  from {
    transform: translate(-50%, -50%) rotate(360deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

/* Orbiting Dots */
.orbit-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-accent);
  box-shadow:
    0 0 12px var(--red-glow),
    0 0 24px var(--red-glow-soft);
  pointer-events: none;
}

.orbit-dot-1 {
  animation: orbitDot1 8s linear infinite;
}

.orbit-dot-2 {
  width: 6px;
  height: 6px;
  background: var(--gold-accent);
  box-shadow: 0 0 12px rgba(212, 168, 83, 0.5);
  animation: orbitDot2 12s linear infinite;
}

.orbit-dot-3 {
  width: 5px;
  height: 5px;
  animation: orbitDot3 10s linear infinite reverse;
}

@keyframes orbitDot1 {
  0% {
    top: 50%;
    left: -10px;
  }
  25% {
    top: -10px;
    left: 50%;
  }
  50% {
    top: 50%;
    left: calc(100% + 10px);
  }
  75% {
    top: calc(100% + 10px);
    left: 50%;
  }
  100% {
    top: 50%;
    left: -10px;
  }
}

@keyframes orbitDot2 {
  0% {
    top: 10%;
    left: -15px;
  }
  25% {
    top: -15px;
    left: 85%;
  }
  50% {
    top: 85%;
    left: calc(100% + 15px);
  }
  75% {
    top: calc(100% + 15px);
    left: 10%;
  }
  100% {
    top: 10%;
    left: -15px;
  }
}

@keyframes orbitDot3 {
  0% {
    top: 90%;
    left: -8px;
  }
  25% {
    top: -8px;
    left: 20%;
  }
  50% {
    top: 20%;
    left: calc(100% + 8px);
  }
  75% {
    top: calc(100% + 8px);
    left: 80%;
  }
  100% {
    top: 90%;
    left: -8px;
  }
}

/* Photo Frame */
.hero-photo-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-tertiary);
  border: 2px solid rgba(196, 30, 36, 0.3);
  box-shadow:
    0 0 30px rgba(164, 22, 26, 0.2),
    0 0 60px rgba(164, 22, 26, 0.1),
    0 20px 60px rgba(0, 0, 0, 0.5),
    inset 0 0 30px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
}

.hero-portrait-3d:hover .hero-photo-frame {
  border-color: rgba(196, 30, 36, 0.6);
  box-shadow:
    0 0 50px rgba(196, 30, 36, 0.35),
    0 0 100px rgba(164, 22, 26, 0.15),
    0 20px 60px rgba(0, 0, 0, 0.5),
    inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.05) saturate(1.1);
  transition:
    transform 0.6s ease,
    filter 0.6s ease;
}

.hero-portrait-3d:hover .hero-photo-frame img {
  transform: scale(1.05);
  filter: contrast(1.1) saturate(1.15);
}

/* Scanline overlay */
.photo-scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(164, 22, 26, 0.03) 2px,
    rgba(164, 22, 26, 0.03) 4px
  );
  pointer-events: none;
  z-index: 2;
}

/* Glare effect */
.photo-glare {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    135deg,
    transparent 40%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(255, 255, 255, 0.06) 50%,
    rgba(255, 255, 255, 0.03) 55%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 3;
  animation: glareMove 6s ease-in-out infinite;
}

@keyframes glareMove {
  0%,
  100% {
    transform: translate(-10%, -10%) rotate(0deg);
  }
  50% {
    transform: translate(10%, 10%) rotate(5deg);
  }
}

/* Corner Accents */
.corner-accent {
  position: absolute;
  width: 24px;
  height: 24px;
  pointer-events: none;
  z-index: 4;
}

.corner-accent::before,
.corner-accent::after {
  content: "";
  position: absolute;
  background: var(--red-accent);
  box-shadow: 0 0 8px var(--red-glow);
}

.corner-accent::before {
  width: 100%;
  height: 2px;
}

.corner-accent::after {
  width: 2px;
  height: 100%;
}

.corner-tl {
  top: -6px;
  left: -6px;
}
.corner-tl::before {
  top: 0;
  left: 0;
}
.corner-tl::after {
  top: 0;
  left: 0;
}

.corner-tr {
  top: -6px;
  right: -6px;
}
.corner-tr::before {
  top: 0;
  right: 0;
}
.corner-tr::after {
  top: 0;
  right: 0;
}

.corner-bl {
  bottom: -6px;
  left: -6px;
}
.corner-bl::before {
  bottom: 0;
  left: 0;
}
.corner-bl::after {
  bottom: 0;
  left: 0;
}

.corner-br {
  bottom: -6px;
  right: -6px;
}
.corner-br::before {
  bottom: 0;
  right: 0;
}
.corner-br::after {
  bottom: 0;
  right: 0;
}

/* Status Badge */
.hero-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(13, 13, 13, 0.8);
  border: 1px solid var(--border-glow);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--red-accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 1s ease 1.2s both;
  white-space: nowrap;
}

.status-pulse {
  width: 8px;
  height: 8px;
  background: #25d366;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(37, 211, 102, 0.6);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red-deep), var(--red-primary));
  color: var(--text-primary);
  box-shadow: 0 4px 20px var(--red-glow-soft);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px var(--red-glow);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--red-primary), var(--red-accent));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary span,
.btn-primary svg {
  position: relative;
  z-index: 1;
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-glow);
}

.btn-outline:hover {
  background: var(--red-glow-faint);
  border-color: var(--red-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--red-glow-soft);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* ---------- Section Shared Styles ---------- */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red-accent);
  margin-bottom: 16px;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
  position: relative;
  display: inline-block;
  overflow: hidden;
  padding: 4px 0;
}

/* Shimmer / Glint Sweep on Section Titles */
.section-title::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 35%,
    rgba(255, 255, 255, 0.4) 45%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 200, 200, 0.4) 55%,
    transparent 65%,
    transparent 100%
  );
  transform: translateX(-150%);
  animation: shimmerSweep 3.5s ease-in-out 2s infinite;
  pointer-events: none;
}

.section-title .accent {
  color: var(--red-primary);
  text-shadow: 0 0 30px var(--red-glow-soft);
}

@keyframes shimmerSweep {
  0% {
    transform: translateX(-150%);
  }
  60% {
    transform: translateX(250%);
  }
  100% {
    transform: translateX(250%);
  }
}

.section-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--red-primary), var(--red-accent));
  margin: 0 auto;
  border-radius: 3px;
  box-shadow: 0 0 15px var(--red-glow);
}

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

/* ---------- Scroll Transition Photo ---------- */
.hero-scroll-photo {
  position: fixed;
  z-index: 100;
  border-radius: 20px;
  overflow: hidden;
  pointer-events: none;
  transition: none;
  border: 2px solid rgba(196, 30, 36, 0.3);
  box-shadow:
    0 0 30px rgba(164, 22, 26, 0.2),
    0 0 60px rgba(164, 22, 26, 0.1),
    0 20px 60px rgba(0, 0, 0, 0.5);
  will-change: transform, width, height, top, left, opacity, border-radius;
}

.hero-scroll-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-scroll-photo.transitioning {
  transition: all 0.05s linear;
}

.hero-scroll-photo.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ---------- About Section ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-tertiary);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.about-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  z-index: 1;
}

.about-image-decoration {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 20px;
  left: 20px;
  border: 2px solid var(--red-glow-soft);
  border-radius: 16px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.about-content h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.about-content h3 span {
  color: var(--red-primary);
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--bg-card);
  transition: var(--transition-smooth);
}

.stat-item:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--red-primary);
  text-shadow: 0 0 20px var(--red-glow-soft);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- Skills Section ---------- */
.skills-categories {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.skills-category-btn {
  padding: 10px 24px;
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  letter-spacing: 0.5px;
}

.skills-category-btn:hover,
.skills-category-btn.active {
  background: var(--red-glow-faint);
  border-color: var(--red-primary);
  color: var(--text-primary);
  box-shadow: 0 0 20px var(--red-glow-soft);
}

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

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red-primary), var(--red-accent));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.skill-card:hover::before {
  transform: scaleX(1);
}

.skill-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-hover);
}

.skill-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  display: block;
}

.skill-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.skill-bar-container {
  width: 100%;
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red-deep), var(--red-accent));
  border-radius: 4px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 0 10px var(--red-glow);
}

/* ---------- Projects Section ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition-smooth);
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.project-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow-strong);
  transform: translateY(-10px);
}

.project-image-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.project-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-image-wrapper img {
  transform: scale(1.08);
}

.project-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(13, 13, 13, 0.9) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
}

.project-card:hover .project-image-overlay {
  opacity: 1;
}

.project-view-btn {
  padding: 10px 24px;
  background: var(--red-primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transform: translateY(20px);
  transition: var(--transition-smooth);
  letter-spacing: 0.5px;
}

.project-card:hover .project-view-btn {
  transform: translateY(0);
}

.project-info {
  padding: 24px;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.project-description {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

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

.tech-tag {
  padding: 4px 12px;
  background: var(--red-glow-faint);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--red-accent);
  letter-spacing: 0.5px;
}

/* ---------- Project Detail Modal ---------- */
.project-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
  padding: 20px;
}

.project-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.project-modal {
  background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
  border: 1px solid rgba(196, 30, 36, 0.3);
  border-radius: 20px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(40px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    0 0 40px rgba(196, 30, 36, 0.15),
    0 25px 80px rgba(0, 0, 0, 0.6);
}

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

.project-modal::-webkit-scrollbar {
  width: 6px;
}

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

.project-modal::-webkit-scrollbar-thumb {
  background: rgba(196, 30, 36, 0.4);
  border-radius: 3px;
}

.project-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
}

.project-modal-close:hover {
  background: var(--red-primary);
  border-color: var(--red-primary);
  transform: rotate(90deg);
}

.project-modal-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

.project-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-modal-body {
  padding: 32px;
}

.project-modal-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-role,
.modal-year {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.modal-role {
  background: var(--red-glow-faint);
  border: 1px solid var(--border-glow);
  color: var(--red-accent);
}

.modal-year {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.project-modal-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.project-modal-description {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.project-modal-features h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--red-accent);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-modal-features ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
}

.project-modal-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-modal-features li::before {
  content: "◆";
  color: var(--red-primary);
  font-size: 0.55rem;
  flex-shrink: 0;
}

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

.project-modal-tech .tech-tag {
  font-size: 0.8rem;
  padding: 6px 16px;
}

/* ---------- Services Section ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red-primary), var(--red-accent));
  transition: width 0.4s ease;
  border-radius: 3px;
}

.service-card:hover::after {
  width: 60%;
}

.service-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-10px);
  box-shadow: var(--shadow-glow);
}

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--red-glow-faint);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.8rem;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
  box-shadow: 0 0 30px var(--red-glow-soft);
  transform: scale(1.1);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Contact Section ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.contact-info h3 span {
  color: var(--red-primary);
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

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

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.contact-detail-item:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateX(6px);
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red-glow-faint);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-detail-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-top: 2px;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 40px;
  border-radius: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: var(--transition-smooth);
  outline: none;
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control:focus {
  border-color: var(--red-primary);
  box-shadow: 0 0 20px var(--red-glow-soft);
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

.form-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--red-deep), var(--red-primary));
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  letter-spacing: 0.5px;
  box-shadow: 0 4px 20px var(--red-glow-soft);
}

.form-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px var(--red-glow);
}

/* ---------- Footer ---------- */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
}

.footer-logo span {
  color: var(--red-primary);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
  font-size: 1rem;
}

.footer-social a:hover {
  border-color: var(--red-primary);
  color: var(--red-accent);
  transform: translateY(-3px);
  box-shadow: 0 0 20px var(--red-glow-soft);
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------- WhatsApp Floating Button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 990;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition-smooth);
  cursor: pointer;
  animation: floatBounce 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

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

.whatsapp-float:hover {
  animation: none;
  transform: scale(1.12);
}

/* ---------- Chatbot ---------- */
.chatbot-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-deep), var(--red-primary));
  border: none;
  cursor: pointer;
  z-index: 991;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--red-glow-soft);
  transition: var(--transition-smooth);
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px var(--red-glow);
}

.chatbot-toggle svg {
  width: 26px;
  height: 26px;
  fill: #fff;
  transition: var(--transition-smooth);
}

.chatbot-toggle.active svg {
  transform: rotate(180deg);
}

.chatbot-popup {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 370px;
  max-height: 700px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  z-index: 992;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.8) translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.chatbot-popup.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  visibility: visible;
}

.chatbot-header {
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--red-deep), var(--red-primary));
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.chatbot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.chatbot-header-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.chatbot-header-info p {
  font-size: 0.72rem;
  opacity: 0.8;
}

.chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  max-height: 400px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-message {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.85rem;
  line-height: 1.5;
  animation: fadeInUp 0.3s ease;
}

.chat-message.bot {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  color: var(--text-secondary);
}

.chat-message.user {
  background: linear-gradient(135deg, var(--red-deep), var(--red-primary));
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chatbot-quick-replies {
  padding: 0 20px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quick-reply {
  padding: 7px 14px;
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  background: transparent;
  color: var(--red-accent);
  font-family: var(--font-body);
  font-size: 0.76rem;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.quick-reply:hover {
  background: var(--red-glow-faint);
  border-color: var(--red-primary);
}

.chatbot-input-area {
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 10px;
  align-items: center;
}

.chatbot-input {
  flex: 1;
  padding: 10px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: var(--transition-fast);
}

.chatbot-input:focus {
  border-color: var(--red-primary);
}

.chatbot-send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--red-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.chatbot-send:hover {
  background: var(--red-accent);
  transform: scale(1.08);
}

.chatbot-send svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.chatbot-wa-link {
  display: block;
  padding: 12px;
  text-align: center;
  background: #25d366;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.chatbot-wa-link:hover {
  background: #20bd5a;
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    box-shadow: 0 0 20px var(--red-glow-soft);
  }
  50% {
    box-shadow: 0 0 40px var(--red-glow);
  }
}

/* ---------- Back To Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  color: var(--text-secondary);
  font-size: 1.1rem;
}

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

.back-to-top:hover {
  border-color: var(--red-primary);
  color: var(--red-accent);
  transform: translateY(-3px);
  box-shadow: 0 0 20px var(--red-glow-soft);
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  :root {
    --section-padding: 80px 0;
  }

  .hero-split {
    flex-direction: column;
    text-align: center;
    gap: 50px;
  }

  .hero-text {
    order: 2;
  }

  .hero-portrait-wrapper {
    order: 1;
  }

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

  .hero-portrait-3d {
    width: 280px;
    height: 350px;
  }

  .neon-ring-1 {
    width: 320px;
    height: 320px;
  }
  .neon-ring-2 {
    width: 350px;
    height: 350px;
  }
  .neon-ring-3 {
    width: 380px;
    height: 380px;
  }

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

  .about-image-wrapper {
    max-width: 280px;
    margin: 0 auto;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 40px;
    gap: 24px;
    transition: right 0.4s ease;
    border-left: 1px solid var(--border-subtle);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-name {
    font-size: clamp(2.2rem, 8vw, 3.5rem);
  }

  .hero-portrait-3d {
    width: 240px;
    height: 300px;
  }

  .neon-ring-1 {
    width: 270px;
    height: 270px;
  }
  .neon-ring-2 {
    width: 300px;
    height: 300px;
  }
  .neon-ring-3 {
    display: none;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .stat-number {
    font-size: 1.6rem;
  }

  .stat-label {
    font-size: 0.72rem;
  }

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

  .project-modal-overlay {
    padding: 10px;
    align-items: flex-end;
  }

  .project-modal {
    max-height: 85vh;
    border-radius: 16px 16px 0 0;
  }

  .project-modal-body {
    padding: 20px;
  }

  .project-modal-features ul {
    grid-template-columns: 1fr;
  }

  .project-modal-image {
    aspect-ratio: 16/10;
  }

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

  .chatbot-popup {
    width: calc(100vw - 32px);
    right: 16px;
    bottom: 90px;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }

  .contact-form {
    padding: 24px;
  }

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

@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
  }

  .stat-item {
    padding: 14px 8px;
  }

  .hero-cta-group {
    flex-direction: column;
  }

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