/* ============================================
   Website Guru BK - Premium Purple Theme
   Design System & Styles
   ============================================ */

/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ===== CSS Custom Properties ===== */
:root {
    /* Colors */
    --primary: #5B3FD6;
    --primary-light: #9B7BFF;
    --primary-dark: #4530A8;
    --primary-glow: rgba(91, 63, 214, 0.4);
    --gradient: linear-gradient(135deg, #5B3FD6, #9B7BFF);
    --gradient-hover: linear-gradient(135deg, #4530A8, #8B6BEF);
    
    /* Light Mode */
    --bg: #F8F7FC;
    --bg-alt: #F0EEFF;
    --surface: #FFFFFF;
    --surface-hover: #F5F3FF;
    --glass: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(155, 123, 255, 0.15);
    --glass-strong: rgba(255, 255, 255, 0.85);
    --text: #1A1230;
    --text-secondary: #6B6880;
    --text-muted: #9994AC;
    --border: #E8E4F5;
    --shadow: rgba(91, 63, 214, 0.08);
    --shadow-lg: rgba(91, 63, 214, 0.15);
    --overlay: rgba(26, 18, 48, 0.6);
    
    /* Sizing */
    --nav-height: 72px;
    --container: 1200px;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== Dark Mode ===== */
html.dark {
    --bg: #0F0A1E;
    --bg-alt: #150F2A;
    --surface: #1A1230;
    --surface-hover: #231A40;
    --glass: rgba(26, 18, 48, 0.7);
    --glass-border: rgba(155, 123, 255, 0.2);
    --glass-strong: rgba(26, 18, 48, 0.9);
    --text: #F0EEFF;
    --text-secondary: #A09CB0;
    --text-muted: #6B6880;
    --border: #2D2545;
    --shadow: rgba(0, 0, 0, 0.2);
    --shadow-lg: rgba(0, 0, 0, 0.4);
    --overlay: rgba(0, 0, 0, 0.7);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.4s, color 0.4s;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
}

/* ===== Utility Classes ===== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

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

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--bg-alt);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.section-badge svg {
    width: 16px;
    height: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-title span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary-light);
}

.btn-outline:hover {
    background: var(--primary-light);
    color: white;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

/* ===== Cards ===== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px var(--shadow-lg);
    border-color: var(--glass-border);
}

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

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--glass-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px var(--shadow);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .navbar .container {
        padding: 0 20px;
    }
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 20px;
    color: var(--text);
}

.nav-brand-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 18px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-light);
    background: rgba(155, 123, 255, 0.08);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--primary-light);
    border-color: var(--primary-light);
}

.theme-toggle .icon-sun,
html.dark .theme-toggle .icon-moon {
    display: none;
}

html.dark .theme-toggle .icon-sun {
    display: block;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    background: var(--bg-alt);
    border: 1px solid var(--border);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-bg-gradient {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.hero-bg-gradient.g1 {
    top: -200px;
    right: -100px;
    background: var(--primary);
}

.hero-bg-gradient.g2 {
    bottom: -200px;
    left: -100px;
    background: var(--primary-light);
}

.hero-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(155, 123, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(155, 123, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 580px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(155, 123, 255, 0.1);
    border: 1px solid rgba(155, 123, 255, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease 0.3s both;
    position: relative;
}

.hero-image img {
    max-width: 500px;
    width: 100%;
    border-radius: var(--radius-xl);
    position: relative;
    z-index: 1;
}

.hero-image-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    background: var(--gradient);
    filter: blur(80px);
    opacity: 0.2;
    border-radius: 50%;
    z-index: 0;
}

/* Floating shapes */
.float-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.float-shape:nth-child(1) {
    width: 80px;
    height: 80px;
    background: var(--primary);
    top: 20%;
    left: 5%;
    animation-delay: 0s;
}

.float-shape:nth-child(2) {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.float-shape:nth-child(3) {
    width: 60px;
    height: 60px;
    background: var(--primary-dark);
    bottom: 20%;
    left: 40%;
    animation-delay: 4s;
}

/* ===== Stats Section ===== */
.stats-section {
    padding: 60px 0;
    position: relative;
    z-index: 2;
    margin-top: -60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px var(--shadow-lg);
}

.stat-card:hover::after {
    transform: scaleX(1);
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: rgba(155, 123, 255, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary-light);
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 500;
}

/* ===== Profil Section ===== */
.profil-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 50px;
    align-items: start;
}

.profil-photo-wrapper {
    position: relative;
}

.profil-photo {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    border: 3px solid var(--border);
}

.profil-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profil-photo-glow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 40px;
    background: var(--gradient);
    filter: blur(30px);
    opacity: 0.3;
    border-radius: 50%;
}

.profil-info h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profil-info .jabatan {
    color: var(--primary-light);
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 4px;
}

.profil-info .sekolah {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 28px;
    background: var(--bg-alt);
    padding: 4px;
    border-radius: var(--radius);
    overflow-x: auto;
}

.tab-btn {
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text);
}

.tab-btn.active {
    background: var(--surface);
    color: var(--primary-light);
    box-shadow: 0 2px 8px var(--shadow);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.bio-text {
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 15px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 28px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gradient);
    border: 3px solid var(--bg);
}

.timeline-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.timeline-item .year {
    font-size: 13px;
    color: var(--primary-light);
    font-weight: 500;
}

.timeline-item p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Sertifikat grid */
.sertifikat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.sertifikat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.sertifikat-item:hover {
    border-color: var(--primary-light);
    transform: translateX(4px);
}

.sertifikat-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(155, 123, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
}

.sertifikat-item h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.sertifikat-item p {
    font-size: 12px;
    color: var(--text-secondary);
}

.visi-misi h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-light);
}

