/* --- GenGold Design System: Gold, White, & Deep Black --- */
:root {
    --gold-gradient: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);
    --gold-primary: #D4AF37;
    --gold-dim: rgba(212, 175, 55, 0.1);
    --gold-glow: rgba(212, 175, 55, 0.25);

    --bg-dark: #050505;
    --bg-darker: #080808;
    --bg-card: rgba(255, 255, 255, 0.03);

    --text-pure: #ffffff;
    --text-body: #d1d1d1;
    --text-muted: #b0b0b0;

    --border-light: rgba(255, 255, 255, 0.1);
    --font-mono: 'JetBrains Mono', monospace;
}

/* --- Base & Scrollbar --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background: var(--bg-dark);
    color: var(--text-body);
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
    border-radius: 10px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

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

.glass {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-light);
}

.gold-text {
    color: var(--gold-primary);
}

/* --- Typography --- */
.gold-gradient-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Header & Navigation (Semi-Transparent Fixed) --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 20px 0;
    /* Semi transparan sejak awal agar konten di bawah tetap terbaca */
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header.scrolled {
    background: rgba(5, 5, 5, 0.98);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* Ukuran Logo Proporsional */
.logo img {
    height: 28px;
    width: auto;
    margin-right: 12px;
}

.white-text {
    color: #fff;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #fff;
    font-size: 0.9rem;
    transition: 0.3s;
    opacity: 0.8;
}

.nav-menu a:hover {
    opacity: 1;
    color: var(--gold-primary);
}

/* --- Buttons --- */
.btn-primary {
    background: var(--gold-gradient);
    color: #000 !important;
    padding: 14px 36px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(191, 149, 63, 0.4);
}

.btn-secondary {
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary) !important;
    padding: 14px 36px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s ease;
    background: transparent;
    text-align: center;
}

.btn-secondary:hover {
    background: var(--gold-soft);
    transform: translateY(-3px);
}

.btn-gold-outline {
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary) !important;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s;
    animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.btn-gold-outline:hover {
    background: var(--gold-primary);
    color: #000 !important;
}

/* --- Hero Section --- */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-tag {
    border: 1px solid var(--gold-primary);
    padding: 6px 18px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 25px;
    font-size: 0.75rem;
    color: var(--gold-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--gold-dim);
}

#hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 25px;
    color: #fff;
}

#hero p {
    max-width: 750px;
    margin: 0 auto 40px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-stats {
    display: flex;
    gap: 50px;
    margin-top: 45px;
}

.stat-item h3 {
    font-size: 2.2rem;
    color: var(--gold-primary);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.glass-frame {
    padding: 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 25px;
}

.glass-frame img {
    width: 100%;
    border-radius: 15px;
    display: block;
    filter: grayscale(0.2);
}

/* --- Services --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.service-card {
    padding: 60px 40px;
    border-radius: 25px;
    transition: 0.4s ease;
    text-align: left;
    border: 1px solid var(--border-light);
}

.service-card:hover {
    border-color: var(--gold-primary);
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.06);
}

.service-card i {
    font-size: 3.2rem;
    margin-bottom: 30px;
    display: block;
    color: var(--gold-primary);
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 18px;
    color: #fff;
}

/* --- Portfolio --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.project-card {
    border-radius: 25px;
    overflow: hidden;
    background: var(--bg-darker);
    cursor: pointer;
    transition: 0.4s ease;
    border: 1px solid var(--border-light);
}

.project-thumb {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s ease;
}

.project-card:hover .project-thumb img {
    transform: scale(1.1);
}

.project-card:hover {
    border-color: var(--gold-primary);
}

.project-info {
    padding: 35px;
}

.project-info .tag {
    color: var(--gold-primary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-bottom: 10px;
    display: block;
}

.link-gold {
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* --- Contact --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding: 80px;
    border-radius: 40px;
    margin-top: 40px;
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 25px;
    color: #fff;
}

.contact-list {
    list-style: none;
    margin-top: 40px;
}

.contact-list li {
    margin-bottom: 25px;
    display: flex;
    gap: 20px;
    align-items: center;
    color: var(--text-body);
}

.contact-list i {
    font-size: 1.2rem;
    color: var(--gold-primary);
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    color: #fff;
    outline: none;
    transition: 0.3s;
    font-family: inherit;
}

.contact-form input:focus {
    border-color: var(--gold-primary);
    background: rgba(255, 255, 255, 0.07);
}

/* --- Detail Page Specific --- */
.glass-detail {
    border-radius: 40px;
    padding: 60px;
    margin-top: 40px;
    border: 1px solid var(--border-light);
}

.project-category-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gold-dim);
    border: 1px solid var(--gold-primary);
    border-radius: 50px;
    color: var(--gold-primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.project-title-main {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: #fff;
    line-height: 1.2;
}

.image-wrapper-premium {
    margin: 50px 0;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    position: relative;
}

.detail-hero-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.detail-layout-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 70px;
    align-items: start;
}

.sub-title-gold {
    font-size: 1.5rem;
    color: #fff;
    margin: 40px 0 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.sub-title-gold i {
    color: var(--gold-primary);
    font-size: 1.2rem;
}

.project-description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-body);
}

.premium-feature-list {
    list-style: none;
}

.premium-feature-list li {
    margin-bottom: 18px;
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 1.05rem;
}

.premium-feature-list li i {
    color: var(--gold-primary);
    font-size: 1.1rem;
}

/* --- Gallery --- */
.project-gallery-section {
    margin-top: 80px;
}

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

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    cursor: zoom-in;
    position: relative;
    height: 250px;
}

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

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

.gallery-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    opacity: 0;
    transition: 0.3s;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* --- Tech Sidebar --- */
.sidebar-card-tech {
    padding: 40px;
    border-radius: 30px;
    border: 1px solid var(--border-light);
}

.sidebar-card-tech h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-info-small {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.tech-stack-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    padding: 8px 16px;
    border-radius: 10px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.tech-tag code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-pure);
    font-weight: 500;
}

.tech-tag:hover {
    background: var(--gold-dim);
    border-color: var(--gold-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--gold-glow);
}

.tech-tag:hover code {
    color: var(--gold-primary);
}

.sidebar-divider {
    border: 0;
    border-top: 1px solid var(--border-light);
    margin: 30px 0;
}

.btn-primary-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--gold-gradient);
    color: #000 !important;
    padding: 18px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: 0.3s;
}

.btn-primary-action:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px var(--gold-glow);
}

/* --- Footer Area --- */
footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-darker);
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
    text-decoration: none;
    color: #fff;
}

/* Ukuran Logo Footer */
.footer-logo img {
    height: 22px;
    width: auto;
    margin-bottom: 10px;
    opacity: 0.8;
}

.footer-logo span {
    color: var(--gold-primary);
}

.white-muted-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.4rem;
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--gold-primary);
    transform: translateY(-5px);
}

/* --- Loading Spinner --- */
.loading-container {
    text-align: center;
    padding: 100px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--gold-soft);
    border-top-color: var(--gold-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- Mobile Menu --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: #fff;
    border-radius: 10px;
    transition: 0.3s;
}

@media (max-width: 992px) {

    .about-grid,
    .contact-wrapper,
    .detail-layout-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .glass-detail {
        padding: 40px 30px;
    }

    .detail-hero-img {
        height: 350px;
    }

    .contact-wrapper {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-darker);
        flex-direction: column;
        padding: 100px 40px;
        transition: 0.4s ease;
        z-index: 999;
        border-left: 1px solid var(--border-light);
    }

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

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    #hero h1 {
        font-size: 2.8rem;
    }
}