:root {
    --primary: #00f2ff;
    /* Cyan Neon */
    --secondary: #bd00ff;
    /* Purple Neon */
    --accent: #ffee00;
    /* Yellow accent for highlights */
    --bg-dark: #0a0a12;
    --glass-card: rgba(16, 21, 30, 0.75);
    --border-glow: 1px solid rgba(0, 242, 255, 0.3);
    --text-white: #ffffff;
    --text-dim: #a0a0bd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    /* Professional modern font */
}

/* NIM Styling */
.nim-container {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: var(--text-dim);
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.nim-label {
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nim-value {
    letter-spacing: 2px;
    font-weight: 500;
}

body {
    min-height: 100vh;
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(189, 0, 255, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 242, 255, 0.15) 0%, transparent 25%);
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: var(--text-white);
    overflow-x: hidden;
}

/* Grid Background Effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1100px;
    background: var(--glass-card);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 40px rgba(0, 242, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    position: relative;
    /* Clip path for futuristic corners */
    clip-path: polygon(20px 0, 100% 0,
            100% calc(100% - 20px), calc(100% - 20px) 100%,
            0 100%, 0 20px);
}

/* Animated Corner Borders */
.container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    pointer-events: none;
    box-shadow: inset 0 0 20px rgba(0, 242, 255, 0.1);
    z-index: 10;
}

header {
    text-align: center;
    padding: 40px 20px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 30px;
}

/* --- SUPER NEON ROTATING PROFILE --- */
.profile-pic-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

/* Rotating Gradient Ring */
.profile-pic-container::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
            transparent 0deg,
            var(--primary) 60deg,
            var(--secondary) 120deg,
            var(--accent) 180deg,
            var(--secondary) 240deg,
            var(--primary) 300deg,
            transparent 360deg);
    animation: spinRing 4s linear infinite;
    /* Always spinning */
    filter: blur(8px);
    opacity: 1;
    z-index: -1;
}

/* Second Ring for sharper edge */
.profile-pic-container::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: conic-gradient(from 180deg,
            transparent 0deg,
            var(--primary) 60deg,
            var(--secondary) 120deg,
            var(--accent) 180deg,
            var(--secondary) 240deg,
            var(--primary) 300deg,
            transparent 360deg);
    animation: spinRing 4s linear infinite reverse;
    /* Spin opposite way */
    z-index: -1;
    opacity: 0.8;
}

@keyframes spinRing {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
    background: #000;
}

.profile-pic-upload {
    position: absolute;
    bottom: -10px;
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--primary);
    border-radius: 20px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 0 10px var(--primary);
    z-index: 10;
    opacity: 0;
    transition: 0.3s;
}

.profile-pic-container:hover .profile-pic-upload {
    opacity: 1;
    bottom: 10px;
}

h1.value {
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: white;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.7);
    margin-bottom: 5px;
}

.subtitle.value {
    font-size: 1.1rem;
    color: var(--primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    background: rgba(0, 242, 255, 0.1);
    padding: 5px 15px;
    border-radius: 2px;
    border: 1px solid rgba(0, 242, 255, 0.3);
}

.content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 20px;
}

@media(min-width: 900px) {
    .content {
        grid-template-columns: 0.8fr 1.2fr;
    }
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    border-left: 5px solid var(--secondary);
    padding-left: 15px;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(189, 0, 255, 0.1), transparent);
}

/* --- FUTURISTIC INFO BOXES --- */
.info-card {
    background: rgba(10, 10, 15, 0.85);
    /* Slightly darker for more contrast */
    border: 1px solid rgba(0, 242, 255, 0.4);
    /* Brighter cyan border */
    /* Tech corners */
    clip-path: polygon(0 0, 100% 0,
            100% calc(100% - 15px), calc(100% - 15px) 100%,
            0 100%);
    padding: 25px;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.15);
    /* Continuous subtle glow */
    overflow: hidden;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    /* Slightly thicker */
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    /* Gradient bar */
    box-shadow: 0 0 15px var(--primary);
}

.info-group {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 242, 255, 0.1);
    /* Brighter divider */
    padding-bottom: 10px;
    transition: 0.3s;
}

.info-group:hover {
    background: rgba(0, 242, 255, 0.1);
    /* Brighter hover background */
    padding-left: 15px;
    border-left: 2px solid var(--primary);
}

.label {
    display: block;
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
    opacity: 0.8;
}

.value {
    font-size: 1.1rem;
    color: white;
    font-weight: 500;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
    background: transparent;
    border: 1px solid transparent;
    padding: 5px;
}

/* Edit Mode styling */
body.editing .value {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--primary);
    box-shadow: inset 0 0 10px rgba(0, 242, 255, 0.2);
    color: var(--primary);
    font-family: 'Courier New', monospace;
}

