/* Modern Premium Styles with Glassmorphism */

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

body {
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
  background: #0a0a0a;
}

html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #fff59d, #e53935, #fff59d);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #fff176, #d32f2f, #fff176);
}

/* Animated Background - Optimized */
.gradient-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(255, 245, 157, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(229, 57, 53, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(255, 245, 157, 0.05) 0%,
      transparent 50%
    );
  will-change: transform;
}

/* Stars Background - Simplified */
.stars {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      2px 2px at 20px 30px,
      rgba(255, 255, 255, 0.2),
      transparent
    ),
    radial-gradient(1px 1px at 50px 50px, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 90px 10px, rgba(255, 255, 255, 0.2), transparent);
  background-size: 200px 200px;
  opacity: 0.6;
}

/* Floating Shapes - Reduced */
.floating-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  will-change: transform;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 245, 157, 0.1), transparent);
  top: 10%;
  left: 10%;
}

.shape-2 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(229, 57, 53, 0.1), transparent);
  top: 50%;
  right: 10%;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 245, 157, 0.1), transparent);
  bottom: 20%;
  left: 50%;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

/* Navbar Styles */
#navbar {
  backdrop-filter: blur(10px);
  background: rgba(10, 10, 10, 0.3);
  transition: all 0.3s ease;
}

#navbar.scrolled {
  background: rgba(10, 10, 10, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #fff59d, #e53935);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #fff;
}

.nav-link:hover::after {
  width: 100%;
}

/* Glass Card Effect */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 48px rgba(229, 57, 53, 0.2);
  transform: translateY(-5px);
}

/* Mobile Menu */
.mobile-menu {
  backdrop-filter: blur(20px);
}

.mobile-menu-link {
  background: linear-gradient(90deg, #fff59d, #e53935, #fff59d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.mobile-menu-link:hover {
  transform: translateX(10px);
}

/* Button Animations */
button {
  position: relative;
  overflow: hidden;
}

button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button:hover::before {
  width: 300px;
  height: 300px;
}

/* Pulse Animation */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .shape {
    width: 250px !important;
    height: 250px !important;
  }
}

@media (max-width: 768px) {
  .shape {
    width: 150px !important;
    height: 150px !important;
  }

  h1 {
    font-size: 2.5rem !important;
  }

  h2 {
    font-size: 2rem !important;
  }
}

/* AOS Custom Animations */
[data-aos="fade-up"] {
  transform: translateY(50px);
  opacity: 0;
}

[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
  opacity: 1;
}

[data-aos="fade-left"] {
  transform: translateX(50px);
  opacity: 0;
}

[data-aos="fade-left"].aos-animate {
  transform: translateX(0);
  opacity: 1;
}

[data-aos="fade-right"] {
  transform: translateX(-50px);
  opacity: 0;
}

[data-aos="fade-right"].aos-animate {
  transform: translateX(0);
  opacity: 1;
}

[data-aos="zoom-in"] {
  transform: scale(0.8);
  opacity: 0;
}

[data-aos="zoom-in"].aos-animate {
  transform: scale(1);
  opacity: 1;
}

/* Parallax Sections */
section {
  position: relative;
  z-index: 10;
}

/* Glow Effects */
.glow-yellow {
  box-shadow: 0 0 40px rgba(255, 245, 157, 0.3);
}

.glow-red {
  box-shadow: 0 0 40px rgba(229, 57, 53, 0.3);
}

/* Selection Style */
::selection {
  background: rgba(229, 57, 53, 0.5);
  color: white;
}

::-moz-selection {
  background: rgba(229, 57, 53, 0.5);
  color: white;
}
