/* ============================================
   STYLE.CSS — Main Stylesheet
   Alifiacrm Studio
   Modern + Minimalist + Refined Neo-Brutalism
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
    --brand-primary: #102B67;
    --brand-secondary: #ED1737;
    --brand-accent: #F7A817;

    --brand-dark: #101828;
    --brand-light: #F8F9FC;

    --text-primary: #111827;
    --text-secondary: #667085;

    --surface: #FFFFFF;
    --surface-alt: #F8F9FC;
    --border: #101828;

    --shadow-brutal: 5px 5px 0 rgba(16, 24, 40, 0.95);
    --shadow-brutal-sm: 3px 3px 0 rgba(16, 24, 40, 0.95);
    --shadow-brutal-hover: 2px 2px 0 rgba(16, 24, 40, 0.95);

    --font-primary: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --transition: 0.2s ease;
}

/* ---------- Dark Mode ---------- */
[data-theme="dark"] {
    --brand-dark: #F8F9FC;
    --brand-light: #101828;

    --text-primary: #F8F9FC;
    --text-secondary: #98A2B3;

    --surface: #1A1F2E;
    --surface-alt: #232939;

    --border: #F8F9FC;

    --shadow-brutal: 5px 5px 0 rgba(248, 249, 252, 0.3);
    --shadow-brutal-sm: 3px 3px 0 rgba(248, 249, 252, 0.3);
    --shadow-brutal-hover: 2px 2px 0 rgba(248, 249, 252, 0.3);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--brand-secondary);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* ---------- Utility ---------- */
.section-padding {
    padding: 100px 0;
}

.section-padding-sm {
    padding: 60px 0;
}

.bg-brand-light {
    background-color: var(--surface-alt);
}

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

.text-brand-secondary {
    color: var(--brand-secondary);
}

.text-brand-accent {
    color: var(--brand-accent);
}

/* ---------- Section Heading ---------- */
.section-heading {
    margin-bottom: 3.5rem;
}

.section-number {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-secondary);
    background: var(--brand-secondary);
    color: #fff;
    padding: 4px 10px;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.section-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.section-heading h2 {
    margin-top: 0.5rem;
}

.section-heading p {
    max-width: 600px;
    margin-top: 1rem;
}

/* ---------- Container Override ---------- */
.container {
    max-width: 1200px;
}

/* ---------- Navbar ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--surface);
    border-bottom: 2px solid var(--border);
    padding: 0.75rem 0;
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(16, 24, 40, 0.08);
}

.navbar-brand img {
    height: 36px;
    width: auto;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.navbar .nav-link {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    padding: 0.5rem 0.85rem;
    border: 2px solid transparent;
    transition: all var(--transition);
    letter-spacing: 0.01em;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
    background: rgba(16, 43, 103, 0.05);
}

.navbar-toggler {
    border: 2px solid var(--border);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}

.navbar-toggler:focus {
    box-shadow: var(--shadow-brutal-sm);
}

/* CTA Button in Navbar */
.btn-nav-cta {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    background: var(--brand-primary);
    color: #fff;
    border: 2px solid var(--border);
    box-shadow: var(--shadow-brutal-sm);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
    white-space: nowrap;
}

.btn-nav-cta:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--border);
    color: #fff;
    background: var(--brand-primary);
}

/* ---------- Offcanvas Mobile Menu ---------- */
@media (min-width: 992px) {
    #mobileMenu {
        display: none !important;
        visibility: hidden !important;
    }
}

.offcanvas {
    border-left: 2px solid var(--border);
    background: var(--surface);
}

.offcanvas-header {
    border-bottom: 2px solid var(--border);
    padding: 1rem 1.25rem;
}

.offcanvas-title {
    font-family: var(--font-heading);
    font-weight: 800;
}

.offcanvas .nav-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}

.offcanvas .nav-link:hover {
    color: var(--brand-secondary);
}

.offcanvas-body .btn-nav-cta {
    width: 100%;
    margin-top: 1rem;
    text-align: center;
    display: block;
}

