/*
Theme Name: Komunitas Peka
Theme URI: https://peka.web.id
Author: Barizaloka.id
Author URI: https://barizaloka.id
Description: Theme resmi Komunitas PEKA - Pengembangan Kepribadian & Akhlak untuk generasi muda Indonesia.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: komunitas-peka
Tags: community, youth, education, blue, minimal
*/

/* ========================
   CSS VARIABLES
======================== */
:root {
  --peka-blue: #0094D4;
  --peka-dark-blue: #0077aa;
  --peka-black: #0a0a0a;
  --peka-white: #ffffff;
  --peka-light-bg: #f4f8fc;
  --peka-gray: #555555;
  --peka-light-gray: #e8f4fb;
  --peka-font-heading: 'Poppins', sans-serif;
  --peka-font-body: 'Nunito', sans-serif;
  --peka-radius: 16px;
  --peka-shadow: 0 8px 32px rgba(0, 148, 212, 0.15);
  --peka-transition: all 0.3s ease;
}

/* ========================
   RESET & BASE
======================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--peka-font-body);
  background-color: var(--peka-white);
  color: var(--peka-gray);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--peka-transition);
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--peka-font-heading);
  line-height: 1.3;
  color: var(--peka-black);
  font-weight: 700;
}

/* ========================
   UTILITY CLASSES
======================== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

.text-center { text-align: center; }
.text-blue { color: var(--peka-blue); }
.bg-light { background-color: var(--peka-light-bg); }

/* ========================
   BUTTONS
======================== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--peka-font-heading);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: var(--peka-transition);
  text-align: center;
}

.btn-primary {
  background: var(--peka-blue);
  color: var(--peka-white);
  box-shadow: 0 4px 20px rgba(0, 148, 212, 0.4);
}

.btn-primary:hover {
  background: var(--peka-dark-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 148, 212, 0.5);
  color: var(--peka-white);
}

.btn-outline {
  background: transparent;
  color: var(--peka-blue);
  border: 2px solid var(--peka-blue);
}

.btn-outline:hover {
  background: var(--peka-blue);
  color: var(--peka-white);
  transform: translateY(-2px);
}

/* ========================
   NAVBAR
======================== */
.peka-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  padding: 16px 0;
  transition: var(--peka-transition);
}

.peka-navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.navbar-logo span {
  font-family: var(--peka-font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--peka-white);
  letter-spacing: 1px;
}

.navbar-logo span em {
  color: var(--peka-blue);
  font-style: normal;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar-menu a {
  color: rgba(255,255,255,0.85);
  font-family: var(--peka-font-heading);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--peka-blue);
  transition: width 0.3s ease;
}

.navbar-menu a:hover::after {
  width: 100%;
}

.navbar-menu a:hover {
  color: var(--peka-blue);
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* ========================
   HERO SECTION
======================== */
.hero-section {
  background: var(--peka-black);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-particles span {
  position: absolute;
  font-size: 2rem;
  opacity: 0.06;
  animation: floatEmoji 6s ease-in-out infinite;
}

.hero-bg-particles span:nth-child(1) { top: 15%; left: 8%; animation-delay: 0s; }
.hero-bg-particles span:nth-child(2) { top: 25%; left: 88%; animation-delay: 1s; }
.hero-bg-particles span:nth-child(3) { top: 60%; left: 5%; animation-delay: 2s; }
.hero-bg-particles span:nth-child(4) { top: 75%; left: 80%; animation-delay: 0.5s; }
.hero-bg-particles span:nth-child(5) { top: 40%; left: 50%; animation-delay: 1.5s; }

@keyframes floatEmoji {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,148,212,0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(0,148,212,0.15);
  border: 1px solid rgba(0,148,212,0.3);
  color: var(--peka-blue);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--peka-white);
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero-title .highlight {
  color: var(--peka-blue);
}

.hero-desc {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

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

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-family: var(--peka-font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--peka-blue);
  display: block;
}

.hero-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  display: block;
  margin-top: 4px;
}

/* ========================
   WHY PEKA SECTION
======================== */
.why-section {
  background: var(--peka-white);
  padding: 90px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: var(--peka-light-gray);
  color: var(--peka-blue);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--peka-black);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--peka-gray);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.8;
}

.why-highlight-box {
  background: linear-gradient(135deg, var(--peka-blue), #005f8e);
  color: white;
  border-radius: var(--peka-radius);
  padding: 40px 48px;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.why-highlight-box::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

.why-highlight-box p {
  font-size: 18px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.why-highlight-box strong {
  font-size: 22px;
  display: block;
  margin-top: 8px;
}

.vision-block {
  background: var(--peka-light-bg);
  border-radius: var(--peka-radius);
  padding: 40px;
  margin-bottom: 48px;
  border-left: 5px solid var(--peka-blue);
}

.vision-block h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--peka-blue);
}

.vision-block p {
  font-size: 16px;
  line-height: 1.8;
}

.why-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.why-card {
  background: var(--peka-white);
  border: 1px solid #e0eef8;
  border-radius: var(--peka-radius);
  padding: 32px 28px;
  text-align: center;
  transition: var(--peka-transition);
  box-shadow: 0 2px 12px rgba(0,148,212,0.06);
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--peka-shadow);
  border-color: var(--peka-blue);
}

