/* =========================================VARIABLES & RESET========================================= */
:root {
    --c-ink: #0a0a0a;
    --c-concrete: #f4f4f4;
    --c-slate: #555555;
    --c-accent: #ffb700;
    /* Construction Yellow/Gold */

    --f-head: 'Oswald', sans-serif;
    --f-body: 'Manrope', sans-serif;
    --f-mono: 'JetBrains Mono', monospace;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --grid-gap: 2rem;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--c-concrete);
    color: var(--c-ink);
    font-family: var(--f-body);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Prevent scrolling when mobile menu is open */
body.menu-open {
    overflow: hidden;
}

/* Texture Overlay: Blueprint Grain */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

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

ul {
    list-style: none;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
           UTILITIES & LAYOUT
           ========================================= */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4vw;
}

/* Typography System */
h1,
h2,
h3 {
    font-family: var(--f-head);
    text-transform: uppercase;
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.02em;
}

.text-huge {
    font-size: clamp(3rem, 8vw, 8rem);
}

.text-xl {
    font-size: clamp(2rem, 4vw, 4rem);
}

.text-lg {
    font-size: 1.5rem;
}

.text-mono {
    font-family: var(--f-mono);
    font-size: 0.85rem;
    letter-spacing: -0.02em;
    color: var(--c-slate);
}

.text-technical {
    font-family: var(--f-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    color: var(--c-ink);
}

.grid-breaker {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--grid-gap);
}

@media (min-width: 1024px) {
    .grid-breaker {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

/* =========================================
           NAVIGATION (Floating Minimal)
           ========================================= */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: background 0.3s, padding 0.3s;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.brand-mark {
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    border: 1px solid var(--c-ink);
    padding: 8px 16px;
    background: #fff;
    z-index: 1002;
    /* Above menu overlay */
}

/* Desktop Menu (Hidden on Mobile) */
.desktop-menu {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-menu {
        display: flex;
        gap: 2rem;
    }

    .desktop-menu a {
        font-family: var(--f-mono);
        font-size: 0.9rem;
        text-transform: uppercase;
        font-weight: 600;
    }

    .desktop-menu a:hover {
        color: var(--c-accent);
    }
}

/* Hamburger Button */
.menu-btn {
    display: block;
    width: 40px;
    height: 30px;
    position: relative;
    z-index: 1002;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
}

.menu-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--c-ink);
    position: absolute;
    transition: 0.3s ease-in-out;
    transform-origin: center;
}

.menu-line:nth-child(1) {
    top: 0;
}

.menu-line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-line:nth-child(3) {
    bottom: 0;
}

/* Menu Active State (Transform to X) */
body.menu-open .menu-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

body.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

body.menu-open .menu-line:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--c-ink);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    transform: translateY(-100%);
    transition: transform 0.6s var(--ease-out-expo);
}

body.menu-open .mobile-nav-overlay {
    transform: translateY(0);
}

.mobile-nav-links {
    text-align: center;
    margin-bottom: 2rem;
}

.mobile-nav-links a {
    display: block;
    font-family: var(--f-head);
    font-size: 3rem;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 1rem;
    position: relative;
}

.mobile-nav-links a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 0;
    background-color: var(--c-accent);
    transition: width 0.3s ease;
}

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

.mobile-meta {
    margin-top: 2rem;
    font-family: var(--f-mono);
    font-size: 0.8rem;
    color: var(--c-slate);
    text-align: center;
    opacity: 0.6;
}

/* Tombol Tutup Mobile */
.close-menu-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-family: var(--f-mono);
    text-transform: uppercase;
    padding: 10px 30px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.close-menu-btn:hover {
    background: #fff;
    color: var(--c-ink);
    border-color: #fff;
}

/* =========================================
           HERO SECTION (The Blueprint)
           ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 130px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    margin-bottom: 2rem;
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--c-accent);
}

.hero-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    border-top: 1px solid var(--c-ink);
    padding-top: 1rem;
    flex-wrap: wrap;
}

.meta-item .label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--c-slate);
}

.meta-item .value {
    font-family: var(--f-mono);
    font-weight: 700;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--f-head);
    text-transform: uppercase;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--c-accent);
    padding-bottom: 5px;
    transition: all 0.3s;
}

.hero-cta:hover {
    color: var(--c-accent);
    letter-spacing: 2px;
}

/* Abstract Image Composition */
.hero-visual {
    position: relative;
    height: 80vh;
    width: 100%;
    overflow: hidden;
    border-top: 1px solid var(--c-ink);
    border-left: 1px solid var(--c-ink);
}

