@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

:root {
    --bg-main: #f0f4f8; 
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 1);
    
    --primary: #2563eb; 
    --primary-glow: rgba(37, 99, 235, 0.3);
    --secondary: #0ea5e9; 
    
    --text-main: #1e293b; 
    --text-muted: #475569;
    
    --shadow-3d: 8px 8px 16px rgba(163, 177, 198, 0.5), -8px -8px 16px rgba(255, 255, 255, 0.8);
    --shadow-inset: inset 4px 4px 8px rgba(163, 177, 198, 0.5), inset -4px -4px 8px rgba(255, 255, 255, 0.8);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1), -1px -1px 2px rgba(255,255,255,1);
    font-weight: 700;
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: var(--shadow-3d);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 12px 12px 20px rgba(163, 177, 198, 0.6), -12px -12px 20px rgba(255, 255, 255, 0.9);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-3d);
}
.btn:active {
    box-shadow: var(--shadow-inset);
    transform: scale(0.98);
}
.btn-wa {
    background: #25D366;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}
.btn-wa:hover {
    background: #1eb956;
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 95%;
    max-width: 900px;
}
header.glass-panel:hover {
    transform: translateX(-50%); /* prevent jumping up and left */
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-radius: 50px;
    background: rgba(255,255,255,0.9);
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}
.tab-switcher {
    display: flex;
    gap: 10px;
    background: rgba(163, 177, 198, 0.2);
    padding: 5px;
    border-radius: 40px;
    box-shadow: var(--shadow-inset);
}
.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
}
.tab-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* Running Text (Marquee) */
.running-text-container {
    width: 100%;
    background: #f8fafc; /* Abu-abu sangat muda yang bersih */
    color: #475569;
    padding: 8px 0;
    border-top: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    white-space: nowrap;
    position: fixed;
    bottom: 0; /* Dipindah ke bawah layar sesuai permintaan */
    top: auto;
    left: 0;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}
.running-text {
    display: flex;
    flex-shrink: 0;
    animation: marquee 35s linear infinite; /* Sedikit diperlambat agar elegan */
    font-weight: 500;
    font-size: 0.85rem; /* Tulisan dikecilkan */
}
.running-text-content {
    display: flex;
    align-items: center;
    gap: 40px;
    padding-right: 40px; /* Jarak dengan clone berikutnya */
}
.running-text-container:hover .running-text {
    animation-play-state: paused;
}
.running-text a {
    color: #2563eb; /* Biru kalem */
    text-decoration: none;
    transition: color 0.3s ease;
}
.running-text a:hover {
    color: #f59e0b; /* Oranye saat disentuh */
    text-decoration: underline;
}
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.main-content {
    padding-top: 120px;
    min-height: 100vh;
}
.tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.tab-pane.active {
    display: block;
    opacity: 1;
}

.hero-slider {
    width: 100%;
    height: 60vh;
    border-radius: 30px;
    overflow: hidden;
    margin: 20px auto;
    max-width: 1200px;
    position: relative;
    box-shadow: var(--shadow-3d);
}
.swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slide-content {
    position: absolute;
    bottom: 10%;
    left: 5%;
    background: rgba(255, 255, 255, 0.85);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-3d);
}
.slide-content h2 { margin-bottom: 5px; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.section-title {
    text-align: center;
    margin: 40px 0;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}
.feature-card {
    padding: 30px;
    text-align: center;
}
.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Units Grid */
.grid-system {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}
.item-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
}
.item-img, .item-iframe {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: none;
}
.item-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    background: #10b981;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
    z-index: 10;
}
.item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.item-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.item-price {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
}
.item-facilities {
    list-style: none;
    margin-bottom: 20px;
    flex: 1;
}
.item-facilities li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}
.item-pv {
    background: rgba(16, 185, 129, 0.15);
    color: #065f46;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.item-facilities li i {
    color: #10b981;
}

