/* Reset Dasar */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Poppins', sans-serif;
    background-color: #010a1a;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* Partikel */
#particles-js {
    position: fixed; width: 100%; height: 100%; top: 0; left: 0;
    z-index: -1; background: radial-gradient(circle at center, #021a33 0%, #010a1a 100%);
}

/* Header */
header { padding: 20px 0; position: absolute; width: 100%; top: 0; z-index: 10; }
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; font-weight: 700; font-size: 24px; color: #4df3ff; }
.logo-img { height: 30px; margin-right: 10px; }
nav ul { list-style: none; display: flex; gap: 20px; }
nav a { text-decoration: none; color: #fff; font-size: 14px; transition: color 0.3s; }
nav a:hover { color: #4df3ff; }

/* Tombol Dasar */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block; padding: 12px 30px; border-radius: 30px;
    font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; border: none; font-family: inherit;
}
.btn-primary { background-color: #4df3ff; color: #010a1a; box-shadow: 0 4px 15px rgba(77, 243, 255, 0.4); }
.btn-primary:hover { background-color: #fff; box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4); }
.btn-primary:disabled { background-color: #555; color: #aaa; cursor: not-allowed; box-shadow: none; }
.btn-secondary { border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; background-color: rgba(255, 255, 255, 0.05); }
.btn-secondary:hover { background-color: rgba(255, 255, 255, 0.1); }
.btn-outline { border: 1px solid #4df3ff; color: #4df3ff; background: transparent; }
.btn-outline:hover { background-color: rgba(77, 243, 255, 0.1); }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 80px; }
.hero-wrap { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.hero-content { flex: 1; max-width: 600px; }
.hero h1 { font-size: 48px; font-weight: 700; line-height: 1.2; margin-bottom: 20px; background: linear-gradient(135deg, #fff 0%, #4df3ff 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 16px; color: #b0c4de; margin-bottom: 30px; }
.hero-btns { display: flex; gap: 15px; }
.hero-visual { flex: 1; display: flex; justify-content: center; }
.scanner-img { max-width: 100%; height: auto; filter: drop-shadow(0 0 20px rgba(77, 243, 255, 0.5)); }

/* Features & Insights Grid */
.features, .insights { padding: 80px 0; }
.insights { background-color: rgba(1, 10, 26, 0.7); }
.features h2, .insights h2 { text-align: center; font-size: 32px; margin-bottom: 50px; letter-spacing: 2px; }
.features-grid, .insights-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

.feature-item, .insight-card {
    background: rgba(255, 255, 255, 0.03); padding: 30px; border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05); transition: all 0.3s ease;
}
.feature-item:hover, .insight-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.08); border-color: #4df3ff; box-shadow: 0 10px 30px rgba(77, 243, 255, 0.1); }
.feature-item .icon { font-size: 24px; font-weight: 700; color: #4df3ff; margin-bottom: 15px; }
.insight-icon { display: inline-block; width: 40px; height: 40px; line-height: 40px; text-align: center; border-radius: 50%; font-weight: 700; color: #010a1a; margin-bottom: 15px; }
.insight-icon.blue { background-color: #4da6ff; }
.insight-icon.teal { background-color: #4dffd2; }
.insight-icon.rose { background-color: #ff4d94; }
.insight-icon.purple { background-color: #b34dff; }
.insight-icon.amber { background-color: #ffb34d; }
.insight-icon.emerald { background-color: #4dff88; }
.feature-item h3, .insight-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-item p, .insight-card p { font-size: 14px; color: #b0c4de; }

/* Checker Form */
.checker-section { padding: 80px 0; }
.checker-box { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 15px; padding: 40px; max-width: 800px; margin: 0 auto; backdrop-filter: blur(10px); }
.checker-box h2 { margin-bottom: 10px; color: #4df3ff; }
.checker-box > p { margin-bottom: 30px; color: #b0c4de; }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; }
.form-group input[type="text"], .form-group select { width: 100%; padding: 12px 15px; border-radius: 8px; background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; font-family: inherit; font-size: 14px; outline: none; transition: border 0.3s; }
.form-group input[type="text"]:focus, .form-group select:focus { border-color: #4df3ff; }
.form-group select option { background: #010a1a; color: #fff; }

.quick-city-wrap { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.quick-city-wrap button { background: rgba(255,255,255,0.1); border: none; color: #fff; padding: 6px 12px; border-radius: 20px; font-size: 12px; cursor: pointer; transition: 0.3s; }
.quick-city-wrap button:hover, .quick-city-wrap button.active { background: #4df3ff; color: #010a1a; }
.radio-group { display: flex; flex-wrap: wrap; gap: 15px; }
.radio-group label { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 14px; cursor: pointer; }
.form-actions { display: flex; gap: 15px; margin-top: 30px; }

.status-box { padding: 15px; border-radius: 8px; background: rgba(77, 243, 255, 0.1); border: 1px solid #4df3ff; color: #4df3ff; margin-bottom: 20px; font-family: monospace; font-size: 14px; }
.error-box { padding: 15px; border-radius: 8px; background: rgba(255, 77, 77, 0.1); border: 1px solid #ff4d4d; color: #ff4d4d; margin-bottom: 20px; font-size: 14px; }

/* Result Section */
.result-section { padding-bottom: 80px; }
.result-box { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 15px; padding: 40px; max-width: 800px; margin: 0 auto; backdrop-filter: blur(10px); }
.result-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.risk-badge { padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.risk-green { background: rgba(77, 255, 136, 0.2); color: #4dff88; border: 1px solid #4dff88; }
.risk-yellow { background: rgba(255, 179, 77, 0.2); color: #ffb34d; border: 1px solid #ffb34d; }
.risk-red { background: rgba(255, 77, 148, 0.2); color: #ff4d94; border: 1px solid #ff4d94; }
.result-content h3 { font-size: 22px; margin-bottom: 10px; color: #4df3ff; }
.result-content > p { color: #b0c4de; margin-bottom: 25px; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 25px; }
.result-card { background: rgba(0,0,0,0.3); padding: 20px; border-radius: 10px; text-align: center; }
.result-card h4 { font-size: 14px; color: #8a9ba8; margin-bottom: 8px; }
.result-card p { font-size: 18px; font-weight: 600; }
.mitigation-box, .alternatives-box { background: rgba(255,255,255,0.03); padding: 20px; border-radius: 10px; margin-bottom: 20px; }
.mitigation-box h4, .alternatives-box h4 { margin-bottom: 15px; color: #fff; }
.mitigation-item { margin-bottom: 10px; padding-left: 15px; position: relative; font-size: 14px; color: #b0c4de; }
.mitigation-item::before { content: "•"; position: absolute; left: 0; color: #4df3ff; }
.disclaimer-text { font-size: 12px; color: #666; font-style: italic; margin-top: 30px; text-align: center; }

/* Modals & Panels */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(1, 10, 26, 0.9); display: flex; justify-content: center; align-items: center; z-index: 100; backdrop-filter: blur(5px); }
.modal-content { background: #021a33; border: 1px solid rgba(77, 243, 255, 0.3); padding: 40px; border-radius: 15px; max-width: 500px; width: 90%; position: relative; text-align: center; }
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer; color: #b0c4de; transition: 0.3s; }
.close-btn:hover { color: #fff; }
.modal-desc { font-weight: 600; margin: 15px 0; color: #fff; }
.modal-text { font-size: 14px; color: #b0c4de; margin-bottom: 20px; text-align: left; }
.modal-source { font-size: 12px; color: #6a7b8f; margin-bottom: 25px; }
.insight-icon-large { width: 60px; height: 60px; line-height: 60px; font-size: 24px; margin: 0 auto 20px; display: inline-block; }

.side-panel { position: fixed; top: 0; right: 0; width: 350px; height: 100%; background: #021a33; border-left: 1px solid rgba(255,255,255,0.1); z-index: 99; padding: 30px; box-shadow: -5px 0 20px rgba(0,0,0,0.5); overflow-y: auto; }
.panel-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; margin-bottom: 20px; }
.panel-content-body p { font-size: 14px; color: #b0c4de; margin-bottom: 15px; }

/* Footer */
footer { padding: 40px 0 20px; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 13px; color: #6a7b8f; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; }
.footer-links a { color: #b0c4de; text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: #4df3ff; }

/* Responsive */
@media (max-width: 768px) {
    nav { display: none; }
    .hero-wrap { flex-direction: column-reverse; text-align: center; }
    .hero h1 { font-size: 32px; }
    .hero-btns { justify-content: center; }
    .result-grid { grid-template-columns: 1fr; }
    .side-panel { width: 100%; }
}

/* Custom Animated SVG Scanner */
.scanner-svg {
    filter: drop-shadow(0 0 25px rgba(77, 243, 255, 0.6));
    max-width: 100%;
    height: auto;
}
.rotate-clockwise {
    transform-origin: center;
    animation: spin-clockwise 20s linear infinite;
}
.rotate-counter-clockwise {
    transform-origin: center;
    animation: spin-counter 12s linear infinite;
}
.pulse-dot {
    transform-origin: center;
    animation: pulse-animation 2s ease-in-out infinite;
}

@keyframes spin-clockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@keyframes spin-counter {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}
@keyframes pulse-animation {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}