/* CSS External File for Akreditasi Perpustakaan */
:root {
    --primary: #059669;
    --primary-dark: #047857;
    --primary-light: #10b981;
    --secondary: #065f46;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #0f172a;
    --gray: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #059669 0%, #10b981 100%);
    --gradient-secondary: linear-gradient(135deg, #047857 0%, #065f46 100%);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
    margin-bottom: 1rem;
}

.h1 { font-size: 3rem; }
.h2 { font-size: 2.25rem; }
.h3 { font-size: 1.75rem; }
.h4 { font-size: 1.5rem; }
.h5 { font-size: 1.25rem; }
.h6 { font-size: 1rem; }

@media (max-width: 768px) {
    .h1 { font-size: 2rem; }
    .h2 { font-size: 1.75rem; }
    .h3 { font-size: 1.5rem; }
}

/* Navigation */
.navbar {
    background: var(--white) !important;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.navbar-brand i {
    font-size: 1.75rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark) !important;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background: var(--light);
    color: var(--primary) !important;
}

.navbar-nav .nav-link.active {
    background: var(--primary);
    color: var(--white) !important;
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--white);
    font-weight: 800;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease;
}

.hero .lead {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease;
}

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

/* Search Box */
.search-box {
    background: var(--white);
    border-radius: 100px;
    padding: 0.5rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    max-width: 600px;
    margin: 2rem auto;
    animation: fadeInUp 1s ease;
}

.search-box input {
    border: none;
    padding: 0.75rem 1.5rem;
    flex: 1;
    font-size: 1rem;
    outline: none;
    background: transparent;
}

.search-box input::placeholder {
    color: var(--gray);
}

.search-box button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-box button:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    color: var(--white);
    animation: fadeInUp 1.2s ease;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.95;
    font-weight: 500;
}

/* Quick Access Section */
.quick-access {
    padding: 5rem 0;
    background: var(--light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Category Cards */
.category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

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

.category-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.category-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.category-description {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.category-count {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Instruments Section */
.instruments {
    padding: 5rem 0;
    background: var(--white);
}

.instrument-category {
    margin-bottom: 3rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.instrument-category:hover {
    box-shadow: var(--shadow-xl);
}

.category-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-header i {
    font-size: 1.5rem;
}

.category-header h3 {
    color: var(--white);
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.instruments-list {
    background: var(--white);
}

.instrument-item {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.instrument-item:last-child {
    border-bottom: none;
}

.instrument-item:hover {
    background: var(--light);
    padding-left: 2rem;
}

.instrument-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.instrument-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.instrument-details {
    flex: 1;
}

.instrument-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.instrument-badge {
    background: var(--danger);
    color: var(--white);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.instrument-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.instrument-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.download-btn {
    background: var(--success);
    color: var(--white);
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.download-btn:hover {
    background: #16a34a;
    color: var(--white);
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

/* Info Cards */
.info-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    text-align: center;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.info-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.info-description {
    color: var(--gray);
    font-size: 0.95rem;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background: var(--white);
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: var(--radius) !important;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.accordion-button {
    background: var(--white);
    color: var(--dark);
    font-weight: 600;
    padding: 1.25rem;
    border: none;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background: var(--light);
    color: var(--primary);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23059669'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    padding: 1.25rem;
    color: var(--gray);
    line-height: 1.8;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    padding: 5rem 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: float 30s infinite linear;
    pointer-events: none;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 800;
}

.cta-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn-wa {
    background: var(--white);
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.btn-wa:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
    color: var(--primary-dark);
}

/* Footer */
footer {
    background: var(--dark);
    color: #94a3b8;
    padding: 4rem 0 2rem;
}

footer h5, footer h6 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

footer a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white) !important;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-divider {
    border-color: #334155;
    margin: 3rem 0 2rem;
}

.footer-bottom {
    text-align: center;
    color: #64748b;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 35px;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.whatsapp-float:hover {
    transform: scale(1.15);
    color: var(--white);
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.5);
}

/* Utilities */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive */
@media (max-width: 768px) {
    .hero { padding: 100px 0 60px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .instrument-item { flex-direction: column; align-items: stretch; }
    .instrument-info { margin-bottom: 1rem; }
    .download-btn { width: 100%; justify-content: center; }
    .whatsapp-float { width: 55px; height: 55px; font-size: 28px; }
}