.visi-misi p, .visi-misi li {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

.visi-misi ul {
    padding-left: 20px;
    list-style: disc;
}

.visi-misi ul li {
    margin-bottom: 8px;
}

/* ===== Administrasi Section ===== */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.admin-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.admin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.admin-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px var(--shadow-lg);
    border-color: rgba(155, 123, 255, 0.3);
}

.admin-card:hover::before {
    transform: scaleX(1);
}

.admin-card-icon {
    width: 64px;
    height: 64px;
    background: rgba(155, 123, 255, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: var(--primary-light);
    transition: var(--transition);
}

.admin-card:hover .admin-card-icon {
    background: var(--gradient);
    color: white;
    transform: scale(1.1);
}

.admin-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.admin-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.6;
}

.admin-card .badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 14px;
    background: rgba(155, 123, 255, 0.1);
    color: var(--primary-light);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

/* ===== Karya Section ===== */
.karya-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.karya-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.karya-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px var(--shadow-lg);
}

.karya-thumb {
    height: 200px;
    background: var(--bg-alt);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.karya-thumb-icon {
    width: 60px;
    height: 60px;
    color: var(--primary-light);
    opacity: 0.3;
}

.karya-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.karya-card:hover .karya-thumb img {
    transform: scale(1.05);
}

.karya-body {
    padding: 24px;
}

.karya-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(155, 123, 255, 0.1);
    color: var(--primary-light);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 10px;
}

.karya-body h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}

.karya-body p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Galeri Section ===== */
.galeri-filters {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

.galeri-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.galeri-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: var(--bg-alt);
    transition: var(--transition);
}

.galeri-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.galeri-item:hover img {
    transform: scale(1.08);
}

.galeri-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 18, 48, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

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

.galeri-overlay h4 {
    color: white;
    font-size: 15px;
    font-weight: 600;
}

.galeri-overlay p {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
}

/* ===== Lightbox ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: var(--overlay);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-caption {
    text-align: center;
    margin-top: 16px;
    color: white;
    font-size: 15px;
}

/* ===== Artikel Section ===== */
.artikel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.artikel-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    transition: var(--transition);
}

.artikel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px var(--shadow-lg);
}

.artikel-thumb {
    width: 200px;
    min-width: 200px;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    overflow: hidden;
}

.artikel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artikel-body {
    padding: 24px;
    flex: 1;
}

.artikel-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.artikel-category {
    padding: 4px 12px;
    background: rgba(155, 123, 255, 0.1);
    color: var(--primary-light);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
}

.artikel-date {
    font-size: 13px;
    color: var(--text-muted);
}

.artikel-body h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.artikel-body p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
}

.read-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-light);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.read-more:hover {
    gap: 8px;
}

/* ===== Jadwal Section ===== */
.jadwal-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.jadwal-table {
    width: 100%;
    border-collapse: collapse;
}

.jadwal-table th {
    padding: 16px 20px;
    background: var(--bg-alt);
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.jadwal-table td {
    padding: 14px 20px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.jadwal-table tr:last-child td {
    border-bottom: none;
}

.jadwal-table tr:hover td {
    background: var(--surface-hover);
}

.status-badge {
    display: inline-flex;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.tersedia {
    background: rgba(46, 213, 115, 0.1);
    color: #2ED573;
}

.status-badge.penuh {
    background: rgba(255, 71, 87, 0.1);
    color: #FF4757;
}

/* ===== Download Section ===== */
.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.download-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition);
}

.download-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px var(--shadow-lg);
    border-color: var(--glass-border);
}

