
/* ============================================================
   1. Import Fonts
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Ephesis&display=swap');

/* ============================================================
   2. Global Reset & Body Styling
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Poppins', sans-serif;
  background: #12130F;
  color: #FAF2DB;
  line-height: 1.6;
}

/* ============================================================
   3. Typography & Utility Classes
   ============================================================ */
.intro-text {
  font-weight: 300;
  color: #FAF2DB;
  font-size: 2rem;
}
.glow-orange {
  text-shadow:
    0 0 10px #FF4F00,
    0 0 20px #FF4F00,
    0 0 30px #FF4F00,
    0 0 40px #FF4F00;
}
.glow-name {
  color: #FAF2DB;
  text-shadow:
    0 0 10px #FF4F00,
    0 0 20px #FF4F00,
    0 0 30px #FF4F00,
    0 0 40px #FF4F00;
  font-size: 2.4rem;
}
.glow-bounce {
  color: #FAF2DB;
  text-shadow:
    0 0 4px #FF4F00,
    0 0 10px #FF4F00,
    0 0 20px #FF4F00,
    0 0 30px #FF4F00;
  animation:
    fadeInSubheading 2s ease forwards,
    subtleFlickerLoop 1s ease-in-out infinite,
    randomFlicker 4s infinite;
  font-family: 'Poppins', sans-serif;
  font-weight: bold;
  font-size: 3rem;
  display: inline-block;
}
.glow-subtle {
  color: #FAF2DB;
  text-shadow:
    0 0 2px #F05219,
    0 0 4px #F05219,
    0 0 6px #F05219;
  font-family: 'Poppins', sans-serif;
  font-weight: bold;
  font-size: 2.4rem;
  display: inline-block;
}

/* Flicker delay utility classes */
.flicker-delay-1 { animation-delay: 2s, 3s, 4s; }
.flicker-delay-2 { animation-delay: 3s, 4s, 5s; }
.flicker-delay-3 { animation-delay: 4s, 5s, 6s; }
.flicker-delay-4 { animation-delay: 5s, 6s, 7s; }
.flicker-delay-5 { animation-delay: 5s; }
.flicker-delay-6 { animation-delay: 5.5s; }

/* ============================================================
   4. Navbar
   ============================================================ */
nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #12130F;
  z-index: 10;
}
nav a {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  color: #FAF2DB;
  text-decoration: none;
  position: relative;
  margin: 0 1rem;
  font-weight: 600;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
nav a.active {
  text-shadow:
    0 0 2px #F05219,
    0 0 6px #F05219,
    0 0 12px #F05219;
}
nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: #F05219;
  box-shadow: 0 0 4px #F05219, 0 0 8px #F05219;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease-in-out;
}
nav a:hover {
  color: #FAF2DB;
  text-shadow:
    0 0 2px #F05219,
    0 0 6px #F05219,
    0 0 12px #F05219,
    0 0 18px #FF2E63,
    0 0 24px #FF2E63;
}
nav a:hover::after,
nav a.active::after {
  transform: scaleX(1);
}

/* Nav Link Fade In Animation (if using .navbar) */
.navbar a {
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeInNav 1s ease forwards;
}
.navbar a:nth-child(1) { animation-delay: 0.5s; }
.navbar a:nth-child(2) { animation-delay: 0.8s; }
.navbar a:nth-child(3) { animation-delay: 1.1s; }

/* ============================================================
   5. Hero Section
   ============================================================ */
.hero {
  text-align: center;
  background-color: #12130F;
  color: #FAF2DB;
  padding-top: 0.5rem;
  padding-bottom: 2rem;
  margin-top: 60px;
  z-index: 1;
}
.hero h1 {
  font-size: 3.2rem;
}
@media (max-width: 480px) {
  .hero-intro-line,
  .hero-intro-combo,
  .hero-subheading p {
    font-size: 2rem;
  }
}

/* ============================================================
   6. Hero Animations
   ============================================================ */
.hero-heading {
  font-family: 'Poppins', cursive;
  font-size: 3.6rem;
  font-weight: 400;
  color: #FAF2DB;
  text-align: center;
  margin-bottom: 1rem;
  opacity: 0;
  animation: reveal-heading 1s ease-out 4.8s forwards;
}
.handwritten-name {
  opacity: 0;
  animation: reveal-heading 1s ease-out 2s forwards;
}
.hero-intro-line {
  font-size: 2.8rem;
  font-weight: 700;
  color: #FAF2DB;
  text-align: center;
  opacity: 0;
  animation: reveal-heading 1s ease-out forwards;
}
.hero-intro-line:nth-of-type(1) { animation-delay: 1s; }
.hero-intro-line:nth-of-type(2) { animation-delay: 2s; }
.hero-intro-combo {
  font-size: 2.8rem;
  font-weight: 700;
  color: #FAF2DB;
  text-align: center;
  opacity: 0;
  animation: reveal-heading 1s ease-out 2s forwards;
}