/* ---------- Hero ---------- */
.hero {
    padding: 120px 0 80px;
    background: var(--surface);
    position: relative;
    overflow: hidden;
}

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

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brand-secondary);
    border: 2px solid var(--brand-secondary);
    padding: 6px 14px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero h1 .text-gradient {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    max-width: 520px;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.hero-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.hero-role {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 6px 14px;
    border: 2px solid var(--border);
    background: var(--surface);
    color: var(--text-primary);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper {
    position: relative;
    width: 380px;
    height: 380px;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid var(--border);
    box-shadow: var(--shadow-brutal);
}

.hero-shape-1 {
    position: absolute;
    top: -20px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: var(--brand-primary);
    border: 3px solid var(--border);
    z-index: -1;
}

.hero-shape-2 {
    position: absolute;
    bottom: -15px;
    right: -25px;
    width: 80px;
    height: 80px;
    background: var(--brand-secondary);
    border: 3px solid var(--border);
    z-index: -1;
}

.hero-shape-3 {
    position: absolute;
    top: 40%;
    right: -50px;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 5rem;
    color: var(--brand-accent);
    opacity: 0.15;
    line-height: 1;
}

.hero-decoration {
    position: absolute;
    top: 30px;
    right: 60px;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    opacity: 0.4;
}

/* ---------- Buttons ---------- */
.btn-brutal {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.75rem 1.75rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-brutal-sm);
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.btn-brutal:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--border);
    color: inherit;
}

.btn-brutal-primary {
    background: var(--brand-primary);
    color: #fff;
}

.btn-brutal-primary:hover {
    background: #0d2252;
    color: #fff;
}

.btn-brutal-secondary {
    background: var(--brand-secondary);
    color: #fff;
}

.btn-brutal-secondary:hover {
    background: #c41230;
    color: #fff;
}

.btn-brutal-outline {
    background: var(--surface);
    color: var(--text-primary);
}

.btn-brutal-outline:hover {
    background: var(--brand-primary);
    color: #fff;
}

.btn-brutal-accent {
    background: var(--brand-accent);
    color: var(--brand-dark);
}

.btn-brutal-accent:hover {
    background: #e09710;
    color: var(--brand-dark);
}

.btn-sm {
    font-size: 0.8rem;
    padding: 0.5rem 1.25rem;
}

.btn-lg {
    font-size: 1rem;
    padding: 1rem 2.25rem;
}

/* ---------- Cards ---------- */
.brutal-card {
    background: var(--surface);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-brutal-sm);
    transition: all var(--transition);
    overflow: hidden;
    position: relative;
}

.brutal-card:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--border);
}

.brutal-card .card-img-top {
    border-bottom: 2px solid var(--border);
}

.brutal-card .card-body {
    padding: 1.5rem;
}

.brutal-card .card-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.brutal-card .card-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Card Variants */
.card-featured {
    border-color: var(--brand-primary);
}

.card-featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--brand-primary);
}

/* ---------- Badge ---------- */
.badge-brutal {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 2px solid var(--border);
    background: var(--surface);
    color: var(--text-primary);
}

.badge-primary {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
}

.badge-secondary {
    background: var(--brand-secondary);
    color: #fff;
    border-color: var(--brand-secondary);
}

.badge-accent {
    background: var(--brand-accent);
    color: var(--brand-dark);
    border-color: var(--brand-accent);
}

/* ---------- Stats ---------- */
.stat-card {
    text-align: center;
    padding: 2rem 1rem;
    border: 2px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-brutal-sm);
}

.stat-number {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--brand-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

/* ---------- Filter Tabs ---------- */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.filter-tab {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 8px 18px;
    border: 2px solid var(--border);
    background: var(--surface);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition);
    border-radius: var(--radius-sm);
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
}

/* ---------- Project Card ---------- */
.project-card {
    background: var(--surface);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-brutal-sm);
    overflow: hidden;
    transition: all var(--transition);
}

.project-card:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--border);
}

.project-card .project-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 2px solid var(--border);
}

.project-card .project-info {
    padding: 1.5rem;
}

.project-card .project-category {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-secondary);
    margin-bottom: 0.5rem;
}

.project-card .project-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.project-card .project-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.project-card .project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.project-card .project-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--brand-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.project-card .project-link:hover {
    color: var(--brand-secondary);
}

