/* Modern CSS Reset & Setup for Nasim al Wahah */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Cinzel:wght@600;700;800&family=Playfair+Display:ital,wght@0,500;0,700;1,400&display=swap');

:root {
  --bg-color: #faf9f6;
  --bg-dots: rgba(15, 59, 95, 0.04);
  --text-primary: #0a1a24;
  --text-secondary: #3e4e5a;
  --accent-navy: #0f3b5f;
  --accent-navy-dark: #072238;
  --accent-gold: #c29b38;
  --accent-gold-dark: #a17c26;
  --accent-green: #16a34a;
  --accent-orange: #ea580c;
  
  --gradient-primary: linear-gradient(135deg, var(--accent-navy) 0%, var(--accent-navy-dark) 100%);
  --gradient-gold: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
  --gradient-glow: linear-gradient(135deg, rgba(15, 59, 95, 0.08) 0%, rgba(194, 155, 56, 0.08) 100%);
  --gradient-border: linear-gradient(135deg, rgba(15, 59, 95, 0.15) 0%, rgba(194, 155, 56, 0.05) 100%);
  
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(15, 59, 95, 0.08);
  --glass-hover-border: rgba(194, 155, 56, 0.25);
  
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Playfair Display', serif;
  --font-accent: 'Cinzel', serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.7;
  position: relative;
}

/* Dotted Pattern Overlay */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--bg-dots) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: -2;
  pointer-events: none;
}

/* Elegant Glowing Background Elements */
.nebula {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(160px);
  opacity: 0.12;
  z-index: -1;
  pointer-events: none;
  animation: float-nebula 25s infinite alternate ease-in-out;
}

.nebula-navy {
  background: var(--accent-navy);
  top: -100px;
  right: -50px;
}

.nebula-gold {
  background: var(--accent-gold);
  top: 35%;
  left: -200px;
  animation-delay: -6s;
}

.nebula-blue {
  background: #3b82f6;
  bottom: -100px;
  right: -100px;
  animation-delay: -12s;
}

@keyframes float-nebula {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.15); }
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(15, 59, 95, 0.02);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: var(--glass-hover-border);
  box-shadow: 0 20px 40px rgba(15, 59, 95, 0.06);
  transform: translateY(-4px);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(15, 59, 95, 0.03);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.logo:hover .logo-img {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-navy);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: var(--transition-smooth);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  gap: 8px;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(15, 59, 95, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(15, 59, 95, 0.35);
  background: linear-gradient(135deg, var(--accent-navy-dark) 0%, var(--accent-navy) 100%);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-navy);
  border: 1.5px solid var(--accent-navy);
}

.btn-secondary:hover {
  background: rgba(15, 59, 95, 0.05);
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding-top: 200px;
  padding-bottom: 80px;
  text-align: center;
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 100px;
  background: rgba(15, 59, 95, 0.04);
  border: 1px solid rgba(15, 59, 95, 0.1);
  margin-bottom: 28px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-navy);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 3.8rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--accent-navy-dark);
  margin-bottom: 24px;
}

.hero h1 span {
  color: var(--accent-gold);
  position: relative;
  display: inline-block;
}

.hero h1 span::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(194, 155, 56, 0.2);
  border-radius: 2px;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.8;
}

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

/* Mockup / Image Container */
.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 59, 95, 0.08);
  border: 1.5px solid var(--accent-gold);
  aspect-ratio: 16 / 9;
  background: #fdfdfc;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(17, 42, 33, 0.2) 0%, rgba(17, 42, 33, 0.7) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 40px;
}

.image-caption {
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-style: italic;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--accent-navy-dark);
  margin-top: 12px;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Marhalah (Program) Section */
.marhalah {
  padding: 100px 0;
}

.marhalah-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.marhalah-card {
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

.marhalah-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--accent-gold);
}

.marhalah-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(15, 59, 95, 0.05);
  border: 1px solid rgba(15, 59, 95, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-navy);
  margin-bottom: 24px;
}

.marhalah-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-navy-dark);
  margin-bottom: 16px;
}

.marhalah-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 24px;
}

.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

.features-list li i {
  color: var(--accent-green);
  flex-shrink: 0;
}

