:root {
    --primary: #5e60ce;
    --primary-soft: rgba(94, 96, 206, 0.1);
    --accent: #64dfdf;
    --linkedin: #0077B5;

    --bg-body: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #17172b;
    --text-secondary: #4f4f6f;
    --border-light: #e2e2f0;
    --navbar-bg: rgba(255,255,255,0.9);
    --footer-bg: #fafbff;
    --shadow-card: 0 25px 45px -12px rgba(0,0,0,0.08);

    /* Warna ikon toggle */
    --icon-sun: #f9ca24;
    --icon-moon: #a0c4ff;
}

.dark-mode {
    --bg-body: #0b0c16;
    --bg-card: #161a28;
    --text-primary: #f0f2fe;
    --text-secondary: #b3b9d0;
    --border-light: #2a2e3f;
    --navbar-bg: rgba(11,12,22,0.95);
    --footer-bg: #0e0f1c;
    --shadow-card: 0 25px 45px -12px rgba(0,0,0,0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background 0.3s, color 0.2s;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--navbar-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    padding: 18px 0;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--primary);
    font-size: 2rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-text-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    padding: 6px 4px;
    position: relative;
    transition: color 0.3s;
    letter-spacing: 0.2px;
}

.nav-text-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.25s ease;
}

.nav-text-link:hover,
.nav-text-link:focus-visible {
    color: var(--primary);
    outline: none;
}

.nav-text-link:hover::after,
.nav-text-link:focus-visible::after {
    width: 100%;
}

/* ===== TOMBOL TOGGLE DARK/LIGHT (IKON) ===== */
.theme-toggle-btn {
    background: none;
    border: 2px solid var(--border-light);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    color: var(--text-primary);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--bg-card);
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}

/* Warna ikon matahari */
.theme-toggle-btn .bi-sun-fill {
    color: var(--icon-sun);
}

/* Warna ikon bulan */
.theme-toggle-btn .bi-moon-fill {
    color: var(--icon-moon);
}

.theme-toggle-btn:hover {
    background-color: var(--primary-soft);
    transform: scale(1.1);
}

/* ===== ANIMASI TRANSISI IKON ===== */
.icon-out {
    animation: iconOut 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.icon-in {
    animation: iconIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes iconOut {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
}

@keyframes iconIn {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* ========================
   ANIMASI HALAMAN UTAMA
   ======================== */
.talent-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    animation: pageFadeIn 0.7s ease-out both;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.talent-container {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 50px;
    color: var(--text-primary);
    position: relative;
    opacity: 0;
    animation: titleSlideUp 0.6s ease-out 0.2s forwards;
}

@keyframes titleSlideUp {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 16px auto 0;
    border-radius: 4px;
}

/* Grid kartu */
.talent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Kartu talent */
.talent-card {
    position: relative;
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease, transform 0.6s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 480px;
    max-height: 520px;
    border: 2px solid transparent;
    background-clip: padding-box;

    opacity: 0;
    transform: translateY(30px);
}

.talent-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.talent-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 50px -15px rgba(0,0,0,0.3);
}

.talent-card:hover,
.talent-card:focus-visible,
.talent-card:active {
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                linear-gradient(135deg, #25D366, #1da851) border-box;
    border-color: transparent;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.2);
}

/* Gambar penuh */
.card-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.talent-photo-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transition: transform 0.5s ease;
}

.talent-card:hover .talent-photo-full {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 20%, rgba(0, 0, 0, 0.85) 90%);
    pointer-events: none;
    z-index: 1;
}

/* Konten di atas gambar */
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 20px 24px 20px;
    z-index: 2;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.text-group {
    text-align: left;
    flex: 0 1 auto;
    margin-bottom: 0;
}

.name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.talent-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin: 0;
}