/* Products Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.product-card {
    text-align: center;
    padding: 15px;
}
.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
}
.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
}
.product-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* 3D Maps Section */
.map-container {
    perspective: 1200px;
    margin: 50px auto;
    max-width: 1000px;
    position: relative;
}
.map-canvas {
    width: 100%;
    height: 500px;
    border-radius: 30px;
    overflow: hidden;
    transform: rotateX(42deg) scale(0.9);
    box-shadow: 0 40px 60px rgba(0,0,0,0.2), 0 0 40px rgba(37, 99, 235, 0.2);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 10px solid #fff; 
}
.map-canvas.flat {
    transform: rotateX(0deg) scale(1);
    box-shadow: var(--shadow-3d);
}
.map-hud {
    position: absolute;
    top: -30px;
    right: 20px;
    z-index: 20;
    display: flex;
    gap: 10px;
}
.location-marker-container {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 5;
    pointer-events: none;
    transform: translate(-50%, -100%) rotateX(-42deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}
.map-canvas.flat .location-marker-container {
    transform: translate(-50%, -100%) rotateX(0deg);
}

.marker-tooltip {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-3d);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: floatTooltip 3s infinite ease-in-out;
    margin-bottom: -5px;
    z-index: 2;
}
@keyframes floatTooltip {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.pulse-dot {
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #ef4444;
    animation: pulseRed 1s infinite alternate;
}
@keyframes pulseRed {
    0% { opacity: 0.5; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); }
}
.animated-line {
    width: 3px;
    height: 60px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: lineGrow 2s infinite alternate;
}
@keyframes lineGrow {
    0% { height: 40px; opacity: 0.5; }
    100% { height: 70px; opacity: 1; }
}
.radar-ping {
    position: absolute;
    bottom: -20px;
    left: 50%;
    width: 40px;
    height: 40px;
    background: rgba(239, 68, 68, 0.3);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: radarPing 2s infinite;
}
@keyframes radarPing {
    0% { transform: translateX(-50%) scale(0); opacity: 1; }
    100% { transform: translateX(-50%) scale(3); opacity: 0; }
}

/* Category Filters */
.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 8px 20px;
    border-radius: 20px;
    border: none;
    background: var(--glass-bg);
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-3d);
}
.filter-btn.active {
    background: var(--primary);
    color: #fff;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
    margin-top: 50px;
    color: var(--text-muted);
    box-shadow: 0 -4px 15px rgba(0,0,0,0.05);
}

.main-content {
    padding-top: 150px; /* Default desktop padding */
}

/* RESPONSIVENESS: TABLET & IPAD */
@media (max-width: 1024px) {
    .main-content {
        padding-top: 140px;
    }
    .grid-system {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .hero-slider {
        height: 60vh;
    }
    .section-title {
        font-size: 2.2rem;
    }
}

/* MOBILE RESPONSIVENESS: SMARTPHONES (IPHONE / ANDROID) */
@media (max-width: 768px) {
    .main-content {
        padding-top: 130px;
    }
    header {
        width: 100%;
        top: 0;
        border-radius: 0;
        padding: 10px 15px;
    }
    .navbar {
        border-radius: 0;
        flex-direction: column;
        gap: 10px;
        padding: 5px;
    }
    .tab-switcher {
        width: 100%;
        justify-content: space-between;
    }
    .tab-btn {
        flex: 1;
        justify-content: center;
        font-size: 0.95rem;
        padding: 10px 8px;
    }
    
    .hero-slider {
        height: 45vh;
        border-radius: 12px;
        margin-top: 10px;
    }
    .slide-content {
        padding: 15px;
        bottom: 10px;
        left: 10px;
        right: 10px;
        width: auto;
    }
    .slide-content h2 { 
        font-size: 1.6rem; 
        line-height: 1.2;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
        padding: 0 10px;
    }
    
    .map-canvas {
        height: 350px;
        transform: rotateX(20deg) scale(1); 
        border-radius: 15px;
    }
    .location-marker-container {
        transform: translate(-50%, -100%) rotateX(-20deg);
    }
    
    .grid-system {
        grid-template-columns: 1fr; 
        gap: 20px;
        padding: 0 10px;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 12px;
        padding: 0 10px;
    }
    .product-card {
        padding: 12px;
    }
    .product-card img {
        height: 140px;
    }
    .product-title {
        font-size: 1rem;
    }
    .product-price {
        font-size: 1.1rem;
    }
    
    /* Responsive Modals for mobile */
    .modal-content {
        width: 95%;
        margin: 10px;
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* VERY SMALL SCREENS (Phones <= 480px) */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }
    .slide-content h2 { 
        font-size: 1.3rem; 
    }
    .hero-slider {
        height: 35vh;
    }
    .product-grid {
        grid-template-columns: 1fr; 
    }
    .tab-btn {
        font-size: 0.85rem;
        padding: 8px 5px;
    }
}

/* =========================================
   Modals & Forms (Restored)
========================================= */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal.active {
    display: flex;
    opacity: 1;
}
.modal-content {
    width: 90%;
    max-width: 500px;
    background: var(--bg-main);
    padding: 30px;
    border-radius: 20px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
}
.modal.active .modal-content {
    transform: translateY(0);
}
.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.3s;
}
.close-modal:hover {
    color: #ef4444;
}

/* Swiper Tweaks */
.swiper-pagination-bullet {
    background: #fff !important;
    opacity: 0.7 !important;
    width: 10px !important;
    height: 10px !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.swiper-pagination-bullet-active {
    background: var(--primary) !important;
    opacity: 1 !important;
    transform: scale(1.3);
}

/* =========================================
   Form Controls (Public Modals)
========================================= */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.03);
}
.form-control:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
textarea.form-control {
    resize: vertical;
    min-height: 100px;
}