:root {
    --bg-color: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --accent-color: #d35400; /* Warm orange/brown */
    --border-color: #eaeaea;
    --font-serif: "Georgia", "Times New Roman", serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --max-width: 740px; /* Constrain width for reading */
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--bg-color);
    line-height: 1.8;
    min-height: 100vh;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Header (Overlay) */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    z-index: 100;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 50px;
}

.site-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: color 0.3s ease;
}

.site-header.scrolled .site-title {
    color: #333;
    text-shadow: none;
}

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

.nav-links a {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.site-header.scrolled .nav-links a {
    color: #666;
}

.nav-links a:hover, .nav-links a.active {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

.site-header.scrolled .nav-links a:hover, 
.site-header.scrolled .nav-links a.active {
    color: #000;
    border-bottom-color: #000;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('c6002c2cda979dceff033bfd5cffd361.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Dark overlay for better text readability */
.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); 
}

.hero-content {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 60px 80px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    max-width: 600px;
    width: 90%;
}

.hero-title {
    font-family: var(--font-sans);
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 40px;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #ffffff;
    color: #333;
    border: 2px solid #ffffff;
}

.btn-primary:hover {
    background-color: transparent;
    color: #ffffff;
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: #ffffff;
}

/* Main Container */
.main-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 100px 20px;
    position: relative;
    z-index: 2;
    background: var(--bg-color); /* Ensure content has background */
}

/* Sections */
.section {
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.section.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Article / Diary Style (Centered Reading) */
.article-header {
    margin-bottom: 30px;
    text-align: left;
}

.article-header h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.article-meta {
    font-size: 0.85rem;
    color: #999;
    font-family: var(--font-sans);
}

.diary-content {
    font-family: var(--font-serif);
    font-size: 1.15rem; /* Slightly larger for reading comfort */
    color: #444;
}

.diary-content p {
    margin-bottom: 24px;
    text-align: justify;
}

blockquote {
    border-left: 3px solid var(--accent-color);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #666;
    background: #fffcf5; /* Subtle background */
    padding: 20px;
}

/* Resume Section (Simple List Style) */
.resume-section {
    font-family: var(--font-sans);
}

.resume-intro {
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.resume-block {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.resume-block:last-child {
    border-bottom: none;
}

.resume-block h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
}

.resume-details {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.btn-download {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 24px;
    background-color: #333;
    color: #fff;
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn-download:hover {
    background-color: #000;
}

/* Gallery Grid (Simple) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.02);
}

/* Article List */
.article-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.article-title {
    font-weight: 500;
    color: #333;
}

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

.article-date {
    font-size: 0.85rem;
    color: #999;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
    color: #999;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 600px) {
    .site-header {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        display: flex;
        gap: 15px;
        font-size: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .site-title {
        font-size: 1.2rem;
    }

    .hero-content {
        padding: 40px 20px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
}