/* Badge "Available" dengan efek NEON */
.availability-badge {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #2ecc71;
    border-radius: 50%;
    position: relative;
    vertical-align: middle;
    flex-shrink: 0;
    box-shadow: 0 0 4px #2ecc71, 0 0 8px #2ecc71;
    animation: neon-pulse 2s infinite ease-in-out;
    will-change: transform, box-shadow;
}

.availability-badge::before,
.availability-badge::after {
    display: none;
}

@keyframes neon-pulse {
    0% {
        box-shadow: 0 0 4px #2ecc71, 0 0 8px #2ecc71, 0 0 12px #2ecc71;
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 8px #39ff14, 0 0 18px #39ff14, 0 0 30px #39ff14, 0 0 45px #39ff14;
        transform: scale(1.3);
    }
    100% {
        box-shadow: 0 0 4px #2ecc71, 0 0 8px #2ecc71, 0 0 12px #2ecc71;
        transform: scale(1);
    }
}

/* Tombol Connect LinkedIn */
.btn-connect {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(6px);
    background: rgba(255,255,255,0.9);
    color: #17172b;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 0;
    white-space: nowrap;
}

.btn-connect i,
.btn-connect ion-icon {
    font-size: 1rem;
    color: #0077B5;
}

.btn-connect:hover {
    background: #0077B5;
    color: white;
}

.btn-connect:hover i,
.btn-connect:hover ion-icon {
    color: white;
}

/* Dark mode override tombol */
.dark-mode .btn-connect {
    background: rgba(255,255,255,0.08);
    color: #f0f2fe;
    border-color: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
}

.dark-mode .btn-connect i,
.dark-mode .btn-connect ion-icon {
    color: #0A66C2;
}

.dark-mode .btn-connect:hover {
    background: #0A66C2;
    color: white;
}

.dark-mode .btn-connect:hover i,
.dark-mode .btn-connect:hover ion-icon {
    color: white;
}

/* Footer */
.footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--border-light);
    padding: 70px 0 30px;
    margin-top: auto;
}

.footer .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.5fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-brand h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 18px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.footer-brand h3 span {
    color: var(--primary);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 300px;
}

.footer h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 32px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.footer-contact ul {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-secondary);
}

.footer-contact i {
    width: 20px;
    color: var(--primary);
}

.footer-contact a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: var(--primary);
}

.footer-cta p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--text-secondary);
}

/* Dot hijau dengan animasi ripple */
.footer-cta .dot {
    width: 10px;
    height: 10px;
    background: #2ecc71;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.footer-cta .dot::before,
.footer-cta .dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(46, 204, 113, 0.4);
    transform: translate(-50%, -50%) scale(1);
    animation: ripple-dot 2s infinite ease-out;
    pointer-events: none;
}

.footer-cta .dot::after {
    animation-delay: 0.8s;
    background: rgba(46, 204, 113, 0.2);
}

@keyframes ripple-dot {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(3.5);
        opacity: 0;
    }
}

.footer-wa-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white;
    padding: 12px 26px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(37,211,102,0.15);
}

.footer-wa-button:hover {
    background: #20bd5a;
    transform: translateY(-3px);
    box-shadow: 0 18px 30px rgba(37,211,102,0.2);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsif */
@media screen and (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 768px) {
    .nav-container {
        padding: 0 24px;
    }
    .page-title {
        font-size: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-brand p {
        max-width: 100%;
    }
}

@media screen and (max-width: 600px) {
    .nav-container {
        padding: 0 20px;
    }
    .logo {
        font-size: 1.5rem;
    }
    .logo span {
        font-size: 1.7rem;
    }
    .talent-grid {
        grid-template-columns: 1fr;
    }
    .talent-card {
        min-height: 420px;
        max-height: 460px;
    }
    .card-content {
        padding: 16px;
    }
    .talent-name {
        font-size: 1.1rem;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    }
    .nav-right {
        gap: 10px;
    }
    .btn-connect {
        padding: 8px 18px;
        font-size: 0.8rem;
    }
    .theme-toggle-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
}