:root {
  --bg-1: #240808;
  --bg-2: #000000;
  --text: #FFE6E6;
  --muted: #ecdfdf;
  --accent: #FF3838;
  --accent-2: #FF5C5C;
  --card: #3b0202;
  --card-2: #ffffff;
  --shadow: 0 10px 30px rgba(255, 56, 56, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Cantarell, 'Noto Sans', sans-serif;
  background: var(--bg-1);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background with animated stars */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at top, var(--bg-2) 0%, var(--bg-1) 100%);
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(2px 2px at 20px 30px, var(--accent), transparent),
    radial-gradient(2px 2px at 40px 70px, var(--accent-2), transparent),
    radial-gradient(1px 1px at 90px 40px, var(--accent), transparent),
    radial-gradient(1px 1px at 130px 80px, var(--accent-2), transparent),
    radial-gradient(2px 2px at 160px 30px, var(--accent), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: stars 20s linear infinite;
  opacity: 0.3;
  z-index: -1;
}

@keyframes stars {
  from { transform: translateY(0px); }
  to { transform: translateY(-100px); }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  width: 100%;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.hero-content {
  width: 100%;
  max-width: 800px;
}

.hero-text {
  /* Animation handled via staggered revealUp/revealLeft/revealRight classes */
}

.greeting {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  line-height: 1.2;
}

.cursor {
  color: var(--accent);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  justify-content: center;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.avatar-container {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

/* Matahari (Sun) */
.sun-core {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 4px solid #FFD700;
  box-shadow:
    0 0 40px rgba(255, 215, 0, 0.8),
    0 0 80px rgba(255, 215, 0, 0.5),
    0 0 120px rgba(255, 215, 0, 0.3),
    inset 0 0 30px rgba(255, 215, 0, 0.4);
  animation: sunGlow 3s ease-in-out infinite alternate;
  cursor: pointer;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.sun-core img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.sun-core:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

@keyframes sunGlow {
  0% {
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.8), 0 0 80px rgba(255, 215, 0, 0.5), 0 0 120px rgba(255, 215, 0, 0.3), inset 0 0 30px rgba(255, 215, 0, 0.4);
  }
  100% {
    box-shadow: 0 0 50px rgba(255, 215, 0, 1), 0 0 100px rgba(255, 215, 0, 0.7), 0 0 150px rgba(255, 215, 0, 0.4), inset 0 0 40px rgba(255, 215, 0, 0.6);
  }
}

.glow-genz-button {
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: 12px;
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
  padding: 12px 36px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-family: inherit;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-block;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255, 56, 56, 0.05);
}

.glow-genz-button:hover {
  color: white;
  border-color: var(--accent-2);
  box-shadow: 0 0 25px rgba(255, 56, 56, 1), 0 0 50px rgba(255, 92, 92, 0.8);
  transform: scale(1.05);
}

.social-links {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.social-link {
  color: var(--muted);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 56, 56, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: heartbeat 3s infinite ease-in-out;
}

@keyframes heartbeat {
  0% { transform: scale(1); box-shadow: 0 0 0 rgba(255, 56, 56, 0); }
  15% { transform: scale(1.15); box-shadow: 0 0 15px rgba(255, 56, 56, 0.3); }
  30% { transform: scale(1); box-shadow: 0 0 0 rgba(255, 56, 56, 0); }
  45% { transform: scale(1.15); box-shadow: 0 0 15px rgba(255, 56, 56, 0.3); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(255, 56, 56, 0); }
}

.social-link:hover {
  color: var(--accent);
  transform: scale(1.2) translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 56, 56, 0.4);
  background: rgba(255, 56, 56, 0.1);
  animation-play-state: paused;
}

/* Partners Carousel Wrap */
.partners-wrap {
  width: 100%;
  max-width: 1000px;
  padding: 40px 0 20px;
  background: transparent;
  overflow: hidden;
  perspective: 1000px;
  position: relative;
}

.partners-wrap::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 1px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0.2;
  filter: blur(20px);
  z-index: -1;
  animation: glowPulse 4s infinite ease-in-out;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.3; transform: translate(-50%, -50%) scale(1.2); }
}

.partners-title {
  text-align: center;
  font-size: 1.4rem;
  color: var(--muted);
  margin-bottom: 20px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.partners-slider {
  position: relative;
  width: 100%;
  padding: 20px 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partners-track {
  display: flex;
  gap: 80px;
  width: max-content;
  animation: scroll 20s linear infinite;
  align-items: center;
}

.partners-track img {
  height: 45px;
  width: auto;
  filter: grayscale(1) brightness(2);
  opacity: 0.4;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.partners-track:hover {
  animation-play-state: paused;
}

.partners-track img:hover {
  filter: grayscale(0) brightness(1);
  opacity: 1;
  transform: scale(1.15);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Custom Cursor */
.cursor-dot, 
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: white;
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease-out;
}

/* Hover state for custom cursor */
.cursor-active {
  transform: translate(-50%, -50%) scale(1.5);
  background-color: rgba(255, 255, 255, 0.1);
  border-color: white;
}

/* Media Queries */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }
  .hero-title { font-size: 3rem; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .avatar-container { width: 350px; height: 350px; }
  .sun-core { width: 80px; height: 80px; }
  .partners-track { gap: 40px; }
  .partners-track img { height: 35px; }
  .partners-title { font-size: 1.2rem; }
  .cursor-dot, .cursor-outline { display: none; }
}



@media (max-width: 640px) {
  .greeting { font-size: 1rem; margin-top: 1rem; margin-bottom: 0.5rem; }
  .hero-title { font-size: 2rem; }
  .avatar-container { width: 150px; height: 150px; margin-bottom: 1rem; }
  .sun-core { width: 120px; height: 120px; }
  .social-links { justify-content: center; }
  .partners-wrap { width: 320px; max-width: 1000px; padding: 25px 0 20px; }
}

/* Entrance Animations */
.hero-visual { opacity: 0; animation: revealDown 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: 0.1s; }
.greeting { opacity: 0; animation: revealLeft 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: 0.3s; }
.hero-title { opacity: 0; animation: revealRight 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: 0.5s; }
.hero-buttons { opacity: 0; animation: revealUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: 0.7s; }
.social-links { opacity: 0; animation: revealUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: 0.9s; }
.partners-wrap { opacity: 0; animation: revealUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: 1.1s; }

@keyframes revealUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes revealDown {
  from { opacity: 0; transform: translateY(-50px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes revealLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes revealRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}