/* ---------- Product Card ---------- */
.product-card {
    background: var(--surface);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-brutal-sm);
    overflow: hidden;
    transition: all var(--transition);
}

.product-card:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--border);
}

.product-card .product-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-bottom: 2px solid var(--border);
}

.product-card .product-info {
    padding: 1.5rem;
}

.product-card .product-category {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-accent);
    margin-bottom: 0.5rem;
}

.product-card .product-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-card .product-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.product-card .product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* ---------- Service Card ---------- */
.service-card {
    background: var(--surface);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-brutal-sm);
    padding: 2rem;
    transition: all var(--transition);
    position: relative;
}

.service-card:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--border);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid var(--border);
    background: var(--brand-primary);
    color: #fff;
    margin-bottom: 1.25rem;
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.service-deliverables {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.service-deliverables li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.25rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.service-deliverables li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--brand-secondary);
    font-weight: 700;
}

/* ---------- Blog Card ---------- */
.blog-card {
    background: var(--surface);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-brutal-sm);
    overflow: hidden;
    transition: all var(--transition);
}

.blog-card:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--border);
}

.blog-card .blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid var(--border);
}

.blog-card .blog-info {
    padding: 1.5rem;
}

.blog-card .blog-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.blog-card .blog-category {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-secondary);
}

.blog-card .blog-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.blog-card .blog-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.blog-card .blog-title a:hover {
    color: var(--brand-secondary);
}

.blog-card .blog-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.blog-card .blog-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--brand-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.blog-card .blog-link:hover {
    color: var(--brand-secondary);
}

/* ---------- Gallery Grid ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border: 2px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

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

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 40, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.gallery-overlay i {
    font-size: 2rem;
    color: #fff;
}

/* ---------- Video Card ---------- */
.video-card {
    background: var(--surface);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-brutal-sm);
    overflow: hidden;
    transition: all var(--transition);
}

.video-card:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--border);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--brand-secondary);
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}

.video-play-btn:hover {
    background: var(--brand-primary);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn i {
    color: #fff;
    font-size: 1.25rem;
    margin-left: 3px;
}

.video-info {
    padding: 1.25rem;
    border-top: 2px solid var(--border);
}

.video-category {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-accent);
    margin-bottom: 0.35rem;
}

.video-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.video-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ---------- Skills ---------- */
.skill-group {
    border: 2px solid var(--border);
    padding: 1.5rem;
    background: var(--surface);
    box-shadow: var(--shadow-brutal-sm);
}

.skill-group-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.skill-tag {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.78rem;
    padding: 5px 12px;
    border: 2px solid var(--border);
    background: var(--surface-alt);
    color: var(--text-primary);
}

.skill-tag.expert {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
}

.skill-tag.frequent {
    background: var(--brand-secondary);
    color: #fff;
    border-color: var(--brand-secondary);
}

/* ---------- Timeline ---------- */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8px;
    width: 3px;
    height: 100%;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
    padding-left: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 4px;
    width: 16px;
    height: 16px;
    background: var(--brand-primary);
    border: 3px solid var(--border);
}

.timeline-year {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.25rem;
    color: var(--brand-primary);
    margin-bottom: 0.25rem;
}

.timeline-role {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.timeline-org {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ---------- Contact ---------- */
.contact-info-card {
    border: 2px solid var(--border);
    padding: 1.5rem;
    background: var(--surface);
    box-shadow: var(--shadow-brutal-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition);
}

.contact-info-card:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--border);
}

.contact-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 2px solid var(--border);
    background: var(--brand-primary);
    color: #fff;
}

.contact-info-card h4 {
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.contact-info-card p {
    font-size: 0.85rem;
    margin: 0;
}

/* Contact Form */
.contact-form {
    border: 2px solid var(--border);
    padding: 2rem;
    background: var(--surface);
    box-shadow: var(--shadow-brutal-sm);
}

.contact-form .form-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.contact-form .form-control {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
    transition: box-shadow var(--transition);
}

.contact-form .form-control:focus {
    box-shadow: var(--shadow-brutal-sm);
    border-color: var(--brand-primary);
    outline: none;
}

.contact-form textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

/* ---------- Social Links ---------- */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border) !important;
    background: var(--surface);
    color: var(--brand-primary) !important;
    font-size: 1.15rem;
    transition: all var(--transition);
}

