/* ==========================================================================
   VARIABLE DEFINITIONS
   ========================================================================== */
:root {
  /* Color Scheme */
  --primary: #b10000;
  --secondary: #660000;
  --dark: #330000;
  --light: #ffffff;
  --text: #e0e0e0;

  /* Gradients dan Shadows */
  --gradient-primary: linear-gradient(135deg, var(--primary), #c20000);
  --shadow-primary: 0 5px 15px rgba(212, 1, 1, 0.3);
  --shadow-primary-large: 0 8px 20px rgba(212, 1, 1, 0.5);

  /* Transitions */
  --transition-default: all 0.3s ease;

  /* Spacing */
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 15px;
  --spacing-lg: 20px;
  --spacing-xl: 30px;

  /* Border Radius */
  --border-radius-lg: 10px;
  --border-radius-round: 50px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: var(--dark);
  color: var(--text);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius-round);
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-default);
  letter-spacing: 0.5px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--light);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-primary-large);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: rgba(212, 1, 1, 0.1);
  transform: translateY(-3px);
}

.btn-login {
  background: transparent;
  color: var(--light);
  border: 1px solid var(--primary);
}

.btn-login:hover {
  background: rgba(255, 0, 0, 0.1);
  transform: translateY(-2px);
}

.btn-register {
  background: var(--gradient-primary);
  color: var(--light);
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

.btn-glow {
  position: relative;
}

.btn-glow:before {
  content: "";
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: inherit;
  background: var(--gradient-primary);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-glow:hover:before {
  opacity: 1;
  animation: glow 1.5s linear infinite;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header-sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--dark);
  z-index: 1000;
  padding: 15px 0;
  transition: var(--transition-default);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-sticky.scrolled {
  padding: 10px 0;
  background-color: rgba(51, 0, 0, 0.98);
  box-shadow: 0 5px 20px rgba(255, 0, 0, 0.3);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  transition: var(--transition-default);
}

.header-sticky.scrolled .logo img {
  height: 35px;
}

.nav-desktop {
  display: flex;
  gap: 20px;
}

.nav-desktop a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-default);
  position: relative;
}

.nav-desktop a:hover {
  color: var(--primary);
}

.nav-desktop a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.nav-desktop a:hover::after {
  width: 100%;
}

.btn-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--light);
  font-size: 24px;
  cursor: pointer;
}

.mobile-nav {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  background-color: var(--dark);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  z-index: 999;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
  max-height: 300px;
  padding: 15px 0;
}

.mobile-nav a {
  display: block;
  color: var(--text);
  text-decoration: none;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-default);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  background-color: rgba(255, 0, 0, 0.1);
  color: var(--primary);
  padding-left: 25px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(212, 1, 1, 0.15) 0%, rgba(20, 0, 0, 0) 50%);
  z-index: -1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-text {
  z-index: 1;
}

.hero-text h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-text h1 span {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-text h1 span:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 10px;
  bottom: 5px;
  left: 0;
  background: var(--primary);
  opacity: 0.2;
  z-index: -1;
}

.hero-text p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  gap: 15px;
}

.hero-image {
  position: relative;
}

.hero-image img {
  max-width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: perspective(1000px) rotateY(-5deg);
  transition: all 0.5s ease;
}

.hero-image img:hover {
  transform: perspective(1000px) rotateY(0deg);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background-color: rgba(20, 0, 0, 0.95);
  padding: 30px 0;
  position: relative;
}

footer:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to c, transparent, var(--primary), transparent);
}

.copyright {
  text-align: center;
  padding-top: 20px;
}

.copyright p {
  font-size: 14px;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes glow {
  0% {
    filter: blur(5px);
  }
  50% {
    filter: blur(7px);
  }
  100% {
    filter: blur(5px);
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
/* Medium Screens (Tablets) */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    order: 2;
  }

  .hero-image {
    order: 1;
    margin-bottom: 30px;
  }
}

/* Small to Medium Screens */
@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .btn-group {
    display: none;
  }

  .mobile-btn-group {
    display: flex;
  }

  .hero-text h1 {
    font-size: 36px;
  }
}

/* Small Screens (Mobile) */
@media (max-width: 600px) {
  .hero-text h1 {
    font-size: 32px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .btn {
    width: 100%;
    max-width: 200px;
  }
}

a {
  color: #c20000;
}
