/* Base Styles & Variables - Editorial Brutalism */
:root {
    --bg-main: #4A5340; /* Olive Green */
    --bg-accent: #855C4A; /* Warm Brown */
    --text-main: #E8E3D9; /* Cream/Off-white */
    --text-dark: #1f221a;
    
    /* Accents */
    --primary: #E8E3D9; 
    --secondary: #855C4A; 
    --accent: #4A5340;    
    
    /* Glassmorphism */
    --glass-bg: rgba(74, 83, 64, 0.6);
    --glass-border: rgba(232, 227, 217, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif; /* Body font */
    scroll-behavior: smooth;
}

body {
    background: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
}

/* Glassmorphism Reusable Class */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 0; /* Brutalism prefers sharp edges */
    box-shadow: var(--glass-shadow);
    padding: 40px;
}

/* Brutalist Navigation */
.brutalist-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 4%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background: transparent;
    transition: all 0.3s ease;
}
.brutalist-nav.scrolled {
    background: var(--bg-main);
    border-bottom: 1px solid var(--glass-border);
}
.brutalist-nav .logo {
    font-family: 'Anton', sans-serif;
    font-size: 1.8rem;
    color: var(--text-main);
    letter-spacing: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.start-project {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--text-main);
    padding-bottom: 2px;
}
.nav-right i {
    font-size: 1.5rem;
    cursor: pointer;
}
.menu-toggle { display: none; }
nav ul { display: none; } /* Hide default nav list for now, focus on brutalist top bar */

/* Global Sections */
section {
    padding: 100px 5%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
section h2 {
    font-family: 'Anton', sans-serif;
    font-size: 3rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-main);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Brutalist Hero Section */
.brutalist-hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    padding: 0;
    margin: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-main);
}
.hero-bg-brown {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 30%;
    width: 30%;
    background: var(--bg-accent);
    z-index: 0;
}

/* Giant Text (Layer 1 - Behind Image) */
.hero-giant-text {
    position: absolute;
    top: 35%; /* Posisikan lebih ke atas agar tidak menabrak teks kecil di bawah */
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
    width: 100%;
}
.hero-giant-text .text-top,
.hero-giant-text .text-bottom {
    font-family: 'Anton', sans-serif;
    font-size: 14vw;
    line-height: 1; /* Diperlebar jaraknya */
    color: var(--text-main);
    text-transform: uppercase;
    white-space: nowrap;
}
.hero-giant-text .text-top {
    margin-bottom: 5vh; /* Jarak antara DHAFFA ARDISA dan NETWORK ENGINEER diperlebar lagi */
}

/* Portrait Image (Layer 2 - Middle) */
.hero-portrait {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    height: 85vh;
    width: 450px; /* Lebar diperkecil agar tidak menabrak teks di kiri/kanan */
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
}
.hero-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Otomatis memotong bagian samping/bawah yang berlebih */
    object-position: top center; /* Fokus ke area atas (kepala/dada) supaya kaki tidak terlihat */
}

/* Content Blocks (Layer 3 - Front) */
.hero-content-left {
    position: absolute;
    left: 4%;
    bottom: 15%;
    z-index: 3;
    max-width: 280px;
}
.hero-content-right {
    position: absolute;
    right: 4%;
    bottom: 15%;
    z-index: 3;
    max-width: 300px;
    display: flex;
    align-items: flex-end;
    gap: 20px;
}

.hero-content-left p,
.hero-content-right p {
    font-size: 0.75rem;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-talk {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 25px;
    padding: 12px 20px;
    background: #1f221a;
    border: 2px solid var(--text-main);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    width: 180px;
    transition: 0.3s;
}
.btn-talk:hover {
    background: var(--text-main);
    color: var(--bg-main);
}
.btn-talk .arrow { font-size: 1.2rem; font-weight: 300; }

/* Badges */
.badge-wrapper {
    background: var(--text-main);
    color: var(--bg-main);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Anton', sans-serif;
    font-size: 5rem;
    line-height: 1;
    border: 4px solid #111;
    transform: rotate(15deg);
    position: absolute;
    left: -160px; /* Digeser jauh ke kiri agar tidak menabrak teks */
    top: -90px;   /* Diturunkan sedikit agar lebih pas di pundak */
}
.badge-small-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.badge-pill {
    background: #2a2d24;
    color: var(--text-main);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Marquee Ticker */
.marquee-ticker {
    width: 100%;
    background: var(--bg-main);
    padding: 15px 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
    position: relative;
    z-index: 10;
}
.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 20s linear infinite;
}
.ticker-content span {
    font-family: 'Anton', sans-serif;
    font-size: 1.5rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 2px;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

/* Skills Marquee Animation */
.skills-marquee-container {
    width: 100vw;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 0;
}
.skills-track {
    display: inline-block;
    white-space: nowrap;
}
.track-left {
    animation: scrollLeft 30s linear infinite;
}
.track-right {
    animation: scrollRight 30s linear infinite;
}
.track-left-fast {
    animation: scrollLeft 20s linear infinite;
}
.skill-pill {
    display: inline-block;
    padding: 15px 40px;
    margin: 0 10px;
    background: var(--bg-accent); /* Menggunakan warna coklat agar mencolok */
    border: 2px solid var(--text-main);
    color: var(--text-main);
    font-family: 'Anton', sans-serif;
    font-size: 2.5rem;
    text-transform: uppercase;
    border-radius: 100px; /* Bentuk pil panjang */
    transition: 0.3s;
}
.skill-pill:hover {
    background: var(--text-main);
    color: var(--bg-main);
    transform: scale(1.05);
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.33%); } /* Karena ada 3 set data (1 asli + 2 duplikat), pergeseran 1 set adalah 33.33% */
}
@keyframes scrollRight {
    0% { transform: translateX(-33.33%); }
    100% { transform: translateX(0); }
}

    box-shadow: 0 0 10px var(--primary);
    position: relative;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}
