/* ===== Global & Base Styles ===== */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Inter", sans-serif;
  cursor: default;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  position: relative;
}

/* ===== Full Page Background ===== */
#background-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  opacity: 0.8;
  pointer-events: none;
}

/* ===== Fade-in Animation ===== */
.fade-in-section {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Custom Scrollbar Hide ===== */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* ===== Pulse Glow Animation ===== */
@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 12px rgba(225, 6, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 24px rgba(225, 6, 0, 0.9);
  }
}
.animate-pulse-glow {
  animation: pulse-glow 1.5s ease-in-out infinite;
}

/* ===== Gradient Text Effect ===== */
.gradient-text {
  background: linear-gradient(90deg, #e10600, #ff4444, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Glassmorphism Utility ===== */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== Hover Glow Effect ===== */
.hover-glow:hover {
  box-shadow: 0 0 30px rgba(225, 6, 0, 0.6);
  transition: box-shadow 0.3s ease;
}

/* ===== Typewriter Effects ===== */
@keyframes typewriter {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}
@keyframes blink {
  0%,
  50% {
    border-color: transparent;
  }
  51%,
  100% {
    border-color: #e10600;
  }
}
@keyframes typewriter-tagline {
  0% {
    width: 0;
    opacity: 1;
  }
  100% {
    width: 100%;
    opacity: 1;
  }
}
.typewriter-text,
.typewriter-tagline {
  overflow: hidden;
  white-space: nowrap;
  border-right: 4px solid #e10600;
}
.typewriter-text {
  animation: typewriter 4s steps(9, end) 1s both, blink 1s infinite 1s;
}
.typewriter-tagline {
  opacity: 0;
  animation: typewriter-tagline 3s steps(21, end) 0s both, blink 1s infinite 0s;
}
.typewriter-text.animation-complete,
.typewriter-tagline.animation-complete {
  border-right: none;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed !important;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  background: rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(10px);
  border-radius: 50px;
  border: 1px solid rgba(225, 6, 0, 0.2);
  z-index: 1000;
  animation: navFloat 1s ease-out;
}
@keyframes navFloat {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(120deg, #000 60%, #e10600 100%);
  color: #fff;
  height: 100vh;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  animation: heroPop 1.2s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
@keyframes heroPop {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.hero h2 {
  text-shadow: 0 4px 24px #e10600cc, 0 1px 0 #000;
  animation: textGlow 2s infinite alternate;
  letter-spacing: 4px;
}
@keyframes textGlow {
  from {
    text-shadow: 0 4px 24px #e10600cc, 0 1px 0 #000;
  }
  to {
    text-shadow: 0 0px 40px #fff, 0 1px 0 #e10600;
  }
}
.hero p {
  font-size: 1.5rem;
  color: #e10600;
  margin-bottom: 2rem;
  letter-spacing: 2px;
  font-weight: 600;
}
.hero button {
  background: linear-gradient(90deg, #e10600 60%, #fff 100%);
  color: #111;
  border: none;
  padding: 0.9rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 24px #e1060055;
  transition: background 0.4s, color 0.3s, transform 0.2s;
  outline: none;
  letter-spacing: 1px;
}
.hero button:hover {
  background: linear-gradient(90deg, #fff 60%, #e10600 100%);
  color: #e10600;
  transform: scale(1.07) rotate(-2deg);
}

/* ===== About Section ===== */
.about-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(
    135deg,
    #000 0%,
    #1a1a1a 25%,
    #2d2d2d 50%,
    #1a1a1a 75%,
    #000 100%
  );
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

/* Fancy background patterns */
.about-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(225, 6, 0, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(225, 6, 0, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(255, 255, 255, 0.02) 0%,
      transparent 50%
    );
  z-index: 1;
}

.about-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(
      45deg,
      rgba(225, 6, 0, 0.03) 25%,
      transparent 25%
    ),
    linear-gradient(-45deg, rgba(225, 6, 0, 0.03) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(225, 6, 0, 0.03) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(225, 6, 0, 0.03) 75%);
  background-size: 60px 60px;
  background-position: 0 0, 0 30px, 30px -30px, -30px 0px;
  opacity: 0.3;
  z-index: 1;
}

.about-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  text-align: center;
}

.about-title {
  color: #e10600;
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 2rem;
  letter-spacing: 3px;
  text-shadow: 0 4px 20px rgba(225, 6, 0, 0.3);
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-content {
  font-size: 1.4rem;
  line-height: 1.8;
  color: #e0e0e0;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
}

.about-highlight {
  color: #e10600;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(225, 6, 0, 0.3);
}

.about-divider {
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #e10600, #ff6b6b);
  margin: 2rem auto;
  border-radius: 2px;
  opacity: 0;
  transform: scaleX(0);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.4s;
}

/* Animation trigger class */
.about-section.animate .about-title {
  opacity: 1;
  transform: translateY(0);
}

.about-section.animate .about-content {
  opacity: 1;
  transform: translateY(0);
}

.about-section.animate .about-divider {
  opacity: 1;
  transform: scaleX(1);
}

/* ===== Carousel ===== */
.carousel {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: 100%;
}
.carousel::-webkit-scrollbar {
  display: none;
}
.carousel-item {
  min-width: 320px;
  max-width: 350px;
  flex: 0 0 auto;
  background: #181818;
  border-left: 6px solid #e10600;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 16px #000a;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: cardPop 1s;
  margin-bottom: 1rem;
  box-sizing: border-box;
}
.carousel-item:hover {
  transform: translateY(-10px) scale(1.04) rotate(-1deg);
  box-shadow: 0 8px 32px #e10600aa;
}
@keyframes cardPop {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Glowing Active Dot */
.carousel-dot.active {
  box-shadow: 0 0 12px rgba(225, 6, 0, 0.7);
  animation: pulse-glow 1.5s ease-in-out infinite;
}

/* ===== Social Icons ===== */
.social-links a {
  color: #fff;
  font-size: 2.2rem;
  transition: color 0.3s, transform 0.2s;
}
.social-links a:hover {
  color: #e10600;
  transform: scale(1.2) rotate(-8deg);
}

/* ===== Footer ===== */
footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 1.2rem 0;
  font-size: 1rem;
  letter-spacing: 1px;
  margin-top: 2rem;
  box-shadow: 0 -2px 16px #e1060022;
  animation: fadeInUp 2s;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 900px) {
  .navbar {
    width: 95% !important;
    border-radius: 25px !important;
  }
  .about-section {
    padding: 3rem 1.5rem;
  }
  .about-title {
    font-size: 3rem;
  }
  .about-content {
    font-size: 1.2rem;
  }
  .carousel {
    flex-direction: column;
    gap: 1.5rem;
    max-width: 100%;
  }
  .carousel-item {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }
}
@media (max-width: 600px) {
  .hero h2 {
    font-size: 3rem !important;
  }
  .hero p {
    font-size: 1.2rem !important;
  }
  .about-section {
    padding: 2rem 1rem;
  }
  .about-title {
    font-size: 2.5rem;
  }
  .about-content {
    font-size: 1.1rem;
  }
  nav h1 {
    font-size: 1.5rem;
  }
  .btn {
    font-size: 1rem !important;
    padding: 0.7rem 1.5rem !important;
  }
}