.hero-img {
    width: 100%;
    height: 100%;
    filter: grayscale(100%) contrast(1.1);
    transition: transform 1.5s var(--ease-out-expo);
}

.hero-visual:hover .hero-img {
    transform: scale(1.05);
}

/* Grid Overlay on Image */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--c-ink) 1px, transparent 1px),
        linear-gradient(90deg, var(--c-ink) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    pointer-events: none;
}

.floating-tag {
    position: absolute;
    bottom: 40px;
    right: -20px;
    background: var(--c-accent);
    color: var(--c-ink);
    padding: 15px;
    font-family: var(--f-mono);
    font-size: 0.8rem;
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.2);
    z-index: 3;
}

/* =========================================
           SPECS SECTION (Technical Data)
           ========================================= */
.bidang-section {
    padding: 6rem 0;
}

.specs-section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--c-ink);
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem 2rem;
    margin-top: 4rem;
}

.spec-item h4 {
    font-family: var(--f-mono);
    font-size: 0.8rem;
    color: var(--c-slate);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.spec-item .number {
    font-family: var(--f-head);
    font-size: 3.5rem;
    line-height: 0.85;
    color: var(--c-ink);
}

.spec-item .unit {
    font-family: var(--f-mono);
    font-size: 1.5rem;
    color: var(--c-accent);
}

/* =========================================
           ACCORDION SECTION (Bidang Teknis)
           ========================================= */
.accordion-container {
    display: flex;
    flex-direction: column;
}

.accordion-item {
    border-bottom: 1px solid #eaeaea;
    position: relative;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    cursor: pointer;
    transition: background 0.3s;
}

.accordion-header:hover {
    padding-left: 10px;
}

/* Header Left Section: Number + Title */
.acc-left {
    display: flex;
    align-items: baseline;
    gap: 20px;
}

.acc-num {
    font-family: var(--f-mono);
    color: var(--c-accent);
    font-size: 1.2rem;
    font-weight: 700;
}

.acc-title {
    font-family: var(--f-head);
    font-size: 1.5rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.accordion-item.active .acc-title {
    color: var(--c-ink);
}

.accordion-item.active .acc-num {
    color: var(--c-accent);
}

/* Icon Arrow Toggle */
.acc-icon i {
    font-size: 1.5rem;
    transition: transform 0.4s var(--ease-out-expo);
}

/* Rotasi icon panah ke bawah saat aktif */
.accordion-item.active .acc-icon i {
    transform: rotate(90deg);
    color: var(--c-accent);
}

/* Body Content (Hidden by default) */
.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease-out-expo), opacity 0.5s ease;
    opacity: 0;
}

.accordion-item.active .accordion-body {
    max-height: 600px;
    /* Nilai arbitrer cukup besar */
    opacity: 1;
}

.acc-content {
    padding-bottom: 2rem;
    padding-right: 2rem;
}

.acc-desc {
    font-size: 1rem;
    color: var(--c-slate);
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.acc-link {
    font-family: var(--f-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--c-ink);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.acc-link:hover {
    color: var(--c-accent);
}

/* =========================================
           FEATURED PROJECT (Editorial Layout)
           ========================================= */
.project-section {
    padding: 6rem 0;
    overflow: hidden;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 900px) {
    .project-grid {
        grid-template-columns: 40% 60%;
        align-items: end;
    }
}

.project-info p {
    font-size: 1.1rem;
    color: var(--c-slate);
    margin-bottom: 2rem;
}

.project-visual {
    position: relative;
}

.project-visual img {
    width: 100%;
    filter: grayscale(100%);
    transition: filter 0.5s;
}

.project-visual:hover img {
    filter: grayscale(0%);
}

/* =========================================
           FOOTER
           ========================================= */
footer {
    background: var(--c-ink);
    color: #fff;
    padding: 6rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 6rem;
}

.footer-brand h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--c-accent);
}

.footer-links li {
    margin-bottom: 1rem;
    font-family: var(--f-mono);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--c-accent);
    padding-left: 10px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-family: var(--f-mono);
    font-size: 0.8rem;
    color: #666;
}

/* =========================================
           ANIMATIONS
           ========================================= */
.reveal-text {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 1s var(--ease-out-expo), opacity 1s var(--ease-out-expo);
}

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

@media (max-width: 768px) {
    .text-huge {
        font-size: 3.5rem;
    }

    .accordion-header {
        padding: 1.2rem 0;
    }

    .acc-title {
        font-size: 1.2rem;
    }

    .hero {
        padding-top: 120px;
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero-visual {
        height: 50vh;
    }
}