/* ===================================
   Photography Blog Styles - Stripe-inspired Design
   =================================== */

/* Import Inter font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
    --primary-color: #0a2540;
    --secondary-color: #635bff;
    --accent-color: #00d4ff;
    --text-color: #0a2540;
    --text-light: #425466;
    --text-lighter: #697386;
    --background-color: #ffffff;
    --background-light: #f6f9fc;
    --background-lighter: #fafbfd;
    --border-color: #e3e8ee;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --shadow: 0 4px 8px rgba(0,0,0,0.04), 0 0 2px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 16px rgba(0,0,0,0.08), 0 0 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 15px 35px rgba(0,0,0,0.1), 0 5px 15px rgba(0,0,0,0.07);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.12), 0 5px 15px rgba(0,0,0,0.08);
    --transition: all 0.15s ease;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    color-scheme: light dark;
}

/* Dark mode support for browser extensions and native dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #e8edf5;
        --secondary-color: #8b85ff;
        --accent-color: #4dc4ff;
        --text-color: #e8edf5;
        --text-light: #b4bcc8;
        --text-lighter: #8f99a8;
        --background-color: #0f1419;
        --background-light: #1a1f26;
        --background-lighter: #22262e;
        --border-color: #2d3340;
        --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
        --shadow: 0 4px 8px rgba(0,0,0,0.3), 0 0 2px rgba(0,0,0,0.2);
        --shadow-md: 0 8px 16px rgba(0,0,0,0.4), 0 0 4px rgba(0,0,0,0.3);
        --shadow-lg: 0 15px 35px rgba(0,0,0,0.5), 0 5px 15px rgba(0,0,0,0.4);
        --shadow-hover: 0 15px 40px rgba(0,0,0,0.6), 0 5px 15px rgba(0,0,0,0.5);
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.65;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 17px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--primary-color);
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    line-height: 1.7;
}

/* ===================================
   Header & Navigation
   =================================== */

.site-header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: block;
    transition: var(--transition);
}

.logo-link:hover {
    opacity: 0.7;
}

.site-logo {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

.site-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
    transition: var(--transition);
}

.site-nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.site-nav a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 15px;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    position: relative;
}

.site-nav a:hover {
    color: var(--text-color);
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.site-nav a:hover::after {
    width: 100%;
}

/* ===================================
   Main Content
   =================================== */

.page-content {
    min-height: calc(100vh - 200px);
}

/* ===================================
   Homepage Styles
   =================================== */

.hero {
    background: linear-gradient(150deg, #0a2540 0%, #1a3a5c 100%);
    color: white;
    padding: 7rem 2rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(99, 91, 255, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: white;
    background: linear-gradient(135deg, #ffffff 0%, #e0e8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.intro {
    max-width: 840px;
    margin: 5rem auto;
    padding: 0 2rem;
    text-align: center;
}

.intro h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 2.75rem;
    font-weight: 700;
}

.intro p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.125rem;
    line-height: 1.8;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition-smooth);
    margin-top: 1.5rem;
    cursor: pointer;
    border: none;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: #554aed;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 1.5px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Featured Photos Grid */
.featured-photos {
    max-width: 1280px;
    margin: 5rem auto;
    padding: 0 2rem;
}

.featured-photos h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.75rem;
    font-weight: 700;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    transition: var(--transition-smooth);
    aspect-ratio: 1;
    background: var(--background-light);
}

.photo-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.photo-item:hover img {
    transform: scale(1.08);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 37, 64, 0.95) 0%, rgba(10, 37, 64, 0.7) 50%, transparent 100%);
    color: white;
    padding: 2rem;
    transform: translateY(0);
    transition: var(--transition-smooth);
}

.photo-overlay h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.photo-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Recent Posts */
.recent-posts {
    max-width: 1280px;
    margin: 5rem auto;
    padding: 0 2rem;
    background: var(--background-lighter);
    border-radius: var(--radius-xl);
    padding: 4rem 3rem;
}

