/* Main CSS */
:root {
    --primary-color: #1e3a5f;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --text-color: #334155;
    --bg-color: #f8fafc;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Offset for fixed navbar */
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.2s;
}

a:hover {
    color: #1d4ed8;
}

/* Navbar */
.navbar {
    background: #1e3a5f;
    color: white;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    height: 70px;
    display: flex;
    align-items: center;
}

.navbar-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.brand:hover {
    color: white;
    opacity: 0.9;
}

.brand-logo {
    height: 40px;
    width: 40px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-logo img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.brand-text {
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
    white-space: nowrap;
}

.brand-sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-left: auto;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    white-space: nowrap;
}

.nav-links a:not(.btn-masuk):hover {
    color: white;
}

.nav-links a:not(.btn-masuk)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s;
}

.nav-links a:not(.btn-masuk):hover::after {
    width: 100%;
}

.btn-masuk {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.25rem !important;
    border-radius: 6px;
    transition: all 0.2s;
    color: white !important;
}

.btn-masuk:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive Navbar */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 1rem;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: #1e3a5f;
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        gap: 1.5rem;
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.3s ease-in-out;
        box-shadow: 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        transform: scaleY(1);
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* Utility Classes */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

/* Flash Messages */
.alert {
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background: #0f172a;
    color: white;
}

/* Hero Section Styles */
.hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 50%, #1e3a5f 100%);
    padding: 4rem 2rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Footer Styles */
.site-footer {
    background: #1e3a5f;
    color: #e2e8f0;
    padding: 2.5rem 0 0;
    margin-top: auto;
    font-family: 'Inter', sans-serif;
}