/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@400;500;700&display=swap');

:root {
  --primary-color: #5f9ecf;
  --primary-dark: #4b80a8;
  --primary-light: #e0f0fa;
  --accent-color: #7ab3e1;
  --bg-color: #f8fafc;
  --surface-color: rgba(255, 255, 255, 0.7);
  --text-dark: #1e293b;
  --text-light: #64748b;
  --border-color: rgba(203, 213, 225, 0.5);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-blur: blur(16px);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-color);
  background-image: 
    radial-gradient(at 0% 0%, hsla(206,73%,90%,1) 0, transparent 50%), 
    radial-gradient(at 100% 0%, hsla(215,60%,92%,1) 0, transparent 50%);
  background-attachment: fixed;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

/* Navbar (Glassmorphism) */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary-color);
}

/* Hero Section */
header.hero {
  margin-top: 4.5rem;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 5%;
  background: linear-gradient(rgba(75, 128, 168, 0.8), rgba(95, 158, 207, 0.6)), url('../image/latar.jpeg') center/cover;
  color: white;
  border-radius: 0 0 40px 40px;
  box-shadow: var(--shadow-md);
  animation: fadeIn 1s ease-out;
}

header.hero h1 {
  color: white;
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

header.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.btn-group {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--primary-color);
  color: white;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.btn-outline:hover {
  background: white;
  color: var(--primary-dark);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 5%;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* Cards (Glassmorphism) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--surface-color);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  text-align: center;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.card p {
  color: var(--text-light);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer {
  background: var(--primary-dark);
  color: white;
  text-align: center;
  padding: 2rem 5%;
  margin-top: 4rem;
  border-radius: 40px 40px 0 0;
}

footer p {
  opacity: 0.8;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    padding: 1rem 2%;
    gap: 1rem;
  }
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    font-size: 0.9rem;
  }
  header.hero h1 {
    font-size: 2.5rem;
  }
  .btn-group {
    flex-direction: column;
  }
}

/* Accordion Styles */
details.accordion {
  background: var(--surface-color);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
details.accordion summary {
  padding: 1rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  background-color: rgba(95, 158, 207, 0.1);
  color: var(--primary-dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s;
}
details.accordion summary::-webkit-details-marker {
  display: none;
}
details.accordion summary::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  transition: transform 0.3s;
}
details.accordion[open] summary::after {
  transform: rotate(180deg);
}
details.accordion summary:hover {
  background-color: rgba(95, 158, 207, 0.2);
}
details.accordion .accordion-content {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--white);
}
details.accordion ul, details.accordion ol {
  margin-left: 1.5rem;
  margin-bottom: 0;
}
