/* ==========================================================================
   1. BASE STYLES & VARIABLES
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

/* Color Variables - BLACKPINK THEME */
:root {
    --bg-main: #121212;         /* BG Utama (Abu-abu sangat gelap) */
    --bg-card: #1e1e1e;         /* BG Kartu (Abu-abu gelap) */
    --text-light: #ffffff;      /* Teks Paling Terang */
    --text-normal: #cccccc;   /* Teks Normal (Abu-abu terang) */
    --accent-pink: #ff94e0;     /* Aksen Pink Utama */
    --accent-pink-dark: #ff76d8;/* Pink lebih gelap untuk hover */
    --text-on-pink: #000000;    /* Teks di atas tombol pink */
    --border-color: #333333;    /* Warna Border */
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-normal);
    background-color: var(--bg-main);
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   2. NAVIGATION
   ========================================================================== */

.navbar {
    background-color: #000000;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--accent-pink);
    transition: color 0.3s ease;
}

.nav-logo a:hover {
    color: var(--text-light);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--accent-pink);
    color: var(--text-on-pink);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-light);
    transition: all 0.3s ease-in-out;
}

/* ==========================================================================
   3. HERO SECTION (HOME PAGE)
   ========================================================================== */

.hero {
    flex-grow: 1; /* Fills remaining vertical space */
    background: var(--bg-main);
    color: var(--text-light);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-pink);
    font-weight: 600;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-pink);
    color: var(--text-on-pink);
    font-weight: 700;
}

.btn-primary:hover {
    background-color: var(--accent-pink-dark);
    color: var(--text-on-pink);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 118, 216, 0.3);
}

.btn-secondary {
    color: var(--text-light);
    border-color: var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--bg-main);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ==========================================================================
   5. GENERAL SECTION & CARD STYLES
   ========================================================================== */

.about-section,
.projects-section,
.dashboard-section,
.contact-section {
    padding: 6rem 0;
    background-color: var(--bg-main);
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-header h1 {
    font-size: 5rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.section-header p {
    font-size: 1.3rem;
    color: var(--text-normal);
    max-width: 600px;
    margin: 0 auto;
}

/* Universal Card Style */
.skill-card,
.project-card,
.dashboard-card,
.social-card {
    background-color: var(--bg-card);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover,
.project-card:hover,
.social-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   6. PAGE SPECIFIC STYLES
   ========================================================================== */

/* --- ABOUT PAGE --- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: center;
}

.about-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--accent-pink);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about-text h2,
.skills-section h2 {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-card {
    padding: 2rem;
    text-align: center;
}

.skill-card h3 {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* --- PROJECTS PAGE --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.project-content h3 {
    color: var(--text-light);
    margin-top: 0;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background-color: #333;
    color: var(--text-light);
    border: 1px solid #444;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-links {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.project-card-more {
    border: 2px dashed var(--accent-pink);
    color: var(--text-light);
    background-color: transparent;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-card-more:hover {
    border-style: solid;
    background-color: rgba(255, 148, 224, 0.05);
}

.project-content-more h3 {
    font-size: 1.6rem;
}

.github-icon {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-pink);
    transition: transform 0.3s ease;
}

.project-card-more:hover .github-icon {
    transform: translateX(10px);
}

/* --- DASHBOARD PAGE --- */
.dashboard-slider {
    position: relative;
    width: 95%;
    max-width: 1366px;
    margin: 0 auto;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.dashboard-card {
    min-width: 100%;
    flex-shrink: 0;
    box-sizing: border-box;
    padding: 2rem;
    text-align: center;
}

.tableauPlaceholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
}

.tableauPlaceholder .tableauViz {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

.slider-button {
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    line-height: 20px;
    transition: background-color 0.3s ease;
}

.slider-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.slider-button.prev { left: 20px; }
.slider-button.next { right: 20px; }

/* --- CONTACT PAGE --- */
.contact-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.contact-intro {
    margin-bottom: 3rem;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.social-card {
    padding: 2.5rem 1.5rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon svg {
    width: 32px;
    height: 32px;
}

.social-icon.linkedin { background-color: #0077b5; color: var(--text-light); }
.social-icon.github { background-color: #333; color: var(--text-light); }
.social-icon.email { background-color: var(--accent-pink); color: var(--bg-main); }
.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: var(--text-light);
}

.resume-button-container {
    margin-top: 4rem;
}

.btn-resume {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-resume svg {
    transition: transform 0.3s ease;
}

.btn-resume:hover svg {
    transform: translateX(5px);
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */

.footer {
    background-color: #000000;
    color: var(--text-light);
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

.footer p {
    margin: 0;
    opacity: 0.8;
}

/* ==========================================================================
   8. ANIMATIONS & RESPONSIVE DESIGN
   ========================================================================== */

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

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

@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px; /* Adjust based on navbar height */
        flex-direction: column;
        background-color: #000000;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.2);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .about-content { grid-template-columns: 1fr; text-align: center; }
    .projects-grid, .skills-grid { grid-template-columns: 1fr; }
    .social-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}