@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Rubik+Vinyl&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Passion+One:wght@400;700;900&display=swap");

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

:root {
    --white: #fff;
    --light: #f6f6f6;
    --dark: #343a40;
    --hijau: #073e29;
    --hijau-muda: #92e3a9;
    --hitam: #1e293b;
    --primary: #0d6efd;
    --red: #dc3545;
    --orange: #fd7e14;
    --warning: #ffc107;
    --coklat: #8a4524;
    --blue: #364d65;
    --bs-success: #71dd37;
    --text-success: #71dd37;
    --text-primary: #696cff;
}

/* ---------------------------------------------- HOME SECTION --------------------------------------------------- */
.home {
    position: relative;
    min-height: 100vh;
    padding: 50px 0;
    overflow: hidden;
    background: linear-gradient(135deg, #f4f6fb, #ffffff);
}

/* =========================================================
   ANIMATED BACKGROUND LAYER
   ========================================================= */

.bg-animated {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* Grid pattern */
.bg-animated::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 75%);
}

/* =========================================================
   FLOATING BLOBS (ANIMATED)
   ========================================================= */

.bg-animated .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.85;
    animation: floatBlob 18s infinite ease-in-out;
}

.bg-animated .blob.blue {
    width: 520px;
    height: 520px;
    background: radial-gradient(
        circle,
        rgba(78, 115, 223, 0.6),
        rgba(78, 115, 223, 0.1)
    );
    top: -180px;
    left: -180px;
}

.bg-animated .blob.green {
    width: 620px;
    height: 620px;
    background: radial-gradient(
        circle,
        rgba(40, 167, 69, 0.55),
        rgba(40, 167, 69, 0.1)
    );
    bottom: -220px;
    right: -200px;
    animation-delay: 6s;
}

.bg-animated .blob.purple {
    width: 420px;
    height: 420px;
    background: radial-gradient(
        circle,
        rgba(111, 66, 193, 0.5),
        rgba(111, 66, 193, 0.1)
    );
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 12s;
}

/* =========================================================
   BLOB ANIMATION
   ========================================================= */

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(40px, -60px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 40px) scale(0.95);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* =========================================================
   CONTENT LAYER
   ========================================================= */

.home .container {
    position: relative;
    z-index: 2;
}

/* =========================================================
   LEFT CONTENT
   ========================================================= */

.home-content .badge-ppdb {
    display: inline-block;
    padding: 7px 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 30px;
    letter-spacing: 0.6px;
    margin-bottom: 18px;
    box-shadow: 0 10px 25px rgba(78, 115, 223, 0.35);
}

.home-content h1 {
    font-family: "Passion One", sans-serif;
    font-size: 4.2rem;
    line-height: 1.1;
}

.home-content p {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    max-width: 650px;
    text-align: justify;
}

.home-action {
    margin-top: 24px;
}

.home-action .btn {
    padding: 12px 36px;
    font-weight: 700;
    border-radius: 10px;
}

/* =========================================================
   CAROUSEL – UKURAN INSTAGRAM 1080x1350 (4:5)
   ========================================================= */

.carousel-portrait-wrapper {
    position: relative;
    max-width: 450px;
    margin-left: auto;
}

/* Neon glow */
.carousel-portrait-wrapper::before {
    content: "";
    position: absolute;
    inset: 0px;
    background: linear-gradient(
        135deg,
        rgba(78, 115, 223, 0.55),
        rgba(40, 167, 69, 0.45)
    );
    filter: blur(55px);
    border-radius: 42px;
    z-index: -2;
}

/* Glass layer */
.carousel-portrait-wrapper::after {
    content: "";
    position: absolute;
    inset: -1px;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(14px);
    border-radius: 34px;
    z-index: -1;
}

#carouselPPDB {
    aspect-ratio: 4 / 5; /* 1080x1350 = 4:5 */
    border-radius: 24px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

#carouselPPDB .carousel-inner {
    width: 100%;
    height: 100%;
}

#carouselPPDB .carousel-item {
    width: 100%;
    height: 100%;
}

#carouselPPDB .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* =========================================================
   CAROUSEL CONTROLS - STYLING
   ========================================================= */