.social-link:hover {
    background: var(--brand-primary) !important;
    color: #fff !important;
    border-color: var(--brand-primary) !important;
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--border) !important;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--brand-dark);
    color: #fff;
    border-top: 3px solid var(--border);
    padding: 60px 0 30px;
}

.footer h5 {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    color: #fff;
}

.footer p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    padding: 0.3rem 0;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--brand-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
    margin: 0;
}

.footer-tagline {
    font-family: var(--font-heading);
    font-weight: 600;
    font-style: italic;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.footer .social-link {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.65);
}

.footer .social-link:hover {
    background: var(--brand-secondary);
    border-color: var(--brand-secondary);
    color: #fff;
}

/* ---------- CTA Section ---------- */
.cta-section {
    background: var(--brand-primary);
    color: #fff;
    border: 3px solid var(--border);
    box-shadow: var(--shadow-brutal);
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    margin: 0 auto 2rem;
}

.cta-section .btn-brutal {
    border-color: #fff;
}

/* ---------- Lightbox Modal ---------- */
.lightbox-modal .modal-content {
    background: transparent;
    border: none;
}

.lightbox-modal .modal-body {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-modal img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border: 3px solid var(--border);
}

.lightbox-modal .btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: var(--surface);
    border: 2px solid var(--border);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Video Modal */
.video-modal .modal-content {
    background: transparent;
    border: none;
}

.video-modal .modal-body {
    padding: 0;
}

.video-modal .ratio {
    aspect-ratio: 16/9;
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--brand-primary);
    color: #fff;
    border: 2px solid var(--border);
    box-shadow: var(--shadow-brutal-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--border);
    background: var(--brand-secondary);
}

/* ---------- Page Header ---------- */
.page-header {
    padding: 80px 0 50px;
    background: var(--surface-alt);
    border-bottom: 2px solid var(--border);
}

.page-header h1 {
    margin-bottom: 0.75rem;
}

.page-header p {
    font-size: 1.1rem;
    max-width: 600px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.breadcrumb-item a {
    color: var(--brand-primary);
    font-weight: 600;
}

.breadcrumb-item.active {
    color: var(--text-secondary);
}

/* ---------- Article Content ---------- */
.article-content {
    max-width: 760px;
    margin: 0 auto;
}

.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.article-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.article-content img {
    border: 2px solid var(--border);
    margin: 2rem 0;
}

.article-content blockquote {
    border-left: 4px solid var(--brand-secondary);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--surface-alt);
    font-style: italic;
    color: var(--text-primary);
}

.article-content pre {
    background: var(--brand-dark);
    color: #e2e8f0;
    padding: 1.5rem;
    border: 2px solid var(--border);
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.article-content code {
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 0.9em;
}

.article-content ul, .article-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.article-content ul li {
    list-style: disc;
}

.article-content ol li {
    list-style: decimal;
}

/* ---------- Decorative Elements ---------- */
.deco-number {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 0.75rem;
    color: var(--brand-accent);
    letter-spacing: 0.1em;
}

.deco-block {
    display: inline-block;
    padding: 4px 12px;
    background: var(--brand-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
}

.deco-plus {
    font-weight: 900;
    color: var(--brand-secondary);
}

/* ---------- Reveal Animation ---------- */
/* Konten hanya disembunyikan bila JavaScript aktif (kelas `js` ditambahkan
   oleh header). Tanpa JS / tanpa IntersectionObserver, konten tetap tampil. */
.js .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Isi artikel/berita TIDAK pernah disembunyikan oleh animasi reveal.
   Konten utama harus selalu terbaca, bahkan bila observer tidak terpicu
   (mis. jendela browser sangat pendek atau artikel sangat panjang). */
.js .reveal.article-content,
.js .reveal.post-content,
.js .reveal.entry-content,
.js .reveal.blog-content {
    opacity: 1;
    transform: none;
    transition: none;
}

@media (prefers-reduced-motion: reduce) {
    .js .reveal,
    .js .reveal.revealed {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================
   HOMEPAGE V2 - WELCOME, MARQUEE, STORY SLIDER
   ============================================ */

/* ---------- Welcome Hero (full background) ---------- */
.welcome-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 73px);
    padding: 100px 0 120px;
    background-color: var(--brand-dark);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

.welcome-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(16, 43, 103, 0.94) 0%, rgba(16, 24, 40, 0.78) 52%, rgba(16, 24, 40, 0.42) 100%),
        linear-gradient(to top, rgba(16, 24, 40, 0.65), rgba(16, 24, 40, 0) 45%);
    z-index: 1;
}

.welcome-hero--plain {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
}

.welcome-hero--plain .welcome-hero-overlay {
    background: linear-gradient(115deg, rgba(16, 43, 103, 0.55) 0%, rgba(16, 24, 40, 0.2) 100%);
}

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

.welcome-hero-content {
    max-width: 900px;
}

.welcome-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.7);
    padding: 6px 14px;
    margin-bottom: 1.75rem;
    backdrop-filter: blur(2px);
}

