/* style.css */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap");

:root {
  --primary-color: #0d47a1;
  --primary-dark: #072350;
  --secondary-color: #ffca28;
  --text-light: #ffffff;
  --text-dark: #1e293b;
  --bg-dark: #071328;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--text-light);
  background-color: var(--bg-dark);
  overflow-x: hidden;
}

/* Background Animation */
.gradient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #0d47a1, #1565c0, #002171, #072350);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  z-index: -1;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Navbar (Glassmorphism) */
nav {
  position: fixed;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 100;
  transition: all 0.3s ease;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-light);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand img {
  height: 45px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 400;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 5px;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 101;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-light);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100vw;
  height: 100vh;
  background: rgba(7, 35, 80, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: right 0.4s ease;
  z-index: 99;
}

.mobile-menu.active {
  right: 0;
}

.mobile-nav-links {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mobile-nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.mobile-nav-links a:hover {
  color: var(--secondary-color);
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.alternate-bg {
  background: rgba(0, 0, 0, 0.2);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.section-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 5% 4rem;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: left;
  max-width: 1200px;
  gap: 5rem;
  z-index: 10;
}

.hero-text-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hero-logo-container {
  position: relative;
  flex-shrink: 0;
  animation: staggerInLogo 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s backwards;
}

.hero-logo {
  width: 250px;
  height: auto;
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.25));
  animation: float 6s ease-in-out infinite;
}

.glow-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 180px;
  background: var(--secondary-color);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  z-index: -1;
  animation: pulse 4s ease-in-out infinite;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  background: linear-gradient(to right, #ffffff, #e0e0e0);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: 2px;
  animation: wipeRightText 1.5s cubic-bezier(0.86, 0, 0.07, 1) 0.5s backwards;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 3rem;
  max-width: 650px;
  line-height: 1.6;
  animation: fadeInHero 1.2s ease 1s backwards;
}

.cta-button {
  padding: 1rem 2.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--secondary-color);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(255, 202, 40, 0.4);
  display: inline-block;
  align-self: flex-start;
  animation: fadeInHero 1.2s ease 1.2s backwards;
}

.cta-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(255, 202, 40, 0.6);
  background: #ffe082;
}

/* Tentang Section */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-text p {
  font-size: 1.25rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

/* Makna Logo Section */
.values-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-top: 4rem;
  max-width: 1200px;
}

.values-column {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 1;
}

.values-center {
  flex: 0 0 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.makna-logo-img {
  width: 100%;
  max-width: 250px;
  height: auto;
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.2));
  animation: float 5s ease-in-out infinite;
}

.logo-glow {
  width: 220px;
  height: 220px;
  background: var(--secondary-color);
  opacity: 0.35;
  filter: blur(60px);
}

.value-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.value-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 0.5rem;
  color: var(--secondary-color); /* For SVGs */
}

.value-icon svg {
  stroke: var(--secondary-color);
  transition: all 0.3s ease;
}

.value-card:hover .value-icon svg {
  transform: scale(1.1);
  stroke: var(--text-light);
}

.gradient-circle {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff1a1a 50%, #202020 50%);
  transition: transform 0.3s ease;
}

.value-card:hover .gradient-circle {
  transform: scale(1.1) rotate(180deg);
}

.value-icon.merah-hitam {
  background: rgba(255, 255, 255, 0.05); /* So it matches others */
}

.value-card h3 {
  font-size: 1.3rem;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

/* Angkatan Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 4rem auto 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
}

.timeline-item {
  width: 100%;
  margin-bottom: 2rem;
  position: relative;
  display: flex;
  justify-content: flex-end;
  padding-right: 50%;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--secondary-color);
  box-shadow: 0 0 10px var(--secondary-color);
  z-index: 2;
}

.timeline-content {
  width: 90%;
  position: relative;
}

.year {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  border-radius: 20px;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.timeline-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.timeline-content p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* Footer Section */
footer {
  background: rgba(0, 0, 0, 0.4);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-logo img {
  width: 50px;
  height: auto;
}

.footer-logo h2 {
  font-size: 1.5rem;
  font-weight: 800;
}

.footer-info p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass-bg);
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--secondary-color);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* Scroll Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animations */
@keyframes staggerInLogo {
  0% {
    opacity: 0;
    transform: translateX(-100vw) rotate(-25deg);
  }
  60% {
    opacity: 1;
    transform: translateX(40px) rotate(10deg);
  }
  80% {
    transform: translateX(-15px) rotate(-5deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(0);
  }
}

@keyframes wipeRightText {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
  1% {
    opacity: 1;
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

@keyframes fadeInHero {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-25px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-title { font-size: 3.5rem; }
  .section-title { font-size: 2.2rem; }
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 2rem;
  }
  
  .hero-text-content {
    align-items: center;
  }
  
  .cta-button {
    align-self: center;
  }

  .nav-links { display: none; }
  .hamburger { display: flex; }
  
  .hero-title {
    font-size: 2.5rem;
    letter-spacing: 1px;
  }

  .hero-logo { width: 180px; }
  .hero-subtitle { font-size: 1.1rem; }
  
  .values-grid {
    flex-direction: column;
    gap: 3rem;
  }

  .values-center {
    order: -1;
    margin-bottom: 1rem;
    flex: 0 0 200px;
  }

  .makna-logo-img {
    max-width: 200px;
  }
  
  .timeline::before { left: 30px; }
  
  .timeline-item, .timeline-item:nth-child(even) {
    justify-content: flex-end;
    padding-right: 0;
    padding-left: 70px;
  }
  
  .timeline-item::after { left: 30px; }
  .timeline-content { width: 100%; }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .social-links { justify-content: center; }
}
