:root {
    --bg-color: #050505;
    --text-primary: #ededed;
    --text-secondary: #8a8a8a;
    --accent: #ffffff;
    --border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(10, 10, 10, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);

    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.6;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Hide scrollbar globally */
::-webkit-scrollbar {
    display: none;
}

body.no-scroll {
    overflow: hidden;
}

/* Ambient Background */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: 
        linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0) 100%),
        linear-gradient(to right, #050505 0%, #656565 50%, #d6d6d6 100%);
}

.orb {
    display: none;
}

.orb-1 {
    width: 60vw;
    height: 60vw;
    background: #ffffff;
    top: -20vh;
    left: -10vw;
}

.orb-2 {
    width: 50vw;
    height: 50vw;
    background: #444444;
    bottom: -20vh;
    right: -10vw;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(5%, 10%) scale(1.1);
    }
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.04;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* Navigation */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 4rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    mix-blend-mode: difference;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.nav-btn:hover {
    opacity: 0.6;
}

/* Main Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero Section */
.hero {
    max-width: 800px;
}

.hero-title {
    line-height: 1;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    max-width: 500px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 6vw, 6rem);
    font-weight: 400;
    line-height: 1.05;
    margin-bottom: 2rem;
    font-style: italic;
    color: var(--accent);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
    max-width: 500px;
}

.teaser {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.35);
    font-style: italic;
    font-family: var(--font-serif);
    letter-spacing: 0.02em;
    margin-top: 3rem;
}

/* Thoughts List Section */
.thoughts-section {
    width: 100%;
}

.subsection-title {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    margin-bottom: 2rem;
    display: block;
}

.thoughts-list {
    display: flex;
    flex-direction: column;
}

.thought-card {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s ease;
}

.thought-card:hover {
    padding-left: 0;
    padding-right: 0;
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.thought-date {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
    font-weight: 500;
}

.thought-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 2.5vw, 2.8rem);
    /* Smaller font size as requested */
    font-weight: 400;
    color: var(--text-primary);
    transition: color 0.4s ease;
    line-height: 1.1;
    font-style: italic;
    transform: none !important;
}

.thought-card:hover .thought-title {
    color: var(--accent);
}

.thought-meta-right {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.read-indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.4s ease;
}

.read-indicator svg {
    width: 14px;
    height: 14px;
}

.thought-card:hover .read-indicator {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    transform: none !important;
    background: transparent !important;
}

/* Social Links Bottom */
.social-links {
    position: fixed;
    bottom: 2.5rem;
    left: 4rem;
    display: flex;
    gap: 2.5rem;
    mix-blend-mode: difference;
    z-index: 10;
}

.social-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 0.6;
}

/* Modals Overlay Base */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.close-btn {
    position: absolute;
    top: 2.5rem;
    right: 4rem;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 110;
    padding: 1rem;
}

.close-btn:hover {
    transform: rotate(90deg) scale(1.1);
}

/* Reader Content */
.reader-container {
    width: 100%;
    max-width: 800px;
    height: 100vh;
    padding: 15vh 4rem 10vh;
    overflow-y: auto;
    transform: translateY(30px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reader-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

.reader-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 4rem;
    color: var(--accent);
}

.reader-body {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #dfdfdf;
    font-weight: 300;
}

.reader-body p {
    margin-bottom: 2.5rem;
}

.reader-body strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Loading Screen */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease;
}

.splash-text-container {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    color: var(--text-primary);
}

.splash-char {
    opacity: 0;
    transform: translateY(15px) scale(0.95);
    animation: textFadeIn 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.splash-char:nth-child(1) {
    animation-delay: 0.1s;
}

.splash-char:nth-child(2) {
    animation-delay: 0.2s;
}

.splash-char:nth-child(3) {
    animation-delay: 0.3s;
}

.splash-char:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes textFadeIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Responsiveness */
@media (max-width: 1024px) {
    .container {
        padding: 2rem;
    }

    .top-nav {
        padding: 2rem;
    }

    .hero {
        margin-bottom: 12vh;
        margin-top: 5vh;
    }

    .social-links {
        position: relative;
        bottom: auto;
        left: auto;
        padding: 3rem 2rem;
        justify-content: center;
        margin-top: 2rem;
    }

    .thought-card {
        grid-template-columns: 1fr auto;
        /* Title, Tag on right */
        gap: 1.5rem;
        padding: 2.5rem 0;
    }

    .thought-date {
        display: none;
    }

    .thought-card:hover {
        padding-left: 0;
        padding-right: 0;
        background: transparent;
    }

    .thought-tag {
        justify-self: start;
    }

    .close-btn {
        top: 2rem;
        right: 2rem;
    }

    .reader-container {
        padding: 12vh 2rem;
    }
}