/* =====================================
   GLOBAL
===================================== */

html {
    margin: 0;
    padding: 0;
    background-color: #0f172a; /* warna dasar agar tidak muncul putih */
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #0f172a;
}

/* =====================================
   NAVBAR
===================================== */

.custom-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;

    background-color: transparent;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* Saat scroll */
.custom-navbar.scrolled {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
}

/* Nav Link */
.navbar-nav .nav-link {
    position: relative;
    color: #ffffff;
    font-weight: 400;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #38bdf8;
}

/* Underline modern */
.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    width: 0%;
    height: 2px;
    background: #38bdf8;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

/* Elegant bottom accent line */
.custom-navbar::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #38bdf8, transparent);
    opacity: 0.7;
}

/* Gradient Button */
.btn-gradient {
    background: linear-gradient(45deg, #38bdf8, #6366f1);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    color: #ffffff;
}

/* Toggler icon tetap putih */
.navbar-toggler-icon {
    filter: invert(1);
}

/* ================= MOBILE NAV ANIMATION ================= */

@media (max-width: 991.98px) {

    .navbar-collapse {
        background: rgba(15, 23, 42, 0.96);
        backdrop-filter: blur(12px);
        border-radius: 12px;
        margin-top: 15px;
        padding: 20px;
        transform: translateY(-10px);
        opacity: 0;
        transition: all 0.35s ease;
    }

    .navbar-collapse.show {
        transform: translateY(0);
        opacity: 1;
    }

    .navbar-nav .nav-link {
        padding: 12px 0;
    }

    .navbar-nav .nav-item {
        width: 100%;
    }

    .navbar-nav .btn-gradient {
        width: 100%;
        margin-top: 10px;
    }
}

.navbar-toggler {
    transition: transform 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler[aria-expanded="true"] {
    transform: rotate(90deg);
}


/* ================= HERO SECTION ================= */

.hero-section {
    min-height: 100vh;
    padding-top: 140px;
    padding-bottom: 80px;
    background: linear-gradient(135deg, #0f172a, #1e293b, #2563eb);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Glow Background Effect (Radial Light) */
.hero-section::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56,189,248,0.25), transparent 70%);
    top: -200px;
    right: -200px;
    z-index: 0;
}

/* Floating Soft Ornament */
.hero-section::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(37, 99, 235, 0.35);
    border-radius: 50%;
    filter: blur(140px);
    bottom: -200px;
    left: -200px;
    animation: floatSoft 15s ease-in-out infinite alternate;
    z-index: 0;
}

/* Floating Animation */
@keyframes floatSoft {
    from {
        transform: translate(0px, 0px);
    }
    to {
        transform: translate(60px, 40px);
    }
}

/* Content Wrapper */
.hero-content {
    max-width: 750px;
    position: relative;
    z-index: 2;
    margin-top: -85px;
}

/* Title */
.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    animation: fadeUp 1s ease forwards;
}

/* Subtitle */
.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    animation: fadeUp 1.3s ease forwards;
}

/* Search */
.hero-search {
    max-width: 600px;
}

.hero-search .form-control {
    border-radius: 50px 0 0 50px;
    border: none;
    padding: 14px 20px;
}

