:root {
    --navy: #0A192F;
    --gold: #D4AF37;
    --text-light: #F8F9FA;
}

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

body { background-color: var(--navy); color: var(--text-light); font-family: 'Inter', sans-serif; overflow-x: hidden; transition: color 0.3s ease; }

h1, h2, h3, .loader-text { font-family: 'Playfair Display', serif; }

.mt-20 { margin-top: 20px; }

/* Preloader */
.preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--navy); z-index: 9999; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.loader-text { font-size: 2rem; letter-spacing: 0.2em; color: var(--gold); margin-bottom: 20px; }
.loader-progress { width: 0%; height: 2px; background: var(--gold); transition: width 0.5s ease; }

/* 3D Canvas */
#webgl-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }

/* Navbar Premium */
nav { 
    position: fixed; top: 0; left: 0; width: 100%; padding: 30px 5vw; 
    display: flex; justify-content: space-between; align-items: center; 
    z-index: 1000; mix-blend-mode: difference; 
}
.logo { flex: 1; display: flex; justify-content: flex-start; }
.logo img { height: 40px; width: auto; object-fit: contain; transition: transform 0.4s ease; }
.logo img:hover { transform: scale(1.05); }

/* SEARCH BAR LIQUID GLASS */
.search-container { position: relative; display: flex; align-items: center; justify-content: center; flex: 1; }
.search-input {
    width: 350px; padding: 12px 40px 12px 25px; border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    color: var(--text-light); font-family: 'Inter', sans-serif; font-size: 0.9rem; outline: none;
    box-shadow: inset 2px 2px 5px rgba(255,255,255,0.05), inset -3px -3px 7px rgba(0,0,0,0.3), 5px 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}
.search-input::placeholder { color: rgba(255, 255, 255, 0.6); letter-spacing: 0.1em; }
.search-input:focus { background: rgba(255, 255, 255, 0.1); border-color: var(--gold); box-shadow: 0 0 15px rgba(212, 175, 55, 0.3); width: 380px; }
.search-icon { position: absolute; right: calc(50% - 150px); width: 18px; height: 18px; color: rgba(255, 255, 255, 0.6); pointer-events: none; transition: right 0.3s ease; }
.search-input:focus + .search-icon { right: calc(50% - 165px); color: var(--gold); }

/* Tombol Menu */
.menu-btn { flex: 1; display: flex; justify-content: flex-end; font-family: 'Playfair Display', serif; font-size: 0.95rem; letter-spacing: 0.15em; cursor: pointer; font-weight: 500; position: relative; color: var(--text-light); }
.menu-btn::after { content: ''; position: absolute; bottom: -5px; right: 0; width: 0%; height: 1px; background-color: var(--gold); transition: width 0.3s ease; }
.menu-btn:hover::after { width: 100%; }

/* Menu Overlay Pull-Down */
.menu-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(10, 25, 47, 0.98); z-index: 9999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    transform: translateY(-100%); pointer-events: none; transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
}
.menu-overlay.active { transform: translateY(0); pointer-events: auto; }
.close-menu-btn { position: absolute; top: 40px; right: 5vw; font-size: 3.5rem; color: var(--gold); cursor: pointer; transition: transform 0.3s; line-height: 1; }
.close-menu-btn:hover { transform: scale(1.1); }
.menu-links { list-style: none; text-align: center; }
.menu-links li { margin: 20px 0; overflow: hidden; }
.menu-link { 
    font-family: 'Playfair Display', serif; font-size: 4vw; color: var(--text-light); 
    text-decoration: none; display: inline-block; position: relative; transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1), color 0.3s ease;
}
.menu-overlay.active .menu-links li:nth-child(1) .menu-link { transform: translateY(0); transition-delay: 0.3s; }
.menu-overlay.active .menu-links li:nth-child(2) .menu-link { transform: translateY(0); transition-delay: 0.4s; }
.menu-overlay.active .menu-links li:nth-child(3) .menu-link { transform: translateY(0); transition-delay: 0.5s; }
.menu-overlay.active .menu-links li:nth-child(4) .menu-link { transform: translateY(0); transition-delay: 0.6s; }
.menu-overlay.active .menu-links li:nth-child(5) .menu-link { transform: translateY(0); transition-delay: 0.7s; }
.menu-link:hover { color: var(--gold); }

