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

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'QTBasker', serif;
    color: var(--text-color);
    line-height: 1.6;
    will-change: opacity;
    opacity: 1;
    transition: opacity 0.2s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
    font-family: 'QTCaslanOpen', serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    letter-spacing: 0.01em;
}

p {
    margin-bottom: 1rem;
}

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

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

ul {
    list-style: none;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Main content wrapper */
.page-content {
    flex: 1 0 auto;
    padding: 60px 0;
}

/* Page title centering for specific pages */
.page-title-centered {
    text-align: center;
}

/* About page specific content centering */
.page-content.about-page-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 160px); /* Account for header and footer */
}

.page-content.about-page-centered .container {
    text-align: center;
    max-width: 800px;
}

/* Image lazy loading */
.lazy-image {
    background-color: #f0f0f0;
    transition: opacity 0.3s;
    opacity: 0;
}

.lazy-image.loaded {
    opacity: 1;
}

/* Content revealing */
.reveal-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Page Transition Optimizations */
html.is-changing body {
    opacity: 0.8;
} 