:root {
    --color-bg: #FFFFFF;
    --color-pink-light: #FFEDED;
    --color-red-main: #E53935;
    --color-red-dark: #A1181A;
    --color-text-dark: #3A0C10;
    --color-text-light: #FFFFFF;
    --color-glass: rgba(255, 237, 237, 0.7);
    --sidebar-width: 90px;
    --border-radius-main: 24px;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: var(--color-bg);
    color: var(--color-text-dark);
    overflow: hidden;
    height: 100vh;
}

.site-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Sidebar Container */
.sidebar-v2 {
    width: 100px;
    height: 100vh;
    background: rgba(161, 24, 26, 0.8); /* Merah tua transparan */
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
}

/* Brand Styling */
.brand-v2 p {
    font-weight: 900;
    font-size: 16px;
    letter-spacing: 3px;
    color: white;
}
.brand-v2 span {
    font-size: 9px;
    opacity: 0.6;
    letter-spacing: 1px;
}

/* Nav Item Styling */
.sidebar-nav-v2 {
    display: flex;
    flex-direction: column;
    gap: 35px;
    width: 100%;
}

.nav-item-v2 {
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    opacity: 0.5;
    transition: all 0.3s ease;
}

/* Efek Glow & Active */
.nav-item-v2.active {
    opacity: 1;
}

.nav-item-v2.active::before {
    content: '';
    position: absolute;
    left: 0;
    width: 4px;
    height: 100%;
    background: #ff4d4d;
    box-shadow: 0 0 15px #ff4d4d;
}

.nav-item-v2 i {
    font-size: 22px;
    margin-bottom: 8px;
}

.nav-label {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-num {
    font-size: 10px;
    font-weight: bold;
}

.nav-text {
    font-size: 8px;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* Social Icons Area */
.social-links-v2 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-links-v2 a {
    color: white;
    font-size: 18px;
    opacity: 0.6;
    transition: 0.3s;
}

.social-links-v2 a:hover {
    opacity: 1;
    transform: scale(1.2);
    color: #ff4d4d;
}

/* Admin access icon: same spot as social links, dimmer until hover */
.admin-access-link {
    opacity: 0.35 !important;
}
.admin-access-link:hover {
    opacity: 1 !important;
    color: #ffffff !important;
}

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto;
    scroll-behavior: smooth;
    position: relative;
}


/* Hero Section */
.page-section {
    padding: 100px 60px 40px 140px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

#home {
    background-image: url('./uploads/home.png');
}

#about {
    background-image: url('./uploads/about.png');
}

#projects {
    background-image: url('./uploads/bg2.png');
}

#certificates {
    background-image: url('./uploads/bg3.png');
    padding-top: 40px; /* Memindahkan judul lebih ke atas */
    height: 100vh;
    overflow: hidden;
}

#contact {
    background-image: url('./uploads/bg4.png');
    height: 100vh;
    overflow: hidden; /* Kembali ke hidden seperti instruksi */
    padding-top: 40px; /* Kurangi gap atas secara drastis */
    padding-bottom: 20px; /* Kurangi gap bawah */
}

.hero-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex: 1;
    gap: 40px;
}

.character-area { flex: 1; position: relative; display: flex; justify-content: center; }
.glow-accent-red {
    position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
    width: 300px; height: 100px; background: rgba(229, 57, 53, 0.4); filter: blur(50px); z-index: 1;
}

.hero-text { flex: 1.2; display: flex; flex-direction: column; justify-content: center; }
.welcome-text { font-size: 10px; color: var(--color-red-main); letter-spacing: 2px; margin-bottom: 10px; font-weight: bold; }
.hero-text h1 { font-size: 4rem; font-weight: 800; line-height: 1.1; margin-bottom: 15px;}
.name-highlight { color: var(--color-red-main); position: relative; }
.name-highlight::after { content: '✧'; position: absolute; font-size: 20px; top: 0; right: -25px; }

.description-text { font-size: 1.1rem; line-height: 1.6; max-width: 600px; margin-bottom: 30px; color: #444; }
.word-highlight.red { color: var(--color-red-main); font-weight: bold;}

.hero-buttons { display: flex; gap: 20px; margin-bottom: 30px; }
.btn { padding: 12px 30px; border-radius: 8px; font-weight: 600; font-size: 14px; border: none; cursor: pointer; transition: 0.3s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--color-red-dark); color: var(--color-text-light); }
.btn-secondary { background: transparent; color: var(--color-text-dark); border: 1px solid var(--color-red-main); }

