/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5e8 100%);
    min-height: 100vh;
    padding-top: 100px; /* Ruang untuk header sticky */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: white;
    padding: 1rem 0; /* Dikurangi untuk sticky header */
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    position: fixed; /* Membuat header sticky */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; /* Memastikan header di atas konten lain */
    backdrop-filter: blur(10px); /* Blur effect untuk sticky header */
    border-bottom: 1px solid rgba(255,255,255,0.1); /* Garis bawah halus */
    transition: all 0.3s ease; /* Smooth transition */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    -- background: rgba(255,255,255,0.1);
    padding: 0.75rem;
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.logo i {
    font-size: 2rem; /* Dikurangi untuk sticky header */
    color: #a5d6a7;
}

.institution-info h1 {
    font-size: 1.5rem; /* Dikurangi untuk sticky header */
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.institution-info p {
    font-size: 0.9rem; /* Dikurangi untuk sticky header */
    opacity: 0.9;
    font-style: italic;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem; /* Dikurangi untuk sticky header */
    opacity: 0.9;
}

.contact-info i {
    color: #a5d6a7;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

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

.hero h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.welcome-message {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    max-width: 600px;
    margin: 0 auto;
}

.welcome-message h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #e8f5e8;
}

/* Main Content */
.main-content {
    padding: 4rem 0;
}

.services-section {
    text-align: center;
}

.services-section h2 {
    font-size: 2.5rem;
    color: #2e7d32;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.service-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4caf50, #2e7d32);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: #4caf50;
}

.service-card.primary:hover {
    border-color: #4caf50;
    box-shadow: 0 20px 40px rgba(76, 175, 80, 0.3);
}

.service-card.coming-soon:hover {
    border-color: #ff9800;
    box-shadow: 0 20px 40px rgba(255, 152, 0, 0.3);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.service-card.primary:hover .card-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, #66bb6a, #4caf50);
}

.service-card.coming-soon .card-icon {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

.service-card h3 {
    font-size: 1.5rem;
    color: #2e7d32;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.card-link:hover {
    background: linear-gradient(135deg, #66bb6a, #4caf50);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.status-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1b5e20 0%, #0d3d1a 100%);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

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

.footer-section h4 {
    color: #a5d6a7;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-section p {
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: #a5d6a7;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 120px; /* Lebih besar untuk mobile karena header bisa lebih tinggi */
    }
    
    .header {
        padding: 0.75rem 0; /* Lebih compact di mobile */
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo i {
        font-size: 1.5rem; /* Lebih kecil di mobile */
    }
    
    .institution-info h1 {
        font-size: 1.25rem; /* Lebih kecil di mobile */
    }
    
    .institution-info p {
        font-size: 0.8rem; /* Lebih kecil di mobile */
    }
    
    .contact-info p {
        font-size: 0.7rem; /* Lebih kecil di mobile */
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .welcome-message {
        padding: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero h2 {
        font-size: 1.75rem;
    }
    
    .services-section h2 {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 1.25rem;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

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

.service-card {
    animation: fadeInUp 0.6s ease-out;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }
.service-card:nth-child(7) { animation-delay: 0.7s; }
.service-card:nth-child(8) { animation-delay: 0.8s; }

/* Additional Hover Effects */
.service-card {
    cursor: pointer;
}

.service-card:not(.coming-soon):hover {
    cursor: pointer;
}

/* Loading States */
.card-link:active {
    transform: translateY(0);
}

/* Accessibility */
.card-link:focus,
.service-card:focus {
    outline: 3px solid #4caf50;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .footer {
        background: #2e7d32 !important;
        color: white !important;
    }
    
    .service-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
