/* --- 1. FONTS & VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;700&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root {
   
    --bg-body: #0a0a0a;
    /* Hitam Pekat */
    --bg-card: #141414;
    /* Hitam Abu */
    --primary: #ffffff;
    --secondary: #a0a0a0;

    
    --gold-grad: linear-gradient(135deg, #D4AF37 0%, #F2C94C 100%);
    --gold-text: linear-gradient(to right, #D4AF37, #F2C94C);

    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.4);

    --ease: cubic-bezier(0.23, 1, 0.32, 1);
    
}

/* --- 2. GLOBAL RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-body);
    color: var(--primary);
    line-height: 1.8;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: -0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* Utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 120px 0;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 80px;
    background: var(--gold-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: table;
    margin-left: auto;
    margin-right: auto;
}

/* --- 3. NAVBAR (GLASSMORPHISM) --- */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(15px);
    /* Efek Buram Kaca */
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 15px 30px;
    z-index: 1000;
    transition: all 0.4s var(--ease);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo span {
    color: #D4AF37;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background: #D4AF37;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
}

/* --- 4. HERO SECTION (CINEMATIC) --- */
#hero {
    height: 100vh;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), var(--bg-body)),
        url('https://images.unsplash.com/photo-1555862115-4d0465365538?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

/* --- UPDATE HERO SECTION LAYOUT --- */

.hero-wrapper {
    display: flex;
    align-items: center;
    /* Posisi vertikal tengah */
    justify-content: space-between;
    /* Jarak antar elemen */
    height: 100%;
    width: 100%;
    padding-top: 80px;
    /* Kompensasi tinggi Navbar */
}

/* Styling Kolom Teks */
.hero-text {
    flex: 1;
    max-width: 600px;
    text-align: left;
    padding-right: 30px;
    z-index: 2;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 15px;
    background: linear-gradient(to right, #ffffff, #dcdcdc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text h2 {
    font-size: 1.2rem;
    color: #D4AF37;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-image {
    flex: 0.8;
    display: flex;
    justify-content: flex-end;
    /* Rata kanan */
    position: relative;
    z-index: 2;
}

.image-frame {
    width: 380px;
    height: 480px;
    position: relative;
    border-radius: 20px;
    /* Sudut melengkung */
    overflow: hidden;
    border: 2px solid rgba(212, 175, 55, 0.5);
    /* Garis emas transparan */
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.15);
    /* Efek Glow Emas halus */
    transition: transform 0.5s ease;
}

.image-frame {
    animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    z-index: 1;
}

/* --- RESPONSIVE ADJUSTMENT (HP/TABLET) --- */
@media (max-width: 968px) {
    .hero-wrapper {
        flex-direction: column-reverse;
        /* Foto di atas, teks di bawah */
        justify-content: center;
        text-align: center;
        padding-top: 100px;
    }

    .hero-text {
        text-align: center;
        padding-right: 0;
        margin-top: 30px;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    .hero-image {
        justify-content: center;
        width: 100%;
        margin-bottom: 20px;
    }

    .image-frame {
        width: 280px;
        height: 350px;
    }
}

/* Modern Gradient Button */
.btn {
    display: inline-block;
    padding: 16px 40px;
    background: var(--gold-grad);
    color: #000;
    font-weight: 700;
    border-radius: 50px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4);
}

.profile-wrapper {
    display: flex;
    gap: 50px;
    align-items: center;
    /* Vertikal center */
}

/* Styling Kolom Foto */
.profile-photo-col {
    flex: 0 0 350px;
}

.profile-img-box {
    width: 100%;
    height: 400px;
    /* Tinggi foto profil */
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    /* Shadow gelap */
    position: relative;
}

.profile-img-box::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 15px;
    pointer-events: none;
}

.profile-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-img-box:hover img {
    transform: scale(1.05);
}

/* Styling Kolom Info (Kanan) */
.profile-info-col {
    flex: 1;
}

