/* ========================= GLOBAL ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0c0c0c;
  color: #fff;
  overflow-x: hidden;
  position: relative;
}

section,
footer {
  position: relative;
  z-index: 1;
}

/* ========================= GLOBAL CINEMATIC BACKGROUND ========================= */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  /* background:
    radial-gradient(
      circle at top left,
      rgba(255, 120, 0, 0.16),
      transparent 32%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(255, 120, 0, 0.12),
      transparent 30%
    ),
    radial-gradient(
      circle at center,
      rgba(255,255,255,0.02),
      transparent 60%
    ); */
  z-index: -2;
  pointer-events: none;
}

/* GRID TEXTURE */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.10) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.20;
  z-index: -1;
  pointer-events: none;
}

/* ========================= TORCH EFFECT ========================= */
#spotlight {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  background: rgba(255, 170, 0, 0.08);
  filter: blur(60px);
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  opacity: 0.8;
  z-index: 0;
}

/* ========================= BUTTONS ========================= */
.primary-btn {
  background: linear-gradient(to right, #ff9800, #ff6a00);
  color: #000;
  transition: 0.35s ease;
  box-shadow: 0 0 30px rgba(255, 140, 0, 0.18);
}

.primary-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 45px rgba(255, 140, 0, 0.28);
}

/* ========================= FLOATING ========================= */
.floating {
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* ========================= PROJECT CARD ========================= */
.project-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: 0.45s ease;
  isolation: isolate;
}

#projects .project-card:hover {
  transform: translateY(-10px) scale(1.01);
  border-color: rgba(255, 170, 0, 0.35);
  box-shadow: 0 10px 40px rgba(255, 140, 0, 0.1);
}

#projects .project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55));
  z-index: 1;
}

.project-content {
  position: relative;
  z-index: 2;
}

/* ========================= RESPONSIVE POLISH ========================= */
@media (max-width: 1023px) {
  .hero-section {
    min-height: auto;
  }

  .hero-copy {
    max-width: 680px;
    margin-inline: auto;
  }

  #projects .project-card {
    border-color: rgba(255, 170, 0, 0.35);
    box-shadow: 0 10px 40px rgba(255, 140, 0, 0.1);
    border-width: 2px;
    border-top: none;
  }

  #spotlight {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-section {
    padding-block: 4.5rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 34%);
    gap: clamp(2.5rem, 6vw, 4.5rem);
  }

  .hero-copy {
    max-width: none;
    margin-inline: 0;
  }

  .hero-portrait-mobile {
    display: none;
  }

  .hero-portrait-desktop {
    display: flex;
  }

  .hero-portrait-desktop img {
    width: clamp(280px, 32vw, 340px);
  }

  .hero-stats {
    max-width: 520px;
  }

  .section-block {
    padding-block: 5rem;
  }
}

@media (max-width: 767px) {

  body {
    background: #1a1a1a;
  }

  body::after {
    background-size: 48px 48px;
  }

  #spotlight {
    width: 320px;
    height: 320px;
    opacity: 0.55;
  }

  .hero-section {
    align-items: flex-start;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-portrait-mobile {
    margin-inline: auto;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    white-space: nowrap;
  }

  .hero-stats {
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .hero-stats p {
    line-height: 1.35;
  }

  .section-block {
    scroll-margin-top: 20px;
  }

  .project-card {
    border-radius: 20px;
  }
}

@media (max-width: 380px) {
  .hero-actions {
    grid-template-columns: 1fr;
  }
}

/* ========================= TECH TAGS ========================= */
.tech-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: 0.3s ease;
}

.tech-tag:hover {
  border-color: rgba(255, 170, 0, 0.35);
  color: #ffb347;
}

/* ========================= ICONS ========================= */
.social-icon {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.35s ease;
}

.social-icon:hover {
  transform: translateY(-5px);
  border-color: #ff9800;
  color: #ff9800;
  box-shadow: 0 10px 30px rgba(255, 140, 0, 0.12);
}

.tick {
  color: #fb923c;
}