/* FONT GLOBA L*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* NAVBAR */
.navbar {
    padding: 0.8rem 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-link {
    position: relative;
    font-weight: 500;
    padding: 8px 15px;
    transition: color 0.3s ease;
    z-index: 1;
}

/* Bubble melingkar di belakang teks */
.nav-link::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 50px; /* membuat efek lingkaran/oval */
    z-index: -1;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    transform: translate(-50%, -50%) scale(1.2);
}

.nav-link:hover,
.nav-link.active {
    color: #007bff !important;
}

/* Efek bubble putih saat klik */
.nav-link::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 8px;
    background-color: white;
    border-radius: 20px;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}


/* HERO SECTION */
.hero-section {
    background: linear-gradient(to right, #007bff, #0056b3);
    color: white;
    padding: 80px 20px;
    text-align: center;
    border-radius: 0 0 50px 50px;
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* ===== CARD ===== */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
}


/* ===== FORM (Register & Post) ===== */
.form-control {
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    transition: 0.3s;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0,123,255,0.3);
}

.btn-primary {
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
}


/* ===== GAMBAR 3x4 ===== */
.img-3x4 {
    width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}


/* ===== Footer Section ===== */
.footer-section {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 50px 20px;
    font-size: 1rem;
}

/* Judul kontak */
.footer-section h2 {
    font-weight: bold;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #ffffff;
}

/* Paragraf */
.footer-section p {
    margin-bottom: 8px;
}

/* Link kontak */
.footer-section .contact-links a {
    color: #ffdd57;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section .contact-links a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255,255,255,0.6);
}

/* Garis pembatas */
.footer-section hr {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 25px auto;
    width: 80%;
}

/* Copyright */
.footer-section .mb-0 {
    font-size: 0.9rem;
    color: #f8f9fa;
}


/* Navbar Styling */
.custom-navbar {
    background: rgba(0, 123, 255, 0.85);
    transition: background 0.3s ease-in-out;
}

/* Header Image with Overlay */
.header-image {
    position: relative;
    height: 500px;
    background: url('img/sibayak.jpeg') no-repeat center center/cover;
}
.header-image .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}
.header-text {
    position: relative;
    z-index: 2;
    max-width: 700px;
}
.header-text h1 {
    font-size: 2.8rem;
}
.header-text p {
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-image {
        height: 350px;
    }
    .header-text h1 {
        font-size: 2rem;
    }
}