.download-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: rgba(155, 123, 255, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
}

.download-info {
    flex: 1;
}

.download-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.download-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

.download-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== Buku Tamu Section ===== */
.buku-tamu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.tamu-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px;
}

.tamu-form h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 24px;
}

.testimonials {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--glass-border);
    box-shadow: 0 8px 25px var(--shadow);
}

.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.testimonial-author h4 {
    font-size: 15px;
    font-weight: 600;
}

.testimonial-author p {
    font-size: 13px;
    color: var(--text-secondary);
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    color: #FFB800;
}

.testimonial-stars svg {
    width: 16px;
    height: 16px;
}

.testimonial-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
}

/* ===== Form Styles ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(155, 123, 255, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%239994AC' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.star-rating {
    display: flex;
    gap: 4px;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    color: var(--border);
    transition: var(--transition);
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #FFB800;
}

/* ===== Kontak Section ===== */
.kontak-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.kontak-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kontak-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.kontak-item:hover {
    border-color: var(--primary-light);
    transform: translateX(6px);
}

.kontak-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(155, 123, 255, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
}

.kontak-detail h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.kontak-detail p, .kontak-detail a {
    font-size: 14px;
    color: var(--text-secondary);
}

.kontak-detail a:hover {
    color: var(--primary-light);
}

.maps-container {
    margin-top: 30px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    height: 250px;
}

.maps-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.kontak-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px;
}

.kontak-form h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 24px;
}

/* ===== Footer ===== */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 40px 0 20px;
    overflow: hidden;
}

.footer .container {
    max-width: 100%;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .footer .container {
        padding: 0 20px;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-brand h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 18px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    word-break: break-word;
}

.footer-col ul a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== Floating WhatsApp ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    cursor: pointer;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Scroll animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== Flash Messages ===== */
.flash-message {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 0.4s ease;
}

.flash-message.success {
    background: rgba(46, 213, 115, 0.1);
    border: 1px solid rgba(46, 213, 115, 0.2);
    color: #2ED573;
}

.flash-message.error {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.2);
    color: #FF4757;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 15px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image img {
        max-width: 400px;
    }
    
    .profil-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .profil-photo {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .admin-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--surface);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 24px 24px;
        gap: 4px;
        transition: var(--transition-slow);
        box-shadow: -10px 0 40px var(--shadow-lg);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .mobile-overlay {
        position: fixed;
        inset: 0;
        background: var(--overlay);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .hero-image img {
        max-width: 300px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .stat-card {
        padding: 24px 16px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .admin-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .karya-grid {
        grid-template-columns: 1fr;
    }
    
    .galeri-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .artikel-grid {
        grid-template-columns: 1fr;
    }
    
    .artikel-card {
        flex-direction: column;
    }
    
    .artikel-thumb {
        width: 100%;
        height: 180px;
        min-width: auto;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
    }
    
    .buku-tamu-grid,
    .kontak-grid {
        grid-template-columns: 1fr;
    }
    
    .sertifikat-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        min-height: auto;
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-desc {
        font-size: 15px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .stats-section {
        margin-top: -30px;
    }
    
    .admin-grid {
        grid-template-columns: 1fr;
    }
    
    .galeri-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Print ===== */
@media print {
    .navbar, .whatsapp-float, .back-to-top, .theme-toggle, .mobile-toggle {
        display: none !important;
    }
    
    .section {
        padding: 30px 0;
        break-inside: avoid;
    }
}

/* ===== Buku Tamu ===== */
.buku-tamu-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}
.tamu-form {
    background: var(--surface);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}
.tamu-form h3 {
    margin-bottom: 20px;
    font-size: 20px;
}
.testimonials {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
.testimonial-card {
    background: var(--surface);
    padding: 24px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
}
.testimonial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}
.testimonial-author h4 {
    margin: 0 0 5px 0;
    color: var(--text);
    font-size: 16px;
}
.testimonial-author p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
}
.testimonial-stars {
    color: #FFB800;
    display: flex;
    gap: 2px;
}
.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}
.star-rating input {
    display: none;
}
.star-rating label {
    cursor: pointer;
    color: var(--border);
    transition: color 0.2s;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #FFB800;
}
@media (max-width: 992px) {
    .buku-tamu-grid {
        grid-template-columns: 1fr;
    }
}