.welcome-hero h1 {
    color: #fff;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.04;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 24px rgba(16, 24, 40, 0.35);
}

.welcome-hero-text {
    font-size: 1.15rem;
    line-height: 1.75;
    max-width: 660px;
    margin-bottom: 2.25rem;
    color: rgba(255, 255, 255, 0.84);
}

.welcome-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.welcome-hero .btn-brutal-outline {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.welcome-hero .btn-brutal-outline:hover {
    background: #fff;
    color: var(--brand-dark);
}

.welcome-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    z-index: 3;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    color: #fff;
    text-decoration: none;
    opacity: 0.85;
}

.welcome-scroll-cue:hover {
    color: var(--brand-accent);
    opacity: 1;
}

.welcome-scroll-cue i {
    font-size: 1.15rem;
    animation: welcomeBounce 1.8s ease-in-out infinite;
}

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

    50% {
        transform: translateY(7px);
    }
}

/* ---------- Running Text (marquee) ---------- */
.welcome-marquee {
    background: var(--brand-primary);
    border-top: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
    overflow: hidden;
    padding: 14px 0;
}

.welcome-marquee-track {
    display: flex;
    width: max-content;
    animation: welcomeMarquee 32s linear infinite;
}

.welcome-marquee:hover .welcome-marquee-track {
    animation-play-state: paused;
}

.welcome-marquee-group {
    display: flex;
    flex-shrink: 0;
}

.welcome-marquee-item {
    flex-shrink: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brand-accent);
    white-space: nowrap;
    padding-right: 2.5rem;
}

@keyframes welcomeMarquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ---------- Highlight Story Slider ---------- */
.story-section {
    background: var(--surface);
}

.story-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.story-header h2 {
    margin: 0.25rem 0 0.75rem;
}

.story-header p {
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0;
}

.story-controls {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
    padding-bottom: 0.25rem;
}

.story-nav {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
    background: var(--surface);
    color: var(--text-primary);
    box-shadow: var(--shadow-brutal-sm);
    transition: all var(--transition);
    cursor: pointer;
}

.story-nav:hover:not(:disabled) {
    background: var(--brand-primary);
    color: #fff;
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--border);
}

.story-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}

.story-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    padding: 4px 4px 1.25rem;
    margin: 0 -4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.story-slider::-webkit-scrollbar {
    display: none;
}

.story-card {
    flex: 0 0 clamp(280px, 42%, 430px);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-brutal-sm);
    transition: all var(--transition);
}

.story-card:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--border);
}

.story-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-bottom: 2px solid var(--border);
    background: var(--brand-light);
}

.story-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.story-card:hover .story-media img {
    transform: scale(1.04);
}

.story-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--brand-accent);
    color: var(--brand-dark);
    border: 2px solid var(--border);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
}

.story-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    padding: 1.5rem;
}

.story-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.story-title {
    font-size: 1.3rem;
    line-height: 1.28;
    margin: 0;
}

.story-title a {
    color: inherit;
    text-decoration: none;
}

.story-title a:hover {
    color: var(--brand-primary);
}

.story-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
}

.story-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--brand-primary);
    text-decoration: none;
}

.story-link:hover {
    color: var(--brand-secondary);
}

.story-footer {
    margin-top: 2rem;
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    .welcome-marquee-track,
    .welcome-scroll-cue i {
        animation: none;
    }
}