/* =========================================================================
   Ariiq Islam Alfajri — Portfolio
   Design system: "Blueprint" — enterprise-architecture drafting aesthetic.
   Tailwind (CDN) handles utilities; this file holds the signature pieces
   that Tailwind's default utility set can't express: the grid backdrop,
   corner-bracket cards, the connector timeline, and nav/scroll states.
   ========================================================================= */

:root {
    --ink: #0B1220;
    --ink2: #121B2E;
    --blueprint: #3B6FE0;
    --blueprint2: #5B8DEF;
    --amber: #E8A33D;
    --paper: #F5F3EE;
    --paperline: #E4E0D6;
}

html {
    scroll-behavior: smooth;
}

body {
    font-feature-settings: "ss01";
}

/* ---- Header / nav ---------------------------------------------------- */

#site-header {
    background: transparent;
}

#site-header.is-scrolled {
    background: rgba(11, 18, 32, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 12px 24px -12px rgba(0, 0, 0, 0.5);
}

.nav-link {
    position: relative;
    padding-bottom: 2px;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: var(--amber);
    transition: width 0.25s ease;
}

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

.node-mark {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--amber);
    box-shadow: 0 0 0 3px rgba(232, 163, 61, 0.25);
    display: inline-block;
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background: #fff;
    display: block;
    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);
}

.social-btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(245, 243, 238, 0.75);
    transition: all 0.2s ease;
}

.social-btn:hover {
    border-color: var(--amber);
    color: var(--ink);
    background: var(--amber);
}

/* ---- Blueprint grid backdrops ----------------------------------------- */

.bg-grid {
    background-image:
        linear-gradient(rgba(91, 141, 239, 0.55) 1px, transparent 1px),
        linear-gradient(90deg, rgba(91, 141, 239, 0.55) 1px, transparent 1px);
    background-size: 40px 40px;
}

.bg-grid-fine {
    background-image:
        linear-gradient(rgba(59, 111, 224, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 111, 224, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
}

.hero-panel {
    background: linear-gradient(165deg, #0D1830 0%, #0B1220 55%, #0A0F1C 100%);
    position: relative;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 60% 50% at 15% 10%, rgba(91, 141, 239, 0.22), transparent 70%),
        radial-gradient(ellipse 55% 45% at 90% 85%, rgba(232, 163, 61, 0.14), transparent 70%);
    pointer-events: none;
}

.hero-panel > * {
    position: relative;
}

/* ---- Eyebrow labels ---------------------------------------------------- */

.eyebrow {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blueprint2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.eyebrow::before {
    content: "";
    width: 18px;
    height: 1px;
    background: var(--amber);
    display: inline-block;
}

.eyebrow-dark {
    color: var(--blueprint);
}

/* ---- Corner-bracket cards (signature element) -------------------------
   Small drafting-table corner ticks on each card, echoing the corner
   registration marks on an architecture blueprint sheet. */

.corner-card {
    position: relative;
    border: 1px solid var(--paperline);
    background: #fff;
}

.corner-card::before,
.corner-card::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: var(--blueprint);
    border-style: solid;
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

.corner-card::before {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
}

.corner-card::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
}

.corner-card:hover::before,
.corner-card:hover::after {
    opacity: 1;
    border-color: var(--amber);
}

/* ---- Timeline / connector list (used on the About page) --------------- */

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

.timeline::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: linear-gradient(var(--blueprint2), var(--paperline));
}

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

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -2rem;
    top: 6px;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: var(--paper);
    border: 2px solid var(--blueprint);
}

.timeline-item.is-current::before {
    background: var(--amber);
    border-color: var(--amber);
    box-shadow: 0 0 0 4px rgba(232, 163, 61, 0.2);
}

/* ---- Node-dot list markers --------------------------------------------- */

.node-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.node-list li {
    position: relative;
    padding-left: 1.4rem;
}

.node-list li + li {
    margin-top: 0.55rem;
}

.node-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--blueprint);
}

/* ---- Buttons ------------------------------------------------------------ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--ink);
    background: var(--amber);
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    box-shadow: 0 10px 24px -8px rgba(232, 163, 61, 0.55);
    transform: translateY(-1px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.btn-ghost:hover {
    border-color: var(--amber);
    color: var(--amber);
}

/* ---- Misc ---------------------------------------------------------------- */

.tag {
    font-family: 'Arial', sans-serif;
    font-weight: 600;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: rgba(59, 111, 224, 0.08);
    color: var(--blueprint);
    border: 1px solid rgba(59, 111, 224, 0.18);
}

.tag-amber {
    background: rgba(232, 163, 61, 0.12);
    color: #9a6417;
    border-color: rgba(232, 163, 61, 0.3);
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}