.features-row { display: flex; gap: 15px; width: 100%; }
.feature-card {
    flex: 1; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(5px);
    padding: 12px 20px; border-radius: 12px; display: flex; align-items: center; gap: 12px;
    border: 1px solid rgba(229, 57, 53, 0.2);
}
.card-icon-container { font-size: 18px; color: var(--color-red-main); }
.card-info h3 { font-size: 13px; margin-bottom: 2px; }
.card-info p { font-size: 11px; color: #555; }

/* Bottom Nav Bar */
.bottom-nav-bar {
    width: 100%; background: var(--color-glass); backdrop-filter: blur(10px);
    border-radius: var(--border-radius-main); display: flex; justify-content: space-between;
    padding: 20px 30px; border: 1px solid rgba(255, 255, 255, 0.4); z-index: 5;
    margin-bottom: 20px;
}
.bottom-item { display: flex; flex-direction: column; gap: 8px; opacity: 0.6; cursor: pointer; transition: 0.3s; }
.bottom-item:hover, .bottom-item.active { opacity: 1; }
.b-number { font-size: 10px; font-weight: bold; letter-spacing: 1px; }
.b-total { font-weight: normal; color: var(--color-red-main); }
.b-content { display: flex; align-items: center; gap: 12px; }
.b-content i { font-size: 24px; color: var(--color-red-dark); }
.b-text h4 { font-size: 14px; letter-spacing: 1px; }
.b-text p { font-size: 10px; color: #555; }

/* Scroll Down */
.scroll-down { display: flex; flex-direction: column; align-items: center; font-size: 10px; letter-spacing: 2px; margin-bottom: 20px; font-weight: bold; }
.scroll-down i { margin-top: 5px; color: var(--color-red-main); animation: bounce 2s infinite; }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* About Section */
.about-section {
    /* Padding is handled by .page-section */
    justify-content: center;
}
.about-container {
    width: 50%;
    align-self: flex-end;
    margin-left: auto;
}
.about-header {
    margin-bottom: 30px;
}
.tagline {
    font-size: 10px;
    color: var(--color-red-main);
    letter-spacing: 2px;
    font-weight: bold;
}
.main-title {
    font-size: 2.5rem;
    font-weight: 800;
}
.highlight {
    color: var(--color-red-main);
}
.about-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 10px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}
.about-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}
.info-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(229, 57, 53, 0.2);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.detail-item {
    margin-bottom: 15px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
}
.detail-label {
    display: flex;
    align-items: center;
    white-space: nowrap;
    margin-right: 8px;
}
.detail-item i {
    color: var(--color-red-main);
    width: 20px;
    margin-right: 8px;
}
.detail-item span {
    opacity: 0.6;
    font-size: 12px;
    margin-right: 5px;
}
.detail-value {
    flex: 1;
    line-height: 1.4;
    word-break: break-word;
}
.skills-header {
    font-size: 10px;
    color: var(--color-red-main);
    letter-spacing: 2px;
    font-weight: bold;
    margin-bottom: 20px;
}
.skill-bar-container { margin-bottom: 20px; }
.skill-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: bold;
}
.bar-bg { background: #eee; height: 8px; border-radius: 10px; overflow: hidden; margin-top: 8px; }
.bar-fill { background: var(--color-red-main); height: 100%; border-radius: 10px; }

/* Projects Section */
.projects-section {
    justify-content: center;
}
.projects-container {
    width: 100%;
    padding: 0 40px;
}
.projects-header {
    text-align: center;
    margin-bottom: 20px;
}
.featured-project-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(229, 57, 53, 0.2);
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.project-image {
    width: 100%;
    height: 250px;
    background: #e0e0e0;
    overflow: hidden;
}
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.featured-project-card:hover .project-image img {
    transform: scale(1.05);
}
.project-details {
    padding: 20px 30px;
}
.project-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--color-text-dark);
}
.project-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 15px;
}
.project-tech-stack {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.project-tech-stack span {
    background: var(--color-red-main);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
}
.project-links {
    display: flex;
    gap: 15px;
}

/* Container Utama */
.certs-container {
    width: 90%;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    min-height: 0;
}

.certs-footer {
    text-align: center;
    margin-top: auto;
    margin-bottom: 20px;
}

.certs-footer p {
    color: var(--color-red-main);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
}

/* Contact Section */
.contact-container {
    width: 95%;
    margin-left: auto;
    padding-bottom: 20px;
}

.contact-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    margin-top: 10px; /* Dikurangi dari 20px */
}

/* Form Styling */
.contact-form-panel {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(229, 57, 53, 0.1);
    padding: 20px; /* Dikurangi dari 30px */
}

.panel-header {
    font-weight: bold;
    font-size: 14px;
    color: var(--color-red-main);
    margin-bottom: 15px; /* Dikurangi dari 25px */
    letter-spacing: 1px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 10px 15px; /* Dikurangi vertikalnya */
    margin-bottom: 15px; /* Dikurangi dari 20px */
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid transparent;
    transition: 0.3s;
}

.input-group:focus-within {
    border-color: var(--color-red-main);
    background: white;
}

.input-group i { color: var(--color-red-main); opacity: 0.7; }

.input-group input, .input-group textarea {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: var(--color-text-dark);
}

