/* --- Global Reset & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    /* Soft pink gradient background */
    background: linear-gradient(135deg, #fff3f6 0%, #ffffff 50%, #f4e8ed 100%);
    background-attachment: fixed;
    color: #4a3e43;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: #5c3c4a;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* --- Reusable Components --- */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
}
.section-title .line {
    width: 60px;
    height: 3px;
    background: #d4a5b8;
    margin: 10px auto 0;
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.btn-primary {
    background: #d4a5b8;
    border: none;
    color: #fff;
}
.btn-primary:hover {
    background: #c394a7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 165, 184, 0.4);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.6);
    color: #5c3c4a;
    border: 1px solid rgba(212, 165, 184, 0.5);
    backdrop-filter: blur(5px);
}
.btn-secondary:hover {
    background: rgba(212, 165, 184, 0.1);
    transform: translateY(-2px);
}

/* --- Glassmorphic Card Mixin Concept --- */
.glass-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(212, 165, 184, 0.15);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: padding 0.3s ease;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: #5c3c4a;
    letter-spacing: 0.5px;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}
.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #6b525e;
}
.nav-links a:hover, .nav-links a.active {
    color: #d4a5b8;
}
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: #5c3c4a;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    background: url('https://images.unsplash.com/photo-1518156677180-95a2893f3e9f?q=80&w=1920') no-repeat center center/cover;
    position: relative;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;left: 0;width: 100%;height: 100%;
    background: linear-gradient(135deg, rgba(255, 243, 246, 0.85) 0%, rgba(255, 255, 255, 0.7) 100%);
}
.hero-card {
    position: relative;
    max-width: 800px;
    text-align: center;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(212, 165, 184, 0.2);
}
.hero-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #d4a5b8;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
}
.hero-card h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
}
.hero-card p {
    font-size: 1.1rem;
    color: #6b525e;
    margin-bottom: 35px;
}
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* --- Stats Section --- */
.stats-section {
    padding: 40px 20px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}
.stats-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 11fr);
    gap: 20px;
}
.stat-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.8);
    text-align: center;
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(212, 165, 184, 0.1);
}
.stat-item h3 {
    font-size: 2.5rem;
    color: #d4a5b8;
    margin-bottom: 5px;
}
.stat-item p {
    font-size: 0.9rem;
    color: #7a636e;
    font-weight: 500;
}

/* --- Tentang Saya & Timeline --- */
.about-section {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
}
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: start;
}
.about-img-box {
    position: relative;
    border-radius: 20px;
}
.profile-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(212, 165, 184, 0.25);
    border: 8px solid rgba(255, 255, 255, 0.5);
    object-fit: cover;
    aspect-ratio: 4/5;
}
.about-text h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
}
.about-text p {
    color: #6b525e;
    margin-bottom: 30px;
}
.timeline-title {
    margin-bottom: 20px;
    border-left: 4px solid #d4a5b8;
    padding-left: 10px;
}
.timeline {
    position: relative;
    border-left: 2px solid rgba(212, 165, 184, 0.4);
    padding-left: 25px;
}
.timeline-item {
    position: relative;
    margin-bottom: 30px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d4a5b8;
    border: 2px solid #fff;
}
.timeline-item .date {
    font-size: 0.85rem;
    font-weight: 600;
    color: #d4a5b8;
}
.timeline-item h5 {
    font-size: 1.1rem;
    margin: 3px 0;
}

/* --- Keahlian --- */
.skills-section {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.skill-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255,255,255,0.7);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(212, 165, 184, 0.2);
}
.skill-icon {
    font-size: 2rem;
    color: #d4a5b8;
    margin-bottom: 20px;
}
.skill-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

/* --- Portfolio Showcase & Filter --- */
.portfolio-section {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
}
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}
.filter-btn {
    background: transparent;
    border: 1px solid rgba(212, 165, 184, 0.5);
    padding: 8px 22px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    color: #6b525e;
    transition: all 0.3s ease;
}
.filter-btn:hover, .filter-btn.active {
    background: #d4a5b8;
    color: white;
    border-color: #d4a5b8;
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.portfolio-item {
    overflow: hidden;
    transition: all 0.4s ease;
}
.portfolio-item.hide {
    display: none;
}
.portfolio-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    aspect-ratio: 16/9;
}
.portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.portfolio-item:hover .portfolio-thumb img {
    transform: scale(1.05);
}