/* Kartu Identitas */
.identity-card {
    background: linear-gradient(145deg, #1a1a1a, #141414);
    border-left: 4px solid #D4AF37;
    /* Garis emas di kiri */
    padding: 30px;
    border-radius: 0 15px 15px 0;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.identity-card h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 5px;
    font-family: 'Playfair Display', serif;
}

.badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    color: #D4AF37;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Tabel Identitas */
.identity-table {
    width: 100%;
    border-collapse: collapse;
}

.identity-table td {
    padding: 8px 0;
    font-size: 1rem;
    color: #ccc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.identity-table tr:last-child td {
    border-bottom: none;
}

.identity-table .label {
    width: 160px;
    color: #D4AF37;
    font-weight: 500;
}

.identity-table i {
    width: 25px;
    text-align: center;
    margin-right: 5px;
}

/* Teks Narasi */
.profile-text p {
    font-size: 1.1rem;
    color: #a0a0a0;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

/* --- RESPONSIVE PROFIL (HP) --- */
@media (max-width: 968px) {
    .profile-wrapper {
        flex-direction: column;
        /* Foto di atas, teks di bawah */
        gap: 30px;
    }

    .profile-photo-col {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
        /* Batasi lebar foto di HP */
        margin: 0 auto;
    }

    .profile-img-box {
        height: 350px;
    }

    .identity-card {
        padding: 20px;
        border-radius: 10px;
        border-left: none;
        border-top: 4px solid #D4AF37;
    }

    .identity-table .label {
        width: 130px;
        font-size: 0.9rem;
    }
}

/* --- 6. VISI MISI (GRID) --- */
#visi-misi {
    background: var(--bg-card);
    position: relative;
}

.vm-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-body);
    box-shadow: var(--shadow);
}

.vm-content {
    padding: 80px 60px;
}

.vm-box h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #D4AF37;
}

.vm-box li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: var(--secondary);
}

.vm-box li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #D4AF37;
}

.vm-image {
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.vm-grid:hover .vm-image {
    filter: grayscale(0%);
}

/* --- EXPERIENCE SECTION --- */
#experience {
    background: var(--white);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--white);
    border: 4px solid var(--accent-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
    text-align: right;
}

.right {
    left: 50%;
}

.left::after {
    right: -10px;
}

.right::after {
    left: -10px;
}

.content-box {
    padding: 20px 30px;
    background: var(--bg-card);
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    color: #F2C94C;
}

.content-box h3 {
    font-size: 1.2rem;
}

.content-box span {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

/* --- SKILLS --- */
#skills {
    background: var(--primary-color);
    color: var(--white);
}

#skills .section-title {
    color: var(--white);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.skill-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.skill-card h4 {
    color: var(--white);
    font-weight: 600;
}

/* --- GALLERY --- */
#galeri {
    background: var(--bg-light);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.8);
    color: var(--white);
    padding: 15px;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .caption {
    transform: translateY(0);
}

/* --- 10. FOOTER --- */
footer {
    background: #050505;
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 40px;
}

.social-links a {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
}

.social-links a:hover {
    background: #D4AF37;
    border-color: #D4AF37;
    color: #000;
    transform: translateY(-5px);
}

/* --- ANIMATION UTILS --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s var(--ease);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .navbar {
        top: 0;
        width: 100%;
        border-radius: 0;
        padding: 15px 20px;
        background: rgba(0, 0, 0, 0.9);
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        background: #000;
        padding: 50px;
        gap: 30px;
        align-items: center;
        justify-content: flex-start;
        transition: 0.5s var(--ease);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .vm-grid {
        grid-template-columns: 1fr;
    }

    .vm-image {
        height: 300px;
        order: -1;
    }

    .vm-content {
        padding: 40px 20px;
    }

    .timeline::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 0;
    }

    .timeline-item::after {
        left: 11px;
    }

    .left {
        text-align: left;
    }

    .right {
        left: 0;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 50px;
    }
}
