/* --- Variables & Base Styles --- */
:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --dark-bg: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.07);
    --text-main: #f1f5f9;
    --text-muted: #cbd5e1;
    --text-light: #e2e8f0;
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-main);
}

p {
    color: var(--text-muted);
}

/* Force Bootstrap text-muted override on dark backgrounds */
.text-muted {
    color: var(--text-muted) !important;
}

/* --- Utility Classes --- */
.text-gradient {
    background: linear-gradient(135deg, var(--secondary) 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--dark-bg); 
}
::-webkit-scrollbar-thumb {
    background: var(--primary); 
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary); 
}

/* --- Navbar (Glassmorphism) --- */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.navbar-custom.scrolled {
    padding: 12px 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand img {
    height: 40px;
    transition: transform 0.3s ease;
}

.nav-brand:hover img {
    transform: rotate(10deg);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-login {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
    color: white;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

/* Animated background blobs */
.hero-bg-blob {
    position: absolute;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.6;
    border-radius: 50%;
    animation: float 10s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(79,70,229,0.3) 0%, rgba(15,23,42,0) 70%);
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(14,165,233,0.2) 0%, rgba(15,23,42,0) 70%);
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 30px;
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-main);
    opacity: 0.9;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.btn-outline {
    background: transparent;
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
}

/* --- Features / About Section --- */
.features-section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.section-subtitle {
    color: #38bdf8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 12px;
}

.feature-card {
    padding: 40px;
    height: 100%;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.03), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(14, 165, 233, 0.3);
}

.feature-card:hover::before {
    transform: translateX(100%);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(79,70,229,0.2), rgba(14,165,233,0.2));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 24px;
    border: 1px solid rgba(14,165,233,0.1);
}

/* --- Program Kerja Section (Table replacement) --- */
.program-section {
    padding: 100px 0;
}

.program-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.program-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    height: 100%;
    width: 2px;
    background: rgba(255,255,255,0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    padding-left: 80px;
}

.timeline-dot {
    position: absolute;
    left: 21px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--dark-bg);
    border: 3px solid var(--secondary);
    box-shadow: 0 0 15px rgba(14,165,233,0.5);
    z-index: 2;
}

.timeline-content {
    padding: 30px;
}

.timeline-date {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.program-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 20px;
}

.program-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.program-list li:last-child {
    border-bottom: none;
}

.program-list li i {
    color: #22c55e;
    margin-top: 4px;
}

/* --- Footer --- */
.footer-custom {
    background: #0b1120;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    display: block;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Activity Cards (Program Kerja) --- */
.activity-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    height: 100%;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.4);
}

.activity-date {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(14, 165, 233, 0.1);
    color: var(--secondary);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.activity-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #fff;
}

.activity-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.activity-list li {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.15);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.activity-list li:last-child {
    border-bottom: none;
}

.activity-list li i {
    color: #22c55e;
    margin-top: 4px;
}

/* --- Gallery Section --- */
.gallery-section {
    padding: 100px 0;
    background: rgba(15, 23, 42, 0.5); /* slightly different dark background */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 25px;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    color: white;
    margin: 0;
    font-size: 1.2rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay h4 {
    transform: translateY(0);
}

/* --- Kegiatan KKG Cards --- */
.kegiatan-section {
    padding: 100px 0;
    position: relative;
    background: radial-gradient(circle at 50% 10%, rgba(14, 165, 233, 0.05) 0%, transparent 60%);
}

.kegiatan-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.kegiatan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.kegiatan-card:hover {
    transform: translateY(-8px);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 25px rgba(14, 165, 233, 0.15);
}

.kegiatan-card:hover::before {
    opacity: 1;
}

.kegiatan-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    gap: 10px;
}

.kegiatan-badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-workshop {
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.badge-seminar {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-pelatihan {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-kkg {
    background: rgba(79, 70, 229, 0.15);
    color: #818cf8;
    border: 1px solid rgba(79, 70, 229, 0.3);
}

.status-indicator {
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 15px;
}

.status-aktif {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(34, 197, 94, 0.6);
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.status-rencana {
    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.status-selesai {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.kegiatan-title {
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.kegiatan-theme {
    font-size: 0.9rem;
    color: #cbd5e1;
    font-style: italic;
    margin-bottom: 18px;
    line-height: 1.5;
}

.kegiatan-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #e2e8f0;
    font-weight: 500;
}

.meta-item i {
    width: 16px;
    color: var(--secondary);
    text-align: center;
    font-size: 0.9rem;
}

.kegiatan-desc {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kegiatan-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-detail-kegiatan {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-detail-kegiatan:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    padding-right: 14px;
}

.btn-detail-kegiatan i {
    transition: transform 0.3s ease;
}

.btn-detail-kegiatan:hover i {
    transform: translateX(4px);
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .hero-title {
        font-size: 3rem;
    }
    .nav-links {
        display: none; /* simple mobile fallback, can add hamburger later */
    }
    .program-timeline::before {
        left: 20px;
    }
    .timeline-dot {
        left: 11px;
    }
    .timeline-item {
        padding-left: 50px;
    }
}
