/* ==========================================
   STYLE.CSS - GLOBAL & ALL PAGES
   Website: ayyikk.my.id
   ========================================== */

/* 1. VARIABLES & RESET */
:root { 
    --primary: #5C8374; 
    --primary-dark: #4A6B5D; 
    --secondary: #F4F1DE; 
    --accent: #D4A373; 
    --bg-light: #FCFCFA; 
    --text-dark: #2C3E35; 
    --text-light: #6B7C72; 
    --white: #FFFFFF; 
    --shadow: 0 4px 6px rgba(0,0,0,0.05), 0 10px 15px rgba(0,0,0,0.03); 
    --shadow-hover: 0 10px 25px rgba(0,0,0,0.08); 
    --transition: all 0.3s ease; 
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text-dark); background-color: var(--bg-light); line-height: 1.6; }
h1, h2, h3 { font-family: 'Playfair Display', serif; color: var(--text-dark); }
a { text-decoration: none; color: inherit; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* 2. NAVIGATION */
nav { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); position: fixed; width: 100%; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; max-width: 1140px; margin: 0 auto; }
.nav-logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a { font-weight: 500; color: var(--text-light); transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); font-weight: 600; }

/* 3. BUTTONS */
.btn-primary { display: inline-block; padding: 12px 30px; background: var(--primary); color: var(--white); border-radius: 50px; font-weight: 500; transition: var(--transition); box-shadow: 0 4px 15px rgba(92, 131, 116, 0.3); border: none; cursor: pointer; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.back-btn { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; background: var(--white); border: 2px solid var(--primary); color: var(--primary); border-radius: 50px; font-weight: 600; transition: var(--transition); margin-bottom: 30px; font-size: 0.9rem; }
.back-btn:hover { background: var(--primary); color: var(--white); }

/* 4. PAGE HEADER */
.page-header { background: linear-gradient(135deg, var(--secondary) 0%, var(--bg-light) 100%); padding: 140px 0 60px; text-align: center; }
.page-header h1 { font-size: 2.4rem; margin-bottom: 15px; }
.page-header p { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* 5. SECTIONS GENERAL */
section { padding: 100px 0; position: relative; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 15px; }
.section-subtitle { text-align: center; color: var(--text-light); max-width: 600px; margin: 0 auto 60px; }
.content-section { padding: 80px 0; }

/* 6. HERO SECTION */
.hero { min-height: 100vh; display: flex; align-items: center; background: linear-gradient(135deg, var(--secondary) 0%, var(--bg-light) 100%); padding-top: 80px; }
.hero-content { text-align: center; max-width: 800px; margin: 0 auto; }
.hero-greeting { font-size: 1.2rem; color: var(--primary); font-weight: 500; margin-bottom: 10px; letter-spacing: 1px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 15px; line-height: 1.2; }
.hero-tagline { font-size: 1.25rem; color: var(--text-light); margin-bottom: 30px; font-style: italic; }
.hero-info { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 40px; padding: 20px; background: var(--white); border-radius: 12px; box-shadow: var(--shadow); }
.hero-info span { font-size: 0.95rem; color: var(--text-light); }
.hero-info strong { color: var(--primary-dark); }

/* 7. ABOUT SECTION */
.about-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: center; }
.about-img { width: 100%; height: 450px; background: #ddd; border-radius: 20px; box-shadow: var(--shadow); object-fit: cover; }
.about-text h2 { font-size: 2rem; margin-bottom: 20px; }
.about-text p { color: var(--text-light); margin-bottom: 20px; text-align: justify; }
.values { display: flex; gap: 30px; margin-top: 30px; }
.value-item { text-align: center; }
.value-item i { font-size: 2rem; color: var(--accent); margin-bottom: 10px; }
.value-item h4 { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 600; }

/* 8. CARDS GRID (Pengabdian) */
.dedication { background: var(--secondary); }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: var(--white); padding: 40px 30px; border-radius: 16px; box-shadow: var(--shadow); transition: var(--transition); border-top: 4px solid transparent; }
.card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); border-top: 4px solid var(--primary); }
.card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }
.card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.6; }

/* 9. GALLERY SECTION (Index Preview) */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.gallery-item { height: 250px; border-radius: 12px; overflow: hidden; position: relative; transition: var(--transition); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item:hover { transform: scale(1.03); }

/* 10. BLOG/RENUNGAN SECTION */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.blog-card { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); }
.blog-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-5px); }
.blog-img { height: 200px; background: #d5d5d5; }
.blog-content { padding: 25px; }
.blog-date { font-size: 0.85rem; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.blog-content h3 { font-size: 1.3rem; margin-bottom: 10px; }
.blog-content p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 20px; }
.read-more { color: var(--primary); font-weight: 600; font-size: 0.9rem; }

/* 11. GALERI FULL CARDS (Halaman Galeri) */
.gallery-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); display: flex; flex-direction: column; }
.gallery-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.gallery-card-img-wrapper { height: 220px; overflow: hidden; position: relative; cursor: pointer; }
.gallery-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-card:hover .gallery-card-img { transform: scale(1.05); }
.gallery-card-img-wrapper::after {
    content: '\f00e'; font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.5);
    color: white; font-size: 1.5rem; opacity: 0; transition: all 0.3s ease;
    background: rgba(0,0,0,0.4); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.gallery-card-img-wrapper:hover::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.gallery-card-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.gallery-card-date { font-size: 0.85rem; color: var(--accent); font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 5px; }
