/* === RESET & GLOBAL STYLE === I */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background: #f5f7fa;
    color: #333;
}

html {
    scroll-behavior: smooth;
}

/* === NAVBAR === B*/
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(30, 58, 138, 0.95);
    backdrop-filter: blur(8px);
    padding: 15px 30px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo {
    display: flex;
    gap: 10px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo img {
    max-height: 35px;
    height: auto;
    width: auto;
    border-radius: 6px;
}


.logo:hover {
    color: #FFD700;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    z-index: 1001;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: #FFD700;
    transition: width 0.3s;
}

.nav-links a:hover {
    color: #FFD700;
}

.nav-links a:hover::after {
    width: 100%;
}

.floating-icon {
    position: absolute;
    font-size: 32px;
    opacity: 0.7;
    animation: float-tech 8s ease-in-out infinite;
    pointer-events: none;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

@keyframes float-tech {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-25px) rotate(10deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* Pastikan service-container tetap di atas */
.service-container {
    position: relative;
    z-index: 1;
}

/* Glow pada judul agar terlihat high-tech */
.hero-content h1,
.services h2,
.about h2,
.contact h2 {
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6),
        0 0 14px rgba(30, 58, 138, 0.4);
}

/* === SERVICE BOX HOVER ANIMATION === A*/
.service-box {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.service-box::before {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(30, 58, 138, 0.2));
    transition: top 0.4s ease;
}

.service-box:hover::before {
    top: 0;
}

.service-box:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

/* === SCROLL ANIMATION === */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}


/* === HERO SECTION === */
.hero {
    height: 100vh;
    background: linear-gradient(to right, rgba(30, 58, 138, 0.85), rgba(46, 110, 237, 0.7)),
        url('hero.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content {
    animation: fadeInUp 1s ease-in-out;
}

.hero-content h1 {
    font-size: 56px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background: #FFD700;
    color: #000;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.btn:hover {
    background: #FFC107;
    transform: translateY(-3px);
}

/* Animasi hero */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === ABOUT SECTION STYLING === */
.about {
    padding: 100px 20px;
    text-align: center;
    max-width: 1000px;
    margin: auto;
    position: relative;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Garis dekorasi di atas judul */
.about h2 {
    font-size: 36px;
    margin-bottom: 25px;
    color: #1E3A8A;
    position: relative;
    display: inline-block;
}

.about h2::after {
    content: "";
    display: block;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #1E3A8A);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Paragraf */
.about p {
    font-size: 18px;
    color: #444;
    line-height: 1.8;
    max-width: 750px;
    margin: 0 auto;
}

/* === ABOUT MULTI COLUMN === */
.about-description {
    column-count: 2;
    column-gap: 40px;
    text-align: justify;
    margin-bottom: 40px;
}

/* === ABOUT IMAGE GALLERY === */
.about-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.about-gallery img {
    width: 300px;
    max-width: 100%;
    border-radius: 12px;
    filter: grayscale(90%);
    transition: all 0.4s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.about-gallery img:hover {
    filter: grayscale(0%) brightness(1.05);
    transform: scale(1.03);
}

/* === TEAM / STRUKTUR ORGANISASI === */
.team {
    padding: 100px 20px;
    background: #f8fafc;
    text-align: center;
    position: relative;
}

.team h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #1E3A8A;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
}

.team-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.team-member {
    position: relative;
    width: 200px;
    text-align: center;
    cursor: pointer;
}

.team-member img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #1E3A8A;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.team-member:hover img {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.team-member .name {
    display: block;
    margin-top: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Tooltip */
.tooltip {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 58, 138, 0.95);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: rgba(30, 58, 138, 0.95) transparent transparent transparent;
}

.team-member:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* === SERVICES === */
.services {
    position: relative;
    padding: 80px 20px;
    background: #fff;
    text-align: center;
}

.services h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #1E3A8A;
}

.service-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.service-box {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.service-box:hover {
    transform: translateY(-8px);
    /* box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15); */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15),
        0 0 15px rgba(255, 215, 0, 0.25);
}

.service-box h3 {
    margin-bottom: 15px;
    color: #1E3A8A;
}

/* === GALLERY === */
.gallery {
    padding: 100px 20px;
    background: #f5f7fa;
    text-align: center;
}

.gallery h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #1E3A8A;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* Foto kegiatan */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 1) 98%, transparent 100%);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: cover;
    mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 1) 98%, transparent 100%);
    mask-repeat: no-repeat;
    mask-size: cover;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    /* agar tidak distorsi */
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: sepia(20%) contrast(1.05);
}

