/* =========================================
   GISTARIAU - CSS Variables & Reset
========================================= */
:root {
    --primary: #0B5ED7;
    --secondary: #198754;
    --accent: #FFC107;
    --background: #F8FAFC;
    --card-bg: #FFFFFF;
    --text-color: #222222;
    --text-light: #64748b;
    --border: #E5E7EB;
    --hover: #0D6EFD;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 30px rgba(11, 94, 215, 0.15);
    --footer-bg: #0F172A;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* =========================================
   Typography
========================================= */
h1, h2, h3 { font-weight: 700; color: var(--text-color); }
h3 { font-weight: 600; }
p { font-weight: 400; }
.text-primary { color: var(--primary); }

/* =========================================
   Header & Navigation
========================================= */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    transition: var(--transition);
}

#header.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 45px;
    object-fit: contain;
}

.nav-menu ul {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-menu a:hover::after { width: 100%; }

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
}

/* =========================================
   Hero Section
========================================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
    position: relative;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(11, 94, 215, 0.3);
}

.btn-primary:hover {
    background-color: var(--hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 94, 215, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: #fff;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--primary);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-15px) translateX(-50%); }
    60% { transform: translateY(-7px) translateX(-50%); }
}

/* =========================================
   Peta Online Section
========================================= */
.peta-section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* Search Box */
.search-box {
    max-width: 500px;
    margin: 0 auto 30px auto;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-box input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    background-color: var(--card-bg);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(11, 94, 215, 0.1);
}

/* Filter Chips */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.chip {
    padding: 8px 20px;
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.chip.active {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Grid & Cards */
.map-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.map-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.map-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.map-card:hover .card-icon {
    color: var(--secondary);
    transform: scale(1.1);
}

.map-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.map-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 25px;
    flex-grow: 1;
}

.btn-card {
    display: inline-block;
    padding: 10px 0;
    width: 100%;
    background-color: var(--primary);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn-card:hover {
    background-color: var(--secondary);
}

.no-result {
    text-align: center;
    padding: 50px;
    color: var(--text-light);
    font-size: 1.2rem;
}
.no-result i { font-size: 3rem; margin-bottom: 15px; color: var(--border); }
.hidden { display: none !important; }

/* =========================================
   Footer
========================================= */
.footer {
    background-color: var(--footer-bg);
    color: #fff;
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: #94a3b8;
    max-width: 300px;
}

.footer h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
}

.social-icons a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* =========================================
   Animations & Ripple
========================================= */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ripple {
    position: relative;
    overflow: hidden;
}
.ripple .ripple-span {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-effect 600ms linear;
    background-color: rgba(255, 255, 255, 0.4);
}
@keyframes ripple-effect {
    to { transform: scale(4); opacity: 0; }
}

/* =========================================
   Responsive (Desktop, Tablet, Mobile)
========================================= */
@media (max-width: 1024px) {
    .hero-content h1 { font-size: 2.8rem; }
    .map-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 80px;
        left: -100%;
        width: 100%;
        background: #fff;
        flex-direction: column;
        text-align: center;
        padding: 30px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        transition: var(--transition);
    }
    .nav-menu.active { left: 0; }
    .nav-menu ul { flex-direction: column; gap: 20px; }
    .mobile-menu-toggle { display: block; }
    
    .hero-content h1 { font-size: 2.2rem; }
    .map-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { margin: 0 auto; }
    .social-icons { justify-content: center; }
}