/* Kurikulum Section */
.kurikulum {
  padding: 100px 0;
  background: rgba(15, 59, 95, 0.02);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.kurikulum-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.kurikulum-card {
  padding: 40px 32px;
  text-align: center;
}

.kurikulum-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  box-shadow: 0 8px 20px rgba(15, 59, 95, 0.15);
  border: 2px solid #fff;
  transition: var(--transition-smooth);
}

.kurikulum-icon-box.icon-green {
  background: var(--accent-green);
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.2);
}

.kurikulum-icon-box.icon-orange {
  background: var(--accent-orange);
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.2);
}

.kurikulum-icon-box.icon-navy {
  background: var(--accent-navy);
  box-shadow: 0 8px 20px rgba(15, 59, 95, 0.2);
}

.kurikulum-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-navy-dark);
  margin-bottom: 14px;
}

.kurikulum-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Statistics Section */
.stats {
  padding: 80px 0;
  background: var(--accent-navy-dark);
  color: #fff;
  border-top: 3px solid var(--accent-gold);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 30px;
}

.stat-item h4 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent-gold);
}

.stat-item p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Testimonials / Quote Section */
.testimonials {
  padding: 100px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-icon {
  color: rgba(194, 155, 56, 0.2);
  margin-bottom: 16px;
}

.testimonial-card p {
  font-family: var(--font-body);
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.testimonial-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-gold);
}

.testimonial-user-info h5 {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-navy-dark);
}

.testimonial-user-info span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Call to Action */
.cta {
  padding: 80px 0;
}

.cta-box {
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 120%, rgba(15, 59, 95, 0.1) 0%, transparent 65%);
  border: 1px solid rgba(194, 155, 56, 0.2);
}

.cta h2 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent-navy-dark);
  margin-bottom: 16px;
}

.cta p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px auto;
}

/* Contact & Info Section */
.contact-section {
  padding: 100px 0;
  border-top: 1px solid var(--glass-border);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-navy-dark);
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition-smooth);
}

a.contact-item {
  text-decoration: none;
}

a.contact-item:hover {
  transform: translateX(6px);
}

a.contact-item:hover .contact-icon {
  background: var(--accent-gold);
  color: #fff;
  border-color: var(--accent-gold);
  box-shadow: 0 4px 15px rgba(194, 155, 56, 0.3);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(15, 59, 95, 0.05);
  border: 1px solid rgba(15, 59, 95, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-navy);
}

.contact-details h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-navy-dark);
}

.contact-details p {
  color: var(--text-secondary);
  margin: 4px 0 0 0;
  font-size: 0.9rem;
}

.contact-form-panel {
  padding: 40px;
  border: 1px solid rgba(15, 59, 95, 0.1);
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: var(--accent-navy-dark);
}

.form-control {
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(15, 59, 95, 0.15);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-navy);
  box-shadow: 0 0 15px rgba(15, 59, 95, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  width: 100%;
}

.form-alert {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}

.form-alert.success {
  display: block;
  background: rgba(15, 59, 95, 0.08);
  border: 1px solid rgba(15, 59, 95, 0.15);
  color: var(--accent-navy-dark);
}

/* Footer */
footer {
  background: #061826;
  color: #fff;
  border-top: 4px solid var(--accent-gold);
  padding: 80px 0 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-top: 16px;
  max-width: 300px;
}

.footer-links-col h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--accent-gold);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--accent-gold);
  transform: translateX(4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition-smooth);
}

.social-link:hover {
  color: var(--accent-gold);
  transform: translateY(-2px);
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsiveness */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3rem; }
  .marhalah-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid .testimonial-card:last-child { grid-column: span 2; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 90px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 90px);
    background: rgba(250, 249, 246, 0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--glass-border);
  }
  
  .nav-menu.open { left: 0; }
  .mobile-toggle { display: block; }
  .hero h1 { font-size: 2.3rem; }
  .hero p { font-size: 1.05rem; }
  .marhalah-grid, .kurikulum-grid, .stats-grid, .footer-grid { grid-template-columns: 1fr; }
  .testimonials-grid .testimonial-card:last-child { grid-column: span 1; }
  .cta h2 { font-size: 2rem; }
}