/* Hero Links Reveal */
.hero-links {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInHeroLinks 1.2s ease forwards;
  animation-delay: 4.5s;
}
.hero-links a {
  display: inline-block;
  margin: 0 1rem;
  font-size: 2rem;
  color: #FAF2DB;
  text-decoration: none;
  transition: color 0.3s ease;
}
.hero-links a:hover {
  color: #F05219;
}
.hero-links .neon-link {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInHeroLinks 1.2s ease forwards;
}

/* ============================================================
   7. Hero Subheadings & Flicker Effects
   ============================================================ */
.hero-subheading {
  text-align: center;
  margin-top: 1.2rem;
}
.hero-subheading p {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  color: #FAF2DB;
  font-weight: 600;
  opacity: 0;
  text-shadow: none;
  display: block;
  animation:
    fadeInSubheading 3s ease forwards,
    subtleFlickerLoop 5s ease-in-out infinite,
    randomFlicker 4s infinite;
}
.hero-subheading p:nth-child(1) { animation-delay: 3s, 4s, 4.8s; }
.hero-subheading p:nth-child(2) { animation-delay: 3.4s, 4.4s, 5.2s; }
.hero-subheading p:nth-child(3) { animation-delay: 3.8s, 4.8s, 5.6s; }

/* ============================================================
   8. Section Layouts (.section, .section-heading, etc.)
   ============================================================ */
.section {
  padding: 6rem 1rem;
  max-width: 800px;
  margin: 0 auto;
}
.section-block {
  margin-bottom: 5rem;
}
.section-heading span {
  animation:
    fadeInSubheading 1s ease forwards,
    subtleFlickerLoop 5s ease-in-out infinite,
    randomFlicker 4s infinite;
  text-shadow:
    0 0 2px #F05219,
    0 0 6px #F05219,
    0 0 12px #F05219,
    0 0 18px #FF2E63,
    0 0 24px #FF2E63;
  display: inline-block;
  font-weight: bold;
  font-size: 2.2rem;
}
.section-heading span.flicker-delay-1 { animation-delay: 2s, 3s, 4s; }
.section-heading span.flicker-delay-2 { animation-delay: 3s, 4s, 5s; }
.section-heading span.flicker-delay-3 { animation-delay: 3.6s, 4.6s, 5.8s; }
.section h2 span {
  color: #FAF2DB;
  text-shadow:
    0 0 8px #FF4F00,
    0 0 16px #FF4F00,
    0 0 24px #FF4F00,
    0 0 32px #FF4F00;
}

/* ============================================================
   9. Projects Section
   ============================================================ */