.hero-search .btn {
    border-radius: 0 50px 50px 0;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 25px;
    height: 40px;
    border: 2px solid #ffffff;
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span::before {
    content: "";
    width: 4px;
    height: 8px;
    background: #ffffff;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scrollMove 1.5s infinite;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollMove {
    0% { opacity: 0; top: 8px; }
    50% { opacity: 1; top: 16px; }
    100% { opacity: 0; top: 24px; }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
}

/* ================= VALUE SECTION ================= */

.value-section {
    background-color: #f8fafc;
}

.section-title {
    font-size: 2rem;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto;
}

.value-card {
    background: #ffffff;
    border-radius: 16px;
    transition: all 0.35s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.value-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(45deg, #38bdf8, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.value-card:hover .value-icon {
    transform: rotate(10deg) scale(1.1);
}

/* Animation visible */
.value-card.show {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

/* ================= VALUE HEADER TYPOGRAPHY ================= */

.value-header {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.2rem;
    letter-spacing: -0.5px;
    line-height: 1.3;
    color: #0f172a;
}

.section-subtitle {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #64748b;
}

/* Responsive refinement */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
        line-height: 1.7;
    }
}

/* ================= STATISTIC SECTION ================= */

.stat-section {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #ffffff;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #38bdf8;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* ================= BOOK PREVIEW ================= */

.book-preview {
    background-color: #f8fafc;
}

/* Header */
.preview-header {
    max-width: 700px;
    margin: auto;
}

.preview-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
}

.preview-subtitle {
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ================= BOOK CARD ================= */

.book-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

/* Cover Image */
.book-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: all 0.4s ease;
    background: #0f172a; /* supaya kalau contain tetap elegan */
}

/* Body */
.book-body {
    padding: 18px;
}

.book-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.book-author {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 12px;
}

.book-card:hover .book-img {
    object-fit: contain;
    padding: 10px;
    background: #0f172a;
}

/* ================= SECTION HEADER ================= */

.section-header {
    max-width: 650px;
    margin: auto;
}

/* Icon Bulat Modern */
.section-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    box-shadow: 0 10px 25px rgba(13,110,253,0.25);
    transition: 0.4s ease;
}

/* Hover effect halus */
.section-header:hover .section-icon {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(13,110,253,0.35);
}

/* Title */
.section-title {
    font-size: 2.3rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

/* Divider tipis elegan */
.section-divider {
    width: 70px;
    height: 4px;
    margin: 10px auto 20px;
    background: linear-gradient(90deg, #0d6efd, #3b82f6);
    border-radius: 10px;
}

/* Subtitle */
.section-subtitle {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.7;
}

/* ================= ELEGANT GRADIENT CTA (Revisi) ================= */
.cta-section {
    padding: 110px 0;
    background: linear-gradient(
        135deg,
        #1e3a8a 0%,
        #3b82f6 50%,
        #8b5cf6 100%
    );
    color: #ffffff;
    position: relative;
    overflow: hidden;
    transition: background 1s ease;
}

/* Animasi gradient lembut */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.cta-section {
    background-size: 300% 300%;
    animation: gradientShift 12s ease infinite;
}

/* Soft gradient overlay supaya lebih hidup */
.cta-section::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle at top right,
        rgba(255,255,255,0.2),
        transparent 70%
    );
    top: -200px;
    right: -200px;
}

/* Text */
.cta-title {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: auto;
}

/* Buttons */
.cta-buttons .btn {
    border-radius: 50px;
    padding: 14px 36px;
    font-weight: 600;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Primary Button */
.btn-cta-primary {
    background: #ffffff;
    color: #1e3a8a;
    border: 2px solid #ffffff;
    position: relative;
    overflow: hidden;
}

/* Hover Primary */
.btn-cta-primary:hover {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Outline Button */
.btn-cta-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.8);
    color: #ffffff;
}