.btn-send {
    width: 100%;
    background: linear-gradient(90deg, var(--color-red-main), var(--color-red-dark));
    color: white;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-send:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(229, 57, 53, 0.3); }

/* Right Side Styling */
.contact-info-side { display: flex; flex-direction: column; gap: 20px; }

.connect-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(229, 57, 53, 0.1);
    transition: 0.3s;
}

.connect-card:hover { background: white; border-color: var(--color-red-main); }
.connect-card i:first-child { font-size: 20px; color: var(--color-red-main); }
.connect-text span { font-size: 10px; font-weight: bold; color: var(--color-red-main); }
.connect-text p { font-size: 13px; font-weight: 500; }
.link-icon { margin-left: auto; font-size: 12px; opacity: 0.5; }

/* --- PERBAIKAN PANEL RADAR --- */

.availability-panel {
    background: rgba(255, 255, 255, 0.3); /* Transparan hi-tech */
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 15px; /* Dikurangi dari 25px */
    border: 1px solid rgba(229, 57, 53, 0.1);
    margin-top: 10px;
}

.avail-flex-container {
    display: flex;
    align-items: center; /* Teks dan radar sejajar vertikal di tengah */
    gap: 25px; /* Jarak antara radar dan teks */
}

/* KOTAK DASAR RADAR */
.radar-box {
    position: relative;
    width: 80px;  /* Ukuran kotak radar */
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Memberi sedikit border transparan di kotak luar (opsional, biar mirip desain) */
    background: rgba(229, 57, 53, 0.05); 
    border-radius: 12px;
}

/* Lingkaran Statis (Garis luar yang diam) */
.radar-circle {
    position: absolute;
    width: 60px; /* Ukuran lingkaran lebih kecil dari kotak */
    height: 60px;
    border: 1px solid rgba(229, 57, 53, 0.3);
    border-radius: 50%;
    z-index: 1;
}

/* Lingkaran Ping (Animasi yang memancar) */
.radar-ping {
    position: absolute;
    width: 60px;
    height: 60px;
    background-color: rgba(229, 57, 53, 0.2);
    border-radius: 50%;
    animation: radar-pulse 2s infinite; /* Panggil animasi */
    z-index: 1;
}

/* Ikon Chat di paling tengah */
.radar-icon-content {
    font-size: 24px;
    color: var(--color-red-main);
    z-index: 2; /* Wajib di atas semua lingkaran */
}

/* --- ANIMASI PULSA RADAR --- */
@keyframes radar-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.6); /* Membesar */
        opacity: 0;           /* Menghilang */
    }
}

/* --- STYLING TEKS (Kanan) --- */
.avail-text-column {
    flex: 1; /* Ambil sisa ruang */
}

.avail-tag {
    font-size: 10px;
    font-weight: bold;
    color: var(--color-red-main);
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.avail-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--color-text-dark);
    margin-bottom: 5px;
}

.avail-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
}

.status-badge {
    font-size: 11px;
    font-weight: bold;
    color: #444;
}

.status-active {
    color: var(--color-red-main);
    background: rgba(229, 57, 53, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 5px;
}


/* Card Sertifikat */
.certs-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding-right: 10px;
}

/* Custom Scrollbar for certs-list */
.certs-list::-webkit-scrollbar {
    width: 6px;
}
.certs-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.certs-list::-webkit-scrollbar-thumb {
    background: var(--color-red-main);
    border-radius: 10px;
}

.cert-card {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    gap: 20px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(229, 57, 53, 0.1);
    align-items: center;
    transition: transform 0.3s;
}

.cert-card:hover {
    transform: scale(1.01);
    border-color: var(--color-red-main);
}

.cert-img {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.cert-img img { width: 100%; display: block; }

.zoom-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(229, 57, 53, 0.4);
    display: flex; justify-content: center; align-items: center;
    opacity: 0; transition: 0.3s; color: white;
}

.cert-img:hover .zoom-overlay { opacity: 1; }

.cert-category {
    font-size: 10px;
    background: rgba(229, 57, 53, 0.1);
    color: var(--color-red-main);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.cert-info h3 { margin: 10px 0 5px 0; font-size: 18px; }
.cert-issuer { color: var(--color-red-main); font-weight: bold; font-size: 14px; }
.cert-desc { font-size: 12px; color: #666; margin-top: 8px; }

/* Meta & Button */
.cert-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-left: 1px solid #ddd;
    padding-left: 20px;
}

.meta-item { font-size: 11px; color: #555; }
.meta-item i { color: var(--color-red-main); margin-right: 5px; }

.btn-view-cert {
    margin-top: 10px;
    font-size: 11px;
    text-decoration: none;
    color: var(--color-red-main);
    font-weight: bold;
    border: 1px solid var(--color-red-main);
    padding: 8px;
    text-align: center;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-view-cert:hover {
    background: var(--color-red-main);
    color: white;
}
