/* ========================================
    GLOBAL STYLES
======================================== */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    min-height: 100vh; /* memastikan body minimal setinggi viewport */
    display: flex;
    flex-direction: column; /* supaya main bisa flex-grow */
}

.bg-color {
    background-color: rgb(238, 237, 237); /* warna background utama */
}

/* ========================================
    HEADER / NAVBAR
======================================== */
.modern-header {
    background-color: black;
    color: white;
    position: fixed; /* selalu di atas */
    width: 100%;
    z-index: 1000;
}

/* Logo & icon */
.logo a,
.bi {
    color: white;
}

.modern-header .nav-link {
    color: rgba(255, 255, 255, 0.5) !important; /* warna default link */
    transition: color 0.3s ease;
}

/* Hover & active link */
.modern-header .nav-link:hover,
.modern-header .nav-link.active {
    color: white !important;
    font-weight: bold;
}

/* Logo hover effect */
.logo:hover,
.logo a:hover {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

/* Profile avatar */
.profile-avatar {
    width: 35px;
    height: 35px;
    background-color: white;
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-avatar:hover {
    background-color: #f8f9fa;
}

/* Dropdown profile */
.profile-dropdown {
    min-width: 200px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ========================================
    CAROUSEL / BANNER
======================================== */
.carousel-item img {
    height: 500px; /* tinggi banner */
    object-fit: cover; /* supaya gambar tidak terdistorsi */
}

/* ========================================
    SECTIONS
======================================== */
.section-one {
    background-color: rgb(221, 223, 226); /* warna background section */
}

/* ========================================
    PARTNER LOGO
======================================== */
.partner-logo {
    filter: grayscale(100%); /* default abu-abu */
    transition: all 0.4s ease;
    cursor: pointer;
}

.partner-logo:hover {
    filter: grayscale(0%) !important;
    transform: translateY(-8px) scale(1.05);
}

.partner-logo:hover img {
    opacity: 1 !important;
}

/* ========================================
    STAT CARDS
======================================== */
.stat-card {
    transition: all 0.3s ease;
    border: none;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ========================================
    FEATURE ITEMS
======================================== */
.feature-item {
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
}

/* ========================================
    CALL TO ACTION (CTA) SECTION
======================================== */
.cta-section {
    position: relative;
    overflow: hidden;
    z-index: 1; /* konten di atas pseudo */
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
    z-index: 0; /* pastikan pseudo di bawah konten */
}

/* ========================================
    MAIN & FOOTER
======================================== */
main {
    flex: 1; /* supaya footer selalu di bawah */
    margin-top: 20px;
}

footer {
    background-color: black;
    color: white;
    text-align: center;
    padding: 15px 0;
}

/* ========================================
    BORDER RADIUS & CARD STYLES
======================================== */
.br-two {
    height: 240px;
    object-fit: cover;
    border-radius: 16px 16px 0 0; /* hanya atas kiri & kanan */
}

/* Card hover effect */
.book-item .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease;
}

/* ========================================
    BUTTONS & FILTERS
======================================== */
.control-btn:hover {
    background: rgba(0, 0, 0, 0.9) !important;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.filter-level.active {
    background-color: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}

/* ========================================
    PROGRESS BAR
======================================== */
.progress {
    border-radius: 10px;
    height: 6px; /* default height untuk konsistensi */
}

.progress-bar {
    transition: width 0.3s ease;
}

/* ========================================
    STARS & BADGE
======================================== */
.stars i {
    font-size: 0.9rem;
    margin-right: 2px;
}

.badge {
    font-size: 0.7rem;
    padding: 0.4em 0.8em;
}

/* ========================================
    CARD BODY GLASS EFFECT
======================================== */
.card-body {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* ========================================
    FILTER CARD
======================================== */
.filter-card {
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1); /* shadow tipis biar modern */
    transition: all 0.3s ease;
}

.filter-card .card-body {
    padding: 20px;
}

#categoryFilter {
    border-radius: 12px; /* bulat sedikit */
    padding: 6px 12px;
    border: 1px solid #ccc;
    transition: all 0.3s ease;
}

#categoryFilter:focus {
    outline: none;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 2px rgba(13,110,253,0.25); /* shadow biru bootstrap */
}

/* ========================================
    PORTFOLIO
======================================== */
.nav-pills .nav-link {
    border-radius: 25px;
    margin: 0 5px;
    padding: 12px 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-weight: 500;
}

.nav-pills .nav-link:hover {
    background-color: rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.portfolio-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.portfolio-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-card:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h5 {
    font-weight: bold;
    margin-bottom: 8px;
}

.tech-stack .badge {
    font-size: 0.7rem;
    padding: 4px 8px;
}

.tab-content {
    min-height: 400px;
}

.tab-pane {
    animation: fadeIn 0.3s ease-in;
}

/* ========================================
    ABOUT / TEAM
======================================== */
.team-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.team-avatar {
    transition: all 0.3s ease;
}

.team-card:hover .team-avatar {
    transform: scale(1.05);
}

.stat-item {
    padding: 2rem 1rem;
}

.stat-item h2 {
    margin-bottom: 1rem;
}

/* ========================================
    CONTACT PAGE
======================================== */
.contact-info,
.contact-form-container {
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h5 {
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #666;
    line-height: 1.5;
}

.social-links {
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.social-link {
    width: 45px;
    height: 45px;
    background: #658db4;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateY(-2px);
}

.contact-form .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
    background: white;
}

.contact-form .form-control:valid {
    border-color: #28a745;
}

.contact-form .form-control:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #dc3545;
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-form .form-check {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.contact-form .form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.contact-form .form-check-label {
    font-size: 0.9rem;
    line-height: 1.4;
}

.contact-form .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-form .btn:disabled {
    transform: none;
    opacity: 0.7;
}

/* ========================================
    ALERTS
======================================== */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

/* ========================================
    FAQ / ACCORDION
======================================== */
.accordion {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.accordion-item {
    border: none;
    border-bottom: 1px solid #e9ecef;
}

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

.accordion-button {
    background: white;
    border: none;
    padding: 1.5rem;
    font-weight: 600;
    color: #333;
    font-size: 1.05rem;
    border-radius: 0;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button:not(.collapsed) {
    background: var(--primary-gradient);
    color: white;
}

.accordion-button::after {
    transition: all 0.3s ease;
}

.accordion-body {
    padding: 1.5rem;
    background: #fafbfc;
    color: #666;
    line-height: 1.6;
}

/* ========================================
    RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .display-4 { font-size: 2rem; }
    .display-5 { font-size: 1.8rem; }
    .carousel-item img { height: 300px; }
    .btn { padding: 0.5rem 1.5rem; margin-bottom: 0.5rem; }
    .stat-card { margin-bottom: 1rem; }
    
    .contact-info,
    .contact-form-container { padding: 1.5rem; margin-bottom: 2rem; }
    .contact-item { padding: 1rem 0; }
    .contact-icon { width: 40px; height: 40px; font-size: 1rem; }
    .social-link { width: 40px; height: 40px; font-size: 1rem; }
    .contact-form .btn { width: 100%; margin-bottom: 0.5rem; }
    .accordion-button,
    .accordion-body { padding: 1rem; }
}

@media (max-width: 576px) {
    .navbar-brand { font-size: 1.5rem; }
    .partner-logo { margin-bottom: 1rem; }
    .stat-item { padding: 1rem; }

    .contact-item { flex-direction: column; text-align: center; }
    .contact-icon { align-self: center; }
    .social-links .d-flex { justify-content: center; }
}

.password-toggle {
    position: absolute; /* Mengatur posisi ikon secara absolut */
    top: 50%; /* Posisikan 50% dari atas */
    right: 15px; /* Beri jarak 15px dari sisi kanan */
    transform: translateY(-50%); /* Geser ke atas 50% dari tingginya sendiri untuk posisi vertikal sempurna */
    cursor: pointer; /* Ubah kursor menjadi pointer saat dihover */
    z-index: 10; /* Pastikan ikon berada di atas input */
    color: #888; /* Ubah warna ikon agar terlihat jelas */
}

/* Sesuaikan padding kanan pada input agar teks tidak menutupi ikon */
.form-control.password-input {
    padding-right: 40px; 
}