/* Hover Outline */
.btn-cta-outline:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* ================= TESTIMONI / REVIEW ================= */
.testimoni-section {
    position: relative;
    background: linear-gradient(135deg, #f0f4ff, #e0ebff);
    padding: 80px 0;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1e3a8a;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #4b5563;
    opacity: 0.9;
}

/* ================= TESTIMONI CARD ================= */
.testimoni-card {
    background: #ffffffcc; /* semi-transparent */
    padding: 30px 25px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    max-width: 700px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimoni-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* ================= AVATAR ================= */
.testimoni-avatar {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 4px solid #3b82f6;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.testimoni-avatar:hover {
    transform: scale(1.1);
}

/* ================= CONTENT ================= */
.testimoni-content {
    display: flex;
    flex-direction: column;
    gap: 6px; /* jarak antar text, name, role */
    max-width: 500px; /* batasi lebar agar tidak terlalu panjang */
}

.testimoni-text {
    font-size: 1rem;
    font-style: italic;
    color: #374151;
    line-height: 1.6; /* lebih lega */
    margin: 0; /* hapus margin default */
}

.testimoni-name {
    font-weight: 600;
    color: #1e3a8a;
    font-size: 1.1rem;
    margin: 0;
}

.testimoni-role {
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ================= TOMBOL CAROUSEL MODERN ================= */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(30, 58, 138, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    will-change: transform, background;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(30, 58, 138, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(30,58,138,0.4);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-image: none; /* hilangkan icon default */
    width: 20px;
    height: 20px;
}

.carousel-control-prev-icon::before,
.carousel-control-next-icon::before {
    content: '';
    display: inline-block;
    border: solid #fff;
    border-width: 0 3px 3px 0; /* lebih ramping */
    padding: 5px;
}

.carousel-control-prev-icon::before {
    transform: rotate(135deg);
}

.carousel-control-next-icon::before {
    transform: rotate(-45deg);
}

/* ================= CAROUSEL INDICATORS FIX ================= */
.carousel-indicators {
    position: relative;
    margin-top: 30px;
}

.carousel-indicators button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background-color: #3b82f6 !important;
    opacity: 0.5;
    border: none;
    margin: 0 6px;
    flex: 0 0 auto; /* cegah melebar */
    padding: 0;
}

.carousel-indicators button.active {
    opacity: 1;
    transform: scale(1.3);
}

.carousel-indicators button:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* ================= SMOOTH CAROUSEL ANIMATION ================= */
.carousel-item {
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
}

.carousel-fade .carousel-item {
    opacity: 0;
    transform: translateX(20px);
}

.carousel-fade .carousel-item.active {
    opacity: 1;
    transform: translateX(0);
}

.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

/* ================= IDENTITY MODERN STYLE ================= */
.testimoni-identity {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 12px;
    position: relative;
    padding-top: 12px;
}

/* subtle decorative line */
.testimoni-identity::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, transparent);
    border-radius: 2px;
}

/* Name */
.testimoni-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: #111827;
    letter-spacing: 0.2px;
}

/* Meta / Role */
.testimoni-meta {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.carousel-item.active .testimoni-identity {
    animation: fadeIdentity 0.8s ease;
}

@keyframes fadeIdentity {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= FITUR / KEUNGGULAN ================= */
.features-section {
    background: #f9fafe;
    padding: 80px 0;
}

.feature-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.feature-icon i {
    color: #3b82f6;
    transition: transform 0.3s ease, color 0.3s ease;
}

.feature-card:hover .feature-icon i {
    transform: scale(1.2) rotate(10deg);
    color: #1e3a8a;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.5;
}

/* ================= FOOTER MODERN ================= */
.footer-section {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
}

.footer-title {
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.footer-desc {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
}

.footer-section a {
    color: #ffffff;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: #ffd166;
    transform: translateY(-3px);
}

.social-icons a {
    display: inline-block;
    font-size: 1.5rem;
    margin: 0 8px;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.social-icons a:hover {
    background: rgba(255,255,255,0.25);
    transform: scale(1.2) rotate(5deg);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* ================= NEWSLETTER MODERN STYLE ================= */

.newsletter-form {
    display: flex;
    justify-content: flex-end;
}

/* Wrapper menyatu */
.newsletter-wrapper {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 50px;
    overflow: hidden;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* Focus effect */
.newsletter-wrapper:focus-within {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.25);
    transform: translateY(-2px);
}

/* Input */
.newsletter-input {
    flex: 1;
    border: none;
    padding: 12px 18px;
    font-size: 0.9rem;
    outline: none;
    background: transparent;
    color: #111827;
}

/* Placeholder */
.newsletter-input::placeholder {
    color: #9ca3af;
}

/* Button */
.newsletter-button {
    border: none;
    padding: 12px 22px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Hover */
.newsletter-button:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

@media (max-width: 768px) {
    .newsletter-form {
        justify-content: center;
    }

    .newsletter-wrapper {
        max-width: 100%;
    }
}