/* Efek hover */
.gallery-item:hover img {
    transform: scale(1.1);
    filter: blur(1px) sepia(60%) brightness(1.1);
}

/* === NEWS SECTION === */
.news {
    padding: 100px 20px;
    background: var(--light-bg);
    text-align: center;
}

.news h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--primary-color);
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.4);
}

/* Kontainer artikel: multiple columns */
.news-container {
    column-count: 3;
    column-gap: 30px;
    max-width: 1100px;
    margin: auto;
    text-align: left;
}

.news-container article {
    break-inside: avoid;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.news-container article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.news-container h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 20px;
}

/* Pagination */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
}

.news-pagination button {
    padding: 10px 20px;
    background: var(--accent-color);
    color: #000;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.news-pagination button:hover:not(:disabled) {
    background: #FFC107;
    transform: translateY(-2px);
}

.news-pagination button:disabled {
    opacity: 0.5;
    cursor: default;
}

.news-pagination .page-info {
    font-weight: 500;
    color: #333;
}

/* === CONTACT SECTION STYLING === */
.contact {
    padding: 100px 20px;
    text-align: center;
    background: linear-gradient(135deg, #1E3A8A, #2a5298);
    color: white;
    position: relative;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.15);
}

/* Judul dengan garis dekorasi */
.contact h2 {
    font-size: 36px;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.contact h2::after {
    content: "";
    display: block;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #fff);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Form styling */
.contact form {
    max-width: 550px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact input,
.contact textarea {
    padding: 14px;
    border-radius: 10px;
    border: none;
    outline: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

/* Efek saat focus */
.contact input:focus,
.contact textarea:focus {
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
    transform: scale(1.02);
}

/* Tombol */
.contact button {
    background: #FFD700;
    color: #000;
    padding: 14px;
    border: none;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.contact button:hover {
    background: #FFC107;
    transform: translateY(-4px) scale(1.03);
}

/* Dekorasi bubble background */
.contact::before,
.contact::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    z-index: 0;
}

.contact::before {
    width: 200px;
    height: 200px;
    top: -60px;
    left: -60px;
}

.contact::after {
    width: 250px;
    height: 250px;
    bottom: -80px;
    right: -80px;
}


/* === FOOTER === */
footer {
    background: #1E3A8A;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 0;
}

/* === HAMBURGER === */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    cursor: pointer;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: 0.3s;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
}

.overlay.active {
    display: block;
}

/* === SIDEBAR MENU (Mobile) === */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .about-description {
        column-count: 1;
    }

    .team-container {
        gap: 25px;
    }

    .news-container {
        column-count: 1;
    }

    .team-member img {
        width: 150px;
        height: 150px;
    }

    .logo img {
        max-height: 28px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100%;
        width: 100%;
        background: rgba(30, 58, 138, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 60px;
        gap: 30px;
        display: flex;
        transition: right 0.4s ease;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
        color: #FFD700;
    }

    .nav-links a {
        font-size: 20px;
        color: #ffffff;
        /* ubah warna teks di sidebar */
    }

    /* Hamburger jadi X */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translateY(12.5px);
        -webkit-transform: rotate(45deg) translateY(12.5px);
        -moz-transform: rotate(45deg) translateY(12.5px);
        -ms-transform: rotate(45deg) translateY(12.5px);
        -o-transform: rotate(45deg) translateY(12.5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-12.5px);
        -webkit-transform: rotate(-45deg) translateY(-12.5px);
        -moz-transform: rotate(-45deg) translateY(-12.5px);
        -ms-transform: rotate(-45deg) translateY(-12.5px);
        -o-transform: rotate(-45deg) translateY(-12.5px);
    }
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0;
    background: #FFD700;
    z-index: 1500;
    transition: width 0.25s ease;
}

.contact input:focus::placeholder,
.contact textarea:focus::placeholder {
    color: transparent;
    transition: color 0.3s;
}