/*
Theme Name: Rakean Studio
Theme URI: https://rakean.studio
Author: Rakean Studio
Description: One-page digital agency theme — full width, SEO-ready, fast.
Version: 1.0.0
License: Private
Text Domain: rakean
*/

@font-face {
    font-family: 'Clash Display';
    src: url('assets/fonts/clash-display-600.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'Clash Display';
    src: url('assets/fonts/clash-display-700.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'General Sans';
    src: url('assets/fonts/general-sans-400.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Cabinet Grotesk';
    src: url('assets/fonts/CabinetGrotesk-Bold.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}

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

:root {
    --bg: #0d0d0d;
    --card: #111;
    --card-border: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
}

html, body {
    background: var(--bg);
    color: #eee;
    font-family: 'General Sans', sans-serif;
    scroll-behavior: smooth;
    height: auto;
    overflow-x: clip;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
    width: 100%;
}

.site-nav {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    width: calc(100% - 48px);
    max-width: 960px;
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.logo-link {
    text-decoration: none;
    font-family: 'Clash Display', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #eee;
    letter-spacing: -0.02em;
}

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

.nav-desktop-link {
    font-family: 'General Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 6px;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

.nav-desktop-link:hover {
    color: #eee;
    background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
    font-family: 'General Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 8px;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #eee;
    border-color: rgba(255, 255, 255, 0.2);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 101;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 2px;
    background: #eee;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hamburger:focus-visible,
.nav-link:focus-visible {
    outline: 2px solid #eee;
    outline-offset: 4px;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: #0d0d0d;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.nav-link {
    font-family: 'Clash Display', sans-serif;
    font-size: clamp(28px, 7vw, 58px);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    letter-spacing: -0.02em;
    line-height: 1.1;
    transition: color 0.25s ease;
}

.nav-link:hover {
    color: #eee;
}

@media (max-width: 768px) {
    .nav-desktop { display: none; }
    .nav-cta { display: none; }
    .hamburger { display: flex; }
}

body.single {
    text-align: left;
}

body.single .post-main {
    background: #0d0d0d;
    min-height: 100vh;
    padding-top: 80px;
    text-align: left;
}

body.single .post-hero {
    padding: 80px 48px 64px;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    text-align: left;
}

body.single .post-meta-top {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

body.single .post-category {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #a8ff5a;
    border: 1px solid rgba(168, 255, 90, 0.2);
    padding: 4px 12px;
    border-radius: 999px;
}

body.single .post-date,
body.single .post-read {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.04em;
}

body.single .post-date::before,
body.single .post-read::before {
    content: '·';
    margin-right: 16px;
    opacity: 0.3;
}

body.single .post-title {
    font-family: 'Cabinet Grotesk', sans-serif !important;
    font-size: clamp(36px, 6vw, 72px) !important;
    font-weight: 700 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.03em !important;
    color: #eee !important;
    margin-bottom: 24px !important;
    text-align: left !important;
}

body.single .post-excerpt {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.42);
    line-height: 1.7;
    font-weight: 400;
    max-width: 640px;
    text-align: left;
}

body.single .post-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08) 20%, rgba(255,255,255,0.08) 80%, transparent);
    width: 100%;
}

body.single .post-body {
    padding: 64px 48px;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    text-align: left;
}

body.single .post-content {
    font-family: 'General Sans', sans-serif !important;
    font-size: 17px !important;
    line-height: 1.85 !important;
    color: rgba(255, 255, 255, 0.75) !important;
    text-align: left !important;
}

body.single .post-content * {
    text-align: left !important;
    font-family: 'General Sans', sans-serif !important;
    white-space: normal !important;
    word-break: normal !important;
}

body.single .post-content p {
    margin-bottom: 28px !important;
    font-size: 17px !important;
    line-height: 1.85 !important;
    color: rgba(255, 255, 255, 0.75) !important;
    display: block !important;
}

body.single .post-content p:last-child {
    margin-bottom: 0;
}

body.single .post-content strong,
body.single .post-content b {
    color: #eee !important;
    font-weight: 600 !important;
}

body.single .post-content em,
body.single .post-content i {
    color: rgba(255, 255, 255, 0.55) !important;
    font-style: italic !important;
}

body.single .post-content h2 {
    font-family: 'Clash Display', sans-serif !important;
    font-size: clamp(24px, 3vw, 36px) !important;
    font-weight: 700 !important;
    color: #eee !important;
    letter-spacing: -0.02em !important;
    line-height: 1.15 !important;
    margin: 56px 0 20px !important;
    text-align: left !important;
}

body.single .post-content h3 {
    font-family: 'Cabinet Grotesk', sans-serif !important;
    font-size: clamp(20px, 2.5vw, 28px) !important;
    font-weight: 600 !important;
    color: #eee !important;
    letter-spacing: -0.01em !important;
    margin: 40px 0 16px !important;
    text-align: left !important;
}

body.single .post-content a {
    color: #a8ff5a !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(168, 255, 90, 0.3) !important;
    transition: border-color 0.2s ease !important;
}

body.single .post-content a:hover {
    border-color: #a8ff5a !important;
}

body.single .post-content blockquote {
    border-left: 2px solid rgba(255, 255, 255, 0.15) !important;
    padding: 4px 0 4px 28px !important;
    margin: 36px 0 !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 18px !important;
    font-style: italic !important;
}

body.single .post-content code {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    color: #a8ff5a !important;
}

body.single .post-content pre {
    background: #141414 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 24px !important;
    overflow-x: auto !important;
    margin: 32px 0 !important;
}

body.single .post-content pre code {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

body.single .post-content img {
    width: 100% !important;
    border-radius: 12px !important;
    margin: 32px 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

body.single .post-content ul,
body.single .post-content ol {
    padding-left: 24px !important;
    margin-bottom: 28px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

body.single .post-content li {
    color: rgba(255, 255, 255, 0.7) !important;
}

body.single .post-content hr {
    border: none !important;
    height: 1px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    margin: 48px 0 !important;
}

body.single .post-footer {
    padding: 48px 48px 80px;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

body.single .post-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

body.single .post-tag {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 14px;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s ease;
}

body.single .post-tag:hover {
    color: #eee;
    border-color: rgba(255, 255, 255, 0.3);
}

body.single .post-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    padding: 40px;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
}

body.single .post-nav-item {
    display: flex;
}

body.single .post-nav-item.next {
    justify-content: flex-end;
}

body.single .post-nav-item.empty {
    pointer-events: none;
}

body.single .post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    max-width: 280px;
}

body.single .post-nav-item.prev .post-nav-link {
    align-items: flex-start;
}

body.single .post-nav-item.next .post-nav-link {
    align-items: flex-end;
    text-align: right;
}

body.single .nav-direction {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.2s ease;
}

body.single .nav-title {
    font-family: 'Clash Display', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.3;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

body.single .post-nav-link:hover .nav-direction,
body.single .post-nav-link:hover .nav-title {
    color: #eee;
}

body.single .post-nav-home {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

body.single .post-nav-home:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #eee;
}

@media (max-width: 768px) {
    body.single .post-hero { padding: 60px 24px 48px; }
    body.single .post-body { padding: 48px 24px; }
    body.single .post-footer { padding: 40px 24px 64px; }
    body.single .post-nav {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        padding: 28px;
        gap: 16px;
    }
    body.single .post-nav-home {
        grid-column: 1 / -1;
        justify-self: center;
        order: -1;
    }
    body.single .post-nav-item.next {
        justify-content: flex-end;
    }
    body.single .post-content { font-size: 16px !important; }
}

.hero,
.projects,
.stats-section,
.about,
.services-wrapper,
.testimonials,
.how-work,
.blog-home,
.contact {
    padding-top: 48px;
    padding-bottom: 48px;
}

.projects { padding-top: 48px; }
.stats-section { padding-top: 32px; }

.projects-header,
.work-header,
.blog-header,
.services-header {
    margin-bottom: 28px;
}

.slide-image { height: 400px; }

.slide-info { padding: 28px 28px; }

.stat-card {
    background: #131313 !important;
    border-color: rgba(255,255,255,0.06) !important;
    padding: 32px 36px !important;
    min-height: 200px !important;
    border-radius: 20px !important;
}

.stat-value {
    font-size: clamp(56px, 8vw, 88px) !important;
}

.stat-card .stat-label {
    font-size: 18px !important;
    margin-left: 36px !important;
}

.stat-info {
    margin-left: 36px !important;
}

.stats-grid {
    gap: 12px !important;
    margin-bottom: 32px !important;
}

.testi-card {
    background: #131313 !important;
    border-color: rgba(255,255,255,0.06) !important;
}

.card {
    border-color: rgba(255,255,255,0.06) !important;
    margin-bottom: 180px !important;
}

.work-slide {
    background: #131313 !important;
    border-color: rgba(255,255,255,0.06) !important;
}

.blog-card {
    background: #131313 !important;
    border-color: rgba(255,255,255,0.06) !important;
}

.slide {
    background: #131313 !important;
}

.slide-info {
    background: #131313 !important;
}

.form-wrap {
    background: #111 !important;
    border-color: rgba(255,255,255,0.08) !important;
}

body.single .post-nav {
    background: #111 !important;
    border-color: rgba(255,255,255,0.06) !important;
}
/* Mengecilkan judul post agar tidak terlalu dominan */
body.single .post-title {
    font-size: clamp(28px, 4vw, 42px) !important; /* Diperkecil dari 72px */
    line-height: 1.2 !important;
    margin-top: 10px !important;
}

/* Styling Featured Image agar rapi di tengah */
body.single .post-featured-image {
    width: 100%;
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.single .post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Memastikan hero inner tetap konsisten di tengah */
body.single .post-hero-inner {
    max-width: 860px;
    margin: 0 auto;
}

/* Layout Wrapper */
.single-project-wrapper {
    padding-top: 120px; /* Jarak dari fixed nav */
}

.project-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 320px; /* Kiri fleksibel, Kanan fixed */
    gap: 64px;
    padding: 0 24px;
}

/* Gambar Utama */
.project-featured-img img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

/* Sidebar Styling */
.project-sidebar-right {
    position: relative;
}

.project-info-card {
    position: sticky;
    top: 120px;
    background: var(--card);
    border: 1px solid var(--card-border);
    padding: 32px;
    border-radius: 20px;
}

.sidebar-heading {
    font-family: 'Clash Display', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #eee;
}

.info-group {
    margin-bottom: 24px;
}

.info-group label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 6px;
}

.info-group p {
    font-size: 15px;
    font-weight: 500;
    color: #eee;
}

.result-highlight {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-weight: 600;
}

.project-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
    .project-container {
        grid-template-columns: 1fr;
    }
    .project-sidebar-right {
        order: -1; /* Sidebar pindah ke atas di mobile kalau mau info dulu baru konten */
    }
}
.project-card-vibe:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 255, 90, 0.3) !important;
}

.project-card-vibe img {
    transition: transform 0.5s ease;
}

.project-card-vibe:hover img {
    transform: scale(1.05);
}
/* PAGE LAYOUT (biar nyambung sama single) */
body.page .page-main {
    padding-top: 120px;
}

body.page .page-hero {
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 24px 40px;
}

body.page .page-title {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

body.page .page-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.5);
    max-width: 600px;
}

body.page .page-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

body.page .page-content p {
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255,255,255,0.75);
    margin-bottom: 24px;
}

body.page .page-content h2 {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 28px;
    margin: 48px 0 16px;
}

body.page .page-content ul {
    padding-left: 20px;
    margin-bottom: 24px;
}
