/* ============================================
   CSS Custom Properties & Design Tokens
   ============================================ */
:root {
    /* Colors - Moody Nordic palette */
    --color-bg-dark: rgba(15, 15, 18, 0.75);
    --color-bg-card: rgba(20, 20, 24, 0.9);
    --color-bg-card-hover: rgba(30, 30, 36, 0.95);
    --color-text-primary: #f5f5f5;
    --color-text-secondary: rgba(245, 245, 245, 0.7);
    --color-text-muted: rgba(245, 245, 245, 0.5);
    --color-accent: #e8e4df;
    --color-border: rgba(255, 255, 255, 0.08);
    
    /* Typography */
    --font-primary: Georgia, 'Times New Roman', Times, serif;
    --font-mono: Georgia, 'Times New Roman', Times, serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Borders */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   Background & Atmosphere
   ============================================ */
.background-container {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-color: #0a0a0c;
    background-image: url('background.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.background-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 12, 0.3) 0%,
        rgba(10, 10, 12, 0.1) 40%,
        rgba(10, 10, 12, 0.4) 100%
    );
}

/* ============================================
   Main Container Layout
   ============================================ */
.main-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-xl);
}

.content-wrapper {
    width: 100%;
    max-width: 820px;
    background: var(--color-bg-dark);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    padding: var(--space-2xl) var(--space-3xl);
    position: relative;
}

/* ============================================
   Navigation
   ============================================ */
.navigation {
    display: flex;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.nav-link {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--color-text-primary);
}

.nav-link.active {
    color: var(--color-text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--color-text-primary);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    margin-bottom: var(--space-3xl);
}

.hero-name {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: var(--space-sm);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    font-weight: 400;
}

/* ============================================
   Blog List Section
   ============================================ */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.blog-item {
    display: block;
    padding: var(--space-sm) 0;
    transition: all var(--transition-fast);
    animation: fadeIn 0.6s ease-out backwards;
    text-decoration: none;
}

.blog-item:nth-child(1) { animation-delay: 0.3s; }
.blog-item:nth-child(2) { animation-delay: 0.35s; }
.blog-item:nth-child(3) { animation-delay: 0.4s; }

.blog-item:hover {
    padding-left: var(--space-sm);
}

.blog-item:hover .blog-item-title {
    color: var(--color-text-primary);
}

.blog-item:hover .blog-item-desc {
    color: var(--color-text-secondary);
}

.blog-item-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.blog-item-desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-style: italic;
    transition: color var(--transition-fast);
}

/* ============================================
   Page Transitions & Animations
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-wrapper {
    animation: fadeIn 0.6s ease-out;
}

.nav-link {
    animation: fadeIn 0.5s ease-out backwards;
}

.nav-link:nth-child(1) { animation-delay: 0.1s; }
.nav-link:nth-child(2) { animation-delay: 0.15s; }
.nav-link:nth-child(3) { animation-delay: 0.2s; }
.nav-link:nth-child(4) { animation-delay: 0.25s; }

.hero-name {
    animation: fadeIn 0.6s ease-out 0.2s backwards;
}

.hero-subtitle {
    animation: fadeIn 0.6s ease-out 0.3s backwards;
}


/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .main-container {
        padding: var(--space-md);
        align-items: flex-start;
        padding-top: var(--space-xl);
    }
    
    .content-wrapper {
        padding: var(--space-xl) var(--space-lg);
    }
    
    .navigation {
        gap: var(--space-lg);
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-name {
        font-size: 1.875rem;
    }
    
    .blog-item {
        flex-wrap: wrap;
    }
    
    .blog-item-desc {
        display: block;
        margin-top: var(--space-xs);
    }
}

@media (max-width: 480px) {
    .navigation {
        gap: var(--space-md);
    }
    
    .nav-link {
        font-size: 0.75rem;
    }
    
    .hero-name {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* ============================================
   Selection & Focus States
   ============================================ */
::selection {
    background: rgba(255, 255, 255, 0.2);
}

:focus-visible {
    outline: 2px solid var(--color-text-secondary);
    outline-offset: 2px;
}

/* ============================================
   Scrollbar Styling
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

