/* --- VARIABEL WARNA (THEMING) --- */
:root {
    --bg-body: #060911;
    --bg-container: linear-gradient(135deg, #070d19 0%, #0f172a 30%, #0284c7 60%, #0369a1 80%, #070d19 100%);
    --bg-card: rgba(30, 41, 59, 0.75);
    --bg-card-hover: rgba(15, 23, 42, 0.85);
    --text-main: #cbd5e1;
    --text-heading: #f8fafc;
    --text-sub: #94a3b8;
    --border-color: rgba(56, , 248, 0.2);
    --accent-blue: #38bdf8;
    --accent-dark-blue: #0284c7;
    --nav-bg: rgba(15, 23, 42, 0.92);
    --shadow-color: rgba(0, 0, 0, 0.6);
}

/* Mode Terang (Light Mode) */
[data-theme="light"] {
    --bg-body: #e2e8f0;
    --bg-container: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 30%, #38bdf8 60%, #0284c7 80%, #f8fafc 100%);
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(241, 245, 249, 0.95);
    --text-main: #334155;
    --text-heading: #0f172a;
    --text-sub: #64748b;
    --border-color: rgba(2, 132, 199, 0.2);
    --accent-blue: #0284c7;
    --accent-dark-blue: #0369a1;
    --nav-bg: rgba(255, 255, 255, 0.92);
    --shadow-color: rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* --- TOMBOL FLOATING ACTION --- */
.floating-toggle-btn {
    display: flex;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    color: #ffffff;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.4);
    border: none;
    cursor: pointer;
    z-index: 1002;
    transition: all 0.3s ease;
}

.floating-toggle-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.6);
}

.floating-toggle-btn:active {
    transform: scale(0.95);
}

/* --- NAVBAR POP-UP FLOATING --- */
nav {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 260px;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 15px 35px var(--shadow-color), 0 0 20px rgba(56, 189, 248, 0.15);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

nav.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.nav-logo {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-heading);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
}

.nav-links a, .theme-toggle-option {
    color: var(--text-sub);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.nav-links a:hover, .theme-toggle-option:hover {
    color: var(--accent-blue);
    background: rgba(56, 189, 248, 0.1);
    transform: translateX(4px);
}

.nav-btn {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-blue) !important;
    border: 1px solid var(--accent-blue);
    margin-top: 5px;
    justify-content: center;
}

.nav-btn:hover {
    background: var(--accent-blue) !important;
    color: #ffffff !important;
}

/* --- ANIMASI OMBAK 3D PADA CONTAINER & DATA DIRI --- */
@keyframes fullWave3D {
    0% {
        background-position: 100% 100%;
    }
    50% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    max-width: 1000px;
    margin: 40px auto;
    background: var(--bg-container);
    background-size: 350% 350%;
    animation: fullWave3D 10s ease-in-out infinite, fadeInUp 0.8s ease-out forwards;
    border-radius: 20px;
    box-shadow: 0 20px 50px var(--shadow-color), 0 0 30px rgba(56, 189, 248, 0.15);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: border-color 0.4s ease;
}

header {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 45px 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    border-bottom: 2px solid var(--accent-dark-blue);
}

.profile-img-container {
    position: relative;
    flex-shrink: 0;
    transform: translateZ(25px);
}

.profile-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 4px solid #38bdf8;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.5);
    display: block;
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.04);
}

.header-text {
    flex: 1;
}

.header-text h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

.header-text p {
    color: #38bdf8;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 20px;
    background: #38bdf8;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(56, 189, 248, 0.4);
}

.btn-download:hover {
    background: #ffffff;
    color: #0284c7;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.5);
}

.main-content {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 30px;
    padding: 35px;
}

section {
    margin-bottom: 35px;
    scroll-margin-top: 40px;
}

h2 {
    font-size: 1.25rem;
    color: var(--text-heading);
    border-bottom: 2px solid var(--accent-dark-blue);
    padding-bottom: 8px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 8px var(--shadow-color);
}

h2 i {
    color: var(--accent-blue);
}

.summary-text {
    color: var(--text-sub);
    font-size: 0.95rem;
    text-align: justify;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 20px var(--shadow-color);
    transition: all 0.35s ease;
}

/* --- KARTU DATA DIRI DENGAN EFEK 3D DEPTH --- */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-left: 4px solid var(--accent-dark-blue);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 18px;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 8px 20px var(--shadow-color);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.company-logo-icon {
    width: 36px;
    height: 36px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.card h3 {
    font-size: 1.1rem;
    color: var(--text-heading);
}

.card .subtitle {
    font-size: 0.88rem;
    color: var(--accent-blue);
    font-weight: 500;
}

.card .date {
    font-size: 0.8rem;
    color: var(--text-sub);
    margin-bottom: 10px;
}

.card ul {
    padding-left: 18px;
    font-size: 0.9rem;
    color: var(--text-main);
}

.card ul li {
    margin-bottom: 6px;
}

/* --- SEKSI DATA DIRI & KONTAK 3D GLASS --- */
.info-card-box {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px var(--shadow-color);
    transition: all 0.35s ease;
}

.info-list {
    list-style: none;
}

.info-list li {
    margin-bottom: 14px;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-main);
}

.info-list i {
    color: var(--accent-blue);
    width: 20px;
    font-size: 1.1rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.info-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 8px;
    width: 100%;
}

.info-item strong {
    color: var(--text-heading);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}

.tool-badge {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-heading);
    font-weight: 500;
    box-shadow: 0 4px 10px var(--shadow-color);
    transition: all 0.3s ease;
}

.tool-badge i {
    font-size: 1.2rem;
    color: var(--accent-blue);
}

.cert-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    color: var(--text-heading);
    box-shadow: 0 4px 10px var(--shadow-color);
    transition: all 0.3s ease;
}

.cert-card i {
    color: var(--accent-blue);
    font-size: 1.1rem;
}

/* --- KELAS AKTIF 3D BERTANAH SAAT DI-TAP --- */
.card.is-active,
.info-card-box.is-active,
.tool-badge.is-active,
.cert-card.is-active,
.summary-text.is-active {
    transform: translateY(-8px) scale(1.02) rotateX(2deg) !important;
    border-left-color: var(--accent-blue) !important;
    background: var(--bg-card-hover) !important;
    box-shadow: 0 20px 40px var(--shadow-color), 0 0 25px rgba(56, 189, 248, 0.35) !important;
}

footer {
    text-align: center;
    padding: 20px;
    background: var(--bg-body);
    border-top: 1px solid var(--border-color);
    color: var(--text-sub);
    font-size: 0.85rem;
    transition: background-color 0.4s ease;
}

/* Responsive Mobile Layout */
@media (max-width: 768px) {
    .container {
        margin: 20px 10px;
        grid-template-columns: 1fr;
    }

    header {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .main-content {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    nav {
        right: 20px;
        bottom: 90px;
        width: calc(100% - 40px);
        max-width: 300px;
    }

    .floating-toggle-btn {
        right: 20px;
        bottom: 20px;
    }
}