/* --- FUTURISTIC HISTORY TABLE/LIST --- */
/* Education Item - Reverted to simpler style */
.education-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.education-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    position: relative;
    border-radius: 12px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.education-item:hover {
    border-color: var(--accent);
    /* Golden border on hover */
    background: rgba(255, 238, 0, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
    /* Golden glow */
}

.education-item:active {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.edu-time {
    border-right: none;
    padding-right: 0;
    justify-content: flex-start;
    margin-bottom: 5px;
}

.edu-year.value {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    padding: 0;
    margin: 0;
    border: none;
}

.edu-details {
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.edu-school.value {
    font-size: 1.2rem;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
}

.edu-faculty.value {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 500;
}

.edu-degree.value {
    font-size: 0.9rem;
    color: var(--text-dim);
    font-style: italic;
}

/* FAB - Reverted to Solid Gradient Style */
.fab-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 100;
}

.btn-edit,
.btn-save {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-edit:hover,
.btn-save:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    filter: brightness(1.2);
}

.btn-save {
    background: linear-gradient(135deg, #00b09b, #96c93d);
    /* Greenish for save */
    display: none;
}

body.editing .btn-edit {
    display: none;
}

body.editing .btn-save {
    display: flex;
    animation: popIn 0.3s;
}

@keyframes popIn {
    0% {
        transform: scale(0);
    }

    80% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Add Education Button - Unified Style */
.btn-add {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border: none;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s;
    display: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

body.editing .btn-add {
    display: block;
}

/* Delete Button Correction */
.delete-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #ff4757;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    opacity: 0;
    transition: 0.3s;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.education-item:hover .delete-btn,
body.editing .delete-btn {
    opacity: 1;
}

.delete-btn:hover {
    background: #ff4757;
    color: white;
    transform: rotate(90deg);
}

/* Button Click Effects (Using Neon Theme instead of Gold) */
.btn-edit:active,
.btn-save:active {
    transform: scale(0.95);
    border-color: var(--primary);
    box-shadow: 0 0 30px var(--primary);
}

.btn-add:active {
    transform: scale(0.98);
    border-color: var(--secondary);
    box-shadow: 0 0 30px var(--secondary);
}

/* Responsiveness for education item */
@media (max-width: 600px) {
    .edu-time {
        grid-column: 1 / -1;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-right: 0;
        padding-bottom: 10px;
        margin-bottom: 10px;
        justify-content: flex-start;
    }

    .edu-year.value {
        text-align: left;
    }
}

/* WhatsApp Button */
.btn-wa {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
    border: 1px solid transparent;
}

.btn-wa:hover {
    background-color: #128C7E;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.5);
    transform: translateY(-2px);
}

.btn-wa i {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* Copyright Footer */
.copyright {
    text-align: center;
    padding: 25px;
    font-size: 0.9rem;
    color: var(--text-dim);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Social Media Icons */
.social-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    background: var(--primary);
    color: black;
    box-shadow: 0 0 15px var(--primary);
    transform: translateY(-3px);
}

/* Skills Section */
.skill-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* --- SKILLS INTERACTION IMPROVEMENTS --- */
.skill-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 18px;
    border-radius: 10px;
    border-left: 3px solid var(--secondary);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    position: relative;
}

.skill-item:hover {
    background: rgba(189, 0, 255, 0.1);
    transform: translateX(10px) scale(1.02);
    /* Moves like other elements */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.skill-item:active {
    background: var(--secondary);
    box-shadow: 0 0 30px var(--secondary);
    transform: scale(0.98) translateX(5px);
}

.skill-item:active .skill-name,
.skill-item:active .skill-pct {
    color: white;
    text-shadow: 0 0 10px white;
}

.skill-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    /* Cyan for skill names as well */
    margin-bottom: 8px;
    display: block;
    transition: 0.3s;
}

.skill-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    width: 0%;
    /* Will be set inline or via JS ideally, but let's default to a visual width style inline for now */
    animation: fillBar 1.5s ease-out forwards;
}

@keyframes fillBar {
    from {
        width: 0;
    }
}

/* Specific Skill Widths for Demo */
.w-80 {
    width: 80%;
}

.w-65 {
    width: 65%;
}

.w-90 {
    width: 90%;
}

/* Social Edit Inputs */
.social-edit {
    display: none;
    width: 150px;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid var(--primary);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.8rem;
    margin-top: 5px;
}

body.editing .social-edit {
    display: inline-block;
}

body.editing .social-icon {
    display: none;
}

/* Skill Header to align name and percentage */
.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.skill-pct {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: bold;
    min-width: 40px;
    text-align: right;
}

/* Skill Delete Button */
.skill-del {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
    display: none;
    background: rgba(255, 0, 0, 0.2);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transform: none;
    /* Remove previous translate */
}

/* Show skill delete button in edit mode and reserve space */
.skill-item {
    position: relative;
    transition: 0.3s;
}

body.editing .skill-item {
    padding-right: 35px;
    /* Make room for the button */
}

body.editing .skill-del {
    display: flex;
}

/* --- CLICK/PRESS EFFECTS (NEON GLOW) --- */

/* Cyan Elements Glow (Primary) */
.info-card:active {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.4);
    transform: scale(0.99);
}

.social-icon:active {
    background: var(--primary);
    color: black;
    box-shadow: 0 0 20px var(--primary);
    transform: scale(0.9);
}

/* Purple Elements Glow (Secondary) */
.section-title:active {
    color: white;
    text-shadow: 0 0 15px var(--secondary);
    background: linear-gradient(90deg, var(--secondary), transparent);
}

/* Yellow Elements Glow (Accent) */
.education-item:active {
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(255, 238, 0, 0.4);
    transform: scale(0.98);
}

/* General Button Press (Ensuring they use theme colors) */
.btn-edit:active {
    box-shadow: 0 0 30px var(--primary);
}

.btn-add:active {
    box-shadow: 0 0 30px var(--secondary);
}