.projects-section {
  text-align: center;
  padding: 4rem 1rem;
}
.projects-heading {
  text-align: center;
  margin-bottom: 2rem;
  animation: fade-in-up 1s ease-in-out both;
}
.projects-title {
  font-size: 3rem;
  color: #FAF2DB !important;
  text-shadow: 0 0 12px #FF4F00, 0 0 24px #FF4F00;
  font-weight: 700;
  z-index: 2;
  pointer-events: none;
}
.video-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto 2rem;
  aspect-ratio: 16 / 5;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(255, 79, 0, 0.4);
  z-index: 1;
}
.video-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  pointer-events: none;
  transform: scale(1.12);
  box-shadow:
    0 0 24px #F05219,
    0 0 48px #F05219,
    0 0 72px #F05219,
    0 0 96px #FF2E63,
    0 0 120px #FF2E63;
  animation: flicker-neon 4s linear infinite, neon-pulse 3s ease-in-out infinite;
  z-index: 0;
}
.video-banner video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: auto;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(70%);
}
.video-link {
  display: block;
  text-decoration: none;
  position: relative;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 4rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.project-tile {
  background-color: #1A1B16;
  padding: 1rem;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(255, 79, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-tile:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 2px #F05219,
    0 0 6px #F05219,
    0 0 12px #F05219,
    0 0 18px #FF2E63,
    0 0 24px #FF2E63;
}
.project-tile video {
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
}
.project-media {
  max-width: 100%;
  width: 400px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: block;
  margin: 1rem auto;
}

/* ============================================================
   10. About Section
   ============================================================ */
.about-img {
  max-width: 300px;
  width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* ============================================================
   11. Footer
   ============================================================ */
footer {
  text-align: center;
  font-size: 0.875rem;
  color: #888;
  padding: 2rem 0;
}

/* ============================================================
   12. Keyframes (Grouped Together)
   ============================================================ */
@keyframes fadeInHeroLinks {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInNav {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes reveal-heading {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInName {
  to {
    opacity: 1;
  }
}
@keyframes fadeInSubheading {
  0% {
    opacity: 0;
    transform: translateY(20px);
    text-shadow: none;
  }
  30% {
    opacity: 1;
    transform: translateY(0);
    text-shadow: none;
  }
  40%, 42%, 44% {
    opacity: 0.4;
    text-shadow: none;
  }
  41%, 43%, 45% {
    opacity: 1;
    text-shadow:
      0 0 2px #F05219,
      0 0 6px #F05219,
      0 0 12px #F05219;
  }
  60%, 62% {
    opacity: 0.4;
    text-shadow: none;
  }
  61%, 63% {
    opacity: 1;
    text-shadow:
      0 0 2px #F05219,
      0 0 6px #F05219,
      0 0 12px #F05219;
  }
  100% {
    opacity: 1;
    text-shadow:
      0 0 2px #F05219,
      0 0 6px #F05219,
      0 0 12px #F05219;
  }
}
@keyframes breathe-glow {
  0%, 100% {
    text-shadow:
      0 0 12px #FF4F00,
      0 0 24px #FF4F00,
      0 0 36px #FF4F00;
  }
  50% {
    text-shadow:
      0 0 18px #FF4F00,
      0 0 36px #FF4F00,
      0 0 54px #FF4F00;
  }
}
@keyframes flicker-neon {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 58%, 100% {
    opacity: 1;
    text-shadow:
      0 0 2px #F05219,
      0 0 6px #F05219,
      0 0 12px #F05219,
      0 0 18px #FF2E63,
      0 0 24px #FF2E63;
  }
  20%, 22%, 24%, 55%, 57% {
    opacity: 0.4;
    text-shadow: none;
  }
}
@keyframes neon-pulse {
  0%, 100% {
    text-shadow:
      0 0 2px #F05219,
      0 0 6px #F05219,
      0 0 12px #F05219,
      0 0 18px #FF2E63,
      0 0 24px #FF2E63;
  }
  50% {
    text-shadow:
      0 0 4px #F05219,
      0 0 8px #F05219,
      0 0 16px #F05219,
      0 0 24px #FF2E63,
      0 0 32px #FF2E63;
  }
}
@keyframes hero-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes flickerFadeIn {
  0% {
    opacity: 0;
    text-shadow: none;
  }
  50% {
    opacity: 1;
    text-shadow:
      0 0 2px #F05219,
      0 0 4px #F05219;
  }
  100% {
    opacity: 1;
    text-shadow:
      0 0 1px #F05219,
      0 0 2px #F05219;
  }
}
@keyframes subtleFlickerLoop {
  0%, 100% {
    text-shadow:
      0 0 2px #F05219,
      0 0 6px #F05219,
      0 0 12px #F05219;
  }
  50% {
    text-shadow:
      0 0 1px #F05219,
      0 0 3px #F05219,
      0 0 6px #F05219;
  }
}
@keyframes randomFlicker {
  0%, 95%, 100% {
    opacity: 1;
    text-shadow:
      0 0 2px #F05219,
      0 0 6px #F05219,
      0 0 12px #F05219;
  }
  96%, 98% {
    opacity: 0.4;
    text-shadow: none;
  }
  97%, 99% {
    opacity: 1;
    text-shadow:
      0 0 2px #F05219,
      0 0 6px #F05219,
      0 0 12px #F05219;
  }
}

/* ============================================================
   13. Miscellaneous (Polaroid, LinkedIn icon, etc.)
   ============================================================ */
.polaroid {
  background: #FAF2DB;
  padding: 0.5rem 1rem 1.2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-width: 320px;
  margin: 2rem auto;
  text-align: center;
  transform: rotate(-2deg);
  transition: transform 0.3s ease;
}
.polaroid:hover {
  transform: rotate(0deg) scale(1.02);
}
.polaroid img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.polaroid figcaption {
  margin-top: 1rem;
  font-size: 1rem;
  color: #12130F;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
}
.neon-kota {
  font-family: 'Ephesis', cursive;
  font-size: 3.6rem;
  color: #FAF2DB;
  text-shadow:
    0 0 2px #F05219,
    0 0 6px #F05219,
    0 0 12px #F05219,
    0 0 18px #FF2E63,
    0 0 24px #FF2E63;
  display: inline-block;
}
.neon-nav-links {
  text-align: center;
  margin-top: 3rem;
}
.neon-link {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  color: #FAF2DB;
  text-decoration: none;
  position: relative;
  display: inline-block;
  margin: 1.5rem auto;
  font-weight: bold;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.neon-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  height: 2px;
  width: 36px;
  background: #F05219;
  box-shadow: 0 0 6px #F05219, 0 0 12px #F05219;
  transform-origin: center;
  transition: transform 0.3s ease;
}
.neon-link:hover::after {
  transform: scaleX(1);
}
.neon-link:hover {
  color: #FAF2DB;
  text-shadow:
    0 0 2px #F05219,
    0 0 6px #F05219,
    0 0 12px #F05219,
    0 0 18px #FF2E63,
    0 0 24px #FF2E63;
}
.linkedin-inline-icon svg {
  transition: transform 0.2s ease;
  vertical-align: middle;
  margin-left: 10px;
  fill: #FF4F00;
}
.linkedin-inline-icon:hover svg {
  transform: scale(1.1);
}

@media (max-width: 480px) {
  nav a {
    font-size: 1rem;
    margin: 0 0.5rem;
  }

  .hero-heading,
  .hero-intro-combo,
  .glow-bounce,
  .projects-title {
    font-size: 2rem;
  }

  .section {
    padding: 4rem 1rem;
  }

  .video-banner {
    aspect-ratio: 16 / 9;
    max-height: 180px;
  }

  footer {
    font-size: 1rem;
  }
}