.gallery-card-title { font-size: 1.2rem; margin-bottom: 10px; line-height: 1.3; }
.gallery-card-desc { font-size: 0.9rem; color: var(--text-light); line-height: 1.5; margin-bottom: 0; flex-grow: 1; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-light); grid-column: 1 / -1; }
.empty-state i { font-size: 4rem; color: #ddd; margin-bottom: 20px; }

/* 12. LIGHTBOX */
.lightbox { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.9); justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; }
.lightbox.active { display: flex; opacity: 1; }
.lightbox-content { max-width: 90%; max-height: 90%; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); transform: scale(0.9); transition: transform 0.3s ease; object-fit: contain; }
.lightbox.active .lightbox-content { transform: scale(1); }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; transition: color 0.3s; z-index: 10000; background: rgba(255,255,255,0.1); width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.lightbox-close:hover { color: var(--accent); background: rgba(255,255,255,0.2); }

/* 13. FOOTER */
footer { background: var(--text-dark); color: var(--white); padding: 60px 0 30px; text-align: center; }
.footer-quote { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-style: italic; max-width: 700px; margin: 0 auto 10px; color: var(--secondary); }
.footer-quote-source { color: var(--accent); margin-bottom: 40px; font-size: 0.9rem; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; }
.footer-links a { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.footer-links a:hover { background: var(--primary); }
.copyright { font-size: 0.85rem; color: rgba(255,255,255,0.6); border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; margin-top: 40px; }

/* 14. RESPONSIVE */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .page-header h1 { font-size: 2rem; }
    .hero h1 { font-size: 2.5rem; }
    .about-grid { grid-template-columns: 1fr; gap: 30px; }
    .about-img { height: 300px; }
    .values { flex-direction: column; gap: 20px; }
    .hero-info { flex-direction: column; gap: 10px; }
    .cards-grid, .gallery-grid { grid-template-columns: 1fr; }
    .lightbox-close { top: 10px; right: 15px; font-size: 30px; width: 40px; height: 40px; }
}

/* 15. HAMBURGER MENU */
.hamburger { display: none; position: fixed; top: 18px; right: 20px; width: 35px; height: 25px; cursor: pointer; z-index: 1005; background: none; border: none; padding: 0; margin: 0; }
.hamburger span { display: block; position: absolute; left: 0; width: 100%; height: 3px; background-color: var(--primary); border-radius: 3px; transition: all 0.3s ease-in-out; }
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }
.hamburger.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); background-color: var(--primary-dark); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(20px); }
.hamburger.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); background-color: var(--primary-dark); }

.mobile-menu { position: fixed; top: 0; right: -100%; width: 75%; max-width: 280px; height: 100vh; background: var(--white); box-shadow: -5px 0 25px rgba(0,0,0,0.15); z-index: 1001; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); padding: 90px 25px 30px; overflow-y: auto; }
.mobile-menu.active { right: 0; }
.mobile-backdrop { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); backdrop-filter: blur(2px); z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.mobile-backdrop.active { opacity: 1; visibility: visible; }
.mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu ul li { margin-bottom: 5px; opacity: 0; transform: translateX(30px); transition: all 0.3s ease; }
.mobile-menu.active ul li { opacity: 1; transform: translateX(0); }
.mobile-menu.active ul li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active ul li:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active ul li:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active ul li:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active ul li:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu ul li a { font-size: 1.1rem; font-weight: 500; color: var(--text-dark); text-decoration: none; display: block; padding: 15px 10px; border-bottom: 1px solid #f0f0f0; transition: all 0.3s ease; border-radius: 8px; }
.mobile-menu ul li a:hover, .mobile-menu ul li a.active { color: var(--primary); background: rgba(92, 131, 116, 0.05); padding-left: 20px; }
@media (max-width: 768px) { .hamburger { display: block; } .nav-container { padding: 12px 15px; } }

/* 16. SCROLL REVEAL ANIMATION (FINAL & FIXED) */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* PERBAIKAN: Spesifisitas ditinggikan (tanpa spasi) agar efek hover TIDAK tertimpa oleh .reveal.active */
.card.reveal.active:hover { 
    transform: translateY(-10px); 
}

.gallery-item.reveal.active:hover { 
    transform: scale(1.03); 
}

.blog-card.reveal.active:hover { 
    transform: translateY(-5px); 
}

.gallery-card.reveal.active:hover {
    transform: translateY(-5px);
}

/* Staggered delay untuk elemen di dalam grid agar muncul berurutan */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }