/* Modern Personal Website Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #6366f1;
    --secondary-color: #a855f7;
    --accent-color: #ec4899;
    --text-highlight: #38bdf8;
    /* New brighter highlight color */
    --background-dark: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --sidebar-width: 350px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background-image:
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Layout */
.main-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar (Left) */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding: 2rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 100;
}

.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-img-container {
    width: 180px;
    height: 180px;
    margin-bottom: 2rem;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--background-dark);
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-title {
    font-size: 1.1rem;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-bio {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-style: italic;
    font-size: 0.95rem;
}

.profile-contact {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.contact-link {
    color: var(--text-secondary);
    font-size: 1.8rem;
    /* Made icon larger */
    transition: var(--transition);
}

/* Colored Social Icons */
.contact-link:nth-child(1):hover {
    color: #E1306C;
    transform: translateY(-3px) scale(1.1);
}

/* Instagram */
.contact-link:nth-child(2):hover {
    color: #25D366;
    transform: translateY(-3px) scale(1.1);
}

/* WhatsApp */
.contact-link:nth-child(3):hover {
    color: #EA4335;
    transform: translateY(-3px) scale(1.1);
}

/* Email */

.sidebar-footer {
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Content Area (Right) */
.content-area {
    margin-left: var(--sidebar-width);
    padding: 4rem 4rem;
    width: calc(100% - var(--sidebar-width));
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.section-title i {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.content-section {
    margin-bottom: 4rem;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(99, 102, 241, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.detail-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.detail-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Vibrant Icons for Grid */
.detail-label i {
    font-size: 1.2rem;
    /* Gradient Icon */
    background: linear-gradient(135deg, var(--text-highlight), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.3));
}

.detail-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    padding-left: 2rem;
    /* Indent value slightly under text */
}

/* Education Timeline */
.education-timeline {
    position: relative;
    padding-left: 2rem;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    opacity: 0.5;
}

.education-item {
    position: relative;
    margin-bottom: 3.5rem;
    padding-left: 2.5rem;
}

.education-item:last-child {
    margin-bottom: 0;
}

.edu-icon {
    position: absolute;
    left: -2.4rem;
    width: 50px;
    height: 50px;
    background: var(--background-dark);
    border: 2px solid transparent;
    background-image: linear-gradient(var(--background-dark), var(--background-dark)),
        linear-gradient(45deg, var(--primary-color), var(--accent-color));
    background-origin: border-box;
    background-clip: content-box, border-box;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    z-index: 2;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.edu-icon i {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.edu-school {
    color: var(--text-primary);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.edu-school-secondary {
    color: var(--text-primary);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.edu-year {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.2);
    border-radius: 20px;
}

.edu-nim {
    font-weight: 600;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 300px;
    }

    .profile-img-container {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 3rem 1rem;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .content-area {
        margin-left: 0;
        width: 100%;
        padding: 2rem 1.5rem;
    }

    .education-timeline::before {
        left: 0;
    }

    .edu-icon {
        left: -1rem;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .education-item {
        padding-left: 1.5rem;
    }
}