/* =========================================
   1. RESET & DASAR
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }
body { background-color: #0a0a0a; color: #ffffff; overflow-x: hidden; }

/* =========================================
   2. PRELOADER
   ========================================= */
#preloader { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: #0a0a0a; z-index: 99999; display: flex; justify-content: center; align-items: center; transition: opacity 0.8s ease, visibility 0.8s ease; }
.loader-text { font-size: 1.5rem; font-weight: 600; letter-spacing: 6px; color: #ffffff; text-transform: uppercase; animation: pulse 1.5s infinite ease-in-out; }
@keyframes pulse { 0% { opacity: 0.2; transform: scale(0.98); } 50% { opacity: 1; transform: scale(1); } 100% { opacity: 0.2; transform: scale(0.98); } }
.preloader-hidden { opacity: 0 !important; visibility: hidden !important; }

/* =========================================
   3. DYNAMIC ISLAND
   ========================================= */
.dynamic-island { position: fixed; top: 25px; left: 50%; transform: translateX(-50%); background: rgba(15, 15, 15, 0.65); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.08); padding: 12px 30px; border-radius: 50px; display: flex; gap: 25px; z-index: 100; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.dynamic-island a { color: #a1a1aa; text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.3s ease; }
.dynamic-island a:hover { color: #ffffff; }

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero { position: relative; width: 100vw; height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.bg-video { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); min-width: 100%; min-height: 100%; object-fit: cover; z-index: -2; }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: -1; }
.video-desktop { display: block; }
.video-mobile { display: none; }
@media (max-width: 768px) { .video-desktop { display: none; } .video-mobile { display: block; } }

.hero-content { z-index: 1; display: flex; flex-direction: column; align-items: center; padding: 0 20px; }
.hero-content h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 8px; font-weight: 700; letter-spacing: -1.5px; background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-content p { font-size: clamp(0.85rem, 2vw, 1.1rem); color: #71717a; margin-bottom: 35px; text-transform: uppercase; letter-spacing: 2px; }

.btn-group { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn { padding: 12px 28px; border-radius: 8px; border: none; font-size: 1rem; cursor: pointer; transition: all 0.3s ease; font-weight: 500; }
.btn-primary { background: #ffffff; color: #000000; }
.btn-secondary { background: transparent; color: #ffffff; border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(5px); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }
.glow-effect { box-shadow: 0 0 20px rgba(255, 255, 255, 0.3); }
.glow-effect:hover { box-shadow: 0 0 30px rgba(255, 255, 255, 0.6); transform: translateY(-2px); }

/* =========================================
   5. MODAL & HEADER UMUM
   ========================================= */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 999; justify-content: center; align-items: center; }
.modal.active { display: flex; }
.modal-backdrop { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(8px); }
.modal-content { position: relative; background: #111; padding: 30px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.1); width: 90%; max-width: 350px; text-align: center; box-shadow: 0 20px 40px rgba(0,0,0,0.5); z-index: 1000; animation: modalIn 0.3s ease; }
.modal-content h2 { margin-bottom: 20px; font-size: 1.5rem; }
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 1.5rem; cursor: pointer; color: #a1a1aa; transition: color 0.3s; }
.close-btn:hover { color: #fff; }
.admin-links { display: flex; flex-direction: column; gap: 10px; }
.admin-btn { padding: 12px; background: rgba(255,255,255,0.05); color: #fff; text-decoration: none; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); transition: all 0.3s ease; }
.admin-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); }
@keyframes modalIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

.section-header { text-align: center; margin-bottom: 60px; padding: 0 15px; }
.section-header h2 { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 600; margin-bottom: 15px; letter-spacing: -1px; }
.section-header p { color: #8c8c93; line-height: 1.6; }

/* =========================================
   6. EKOSISTEM TEDUH (GAMBAR)
   ========================================= */
.ecosystem-section { padding: 60px 20px; background-color: #0a0a0a; border-top: 1px solid rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.03); }
.ecosystem-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 40px; }
.ecosystem-text { flex-shrink: 0; padding-right: 40px; border-right: 1px solid rgba(255,255,255,0.1); }
.ecosystem-text h2 { font-size: 1rem; color: #a1a1aa; font-weight: 400; }
.ecosystem-text p { font-size: 1.2rem; color: #fff; font-weight: 600; letter-spacing: -0.5px; }
.ecosystem-marquee { position: relative; width: 100%; overflow: hidden; display: flex; align-items: center; }
.ecosystem-marquee .fade-left, .ecosystem-marquee .fade-right { position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none; }
.ecosystem-marquee .fade-left { left: 0; background: linear-gradient(to right, #0a0a0a 0%, transparent 100%); }
.ecosystem-marquee .fade-right { right: 0; background: linear-gradient(to left, #0a0a0a 0%, transparent 100%); }
.marquee-track { display: flex; width: max-content; animation: scroll-marquee 25s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-content { display: flex; gap: 60px; padding-right: 60px; align-items: center; }

/* Modifikasi untuk Logo Gambar */
.brand-logo { height: 25px; width: auto; filter: grayscale(100%) opacity(0.5) brightness(200%); cursor: pointer; transition: filter 0.3s ease, transform 0.3s ease; }
.brand-logo:hover { filter: grayscale(0%) opacity(1) brightness(100%); transform: scale(1.1); }

@keyframes scroll-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@media (max-width: 768px) { .ecosystem-container { flex-direction: column; align-items: flex-start; gap: 20px; } .ecosystem-text { border-right: none; padding-right: 0; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; width: 100%; } .marquee-content { gap: 40px; padding-right: 40px; } .brand-logo { height: 20px; } }

/* =========================================
   7. PHILOSOPHY SECTION
   ========================================= */
.philosophy-section { padding: 100px 20px 120px; background-color: #0a0a0a; display: flex; justify-content: center; text-align: center; position: relative; }
.philosophy-section::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80%; height: 80%; background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%); pointer-events: none; z-index: 0; }
.philosophy-content { max-width: 800px; position: relative; z-index: 1; padding: 0 15px; }
.philosophy-content h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; margin-bottom: 25px; background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -1px; line-height: 1.2; }
.philosophy-content p { font-size: clamp(1rem, 2vw, 1.15rem); color: #8c8c93; line-height: 1.8; max-width: 90%; margin: 0 auto; }

/* =========================================
   8. SERVICES ACCORDION
   ========================================= */
.services-section { padding: 20px 20px 100px; background: #0a0a0a; }
.accordion-container { display: flex; width: 100%; max-width: 1000px; height: 450px; margin: 0 auto; gap: 10px; }
.accordion-card { position: relative; flex: 1; border-radius: 20px; background-size: cover; background-position: center; cursor: pointer; transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s ease; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); }
.accordion-card.active { flex: 6; border-color: rgba(255,255,255,0.2); box-shadow: 0 20px 50px rgba(0,0,0,0.8); }
.card-shadow { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, transparent 100%); pointer-events: none; }
.card-content { position: absolute; bottom: 20px; left: 20px; display: flex; align-items: center; gap: 15px; width: calc(100% - 40px); }
.card-content .icon { width: 45px; height: 45px; min-width: 45px; background: rgba(30, 30, 30, 0.7); backdrop-filter: blur(10px); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; border: 1px solid rgba(255,255,255,0.1); }
.card-content .info { opacity: 0; transform: translateX(20px); transition: opacity 0.5s ease, transform 0.5s ease; white-space: nowrap; overflow: hidden; }
.accordion-card.active .info { opacity: 1; transform: translateX(0); transition-delay: 0.2s; }
.card-content .info h3 { font-size: 1.2rem; font-weight: 600; color: #fff; margin-bottom: 2px; }
.card-content .info p { font-size: 0.85rem; color: #a1a1aa; }
@media (max-width: 768px) { .accordion-container { flex-direction: column; height: 600px; } .card-content { bottom: 15px; left: 15px; } }

/* =========================================
   9. PORTFOLIO GRID & CARDS
   ========================================= */
.portfolio-section { padding: 40px 20px 100px; background: #0a0a0a; max-width: 1200px; margin: 0 auto; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.portfolio-card { text-decoration: none; color: #fff; background: #111; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); overflow: hidden; transition: all 0.4s ease; display: flex; flex-direction: column; }
.portfolio-card:hover { border-color: rgba(255,255,255,0.2); box-shadow: 0 10px 30px rgba(0,0,0,0.8); transform: translateY(-5px); }
.card-media { position: relative; width: 100%; height: 400px; overflow: hidden; background: #1a1a1a; }
.card-img, .card-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s ease, transform 0.5s ease; }
.card-video { opacity: 0; z-index: 2; }
.portfolio-card:hover .card-img { opacity: 0; transform: scale(1.05); }
.portfolio-card:hover .card-video { opacity: 1; }
.card-info { padding: 20px; display: flex; justify-content: space-between; align-items: center; background: #111; z-index: 3; }
.card-info h3 { font-size: 1.2rem; font-weight: 500; }
.card-info span { font-size: 0.9rem; color: #a1a1aa; transition: color 0.3s; }
.portfolio-card:hover .card-info span { color: #fff; }

/* =========================================
   10. FINAL CTA SECTION
   ========================================= */
.final-cta-section { padding: 80px 20px 120px; background-color: #0a0a0a; display: flex; justify-content: center; }
.cta-box { background: #111; border: 1px solid rgba(255,255,255,0.05); border-radius: 24px; padding: 60px 40px; text-align: center; max-width: 900px; width: 100%; box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.cta-box h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 15px; font-weight: 600; letter-spacing: -1px; }
.cta-box p { color: #a1a1aa; margin-bottom: 35px; font-size: 1.1rem; }

/* =========================================
   11. VISUAL FOOTER
   ========================================= */
.site-footer { background-color: #050505; border-top: 1px solid rgba(255,255,255,0.05); padding: 80px 20px 30px; color: #a1a1aa; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-brand h3 { color: #fff; font-size: 1.5rem; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.5px; }
.footer-brand p { margin-bottom: 5px; font-size: 0.95rem; }
.footer-brand .location { margin-top: 15px; color: #71717a; }
.footer-links h4, .footer-socials h4 { color: #fff; font-size: 1.1rem; font-weight: 500; margin-bottom: 20px; }
.footer-links a, .footer-socials a { display: block; color: #a1a1aa; text-decoration: none; margin-bottom: 12px; font-size: 0.95rem; transition: color 0.3s ease; }
.footer-links a:hover, .footer-socials a:hover { color: #fff; }
.footer-bottom { max-width: 1200px; margin: 0 auto; text-align: center; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.85rem; color: #52525b; }
@media (max-width: 768px) { .footer-container { grid-template-columns: 1fr; text-align: center; gap: 30px; } }

/* =========================================
   12. HALAMAN GALERI KHUSUS (galeri.php)
   ========================================= */
.back-nav { position: fixed; top: 30px; left: 30px; z-index: 1000; }
.btn-back { display: flex; align-items: center; gap: 10px; padding: 10px 20px; background: rgba(15, 15, 15, 0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 50px; color: #fff; text-decoration: none; font-size: 0.9rem; transition: all 0.3s ease; }
.btn-back:hover { background: rgba(255, 255, 255, 0.1); transform: translateX(-5px); }
.gallery-hero { padding: 150px 20px 60px; text-align: center; background-color: #0a0a0a; }
.category-label { display: inline-block; color: #71717a; text-transform: uppercase; letter-spacing: 3px; font-size: 0.8rem; margin-bottom: 10px; }
.gallery-hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; margin-bottom: 15px; background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.gallery-hero p { color: #71717a; max-width: 600px; margin: 0 auto; }
.gallery-grid-section { padding: 20px 20px 100px; max-width: 1400px; margin: 0 auto; }
.masonry-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); grid-auto-rows: 250px; gap: 20px; }
.grid-item { position: relative; border-radius: 20px; overflow: hidden; }
.item-tall { grid-row: span 2; } 
.item-card { position: relative; width: 100%; height: 100%; cursor: pointer; background: #111; }
.item-card img, .grid-video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.item-card:hover img, .item-card:hover .grid-video { transform: scale(1.08); }
.item-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%); display: flex; align-items: flex-end; padding: 30px; opacity: 0; transition: opacity 0.4s ease; z-index: 2; }
.item-card:hover .item-overlay { opacity: 1; }
.overlay-text { transform: translateY(20px); transition: transform 0.4s ease; }
.item-card:hover .overlay-text { transform: translateY(0); }
.overlay-text h3 { color: #fff; font-size: 1.2rem; margin-bottom: 5px; }
.overlay-text p { color: rgba(255,255,255,0.7); font-size: 0.85rem; line-height: 1.4; }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 768px) { .masonry-grid { grid-template-columns: 1fr; grid-auto-rows: 350px; } .item-tall { grid-row: span 1; } .back-nav { top: 20px; left: 20px; } .item-overlay { opacity: 1; background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%); } }