.recent-posts h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.75rem;
    font-weight: 700;
}

.posts-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.post-preview {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.post-preview:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.post-preview-image {
    height: 240px;
    overflow: hidden;
    background: var(--background-light);
}

.post-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.post-preview:hover .post-preview-image img {
    transform: scale(1.06);
}

.post-preview-content {
    padding: 2rem;
}

.post-preview-content h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.3;
}

.post-preview-content time {
    display: block;
    color: var(--text-lighter);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.post-preview-content p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.9375rem;
}

.view-all {
    text-align: center;
    margin-top: 3rem;
}

/* ===================================
   Gallery Page
   =================================== */

.gallery-header {
    text-align: center;
    padding: 5rem 2rem 3rem;
    background: var(--background-lighter);
}

.gallery-header h1 {
    color: var(--primary-color);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.gallery-header p {
    color: var(--text-light);
    font-size: 1.25rem;
}

.gallery-filters {
    max-width: 1280px;
    margin: 3rem auto;
    padding: 0 2rem;
    text-align: center;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-btn {
    padding: 0.65rem 1.5rem;
    border: 1.5px solid var(--border-color);
    background: white;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 500;
    font-size: 14px;
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
}

.filter-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    background: rgba(99, 91, 255, 0.05);
}

.filter-btn.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    box-shadow: var(--shadow);
}

.gallery-grid {
    max-width: 1280px;
    margin: 2rem auto 5rem;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.gallery-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.gallery-card-image {
    height: 280px;
    overflow: hidden;
    background: var(--background-light);
}

.gallery-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-card:hover .gallery-card-image img {
    transform: scale(1.06);
}

.gallery-card-content {
    padding: 2rem;
}

.gallery-card-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.3;
}