/* Default Section Setup */
section { min-height: 100vh; padding: 0 5vw; display: flex; flex-direction: column; justify-content: center; }

/* Home / Hero */
.hero { position: relative; }
.hero-content { max-width: 800px; }
.subtitle { font-size: 1.2rem; color: var(--gold); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.1em; }
.title { font-size: 6vw; line-height: 1.1; font-weight: 400; }
.scroll-indicator { position: absolute; bottom: 50px; left: 5vw; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* About Us Section */
.about-us { padding-top: 15vh; padding-bottom: 15vh; }
.about-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 5vw; align-items: start; border-top: 1px solid rgba(212, 175, 55, 0.3); padding-top: 50px; }
.about-title h2 { font-size: 4vw; color: inherit; }
.about-desc p { font-size: 1.25rem; line-height: 1.8; opacity: 0.9; }

/* Showcase Text */
.showcase { align-items: flex-end; text-align: right; }
.showcase-text { max-width: 500px; }
.showcase-text h2 { font-size: 4vw; margin-bottom: 20px; color: inherit; }
.showcase-text p { font-size: 1.1rem; line-height: 1.6; opacity: 0.8; }

/* ==========================================
   GLOBAL HORIZONTAL SCROLL LAYOUT (DESKTOP, IPAD, HP)
   ========================================== */
.horizontal-scroll { overflow: hidden; padding: 0; width: 100vw; height: 100vh; }
.horizontal-container { display: flex; flex-wrap: nowrap; width: max-content; height: 100vh; }
.panel { width: 100vw; height: 100vh; display: flex; justify-content: center; align-items: center; will-change: transform; }

.project-card { position: relative; width: 70vw; height: 70vh; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.5); cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.project-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px rgba(212, 175, 55, 0.2); }
.project-img { width: 100%; height: 100%; overflow: hidden; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); }
.project-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 25, 47, 0.2) 0%, transparent 50%); pointer-events: none; }
.project-info { position: absolute; bottom: 40px; left: 50px; z-index: 10; pointer-events: none;}
.project-tag { color: var(--gold); font-size: 0.9rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 10px; }
.project-info h2 { font-size: 3.5vw; color: var(--text-light); line-height: 1.2; }

/* Services Section */
.services { padding-top: 15vh; padding-bottom: 15vh; }
.services-header { margin-bottom: 60px; text-align: center; }
.services-header h2 { font-size: 3.5vw; color: inherit; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; border-top: 1px solid rgba(212, 175, 55, 0.3); padding-top: 50px; }
.service-item h3 { font-size: 1.8rem; color: inherit; margin-bottom: 15px; }
.service-item p { font-size: 1.1rem; line-height: 1.6; opacity: 0.8; }

/* Footer Spacer */
.footer-spacer { text-align: center; align-items: center; background: rgba(0,0,0,0.4); border-top: 1px solid rgba(255,255,255,0.1);}
.footer-logo { height: 60px; margin-bottom: 20px; }
.btn-gold { display: inline-block; padding: 15px 40px; border: 1px solid var(--gold); color: var(--gold); text-decoration: none; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.9rem; transition: all 0.3s ease; }
.btn-gold:hover { background: var(--gold); color: var(--navy); }
.copyright { margin-top: 60px; font-size: 0.85rem; opacity: 0.5; letter-spacing: 0.1em; }

/* Animasi Mask Text Dasar */
.reveal-text { clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0% 100%); transform: translateY(50px); opacity: 0; }

