/* ========================================
   Soft Minimalism Design System
   ======================================== */

/* CSS Variables - Color Palette */
:root {
    /* Primary Colors */
    --bg-primary: #fafaf9;
    --bg-white: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-muted: #a0aec0;
    
    /* Accent Colors */
    --accent-primary: #2dd4bf;
    --accent-secondary: #6c5ce7;
    --accent-light: #e0f2f1;
    
    /* Borders & Dividers */
    --border-color: #e8eaed;
    --border-light: #f0f0f0;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.15);
    
    /* Typography */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ========================================
   Global Styles
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.125rem;
    font-weight: 600;
}

p {
    line-height: 1.7;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-secondary);
}

strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
}

.btn-primary {
    background-color: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(45, 212, 191, 0.3);
}

.btn-primary:hover {
    background-color: #1db8a4;
    box-shadow: 0 6px 20px rgba(45, 212, 191, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: white;
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* ========================================
   Header
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background-color: transparent;
    padding: 1.5rem 0;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.8;
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-desktop.active {
    display: block;
}

.nav-desktop.active a.nav-link {
    display: block;
}

.nav-desktop.active a.nomob {
    display: none;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary);
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 5rem;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4), var(--bg-primary));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-text {
    animation: slideInUp 0.7s ease-out;
}

.tagline {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    background-color: rgba(45, 212, 191, 0.1);
    color: var(--accent-primary);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(45, 212, 191, 0.2);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 5rem;
    }
}

.hero-title .accent {
    color: var(--accent-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 30rem;
    line-height: 1.7;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image-container {
    display: flex;
    justify-content: center;
    animation: slideInRight 1s ease-out 0.2s backwards;
}

.profile-circle {
    position: relative;
    width: 16rem;
    height: 16rem;
}

@media (min-width: 768px) {
    .profile-circle {
        width: 20rem;
        height: 20rem;
    }
}

@media (min-width: 1024px) {
    .profile-circle {
        width: 24rem;
        height: 24rem;
    }
}

.profile-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.2), rgba(108, 92, 231, 0.2));
    filter: blur(3rem);
    animation: pulse 3s ease-in-out infinite;
}

.profile-image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--text-secondary);
    opacity: 0.5;
    animation: bounce 2s ease-in-out infinite;
}

/* ========================================
   Focus Section
   ======================================== */

.focus-section {
    padding: 6rem 0;
    background-color: white;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.focus-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .focus-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.focus-card {
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    transition: all 0.3s ease;
}

.focus-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-0.25rem);
}

.focus-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.focus-card:hover .focus-icon {
    transform: scale(1.1);
}

.focus-icon-blue {
    background-color: #dbeafe;
    color: #0369a1;
}

.focus-icon-teal {
    background-color: #ccfbf1;
    color: #0d9488;
}

.focus-icon-purple {
    background-color: #e9d5ff;
    color: #7c3aed;
}

.focus-card h3 {
    margin-bottom: 0.75rem;
}

.focus-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   Writings Section
   ======================================== */

.writings-section {
    padding: 6rem 0;
    background-color: rgba(250, 250, 249, 0.5);
}

.section-header-with-button {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .section-header-with-button {
        flex-direction: row;
        align-items: flex-end;
    }
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.post-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-0.25rem);
}

.post-meta {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.75rem;
}

.post-date {
    display: inline-block;
    background-color: rgba(45, 212, 191, 0.1);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 500;
}

.post-category {
    display: inline-block;
    background-color: rgba(45, 212, 191, 0.1);
    color: var(--accent-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-weight: 500;
}

.post-title {
    margin-bottom: 0.75rem;
    transition: color 0.2s ease;
    line-height: 1.4;
}

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

.post-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-link {
    color: var(--accent-primary);
    font-weight: 500;
    font-size: 0.875rem;
    transition: transform 0.2s ease;
    display: inline-block;
}

.post-card:hover .post-link {
    transform: translateX(0.25rem);
}

/* ========================================
   Book Section
   ======================================== */

.book-section {
    padding: 6rem 0;
    background-color: white;
}

.book-container {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.05), rgba(108, 92, 231, 0.05));
    border: 1px solid rgba(45, 212, 191, 0.1);
    border-radius: 2rem;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .book-container {
        grid-template-columns: 1fr 1fr;
        padding: 4rem;
    }
}

.book-image {
    position: relative;
}

.book-image img {
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transform: rotate(-3deg);
    transition: transform 0.5s ease;
    height: 250px;
    margin-left: 35%;
}

.book-container:hover .book-image img {
    transform: rotate(0deg);
}

.book-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    background-color: white;
    color: var(--accent-primary);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.book-content h2 {
    margin-bottom: 1.5rem;
}

.book-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.book-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background-color: rgba(250, 250, 249, 0.5);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: white;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--accent-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        text-align: left;
    }
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 768px) {
    .footer-links {
        justify-content: flex-end;
    }
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-links a.active {
    color: var(--accent-primary);
    font-weight: 500;
}

/* ========================================
   Animations
   ======================================== */

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(2rem);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(0.5rem);
    }
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 767px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .section-header-with-button {
        flex-direction: column;
        align-items: stretch;
    }

    .section-header-with-button .btn {
        width: 100%;
    }
}

/* ========================================
   Utility Classes
   ======================================== */

.accent {
    color: var(--accent-primary);
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.prefix {
    display: inline-block;
    width: 40px;
}

div p span.bibitem {
    display: inline-block;
    vertical-align: top;
    padding-left: .51in;
    width: 75%;
}