.gallery-card-content time {
    display: block;
    color: var(--text-lighter);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.gallery-location {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0.5rem 0;
    font-weight: 500;
}

.gallery-excerpt {
    color: var(--text-light);
    line-height: 1.7;
    margin-top: 0.75rem;
    font-size: 0.9375rem;
}

.gallery-category {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--background-lighter);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.8125rem;
    color: var(--text-light);
    margin-top: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.gallery-card:hover .gallery-category {
    background: rgba(99, 91, 255, 0.1);
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.no-posts {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-light);
    font-size: 1.125rem;
}

/* ===================================
   Post Page
   =================================== */

.post {
    max-width: 820px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.post-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
}

.post-title {
    color: var(--primary-color);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.post-meta {
    color: var(--text-lighter);
    font-size: 0.9375rem;
    font-weight: 500;
}

.post-meta .separator {
    margin: 0 0.75rem;
    opacity: 0.5;
}

.post-location {
    font-weight: 600;
    color: var(--text-light);
}

.post-featured-image {
    margin-bottom: 3rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-color);
}

.post-content h2 {
    color: var(--primary-color);
    margin: 3rem 0 1.5rem;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.post-content h3 {
    color: var(--primary-color);
    margin: 2.5rem 0 1.25rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.post-content p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.post-content ul,
.post-content ol {
    margin: 1.5rem 0 1.5rem 2rem;
}

.post-content li {
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.post-content strong {
    color: var(--text-color);
    font-weight: 600;
}

.post-gallery {
    margin: 4rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    background: var(--background-light);
    align-self: start;
}

.gallery-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-smooth);
}

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

.image-caption {
    padding: 1.25rem;
    background: white;
    color: var(--text-light);
    font-size: 0.9375rem;
    text-align: center;
    line-height: 1.6;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.prev-post,
.next-post {
    padding: 2rem;
    background: var(--background-lighter);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.prev-post:hover,
.next-post:hover {
    background: white;
    border-color: var(--secondary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.nav-label {
    font-size: 0.875rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-lighter);
}

.nav-title {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary-color);
}

.next-post {
    text-align: right;
}

/* ===================================
   About & Contact Pages
   =================================== */

.about-page,
.contact-page {
    max-width: 1080px;
    margin: 3rem auto 5rem;
    padding: 0 2rem;
}

.about-header,
.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.about-header h1,
.contact-header h1 {
    color: var(--primary-color);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.contact-header p {
    color: var(--text-light);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.about-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: start;
}

.about-image {
    position: sticky;
    top: 120px;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.about-text h3 {
    color: var(--primary-color);
    margin: 3rem 0 1.25rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-light);
    font-size: 1.0625rem;
}

.about-text ul {
    margin: 1.5rem 0 1.5rem 1.5rem;
    list-style: none;
}

.about-text li {
    margin-bottom: 0.75rem;
    color: var(--text-light);
    font-size: 1.0625rem;
    position: relative;
    padding-left: 1.5rem;
}

.about-text li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 600;
}

.about-social {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    padding: 0.875rem 1.75rem;
    background: var(--secondary-color);
    color: white;
    border-radius: var(--radius);
    transition: var(--transition-smooth);
    font-weight: 600;
    font-size: 15px;
    box-shadow: var(--shadow);
}

.social-link:hover {
    background: #554aed;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin: 4rem 0;
    background: var(--background-lighter);
    padding: 3rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
}

.contact-method {
    margin-bottom: 2.5rem;
}

.contact-method h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
}

.contact-method p {
    color: var(--text-light);
    font-size: 1.0625rem;
}

.contact-method a {
    color: var(--secondary-color);
    font-weight: 500;
}

.contact-availability ul {
    margin: 1.25rem 0 0 1.5rem;
    list-style: none;
}

.contact-availability li {
    margin-bottom: 0.75rem;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.contact-availability li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

.contact-form-section h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.form-note {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.0625rem;
}

.contact-cta {
    margin-top: 2rem;
}

.contact-footer {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(99, 91, 255, 0.05) 0%, rgba(0, 212, 255, 0.05) 100%);
    border-radius: var(--radius-xl);
    margin-top: 4rem;
    border: 1px solid var(--border-color);
}

.contact-footer h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 700;
}

.contact-footer p {
    color: var(--text-light);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.0625rem;
}

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

.site-footer {
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 2rem;
    margin-top: 6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-links {
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 1.5rem;
    transition: var(--transition);
    font-weight: 500;
    font-size: 15px;
}

.footer-links a:hover {
    color: white;
}

.footer-links .separator {
    opacity: 0.3;
}

.footer-social {
    margin-bottom: 1.5rem;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0.75rem;
    transition: var(--transition);
    font-size: 14px;
}

.footer-social a:hover {
    color: white;
}

.footer-copyright {
    font-size: 0.875rem;
    opacity: 0.6;
    margin-top: 1.5rem;
    font-weight: 400;
}

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

@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .about-content {
        grid-template-columns: 240px 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .header-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 1.5rem;
    }
    
    .site-nav {
        gap: 1.5rem;
    }
    
    .site-nav a {
        font-size: 14px;
    }
    
    .hero {
        padding: 4rem 1.5rem 3rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .intro h2,
    .featured-photos h2,
    .recent-posts h2 {
        font-size: 2rem;
    }
    
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .posts-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .recent-posts {
        padding: 3rem 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-header h1 {
        font-size: 2.5rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        position: static;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .contact-content {
        padding: 2rem;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .next-post {
        text-align: left;
    }
    
    .post-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-title {
        font-size: 2.25rem;
    }
    
    .about-header h1,
    .contact-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 1rem 2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .post-title {
        font-size: 1.875rem;
    }
    
    .site-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .intro,
    .featured-photos,
    .recent-posts {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .photo-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .footer-links a {
        margin: 0 0.75rem;
        font-size: 14px;
    }
    
    .gallery-header {
        padding: 3rem 1rem 2rem;
    }
    
    .gallery-header h1 {
        font-size: 2rem;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 13px;
    }
    
    .post-content {
        font-size: 1.0625rem;
    }
    
    .about-header h1,
    .contact-header h1 {
        font-size: 2rem;
    }
    
    .contact-header p {
        font-size: 1.0625rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background-color: rgba(99, 91, 255, 0.2);
    color: var(--primary-color);
}

::-moz-selection {
    background-color: rgba(99, 91, 255, 0.2);
    color: var(--primary-color);
}

/* Dark mode specific adjustments */
@media (prefers-color-scheme: dark) {
    /* Ensure images don't get too bright */
    img {
        opacity: 0.9;
    }
    
    img:hover {
        opacity: 1;
    }
    
    /* Better contrast for hero gradient in dark mode */
    .hero {
        background: linear-gradient(150deg, #1a2a3f 0%, #2a3a4f 100%);
    }
    
    .hero::before {
        background: radial-gradient(circle at 20% 50%, rgba(139, 133, 255, 0.2) 0%, transparent 50%),
                    radial-gradient(circle at 80% 80%, rgba(77, 196, 255, 0.15) 0%, transparent 50%);
    }
    
    .hero-content h1 {
        background: linear-gradient(135deg, #ffffff 0%, #b8c5ff 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    /* Adjust shadows for dark mode */
    .site-header {
        background-color: rgba(15, 20, 25, 0.95);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    }
    
    /* Better button contrast */
    .btn-primary {
        background: var(--secondary-color);
        color: #ffffff;
    }
    
    .btn-primary:hover {
        background: #9d98ff;
    }
    
    /* Form inputs if you add them later */
    input,
    textarea,
    select {
        background-color: var(--background-light);
        color: var(--text-color);
        border-color: var(--border-color);
    }
    
    /* Code blocks if you add them */
    code,
    pre {
        background-color: var(--background-light);
        color: var(--text-light);
    }
    
    /* Ensure proper contrast for overlays */
    .photo-overlay {
        background: linear-gradient(to top, rgba(15, 20, 25, 0.95) 0%, rgba(15, 20, 25, 0.8) 50%, transparent 100%);
    }
    
    /* Footer with purple background in dark mode */
    .site-footer {
        background: var(--secondary-color);
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    .footer-links a,
    .footer-social a {
        color: rgba(255, 255, 255, 0.95);
    }
    
    .footer-links a:hover,
    .footer-social a:hover {
        color: #ffffff;
    }
    
    /* Post preview content sections with purple background in dark mode */
    .post-preview-content {
        background: var(--secondary-color);
    }
    
    .post-preview-content h3 {
        color: #ffffff;
    }
    
    .post-preview-content time {
        color: rgba(255, 255, 255, 0.8);
    }
    
    .post-preview-content p {
        color: rgba(255, 255, 255, 0.9);
    }
    
    /* Gallery card content sections with purple background in dark mode */
    .gallery-card-content {
        background: var(--secondary-color);
    }
    
    .gallery-card-content h3 {
        color: #ffffff;
    }
    
    .gallery-card-content time,
    .gallery-location,
    .gallery-excerpt {
        color: rgba(255, 255, 255, 0.9);
    }
    
    .gallery-category {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.3);
        color: rgba(255, 255, 255, 0.95);
    }
    
    .gallery-card:hover .gallery-category {
        background: #ffffff;
        color: var(--primary-color);
        border-color: #ffffff;
    }
    
    /* Gallery item captions with purple background in dark mode */
    .image-caption {
        background: var(--secondary-color);
        color: rgba(255, 255, 255, 0.95);
    }
    
    /* Selection in dark mode */
    ::selection {
        background-color: rgba(139, 133, 255, 0.4);
        color: #ffffff;
    }
    
    ::-moz-selection {
        background-color: rgba(139, 133, 255, 0.4);
        color: #ffffff;
    }
}