/* Tombol navigasi */
#carouselPPDB .carousel-control-prev,
#carouselPPDB .carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.95) !important;
    z-index: 10;
}

/* Tampilkan tombol saat hover pada carousel */
#carouselPPDB:hover .carousel-control-prev,
#carouselPPDB:hover .carousel-control-next {
    opacity: 1;
}

/* Tombol saat di-hover */
#carouselPPDB .carousel-control-prev:hover,
#carouselPPDB .carousel-control-next:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Posisi tombol */
#carouselPPDB .carousel-control-prev {
    left: 12px;
}

#carouselPPDB .carousel-control-next {
    right: 12px;
}

/* Icon panah - perbaiki agar terlihat */
#carouselPPDB .carousel-control-prev-icon,
#carouselPPDB .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 60% 60%;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0) saturate(100%) invert(0); /* Warna hitam */
}

/* Atau pake cara lain - gunakan background-image langsung */
#carouselPPDB .carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e") !important;
}

#carouselPPDB .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

/* =========================================================
   CAROUSEL INDICATORS
   ========================================================= */

#carouselPPDB .carousel-indicators {
    bottom: 12px;
    gap: 6px;
    margin: 0;
    z-index: 15;
}

#carouselPPDB .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
}

#carouselPPDB .carousel-indicators button.active {
    background: #fff;
    width: 24px;
    border-radius: 12px;
}

#carouselPPDB .carousel-indicators button:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 768px) {
    #carouselPPDB .carousel-control-prev,
    #carouselPPDB .carousel-control-next {
        width: 32px;
        height: 32px;
        opacity: 0.6 !important; /* Selalu tampil di HP */
    }

    #carouselPPDB .carousel-control-prev {
        left: 6px;
    }

    #carouselPPDB .carousel-control-next {
        right: 6px;
    }

    #carouselPPDB .carousel-control-prev-icon,
    #carouselPPDB .carousel-control-next-icon {
        width: 16px;
        height: 16px;
    }

    #carouselPPDB .carousel-indicators {
        bottom: 8px;
        gap: 4px;
    }

    #carouselPPDB .carousel-indicators button {
        width: 8px;
        height: 8px;
    }

    #carouselPPDB .carousel-indicators button.active {
        width: 18px;
    }
}

/* =========================================================
   STATISTICS SECTION - MODERN
   ========================================================= */

.statistics-section {
    padding: 80px 0;
    background: var(--gray-100);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 32px 24px;
    text-align: center;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-300);
}

.stat-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-soft);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--accent);
    font-size: 1.75rem;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Modern Table */
.table-modern-container {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 24px;
    border: 1px solid var(--gray-200);
}

.table-modern {
    width: 100%;
    border-collapse: collapse;
}

.table-modern th {
    text-align: left;
    padding: 16px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-modern td {
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-700);
}

.table-modern tr:last-child td {
    border-bottom: none;
}

.table-modern tr:hover td {
    background: var(--gray-100);
}

.badge-count {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-full);
}

/* =========================================================
   ADDITIONAL STYLES FOR TIMELINE & CARDS
   ========================================================= */

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.timeline-marker {
    position: absolute;
    left: -32px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 2px #e9ecef;
}

.timeline-content {
    padding-bottom: 10px;
    border-bottom: 1px dashed #e9ecef;
}

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

.bg-gradient-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
}

.card {
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* =========================================================
   CONTACT SECTION
   ========================================================= */

.contact-section {
    background-color: #f8f9fa;
    position: relative;
}

.contact-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
}

.contact-card:hover {
    border-color: var(--dark);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 20px;
}

.contact-info h4 {
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
}

.contact-form .form-control {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
}

.contact-form .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.contact-form label {
    font-weight: 500;
    color: #495057;
}

.btn-contact {
    background: #0d6efd;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: #0b5ed7;
    transform: translateY(-1px);
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
}

.social-icons a:hover {
    transform: translateY(-2px);
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    height: 450px;
    border: 1px solid #dee2e6;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.info-item {
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
}

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

.info-item i {
    width: 24px;
    text-align: center;
    margin-right: 10px;
    color: var(--dark);
}