/* Play button overlay */
.play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border: none; border-radius: 50%;
    font-size: 1.2rem; color: #d4a5b8;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, background 0.3s;
}
.play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #fff;
    color: #c394a7;
}

.vlab-tag {
    position: absolute;
    top: 15px; left: 15px;
    background: rgba(92, 60, 74, 0.85);
    color: #fff; padding: 4px 12px;
    border-radius: 12px; font-size: 0.75rem;
    backdrop-filter: blur(5px);
}
.portfolio-info {
    padding: 25px;
}
.portfolio-info span {
    font-size: 0.8rem;
    color: #d4a5b8;
    font-weight: 600;
    text-transform: uppercase;
}
.portfolio-info h3 {
    margin: 5px 0 10px;
    font-size: 1.3rem;
}
.portfolio-info p {
    font-size: 0.9rem;
    color: #7a636e;
    margin-bottom: 15px;
}
.karya-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: #d4a5b8;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.karya-link:hover {
    color: #5c3c4a;
}

/* --- Research Section --- */
.research-section {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
}
.research-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.research-item {
    display: flex;
    gap: 25px;
    padding: 30px;
    align-items: flex-start;
}
.research-icon {
    font-size: 1.8rem;
    color: #d4a5b8;
    background: rgba(212, 165, 184, 0.1);
    padding: 15px;
    border-radius: 12px;
}
.journal-tag {
    font-size: 0.8rem;
    color: #d4a5b8;
    font-weight: 600;
}
.research-text h3 {
    font-size: 1.2rem;
    margin: 5px 0 10px;
    font-weight: 600;
    line-height: 1.4;
}
.research-text p {
    font-size: 0.95rem;
    color: #6b525e;
}

/* --- Contact Section --- */
.contact-section {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
}
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}
.contact-info {
    padding: 40px;
}
.contact-info h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}
.info-details {
    margin: 30px 0;
}
.info-details p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.info-details i {
    color: #d4a5b8;
}
.social-icons {
    display: flex;
    gap: 15px;
}
.social-icons a {
    width: 40px; height: 40px;
    background: white;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #5c3c4a;
    box-shadow: 0 4px 10px rgba(212, 165, 184, 0.2);
    border: 1px solid rgba(255,255,255,0.8);
}
.social-icons a:hover {
    background: #d4a5b8;
    color: white;
    transform: translateY(-3px);
}
.contact-form {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(212, 165, 184, 0.3);
    border-radius: 12px;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #4a3e43;
    transition: border 0.3s;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: #d4a5b8;
    background: rgba(255, 255, 255, 0.8);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(212, 165, 184, 0.2);
    font-size: 0.9rem;
    color: #7a636e;
}

/* --- Video Modal Popup --- */
.video-modal {
    position: fixed;
    top:0; left:0; width:100%; height:100%;
    background: rgba(92, 60, 74, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s ease;
}
.video-modal.show {
    opacity: 1; pointer-events: auto;
}
.modal-content {
    position: relative;
    width: 90%; max-width: 800px;
    background: #000;
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}
.close-modal {
    position: absolute;
    top: 10px; right: 20px;
    color: #fff; font-size: 2rem;
    cursor: pointer; z-index: 10;
}
.video-container {
    position: relative; padding-bottom: 56.25%; height: 0;
}
.video-container iframe {
    position: absolute; top:0; left:0; width:100%; height:100%;
}

/* --- Responsive 100% (Mobile/Tablet) --- */
@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .contact-container {
        grid-template-columns: 1fr;
    }
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-card h1 { font-size: 2.2rem; }
    .nav-links {
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px; gap: 20px;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        display: none;
    }
    .nav-links.active { display: flex; }
    .menu-toggle { display: block; }
}