.why-card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.why-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--peka-black);
  margin-bottom: 8px;
}

.why-card p {
  font-size: 14px;
  color: var(--peka-gray);
  line-height: 1.7;
}

/* ========================
   ACTIVITIES SECTION
======================== */
.activities-section {
  background: var(--peka-black);
  padding: 90px 0;
}

.activities-section .section-title {
  color: var(--peka-white);
}

.activities-section .section-tag {
  background: rgba(0,148,212,0.15);
  color: var(--peka-blue);
}

.activities-section .section-desc {
  color: rgba(255,255,255,0.6);
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.activity-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,148,212,0.2);
  border-radius: var(--peka-radius);
  padding: 36px 28px;
  transition: var(--peka-transition);
  position: relative;
  overflow: hidden;
}

.activity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--peka-blue), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.activity-card:hover::before {
  transform: scaleX(1);
}

.activity-card:hover {
  background: rgba(0,148,212,0.08);
  border-color: var(--peka-blue);
  transform: translateY(-4px);
}

.activity-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.activity-card h3 {
  font-size: 1.1rem;
  color: var(--peka-white);
  margin-bottom: 12px;
}

.activity-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

/* ========================
   BENEFITS SECTION
======================== */
.benefits-section {
  background: var(--peka-white);
  padding: 90px 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.benefit-card {
  background: var(--peka-light-bg);
  border-radius: var(--peka-radius);
  padding: 36px 28px;
  text-align: center;
  transition: var(--peka-transition);
  border: 2px solid transparent;
}

.benefit-card:hover {
  background: var(--peka-white);
  border-color: var(--peka-blue);
  box-shadow: var(--peka-shadow);
  transform: translateY(-4px);
}

.benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.benefit-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--peka-black);
}

.benefit-card p {
  font-size: 14px;
  color: var(--peka-gray);
  line-height: 1.7;
}

/* ========================
   CTA SECTION
======================== */
.cta-section {
  background: linear-gradient(135deg, var(--peka-blue) 0%, #005f8e 100%);
  padding: 90px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  top: -150px;
  left: -100px;
}

.cta-section::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  bottom: -100px;
  right: -80px;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--peka-white);
  margin-bottom: 20px;
}

.cta-section p {
  color: rgba(255,255,255,0.85);
  font-size: 17px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-white {
  background: var(--peka-white);
  color: var(--peka-blue);
  font-weight: 700;
}

.btn-white:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  color: var(--peka-dark-blue);
}

.btn-outline-white {
  background: transparent;
  color: var(--peka-white);
  border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  color: white;
  transform: translateY(-2px);
}

/* ========================
   TRUST SECTION
======================== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}

.trust-item {
  padding: 24px;
  background: var(--peka-white);
  border-radius: var(--peka-radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: var(--peka-transition);
}

.trust-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--peka-shadow);
}

.trust-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.trust-item p {
  font-weight: 600;
  color: var(--peka-black);
  font-size: 15px;
}

/* ========================
   VALUES SECTION
======================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: linear-gradient(135deg, var(--peka-blue), #0077aa);
  color: white;
  padding: 40px 24px;
  text-align: center;
  border-radius: var(--peka-radius);
  transition: var(--peka-transition);
}

.value-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 148, 212, 0.3);
}

.value-card h3 {
  color: white;
  margin: 0;
  font-size: 1.5rem;
}

/* ========================
   BENEFITS SECTION
======================== */
.benefits-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.benefit-group {
  background: var(--peka-light-bg);
  padding: 40px;
  border-radius: var(--peka-radius);
  border-top: 4px solid var(--peka-blue);
}

.benefit-group h3 {
  margin-bottom: 24px;
  font-size: 1.25rem;
  color: var(--peka-blue);
}

.benefit-list {
  list-style: none;
  padding: 0;
}

.benefit-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 15px;
}

.benefit-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--peka-blue);
  font-weight: 800;
}

/* ========================
   ARTIKEL SECTION
======================== */
.artikel-section {
  background: #fdfdfd;
}

/* ========================
   FOOTER
======================== */
.peka-footer {
  background: #050505;
  padding: 60px 0 30px;
  color: rgba(255,255,255,0.6);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.footer-logo span {
  font-family: var(--peka-font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--peka-white);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--peka-transition);
  border: 1px solid rgba(255,255,255,0.08);
}

.footer-socials a:hover {
  background: var(--peka-blue);
  border-color: var(--peka-blue);
}

.footer-col h4 {
  font-family: var(--peka-font-heading);
  color: var(--peka-white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  transition: var(--peka-transition);
}

.footer-col ul li a:hover {
  color: var(--peka-blue);
  padding-left: 4px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
}

.footer-bottom span {
  color: var(--peka-blue);
}

/* ========================
   RESPONSIVE
======================== */
@media (max-width: 768px) {
  .navbar-menu {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10,10,10,0.98);
    padding: 24px;
    gap: 20px;
    align-items: flex-start;
    z-index: 999;
  }

  .navbar-menu.open {
    display: flex;
  }

  .navbar-toggle {
    display: block;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    gap: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .why-highlight-box {
    padding: 28px 24px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .benefits-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .section-padding { padding: 60px 0; }
  .hero-section { padding-top: 90px; }
  .cta-btns { flex-direction: column; align-items: center; }
}

/* ========================
   ANIMATIONS
======================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