.avatar-container {
    position: relative;
    width: 320px;
    height: 320px;
}
.avatar-card {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30,41,59,0.8), rgba(15,23,42,0.8));
    backdrop-filter: blur(10px);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: var(--text-light);
    box-shadow: inset 0 0 20px rgba(255,255,255,0.02), 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.5s ease;
}
.avatar-container:hover .avatar-card {
    border-color: var(--primary);
    box-shadow: inset 0 0 30px rgba(56,189,248,0.1), 0 20px 40px rgba(0,0,0,0.5), 0 0 20px rgba(56,189,248,0.2);
    color: var(--primary);
}
.floating-badge {
    position: absolute;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 12px;
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    animation: float-badge 3s ease-in-out infinite alternate;
}
.badge-1 { top: -10px; left: -10px; animation-delay: 0s; }
.badge-2 { bottom: 20px; right: -20px; animation-delay: -1s; }
.badge-3 { top: 50%; left: -30px; animation-delay: -2s; }
.badge-4 { top: -20px; right: 20px; animation-delay: -0.5s; }

@keyframes float-badge {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-15px); }
}

/* Photo Placeholder */
.photo-placeholder {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 90px;
    height: 90px;
    background: rgba(15, 23, 42, 0.95);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.5), inset 0 0 15px rgba(56, 189, 248, 0.2);
    backdrop-filter: blur(5px);
    z-index: 10;
    animation: pulse-glow 2s infinite alternate;
    cursor: pointer;
}
.photo-placeholder i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}
.photo-placeholder span {
    font-size: 0.6rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
@keyframes pulse-glow {
    0% { box-shadow: 0 0 20px rgba(56, 189, 248, 0.4), inset 0 0 10px rgba(56, 189, 248, 0.1); border-color: var(--primary); }
    100% { box-shadow: 0 0 35px rgba(56, 189, 248, 0.8), inset 0 0 20px rgba(56, 189, 248, 0.4); border-color: var(--accent); }
}

/* About Section */
.about {
    align-items: center;
}
.about-card {
    max-width: 800px;
    text-align: center;
}
.about-card p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}
.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}
.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(56,189,248,0.3);
}
.stat-item p {
    margin-bottom: 0;
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Skills Section */
.skills {
    align-items: center;
}
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
}
.skill-item {
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.03);
    cursor: pointer;
    min-width: 120px;
}
.skill-item:hover {
    transform: translateY(-8px);
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.skill-item i {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.1));
}
.skill-item span {
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: color 0.3s;
}
.skill-item:hover span {
    color: var(--text-main);
}

/* Projects Section */
.projects {
    align-items: center;
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1100px;
}
.project-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    background: rgba(30, 41, 59, 0.2);
}
.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}
.project-img {
    height: 180px;
    background: linear-gradient(135deg, rgba(30,41,59,0.8), rgba(15,23,42,0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.project-card:nth-child(2) .project-img { color: var(--secondary); }
.project-card:nth-child(3) .project-img { color: var(--accent); }

.project-info {
    padding: 25px;
}
.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-main);
}
.project-info p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.6;
}
.tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.tags span {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--text-light);
}

/* Footer Section */
.footer {
    padding: 60px 5%;
    text-align: center;
    min-height: auto;
    border-top: 1px solid rgba(255,255,255,0.02);
}
.footer-content {
    max-width: 800px;
    margin: 0 auto 40px auto;
}
.footer h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}
.footer p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 0.95rem;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.03);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 400;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}
.social-btn:hover {
    transform: translateY(-3px);
    background: rgba(255,255,255,0.08);
    color: var(--text-main);
    border-color: rgba(255,255,255,0.1);
}
.copyright {
    color: var(--text-light);
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Bottom Footer */
.bottom-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.small-socials {
    display: flex;
    gap: 20px;
}
.small-socials a {
    color: var(--text-light);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}
.small-socials a:hover {
    color: var(--primary);
    transform: translateY(-3px);
    text-shadow: 0 0 10px var(--primary);
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
        gap: 50px;
    }
    .hero-content h2 {
        text-align: center;
    }
    .cta-buttons {
        justify-content: center;
    }
    .avatar-container {
        width: 250px;
        height: 250px;
    }
    .stats {
        flex-direction: column;
        gap: 20px;
    }
}
@media (max-width: 950px) {
    nav {
        padding: 15px 5%;
        flex-wrap: wrap;
    }
    nav.scrolled {
        padding: 10px 5%;
    }
    .menu-toggle {
        display: block;
        order: 2;
        margin-left: auto;
        margin-right: 15px;
    }
    .btn-nav {
        order: 3;
        padding: 6px 16px;
        font-size: 0.85rem;
    }
    nav ul {
        display: none;
        width: 100%;
        order: 4;
        flex-direction: column;
        background: rgba(10, 15, 29, 0.95);
        backdrop-filter: blur(15px);
        margin-top: 15px;
        padding: 20px 0;
        border-radius: 12px;
        gap: 20px;
        border: 1px solid rgba(255,255,255,0.05);
    }
    nav ul.active {
        display: flex;
    }
    nav ul li {
        text-align: center;
        width: 100%;
    }
    nav ul li a {
        font-size: 1.1rem;
        display: block;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}