/* ELEGANT GRADIENT TEXT ANIMATION */
.gradient-text {
    background: linear-gradient(to right, #D4AF37 20%, #FFF8D6 40%, #FFF8D6 60%, #D4AF37 80%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: goldShine 4s linear infinite;
}
@keyframes goldShine { to { background-position: 200% center; } }

/* Our Client & Maps */
.text-center { text-align: center; align-items: center; }
.client-section { padding: 10vh 5vw; min-height: auto; border-top: 1px solid rgba(212, 175, 55, 0.2); }
.client-line { width: 2px; height: 80px; background-color: var(--gold); margin: 30px auto 0 auto; }
.map-section { min-height: 80vh; padding: 10vh 5vw; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.map-header { text-align: center; margin-bottom: 40px; }
.map-header h2 { font-size: 3vw; color: inherit; margin-bottom: 10px; }
.map-header p { opacity: 0.8; }
.iframe-wrapper { width: 80vw; height: 50vh; border-radius: 15px; overflow: hidden; border: 2px solid rgba(212, 175, 55, 0.5); box-shadow: 0 20px 40px rgba(0,0,0,0.6); }
.iframe-wrapper iframe { transition: filter 0.5s ease; }
.iframe-wrapper:hover iframe { filter: invert(90%) hue-rotate(180deg) brightness(1.2) !important; }

/* Modal Popup */
.modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(10, 25, 47, 0.85); backdrop-filter: blur(8px); z-index: 10000; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.modal.active { opacity: 1; pointer-events: auto; }
.modal-content { background: #071222; border: 1px solid var(--gold); border-radius: 12px; width: 80vw; max-width: 900px; padding: 40px; position: relative; transform: translateY(50px); transition: transform 0.4s ease; }
.modal.active .modal-content { transform: translateY(0); }
.close-modal { position: absolute; top: 20px; right: 30px; font-size: 2.5rem; color: var(--gold); cursor: pointer; transition: transform 0.3s; }
.close-modal:hover { transform: scale(1.2); }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.modal-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; max-height: 400px; }
.modal-text h2 { font-size: 2.5rem; color: var(--gold); margin-bottom: 20px; font-family: 'Playfair Display', serif;}
.modal-details p { font-size: 1rem; margin-bottom: 15px; color: var(--text-light); border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 10px; }
.modal-details strong { color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8rem; display: block; margin-bottom: 5px;}
.price-tag span { font-size: 1.5rem; color: var(--gold); font-weight: bold; font-family: 'Playfair Display', serif;}


/* =========================================================
   RESPONSIVE DESIGN (PROPORSI UKURAN DI IPAD & HP)
   ========================================================= */

/* IPAD & TABLET (Max Width 1024px) */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-title h2, .showcase-text h2, .services-header h2 { font-size: 6vw; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .project-card { width: 80vw; height: 65vh; }
    .project-info h2 { font-size: 5vw; }
    .search-input { width: 250px; }
    .search-input:focus { width: 280px; }
}

/* SMARTPHONE (Max Width 768px) */
@media (max-width: 768px) {
    /* Navbar Layout di HP */
    nav { flex-wrap: wrap; padding: 20px 5vw; gap: 15px; }
    .logo { flex: 1 1 40%; }
    .menu-btn { flex: 1 1 40%; justify-content: flex-end; }
    
    /* Search Bar Merata Penuh di bawah Logo */
    .search-container { flex: 1 1 100%; order: 3; margin-top: 5px; }
    .search-input { width: 100%; border-radius: 20px; padding: 12px 20px; }
    .search-input:focus { width: 100%; }
    .search-icon { right: 20px; }

    /* Typography HP */
    .title { font-size: 12vw; line-height: 1.2;}
    .subtitle { font-size: 0.9rem; margin-bottom: 10px; }
    .about-title h2, .showcase-text h2, .services-header h2 { font-size: 10vw; }
    .menu-link { font-size: 12vw; }

    /* Grid HP */
    .services-grid { grid-template-columns: 1fr; }
    .iframe-wrapper { width: 90vw; height: 40vh; }

    /* Ukuran Kartu Horizontal saat di HP agar pas di layar kecil */
    .project-card { width: 85vw; height: 60vh; }
    .project-info { bottom: 30px; left: 30px; }
    .project-info h2 { font-size: 7vw; }

    /* Modal Adjustments */
    .modal-grid { grid-template-columns: 1fr; gap: 20px; }
    .modal-image img { max-height: 250px; }
    .modal-content { width: 95vw; padding: 25px; padding-top: 50px; max-height: 90vh; overflow-y: auto; }
    .close-modal { top: 10px; right: 20px; }
}