/* ==========================================================================
   Sistem Informasi Balai Penyuluh KB Kecamatan Lubuk Alung
   Theme: Futuristic Modern Glassmorphism (Dark Slate & Neon Accents)
   Vendor: PT. Magernity Teknologi Indonesia (www.magernity.com)
   ========================================================================== */

/* Root Design Variables */
:root {
    --bg-main: #0b0f19;
    --bg-card: rgba(18, 24, 38, 0.75);
    --bg-card-hover: rgba(28, 37, 58, 0.85);
    --border-color: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(56, 189, 248, 0.35);
    
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --primary-cyan: #06b6d4;
    --primary-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-green: #22c55e;

    --gradient-hero: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    --gradient-avatar: radial-gradient(circle at 50% 30%, rgba(6, 182, 212, 0.25) 0%, rgba(139, 92, 246, 0.1) 50%, rgba(11, 15, 25, 0.9) 100%);

    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

body {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Ambient Background Glow Effects */
.glow-bg {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

.glow-1 {
    top: -100px;
    left: 10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #0284c7 0%, transparent 70%);
}

.glow-2 {
    top: 400px;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
}

.glow-3 {
    bottom: 100px;
    left: 20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #059669 0%, transparent 70%);
}

/* Layout Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation Bar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(11, 15, 25, 0.8);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.4));
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-main);
}

.brand-subtitle {
    font-size: 0.8rem;
    color: var(--primary-cyan);
    font-weight: 600;
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(34, 197, 94, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* Hero Section */
.hero-section {
    padding: 70px 0 50px;
    text-align: center;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--primary-cyan);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.text-gradient {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 780px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 16px 36px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 650px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--primary-cyan);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: var(--border-color);
}

/* Sections Common */
.section {
    padding: 50px 0;
}

.section-header {
    margin-bottom: 36px;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.section-title i {
    color: var(--primary-cyan);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Menu Cards Section */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
}

.menu-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    backdrop-filter: blur(12px);
    transition: var(--transition);
    overflow: hidden;
}

.menu-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: var(--transition);
}

.menu-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-glow);
}

.menu-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.icon-blue { background: rgba(56, 189, 248, 0.12); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.25); box-shadow: 0 0 12px rgba(56, 189, 248, 0.15); }
.icon-purple { background: rgba(139, 92, 246, 0.12); color: #a78bfa; border: 1px solid rgba(139, 92, 246, 0.25); box-shadow: 0 0 12px rgba(139, 92, 246, 0.15); }
.icon-emerald { background: rgba(16, 185, 129, 0.12); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.25); box-shadow: 0 0 12px rgba(16, 185, 129, 0.15); }
.icon-amber { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.25); box-shadow: 0 0 12px rgba(245, 158, 11, 0.15); }
.icon-green { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); box-shadow: 0 0 12px rgba(34, 197, 94, 0.2); }

.menu-card:hover .card-icon {
    transform: scale(1.1);
}

.card-content {
    flex: 1;
    z-index: 1;
}

.card-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-main);
}

.card-content p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.card-arrow {
    font-size: 1rem;
    color: var(--text-dim);
    transition: var(--transition);
    margin-top: 4px;
}

.menu-card:hover .card-arrow {
    color: var(--primary-cyan);
    transform: translateX(4px);
}

.card-helpdesk {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(18, 24, 38, 0.8) 100%);
    border-color: rgba(34, 197, 94, 0.3);
}

.card-helpdesk:hover {
    border-color: rgba(34, 197, 94, 0.6);
    box-shadow: 0 0 25px rgba(34, 197, 94, 0.25);
}

/* Organization Section (Futuristic Cyber Style) */
.org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.org-card {
    background: linear-gradient(180deg, rgba(18, 24, 38, 0.85) 0%, rgba(11, 15, 25, 0.95) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    backdrop-filter: blur(16px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.org-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
    opacity: 0.3;
    transition: var(--transition);
}

.org-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    box-shadow: 0 15px 35px -10px rgba(6, 182, 212, 0.2);
}

.org-card:hover::before {
    opacity: 1;
}

/* Avatar Podium untuk Foto Transparan */
.avatar-wrapper {
    position: relative;
    width: 100%;
    max-width: 260px;
    height: 320px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    background: var(--gradient-avatar);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(6, 182, 212, 0.15);
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

/* Efek Sorot Cahaya Belakang Foto */
.cyber-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(56, 189, 248, 0.3) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.avatar-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top, rgba(11, 15, 25, 0.9) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.6));
}

.org-card:hover .avatar-img {
    transform: scale(1.05) translateY(-4px);
    filter: drop-shadow(0 12px 25px rgba(56, 189, 248, 0.4));
}

.avatar-badge {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

.org-info {
    width: 100%;
}

.org-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.org-role {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-cyan);
    margin-bottom: 10px;
}

.org-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Info Section (Location & Social) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    backdrop-filter: blur(12px);
}

.info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.info-icon {
    font-size: 1.3rem;
    color: var(--primary-cyan);
}

.info-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.address-text {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 18px;
    line-height: 1.6;
}

/* Map iFrame Container Style */
.map-iframe-wrapper {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-glow);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
    background: #000;
}

.map-iframe-wrapper iframe {
    display: block;
    width: 100%;
    filter: contrast(1.05) saturate(1.1);
}

.social-text {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 18px;
}

.social-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    font-size: 0.82rem;
    font-weight: 600;
    transition: var(--transition);
}

.social-btn i {
    font-size: 1.1rem;
}

.social-btn.instagram i { color: #e1306c; }
.social-btn.tiktok i { color: #00f2fe; }
.social-btn.facebook i { color: #1877f2; }
.social-btn.youtube i { color: #ff0000; }

.social-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-glow);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    background: rgba(7, 10, 18, 0.95);
    padding: 30px 0;
    margin-top: 40px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text-main);
}

.footer-logo {
    height: 30px;
    width: auto;
}

.vendor-link {
    color: var(--primary-cyan);
    text-decoration: underline;
    transition: var(--transition);
}

.vendor-link:hover {
    color: var(--primary-blue);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.9rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .stat-divider {
        width: 80%;
        height: 1px;
    }

    .social-links {
        grid-template-columns: 1fr;
    }

    .card-helpdesk {
        grid-column: span 1;
    }
}