@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Inter:wght@300;400;500&display=swap');

:root {
    --bg-color: #0a0a0a;
    --card-bg: #141414;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent: #ffffff;
    --border: #333333;
    --accent-dim: #666666;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    font-family: 'Cormorant Garamond', Georgia, serif;
    cursor: url('assets/pointer.png'), auto;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

nav.scrolled {
    border-color: var(--border);
}

.nav-logo {
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    font-size: 1.2rem;
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-family: 'Inter', 'Helvetica', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

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

header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ink-blot {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(40px);
}

.ink-blot-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: -5%;
    animation: floatBlot1 20s ease-in-out infinite;
}

.ink-blot-2 {
    width: 300px;
    height: 300px;
    bottom: 15%;
    right: -3%;
    animation: floatBlot2 25s ease-in-out infinite;
}

.ink-blot-3 {
    width: 200px;
    height: 200px;
    top: 40%;
    right: 20%;
    animation: floatBlot3 18s ease-in-out infinite;
}

@keyframes floatBlot1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -20px) scale(1.1);
    }

    66% {
        transform: translate(-15px, 25px) scale(0.95);
    }
}

@keyframes floatBlot2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-25px, -30px) scale(1.15);
    }
}

@keyframes floatBlot3 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(20px, 15px) scale(1.1);
        opacity: 1;
    }
}

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

.hero-title {
    font-size: 5rem;
    font-weight: 300;
    letter-spacing: 8px;
    color: var(--accent);
    font-family: 'Cormorant Garamond', Georgia, serif;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--accent);
    width: 0;
    animation: typeTitle 1.8s steps(6, end) 0.5s forwards,
        blinkCursor 0.75s step-end infinite;
    margin: 0 auto 1.5rem auto;
    display: inline-block;
}

.hero-title.typed {
    width: auto;
    animation: blinkCursor 0.75s step-end infinite;
    border-right: 2px solid var(--accent);
}

.hero-subtitle {
    font-family: 'Inter', 'Helvetica', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0;
    animation: fadeSlideUp 1s ease 2.5s forwards;
}

@keyframes typeTitle {
    from {
        width: 0;
    }

    to {
        width: 6.5ch;
    }
}

@keyframes blinkCursor {

    from,
    to {
        border-color: var(--accent);
    }

    50% {
        border-color: transparent;
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-divider {
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
    margin: 2rem auto 0;
    animation: expandDivider 1.5s ease 3s forwards;
    opacity: 0;
}

@keyframes expandDivider {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 200px;
        opacity: 1;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeSlideUp 1s ease 3.5s forwards;
}

.scroll-indicator span {
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    margin: 0 auto;
    animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-indicator p {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.8;
        transform: scaleY(1.2);
    }
}

.subtitle {
    font-family: 'Inter', 'Helvetica', sans-serif;
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 4px;
}

section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 60px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.section-title {
    font-size: 2.5rem;
    color: var(--accent);
    font-weight: 300;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 40px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        box-shadow 0.4s ease,
        border-color 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 300px;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--text-muted);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
    background: var(--accent);
    transition: height 0.4s ease;
}

.card:hover::before {
    height: 100%;
}

.card-type {
    font-family: 'Inter', 'Helvetica', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: block;
}

.card-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--accent);
    font-weight: 400;
}

.card-excerpt {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 30px;
    flex-grow: 1;
}

.read-btn {
    align-self: flex-start;
    text-decoration: none;
    color: var(--text-main);
    font-family: 'Inter', 'Helvetica', sans-serif;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 5px;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.card:hover .read-btn {
    border-color: var(--accent);
    color: var(--accent);
}

.view-all-wrap {
    text-align: right;
    margin-top: 40px;
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease, gap 0.3s ease;
}

.view-all:hover {
    color: var(--accent);
    gap: 14px;
}

.view-all .arrow {
    transition: transform 0.3s ease;
    font-size: 1.1rem;
}

.view-all:hover .arrow {
    transform: translateX(3px);
}

.socials-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.socials-header {
    text-align: center;
    margin-bottom: 40px;
}

.socials-header h2 {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--accent);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.socials-header p {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.socials-links {
    display: flex;
    justify-content: center;
    gap: 50px;
    align-items: center;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.social-link svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s ease;
}

.social-link span {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

footer {
    text-align: center;
    padding: 50px 0;
    border-top: 1px solid var(--border);
    margin-top: 50px;
    color: var(--text-muted);
    font-family: 'Inter', 'Helvetica', sans-serif;
    font-size: 0.8rem;
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, visibility;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(8px);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease,
        border-color 0.3s ease, color 0.3s ease;
    z-index: 999;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    border-color: var(--text-muted);
    color: var(--accent);
}

.scroll-top-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease, border-color 0.3s ease;
    width: 100%;
    justify-content: space-between;
}

.sidebar-toggle:hover {
    color: var(--accent);
    border-color: var(--text-muted);
}

.sidebar-toggle .hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-toggle .hamburger span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sidebar-toggle.open .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.sidebar-toggle.open .hamburger span:nth-child(2) {
    opacity: 0;
}

.sidebar-toggle.open .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
        letter-spacing: 4px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    nav {
        padding: 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .socials-links {
        gap: 30px;
    }

    .scroll-indicator {
        bottom: 25px;
    }
}

/* ── Search Button in Nav ───────────────────────────────── */
.nav-search-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.nav-search-btn:hover {
    color: var(--accent);
}

.nav-search-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Search Overlay ─────────────────────────────────────── */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 15vh 20px 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 100%;
    max-width: 560px;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.search-overlay.active .search-container {
    transform: translateY(0);
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 14px 18px;
    transition: border-color 0.3s ease;
}

.search-input-wrap:focus-within {
    border-color: var(--text-muted);
}

.search-input-wrap .search-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: none;
    stroke: var(--text-muted);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.3px;
}

.search-input::placeholder {
    color: var(--accent-dim);
}

.search-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1;
    padding: 4px;
    transition: color 0.3s ease;
}

.search-close:hover {
    color: var(--accent);
}

.search-results {
    list-style: none;
    margin-top: 8px;
    max-height: 50vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.search-results li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    text-decoration: none;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease;
}

.search-results li a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.search-result-type {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    flex-shrink: 0;
    width: 60px;
}

.search-result-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--text-main);
}

.search-empty {
    padding: 30px 18px;
    text-align: center;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* ── Sort Toggle Button ─────────────────────────────────── */
.sort-toggle-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 12px;
}

.sort-toggle-btn:hover {
    color: var(--accent);
    border-color: var(--text-muted);
}

.sort-toggle-btn.active {
    color: var(--accent);
    border-color: var(--accent);
    transform: rotate(180deg);
}

.sort-toggle-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Mobile Search / Sort ───────────────────────────────── */
@media (max-width: 768px) {
    .search-overlay {
        padding: 12vh 12px 12px;
    }

    .search-input-wrap {
        padding: 12px 14px;
    }

    .search-input {
        font-size: 1rem;
    }

    .search-results li a {
        padding: 16px 14px;
        gap: 10px;
    }

    .search-result-type {
        width: 50px;
        font-size: 0.6rem;
    }

    .sort-toggle-btn {
        width: 30px;
        height: 30px;
    }

    .sort-toggle-btn svg {
        width: 14px;
        height: 14px;
    }
}

a,
button,
.card,
.card::before,
.card::after {
    cursor: url('assets/select.png'), pointer;
}