:root {
    /* Monochrome Palette */
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #888888;

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.12);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background: var(--bg-color);
    /* Fallback */
}

/* Background Gradient Follower */
.glow-point {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
}

/* Typography Elements */
h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

h2.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
}

p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 24px;
    max-width: 600px;
}

/* Glossy Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #4ade80 0%, #166534 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass UI Classes */
.glass-panel {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1200px;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.6);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: #4ade80;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.primary-btn {
    background: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
}

.primary-btn:hover {
    background: transparent;
    color: #4ade80;
    border-color: #4ade80;
}

.secondary-btn {
    background: transparent;
    color: #ffffff;
    border: 1px solid var(--glass-highlight);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.secondary-btn:hover {
    border-color: #4ade80;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.05);
}

/* Journal Elements */
.journal-section {
    padding: 120px 5%;
    max-width: 900px;
    margin: 0 auto;
}

.journal-list {
    display: block;
}

.journal-list>a {
    display: block;
    margin-bottom: 32px;
}

.journal-list>a:last-child {
    margin-bottom: 0;
}

.journal-entry {
    padding: 40px;
    transition: transform var(--transition-slow), border-color var(--transition-fast);
    cursor: pointer;
}

.journal-entry:hover {
    transform: translateY(-4px);
    border-color: #4ade80;
    box-shadow: 0 10px 30px -15px rgba(74, 222, 128, 0.2);
}

.journal-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.journal-link:hover .journal-entry {
    transform: translateY(-4px);
    transition: 0.2s ease;
    cursor: pointer;
}

.full-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.full-content.open {
    max-height: 500px;
}

.entry-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 0.9rem;
    font-weight: 600;
}

.entry-date {
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.entry-tags {
    color: var(--text-secondary);
    font-weight: 400;
}

.journal-entry h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.journal-entry p {
    font-size: 1.1rem;
    margin-bottom: 24px;
    max-width: 100%;
}

.entry-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    transition: color var(--transition-fast);
}

.entry-link:hover {
    color: #4ade80;
}

.entry-link.btn-text {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.date-header {
    margin-top: 40px;
}

.date-header:first-child {
    margin-top: 0;
}

.date-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.entry-button {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

/* About & Contact */
.about-section {
    margin: 120px 5%;
    padding: 80px 5%;
    max-width: 1000px;
    margin-inline: auto;
    text-align: center;
}

.about-section p {
    margin: 0 auto;
}

.contact-section {
    padding: 120px 5%;
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    padding: 80px 5%;
    text-align: center;
}

.contact-card p {
    margin: 0 auto 40px auto;
}

/* Obsidian & Logseq Journal Layout */
.obsidian-layout {
    padding-top: 140px;
    /* Space for fixed nav */
    max-width: 900px;
    margin: 0 auto;
}

.journal-feed {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.journal-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: all var(--transition-fast);
    cursor: pointer;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.journal-card:hover {
    border-color: rgba(74, 222, 128, 0.4);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
}

.journal-card.active {
    border-color: #4ade80;
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    transition: color var(--transition-fast);
}

.journal-card.active .card-title {
    color: #4ade80;
}

.card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
    margin-top: 0;
}

.journal-card.active .card-body {
    max-height: 1000px;
    opacity: 1;
    margin-top: 20px;
}

.card-meta {
    text-align: right;
    flex-shrink: 0;
}


/* Footer */
.site-footer {
    background: #050505;
    padding: 80px 10%;
    color: #ffffff;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 80px;
}

.footer-left h2 {
    font-size: 40px;
    margin-bottom: 20px;
}

.footer-left p {
    max-width: 400px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.footer-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #111;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.footer-btn:hover {
    color: #4ade80;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-links h4 {
    margin-bottom: 15px;
}

.footer-links p {
    margin-bottom: 8px;
    cursor: pointer;
}

footer a {
    display: block;
    text-decoration: none;
    color: inherit;
    margin: 6px 0;
    transition: 0.2s ease;
}

footer a:hover {
    color: #4ade80;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 100ms;
}

.delay-2 {
    transition-delay: 200ms;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* In a real app, add a hamburger menu */
    }

    .glass-nav {
        justify-content: center;
    }

    .journal-entry {
        padding: 24px;
    }
}