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

:root {
    /* Book Cover Inspired Color Palette - "Speaking Of Dinners" Theme */
    /* Rich Warm Backgrounds - Like a cozy dinner setting */
    --cover-dark: #2c2416;
    --cover-deep-brown: #3d2f1f;
    --cover-warm-brown: #4a3a28;
    --cover-slate: #3d3529;
    
    /* Elegant Accent Colors - Warm & Inviting */
    --accent-gold: #c9a961;
    --accent-bronze: #b8865b;
    --accent-amber: #d4a574;
    --accent-cream: #f4e8d8;
    --accent-terracotta: #c97d60;
    
    /* Natural Earth Tones - Dinner table warmth */
    --earth-brown: #6b5d4f;
    --earth-taupe: #8b7a6b;
    --earth-sand: #d4c5b0;
    --earth-warm: #a68b6b;
    
    /* Sophisticated Warm Tones */
    --book-burgundy: #8b5a5a;
    --book-wine: #7a4a4a;
    --book-rust: #a65d3d;
    
    /* Warm Neutrals - Creamy & Inviting */
    --warm-white: #faf7f2;
    --warm-beige: #ede5d8;
    --warm-gray: #c4b8a8;
    --warm-cream: #f5ede0;
    
    /* Primary Colors - Book Cover Theme */
    --primary-dark: var(--cover-dark);
    --primary-brown: var(--cover-deep-brown);
    --primary-accent: var(--accent-gold);
    --primary-warm: var(--accent-amber);
    
    /* Legacy support - mapping to new colors */
    --storm-dark: var(--cover-dark);
    --storm-blue: var(--cover-deep-brown);
    --storm-gray: var(--cover-slate);
    --lightning-gold: var(--accent-gold);
    --lightning-yellow: var(--accent-amber);
    --thunder-blue: var(--book-burgundy);
    --rain-silver: var(--warm-gray);
    --cloud-white: var(--warm-white);
    --shadow-black: #000000;

    /* Professional Accent Colors */
    --accent-blue: var(--book-burgundy);
    --accent-gray: var(--cover-slate);

    /* Base Colors */
    --pure-white: #ffffff;
    --off-white: var(--warm-white);
    --light-gray: var(--warm-gray);
    --medium-gray: #7f8c8d;
    --dark-gray: var(--cover-slate);

    /* Typography */
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Inter', sans-serif;

    /* Spacing */
    --header-height: 80px;
    --section-padding: 100px 0;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.6s ease;
    --transition-slow: 1s ease;

    /* Shadows */
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.4);
    --storm-glow: 0 0 30px rgba(201, 169, 97, 0.4);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    max-width: 100%;
}

.page-about {
    /* keep existing gradient for pages that use it */
}

body {
    font-family: var(--font-secondary);
    background: linear-gradient(135deg, #f5ede0 0%, #ede5d8 30%, #e8ddd0 60%, #e0d5c5 100%);
    background-attachment: fixed;
    color: #2c2416;
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100%;
}

/* Container Classes - Fixed Implementation */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 100%;
    padding: 0 20px;
}

.container {
    width: 100%;
    padding: 30px 30px !important;

}

.navbar {
    margin-top: 20px !important;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle at top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.9) 55%, rgba(0,0,0,1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: clamp(2rem, 4vw, 2.75rem) clamp(2.25rem, 5vw, 3rem);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(245, 237, 224, 0.96), rgba(237, 229, 216, 0.98));
    box-shadow:
        0 22px 60px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(201, 169, 97, 0.35);
    border: 1px solid rgba(201, 169, 97, 0.28);
}

.loading-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.loading-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--accent-gold), var(--accent-amber));
    color: #2c2416;
    font-family: var(--font-primary);
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow:
        0 0 22px rgba(201, 169, 97, 0.85),
        0 0 40px rgba(201, 169, 97, 0.45);
}

.loading-logo-text h1 {
    font-family: var(--font-primary);
    font-size: clamp(2.1rem, 5.2vw, 3.1rem);
    color: var(--accent-gold);
    text-shadow: 0 0 20px rgba(201, 169, 97, 0.6), 0 0 40px rgba(201, 169, 97, 0.3);
    margin-bottom: 0.15rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.loading-logo-text p {
    font-family: var(--font-secondary);
    font-size: clamp(0.8rem, 1.8vw, 0.95rem);
    color: #6b5d4f;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 1s ease 0.7s forwards;
}

.loading-bar {
    width: clamp(220px, 48vw, 320px);
    height: 6px;
    background: rgba(139, 90, 90, 0.25);
    border-radius: 999px;
    margin: 1.75rem auto 0.75rem;
    overflow: hidden;
}
.contact-visual {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.contact-visual-image {
    width: 100%;
    max-width: 360px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25),
                0 0 30px rgba(201, 169, 97, 0.25);
    border: 2px solid rgba(201, 169, 97, 0.4);
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--book-burgundy), var(--accent-gold), var(--accent-amber), var(--accent-terracotta));
    width: 0%;
    animation: loadingProgress 3s ease forwards;
    box-shadow: 0 0 18px rgba(201, 169, 97, 0.65);
}

.loading-text {
    color: #6b5d4f;
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    opacity: 0;
    animation: fadeInUp 1s ease 1s forwards;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    display: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-gold);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    box-shadow: 0 0 12px rgba(201, 169, 97, 0.9);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-gold);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    opacity: 0.6;
}

/* Header - Fixed Navbar Styling */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 1000;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    border-bottom-color: rgba(201, 169, 97, 0.4);
}

.navbar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: clamp(2.5rem, 6vw, 4rem);
}

.nav-brand {
    display: flex;
    flex-direction: column;
    z-index: 1002;
}

.brand-text {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 2px;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--accent-gold);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1;
    text-shadow: 0 0 12px rgba(201, 169, 97, 0.5);
}

.nav-menu {
    display: flex;
    align-items: center;
    margin-right: clamp(2rem, 6vw, 4rem);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    position: relative;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
    padding: 0.5rem 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-amber), var(--accent-terracotta));
    transition: width var(--transition-fast);
    box-shadow: 0 0 12px rgba(201, 169, 97, 0.6);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-gold);
    text-shadow: 0 0 12px rgba(201, 169, 97, 0.5);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    z-index: 1002;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: #ffffff;
    transition: all var(--transition-fast);
}

.nav-close {
    display: none;
    font-size: 2rem;
    color: #ffffff;
    cursor: pointer;
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 1002;
}

/* Hero Section - Improved Responsive Layout */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: #000;
    overflow: hidden;
    padding-top: var(--header-height);
}

/* Video Background */
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
    pointer-events: none;
}

/* Image Background */
.hero-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    pointer-events: none;
}

/* Video Overlay for better text readability */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 237, 224, 0.3) 0%, rgba(237, 229, 216, 0.2) 50%, rgba(232, 221, 208, 0.1) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Image Overlay for better text readability */
.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 237, 224, 0.3) 0%, rgba(237, 229, 216, 0.2) 50%, rgba(232, 221, 208, 0.1) 100%);
    z-index: 2;
    pointer-events: none;
}

/* About Page - Hero with 3 Images (Full Frame) */
.page-about .hero.hero-about {
    min-height: auto;
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: 20px;
    display: block;
    background: #ffffff;
}

.hero-about-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
}

.hero-about-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.hero-about-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s ease;
}

/* Full image visible (no crop) — e.g. image (12).png on About */
.page-about .hero-about-img-wrap--contain {
    background: #f5f5f5;
}

.page-about .hero-about-img-wrap--contain img {
    object-fit: contain;
    object-position: center;
}

.page-about .hero-about-img-wrap--contain:hover img {
    transform: scale(1.02);
}

.hero-about-img-wrap:hover img {
    transform: scale(1.05);
}

/* About Page - Bio Text Layout */
.page-about .about-page-bio .bio-content {
    max-width: 800px;
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
}

.page-about .bio-author-name {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--cover-dark);
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.page-about .bio-text {
    color: #4a3a28;
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.95;
    letter-spacing: 0.3px;
}

/* Follow Section */
.follow-section {
    padding: clamp(2rem, 4vw, 3rem) 0;
    text-align: left;
    background: linear-gradient(180deg, transparent 0%, rgba(245, 237, 224, 0.3) 100%);
}

/* About page specific theming */
.about-layout {
    background: #ffffff;
}

.about-layout .about-page-bio {
    background: #ffffff;
}

.about-layout .about-page-bio .bio-author-name {
    color: #111111;
}

.about-layout .about-page-bio .bio-text {
    color: #111111;
}

.about-layout .header {
    background: rgba(0, 0, 0, 0.98);
}

.about-layout .nav-link {
    color: #ffffff;
}

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

.follow-title {
    font-family: var(--font-primary);
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--cover-dark);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.follow-social {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.follow-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(201, 169, 97, 0.2);
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.follow-link:hover {
    background: var(--accent-gold);
    color: var(--cover-dark);
    transform: scale(1.1);
}

/* About Page - Mobile Responsive */
@media (max-width: 768px) {
    .hero-about-images {
        grid-template-columns: 1fr;
    }
    
    .hero-about-img-wrap {
        aspect-ratio: 4/3;
    }
}

/* Hero Content - Better Responsive Grid */
.hero-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    min-height: 70vh;
}

.hero-text {
    width: 100%;
}

.hero-image-wrapper {
    width: 100%;
    max-width: 320px;
    margin-left: clamp(1.5rem, 4vw, 3rem);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45), 0 0 30px rgba(201, 169, 97, 0.35);
    border: 2px solid rgba(201, 169, 97, 0.45);
}

.hero-book-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.hero-image-wrapper:hover .hero-book-image {
    transform: scale(1.06);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.55), 0 0 40px rgba(201, 169, 97, 0.45);
}

.hero-subtitle {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0;
}

.subtitle-line {
    width: clamp(30px, 8vw, 50px);
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), var(--accent-amber), transparent);
    box-shadow: 0 0 12px rgba(201, 169, 97, 0.7);
}

.subtitle-text {
    color: #ffffff;
    font-size: clamp(0.75rem, 1.7vw, 0.9rem);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(255, 255, 255, 0.1);
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(2.2rem, 7vw, 4.8rem);
    font-weight: 900;
    line-height: 0.9;
    margin-bottom: 1.3rem;
}

.title-word {
    display: block;
    position: relative;
    color: #ffffff;
    letter-spacing: 0.08em;
    text-shadow:
        0 4px 16px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(100px);
}

/* Glitch Effect */
.glitch-effect {
    position: relative;
}

.glitch-effect::before,
.glitch-effect::after {
    content: '';
    display: none;
}

.hero-tagline {
    margin-bottom: 1.5rem;
    opacity: 0;
}

.tagline-text {
    font-family: var(--font-primary);
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    color: #ffffff;
    font-style: italic;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(255, 255, 255, 0.1);
}

/* Typewriter Effect */
.typewriter-text {
    border-right: 2px solid rgba(255, 255, 255, 0.4);
    animation: typewriter 3s steps(22) 1s forwards, blink 1s infinite;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.hero-description {
    font-size: clamp(0.95rem, 2.1vw, 1.05rem);
    color: var(--warm-beige);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    opacity: 0;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.hero-stats {
    display: flex;
    gap: clamp(1rem, 4vw, 2rem);
    margin-bottom: 3rem;
    opacity: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 100px;
}

.stat-number {
    display: block;
    font-family: var(--font-primary);
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--lightning-gold);
    line-height: 1;
    text-shadow: 0 0 12px rgba(201, 169, 97, 0.6);
}

.stat-label {
    font-size: clamp(0.7rem, 1.5vw, 0.85rem);
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

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

/* Hero Visual - Better Responsive Layout */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

.book-container {
    position: relative;
    opacity: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

/* Survivor Silhouette */
.survivor-silhouette {
    position: absolute;
    top: clamp(-60px, -8vw, -80px);
    left: clamp(-30px, -4vw, -40px);
    z-index: 1;
    opacity: 0.6;
}

.silhouette-figure {
    width: clamp(45px, 6vw, 60px);
    height: clamp(120px, 16vw, 160px);
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.6) 70%,
            transparent 100%);
    clip-path: polygon(40% 0%, 60% 0%, 65% 15%, 70% 25%,
            75% 35%, 80% 50%, 75% 65%, 70% 80%,
            60% 90%, 55% 100%, 45% 100%, 40% 90%,
            30% 80%, 25% 65%, 20% 50%, 25% 35%,
            30% 25%, 35% 15%);
    animation: silhouette-sway 4s ease-in-out infinite;
}

.silhouette-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle,
            rgba(201, 169, 97, 0.3) 0%,
            transparent 70%);
    animation: glow-pulse 3s ease-in-out infinite;
}

/* 3D Book Scene - Improved Responsive */
.book-3d-scene {
    position: relative;
    perspective: 1000px;
    margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.hero-book-copy {
    max-width: 600px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.6;
    color: #f5f5f5;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.55));
    padding: 1.1rem 2rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

.book-3d {
    position: relative;
    width: clamp(200px, 24vw, 320px);
    height: clamp(260px, 31vw, 400px);
    transform-style: preserve-3d;
    transition: transform var(--transition-medium);
    cursor: pointer;
}

.book-3d:hover {
    transform: rotateY(-15deg) rotateX(5deg) scale(1.05);
}

.book-cover {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #000000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 35px rgba(255, 255, 255, 0.1);
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-lightning-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
            transparent 0%,
            rgba(201, 169, 97, 0.2) 50%,
            transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.book-3d:hover .book-lightning-overlay {
    opacity: 1;
}

.book-spine {
    position: absolute;
    right: -20px;
    top: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(to right, #222222, #000000);
    transform: rotateY(90deg);
    transform-origin: left;
}

.book-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #111111;
    transform: translateZ(-20px);
    border-radius: 8px;
}

.book-storm-aura {
    position: absolute;
    top: clamp(-30px, -4vw, -40px);
    left: clamp(-30px, -4vw, -40px);
    right: clamp(-30px, -4vw, -40px);
    bottom: clamp(-30px, -4vw, -40px);
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.12) 0%,
            transparent 70%);
    border-radius: 20px;
    opacity: 0;
    transition: opacity var(--transition-medium);
    animation: storm-aura 4s ease-in-out infinite;
}

/* Storm Elements */
.storm-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.storm-element {
    position: absolute;
    color: var(--lightning-gold);
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.4;
    animation: storm-float 6s ease-in-out infinite;
}

.thunder-icon {
    top: 15%;
    left: -8%;
    animation-delay: 0s;
}

.wind-icon {
    top: 55%;
    right: -8%;
    animation-delay: 2s;
}

.cloud-icon {
    bottom: 15%;
    left: 8%;
    animation-delay: 4s;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--medium-gray);
    opacity: 0;
    animation: bounce 2s infinite;
    z-index: 10;
}

.scroll-text {
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.scroll-arrow {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--lightning-gold);
}

/* Audio Controls */
.audio-controls {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 10;
}

.audio-btn {
    width: clamp(40px, 6vw, 50px);
    height: clamp(40px, 6vw, 50px);
    background: rgba(201, 169, 97, 0.2);
    border: 1px solid var(--lightning-gold);
    border-radius: 50%;
    color: var(--lightning-gold);
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    cursor: pointer;
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
}

.audio-btn:hover {
    background: var(--lightning-gold);
    color: var(--storm-dark);
    transform: scale(1.1);
}

/* Buttons - Improved Responsive */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 3vw, 2rem);
    border: none;
    border-radius: 50px;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1rem);
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: all var(--transition-fast);
    z-index: 1;
    min-width: 120px;
    justify-content: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-amber) 50%, var(--accent-terracotta) 100%);
    color: var(--cover-dark);
    box-shadow: 0 4px 20px rgba(201, 169, 97, 0.5), 0 0 35px rgba(201, 169, 97, 0.3);
    font-weight: 700;
    border: 1px solid rgba(201, 169, 97, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 35px rgba(201, 169, 97, 0.7), 0 0 45px rgba(201, 169, 97, 0.4);
    background: linear-gradient(135deg, var(--accent-amber) 0%, var(--accent-gold) 50%, var(--accent-amber) 100%);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
    box-shadow: 0 0 22px rgba(201, 169, 97, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.25), rgba(212, 165, 116, 0.25));
    color: var(--accent-gold);
    border-color: var(--accent-amber);
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(201, 169, 97, 0.5);
}

.btn-outline {
    background: transparent;
    color: var(--warm-white);
    border: 2px solid rgba(201, 169, 97, 0.6);
    box-shadow: 0 0 18px rgba(201, 169, 97, 0.2);
}

.btn-outline:hover {
    background: rgba(201, 169, 97, 0.15);
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    box-shadow: 0 0 28px rgba(201, 169, 97, 0.4);
}

/* Storm Buttons */
.storm-btn {
    position: relative;
    overflow: hidden;
}

.btn-lightning {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(201, 169, 97, 0.5),
            rgba(212, 165, 116, 0.4),
            transparent);
    transition: left 0.6s ease;
    box-shadow: 0 0 25px rgba(201, 169, 97, 0.6);
}

.storm-btn:hover .btn-lightning {
    left: 100%;
}

/* Section Styles - Improved Responsive */
.section {
    padding: clamp(60px, 10vw, 100px) 0;
    position: relative;
    width: 100%;
    background: #faf7f2;
}

.section:nth-child(even) {
    background: linear-gradient(135deg, #f5ede0 0%, #ede5d8 50%, #e8ddd0 100%);
    position: relative;
}

.section:nth-child(even)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.4), rgba(212, 165, 116, 0.3), transparent);
}

/* Reduce height for first contact section with image (id="contact") */
#contact.section.contact {
    padding: clamp(40px, 7vw, 70px) 0;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(3rem, 8vw, 5rem);
}

.section-subtitle {
    display: block;
    color: var(--accent-gold);
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-shadow: 0 0 18px rgba(201, 169, 97, 0.5);
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    color: #2c2416;
    margin-bottom: 2rem;
    line-height: 1.2;
    text-shadow: 1px 1px 5px rgba(201, 169, 97, 0.2);
    background: linear-gradient(135deg, #2c2416 0%, #4a3a28 50%, #6b5d4f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-line {
    width: clamp(60px, 15vw, 100px);
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), var(--accent-amber), var(--accent-terracotta), var(--accent-gold), transparent);
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: 0 0 18px rgba(201, 169, 97, 0.6);
}

/* About Section - Improved Responsive */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 3rem);
    align-items: center;
    /* gap: 20px !important; */
    padding: 80px 100px !important;
    width: 100%;
}

.about-image {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container {
    position: relative;
    border-radius: 20px;
    overflow: visible;
    transform: perspective(1000px) rotateY(-3deg);
    transition: transform var(--transition-medium);
    width: 100%;
    max-width: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15), 0 0 30px rgba(201, 169, 97, 0.2);
}

.image-container:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.03);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 40px rgba(201, 169, 97, 0.3);
}

.author-img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
    border-radius: 20px;
    transition: transform var(--transition-medium);
}

/* .image-container img {
    object-fit: cover !important;
    background-repeat: no-repeat !important;
    overflow: hidden !important;
    padding-top: 30px !important;
     padding-bottom: 30px !important;
} */

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-medium);
    border-radius: 20px;
    pointer-events: none;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(139, 90, 90, 0.25), rgba(201, 169, 97, 0.25));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.image-container:hover .image-overlay {
    opacity: 1;
}

.image-frame {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border: 3px solid rgba(201, 169, 97, 0.4);
    border-radius: 25px;
    opacity: 0.6;
    transition: opacity var(--transition-medium);
    pointer-events: none;
}

.image-container:hover .image-frame {
    opacity: 0.8;
    border-color: rgba(201, 169, 97, 0.6);
}

.floating-quotes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.quote-item {
    position: absolute;
    background: rgba(13, 20, 33, 0.9);
    color: var(--pure-white);
    padding: 1rem;
    border-radius: 10px;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    max-width: clamp(150px, 25vw, 200px);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-fast);
    border: 1px solid var(--lightning-gold);
}

.quote-item:nth-child(1) {
    top: 20%;
    right: clamp(-40px, -5vw, -50px);
}

.quote-item:nth-child(2) {
    bottom: 30%;
    left: clamp(-40px, -5vw, -50px);
}

.image-container:hover .quote-item {
    opacity: 1;
    transform: translateY(0);
}

.about-text {
    width: 100%;
}

.about-name {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: #665437;
    margin-bottom: 1rem;
}

.about-role {
    margin-bottom: 2rem;
}

.role-text {
    color: var(--lightning-gold);
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: 500;
    letter-spacing: 1px;
}

.about-description {
    margin-bottom: 3rem;
}

.description-text {
    color: var(--light-gray);
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-achievements {
    margin-bottom: 3rem;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(139, 90, 90, 0.15);
    border-radius: 15px;
    border-left: 4px solid var(--lightning-gold);
    transition: all var(--transition-fast);
}

.achievement-item:hover {
    background: rgba(139, 90, 90, 0.25);
    transform: translateX(10px);
}

.achievement-icon {
    width: clamp(50px, 8vw, 60px);
    height: clamp(50px, 8vw, 60px);
    background: linear-gradient(45deg, var(--thunder-blue), var(--lightning-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: var(--storm-dark);
    flex-shrink: 0;
}

.achievement-text h4 {
    color: var(--pure-white);
    font-size: clamp(1.1rem, 2vw, 1.2rem);
    margin-bottom: 0.5rem;
}

.achievement-text p {
    color: var(--medium-gray);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
}

.signature {
    text-align: center;
}

.signature-img {
    max-width: clamp(150px, 25vw, 200px);
    height: auto;
    opacity: 0.8;
}

/* Books Section - Improved Responsive */
.books-content {
    width: 100%;
}

/* Books page specific styling */
.page-books .section.books {
    background: #ffffff;
}

.page-books .books-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3rem);
}

.page-books .book-showcase {
    align-items: center;
    column-gap: clamp(2.5rem, 6vw, 4rem);
}

.page-books .book-3d-wrapper {
    width: clamp(300px, 38vw, 420px);
    height: clamp(380px, 50vw, 560px);
}

.page-books .book-title,
.page-books .book-description p {
    color: #000000;
}

.page-books .book-subtitle {
    color: #222222;
}

.book-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 3rem);
    align-items: center;
    width: 100%;
}

.book-display {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.book-3d-container {
    position: relative;
    perspective: 1000px;
}

.book-3d-wrapper {
    position: relative;
    width: clamp(280px, 34vw, 380px);
    height: clamp(360px, 42vw, 500px);
    transform-style: preserve-3d;
    transition: transform var(--transition-medium);
    cursor: pointer;
}

.book-3d-wrapper:hover {
    transform: rotateY(-20deg) rotateX(5deg) scale(1.05);
}

.book-front {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #000000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65), 0 0 35px rgba(255, 255, 255, 0.12);
}

.book-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-spine-3d {
    position: absolute;
    right: -25px;
    top: 0;
    width: 25px;
    height: 100%;
    background: linear-gradient(to right, #222222, #000000);
    transform: rotateY(90deg);
    transform-origin: left;
}

.book-back-3d {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #111111;
    transform: translateZ(-25px);
    border-radius: 10px;
}

.book-glow-effect {
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, transparent 70%);
    border-radius: 20px;
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.book-3d-wrapper:hover+.book-glow-effect {
    opacity: 1;
}

.book-info {
    width: 100%;
}

.book-badge {
    display: inline-block;
    background: linear-gradient(45deg, var(--thunder-blue), var(--lightning-gold));
    color: var(--storm-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.book-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 3rem);
    color: #2c2416;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    text-shadow: 1px 1px 5px rgba(201, 169, 97, 0.2);
    background: linear-gradient(135deg, #2c2416 0%, #4a3a28 50%, #6b5d4f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.book-subtitle {
    font-family: var(--font-primary);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--accent-gold);
    font-style: italic;
    margin-bottom: 2rem;
    text-shadow: 0 0 18px rgba(201, 169, 97, 0.6);
}

.book-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.stars {
    color: var(--accent-gold);
    font-size: clamp(1rem, 2vw, 1.2rem);
    text-shadow: 0 0 12px rgba(201, 169, 97, 0.6);
    filter: drop-shadow(0 0 6px rgba(201, 169, 97, 0.4));
}

.rating-text {
    color: var(--medium-gray);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
}

.book-description {
    margin-bottom: 2rem;
}

.book-description p {
    color: var(--light-gray);
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.8;
}

.book-details {
    margin-bottom: 3rem;
}

.detail-item {
    display: flex;
    margin-bottom: 0.5rem;
}

.detail-label {
    font-weight: 600;
    color: var(--lightning-gold);
    min-width: clamp(80px, 15vw, 100px);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
}

.detail-value {
    color: var(--light-gray);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
}

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

/* Journey Section - Improved Responsive */
.journey-timeline {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--thunder-blue), var(--lightning-gold));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(50px);
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: right;
    margin-left: auto;
    margin-right: 0;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 2rem;
    width: 20px;
    height: 20px;
    background: var(--lightning-gold);
    border: 4px solid var(--storm-dark);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.marker-inner {
    width: 100%;
    height: 100%;
    background: var(--lightning-gold);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.timeline-content {
    width: 45%;
    background: rgba(139, 90, 90, 0.15);
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: 15px;
    border: 1px solid rgba(139, 90, 90, 0.3);
    backdrop-filter: blur(10px);
    transition: all var(--transition-fast);
}

.timeline-content:hover {
    background: rgba(139, 90, 90, 0.25);
    transform: translateY(-5px);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
}

.timeline-date {
    font-family: var(--font-primary);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--lightning-gold);
    font-weight: 700;
    margin-bottom: 1rem;
}

.timeline-title {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: var(--pure-white);
    margin-bottom: 1rem;
}

.timeline-text {
    color: var(--light-gray);
    line-height: 1.8;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
}

/* Art Gallery Section - Static Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: clamp(1rem, 3vw, 1.5rem);
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-grid .gallery-card {
    min-width: unset;
    opacity: 1;
    transform: scale(1);
    width: 100%;
    border-color: rgba(201, 169, 97, 0.5);
}

.gallery-grid .gallery-card:hover .gallery-image {
    transform: scale(1.03);
}

.gallery-card {
    min-width: 100%;
    padding: clamp(0.8rem, 2vw, 1.2rem);
    background: linear-gradient(135deg, #ffffff 0%, #faf7f2 50%, #f5ede0 100%);
    border-radius: 15px;
    border: 2px solid rgba(201, 169, 97, 0.3);
    backdrop-filter: blur(10px);
    text-align: center;
    opacity: 0.7;
    transform: scale(0.95);
    transition: all var(--transition-medium);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 0 20px rgba(201, 169, 97, 0.12);
}

.gallery-card.active {
    opacity: 1;
    transform: scale(1);
    border-color: rgba(201, 169, 97, 0.5);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 0 30px rgba(201, 169, 97, 0.2);
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    height: clamp(280px, 35vw, 380px);
    border-radius: 12px;
    overflow: hidden;
    background: #f5ede0;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform var(--transition-medium);
}

.gallery-card.active .gallery-image {
    transform: scale(1.01);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-medium);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    font-size: clamp(2rem, 4vw, 3rem);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Art page — mixed landscape / portrait gallery (scoped) */
.page-art .section.art-gallery {
    padding-top: calc(var(--header-height) + clamp(1.5rem, 4vw, 2.5rem));
}

.page-art .art-gallery .gallery-grid.art-gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(140px, auto));
    gap: clamp(0.75rem, 2vw, 1.15rem);
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

/* Bento layout: wide top-left + tall portrait right + two tiles bottom row */
.page-art .gallery-card--feature-wide {
    grid-column: 1 / 10;
    grid-row: 1;
}

.page-art .gallery-card--side-tall {
    grid-column: 10 / 13;
    grid-row: 1 / 3;
}
.page-art .gallery-card--side-tall .gallery-image-wrapper {
    min-height: 100%;
}

.page-art .gallery-card--bottom-left {
    grid-column: 1 / 6;
    grid-row: 2;
}

.page-art .gallery-card--bottom-right {
    grid-column: 6 / 10;
    grid-row: 2;
}

.page-art .art-gallery .gallery-grid .gallery-card {
    opacity: 1 !important;
    transform: none !important;
    min-width: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: clamp(0.45rem, 1.2vw, 0.65rem);
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid rgba(201, 169, 97, 0.28);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.07);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.page-art .art-gallery .gallery-grid .gallery-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.11), 0 0 24px rgba(201, 169, 97, 0.15);
    border-color: rgba(201, 169, 97, 0.45);
}

.page-art .art-gallery .gallery-image-wrapper {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0;
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f0ebe3;
}

/* Horizontal / landscape frames */
.page-art .gallery-frame--landscape {
    aspect-ratio: 16 / 9;
}

.page-art .gallery-frame--landscape-soft {
    aspect-ratio: 4 / 3;
}

/* Vertical / portrait frames */
.page-art .gallery-frame--portrait {
    aspect-ratio: 3 / 4;
    flex: 1;
    min-height: 0;
}

.page-art .gallery-card--side-tall .gallery-frame--portrait {
    aspect-ratio: auto;
    flex: 1;
    min-height: 280px;
}

.page-art .gallery-frame--portrait-soft {
    aspect-ratio: 3 / 4;
}

.page-art .art-gallery .gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Single image: show full frame without cropping (e.g. About Photo B.JPEG) */
.page-art .art-gallery .gallery-image.gallery-image--full-frame {
    object-fit: contain;
    object-position: center;
}


.page-art .art-gallery .gallery-grid .gallery-card:hover .gallery-image {
    transform: scale(1.04);
}

@media (max-width: 992px) {
    .page-art .art-gallery .gallery-grid.art-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
    }

    .page-art .gallery-card--feature-wide,
    .page-art .gallery-card--side-tall,
    .page-art .gallery-card--bottom-left,
    .page-art .gallery-card--bottom-right {
        grid-column: auto;
        grid-row: auto;
    }

    /* Row 1: full-width landscape; Row 2: portrait | landscape; Row 3: full-width */
    .page-art .gallery-card--feature-wide {
        grid-column: 1 / -1;
    }

    .page-art .gallery-card--side-tall {
        grid-column: 1;
    }

    .page-art .gallery-card--bottom-left {
        grid-column: 2;
    }

    .page-art .gallery-card--bottom-right {
        grid-column: 1 / -1;
    }

    .page-art .gallery-card--side-tall,
    .page-art .gallery-card--bottom-left,
    .page-art .gallery-card--bottom-right {
        min-height: 0;
    }

    .page-art .gallery-card--side-tall .gallery-frame--portrait {
        min-height: 0;
        aspect-ratio: 3 / 4;
    }
}

@media (max-width: 576px) {
    .page-art .art-gallery .gallery-grid.art-gallery-grid {
        grid-template-columns: 1fr;
    }

    .page-art .gallery-card--feature-wide,
    .page-art .gallery-card--side-tall,
    .page-art .gallery-card--bottom-left,
    .page-art .gallery-card--bottom-right {
        grid-column: 1 / -1;
    }
}

/* Testimonials Section - Improved Responsive */
.testimonials-slider {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-track {
    display: flex;
    transition: transform var(--transition-medium);
}

.testimonial-card {
    min-width: 100%;
    padding: clamp(2rem, 5vw, 3rem);
    background: linear-gradient(135deg, #ffffff 0%, #faf7f2 50%, #f5ede0 100%);
    border-radius: 20px;
    border: 2px solid rgba(201, 169, 97, 0.3);
    backdrop-filter: blur(10px);
    text-align: center;
    opacity: 0.7;
    transform: scale(0.95);
    transition: all var(--transition-medium);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 0 30px rgba(201, 169, 97, 0.15);
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
    border-color: rgba(201, 169, 97, 0.5);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15), 0 0 40px rgba(201, 169, 97, 0.25);
}

.testimonial-quote {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--accent-gold);
    margin-bottom: 2rem;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.testimonial-text {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #4a3a28;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
    text-shadow: none;
}

.testimonial-rating {
    color: var(--accent-gold);
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2rem;
    text-shadow: 0 0 12px rgba(201, 169, 97, 0.6);
    filter: drop-shadow(0 0 6px rgba(201, 169, 97, 0.4));
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.author-avatar {
    width: clamp(50px, 8vw, 60px);
    height: clamp(50px, 8vw, 60px);
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--lightning-gold);
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    color: var(--pure-white);
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-role {
    color: var(--medium-gray);
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

.gallery-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.gallery-btn {
    width: clamp(40px, 6vw, 50px);
    height: clamp(40px, 6vw, 50px);
    background: rgba(201, 169, 97, 0.25);
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
    color: var(--accent-gold);
    font-size: clamp(1rem, 2vw, 1.2rem);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 0 18px rgba(201, 169, 97, 0.3);
}

.gallery-btn:hover {
    background: var(--accent-gold);
    color: var(--cover-dark);
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(201, 169, 97, 0.7);
}

.gallery-dots {
    display: flex;
    gap: 1rem;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(201, 169, 97, 0.3);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 0 10px rgba(201, 169, 97, 0.2);
}

.gallery-dot.active {
    background: var(--accent-gold);
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(201, 169, 97, 0.6);
}

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.testimonial-btn {
    width: clamp(40px, 6vw, 50px);
    height: clamp(40px, 6vw, 50px);
    background: rgba(201, 169, 97, 0.25);
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
    color: var(--accent-gold);
    font-size: clamp(1rem, 2vw, 1.2rem);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 0 18px rgba(201, 169, 97, 0.3);
}

.testimonial-btn:hover {
    background: var(--accent-gold);
    color: var(--cover-dark);
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(201, 169, 97, 0.7);
}

.testimonial-dots {
    display: flex;
    gap: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(201, 169, 97, 0.3);
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 0 10px rgba(201, 169, 97, 0.2);
}

.dot.active {
    background: var(--accent-gold);
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(201, 169, 97, 0.6);
}

/* Contact Section - Improved Responsive */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 3rem);
    align-items: start;
    width: 100%;
}

.contact-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: #2c2416;
    text-shadow: 1px 1px 5px rgba(201, 169, 97, 0.2);
    margin-bottom: 1.5rem;
}

.contact-heading {
    font-family: var(--font-primary);
    font-size: clamp(2.4rem, 5vw, 3.2rem);
    color: #2c2416;
    margin-bottom: 0.75rem;
    text-align: center;
}

.contact-subheading {
    font-family: var(--font-primary);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--accent-gold);
    margin-bottom: 1.75rem;
    letter-spacing: 1px;
    text-align: center;
}

.contact-description {
    color: #4a3a28;
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.8;
    text-shadow: none;
    margin-bottom: 3rem;
}

.contact-details {
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 15px;
    transition: all var(--transition-fast);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.contact-item:hover {
    background: rgba(201, 169, 97, 0.25);
    transform: translateX(10px);
    box-shadow: 0 0 22px rgba(201, 169, 97, 0.3);
}

.contact-icon {
    width: clamp(50px, 8vw, 60px);
    height: clamp(50px, 8vw, 60px);
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-amber));
    box-shadow: 0 0 25px rgba(201, 169, 97, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: var(--storm-dark);
    flex-shrink: 0;
}

.contact-text-info h4 {
    color: #2c2416;
    font-size: clamp(1.1rem, 2vw, 1.2rem);
    margin-bottom: 0.5rem;
    text-shadow: none;
}

.contact-text-info p {
    color: #6b5d4f;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
}

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

.social-link {
    width: clamp(40px, 6vw, 50px);
    height: clamp(40px, 6vw, 50px);
    background: rgba(201, 169, 97, 0.25);
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: clamp(1rem, 2vw, 1.2rem);
    transition: all var(--transition-fast);
    box-shadow: 0 0 18px rgba(201, 169, 97, 0.3);
}

.social-link:hover {
    background: var(--accent-gold);
    color: var(--cover-dark);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 0 30px rgba(201, 169, 97, 0.7);
}

/* Contact Form - Improved Responsive */
.contact-form-container {
    background: linear-gradient(135deg, #ffffff 0%, #faf7f2 50%, #f5ede0 100%);
    padding: 0.4rem clamp(2.2rem, 4.5vw, 3.2rem);
    border-radius: 20px;
    border: 2px solid rgba(201, 169, 97, 0.3);
    backdrop-filter: blur(10px);
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 0 30px rgba(201, 169, 97, 0.15);
}

.contact-form {
    width: 100%;
}

.contact-right-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-art-frame {
    padding: clamp(1.6rem, 3vw, 2rem);
    border-radius: 28px;
    background: radial-gradient(circle at top left, #fdf7ee 0%, #f3e6d7 40%, #e8dac7 100%);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15), 0 0 35px rgba(201, 169, 97, 0.25);
    position: relative;
}

.contact-art-inner {
    border-radius: 22px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.4);
}

.contact-art-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.contact-header-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.25rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: 40px;
    margin-top: -500px;
    position: relative;
    z-index: 5;
}

.contact-main-inline {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card-main,
.contact-card-sub {
    border-radius: 16px;
    border: 2px solid rgba(201, 169, 97, 0.4);
    background: linear-gradient(135deg, rgba(245, 237, 224, 0.96), rgba(237, 229, 216, 0.98));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    padding: 1.4rem 1.8rem;
}

.contact-card-main h2 {
    font-family: var(--font-primary);
    font-size: clamp(2.4rem, 5vw, 3.2rem);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #2c2416;
    text-align: center;
}

.contact-card-sub {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1.25rem;
}

.contact-card-subtitle {
    font-family: var(--font-primary);
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: #4a3a28;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
}

.contact-card-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(201, 169, 97, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    background: rgba(0, 0, 0, 0.75);
    box-shadow: 0 0 22px rgba(201, 169, 97, 0.6);
}

.contact-card-arrow i {
    font-size: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: clamp(1rem, 2vw, 1.2rem);
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(201, 169, 97, 0.3);
    border-radius: 10px;
    color: #2c2416;
    font-family: var(--font-secondary);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 22px rgba(201, 169, 97, 0.4), 0 0 35px rgba(201, 169, 97, 0.2);
}

.form-input::placeholder {
    color: var(--medium-gray);
}

.form-textarea {
    resize: vertical;
    min-height: clamp(100px, 15vw, 120px);
}

.form-label {
    position: absolute;
    top: clamp(1rem, 2vw, 1.2rem);
    left: clamp(1rem, 2vw, 1.2rem);
    color: var(--medium-gray);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    pointer-events: none;
    transition: all var(--transition-fast);
}

.form-input:focus+.form-label,
.form-input:not(:placeholder-shown)+.form-label {
    top: -0.5rem;
    left: 1rem;
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    color: var(--accent-gold);
    background: rgba(255, 252, 247, 0.98);
    padding: 0 0.5rem;
    border-radius: 4px;
}

.form-submit {
    width: 100%;
    margin-top: 1rem;
}

/* Contact page: position/spacing refinements without layout redesign */
.page-contact .contact-header-stack {
    max-width: 560px;
    margin-left: clamp(1rem, 4vw, 3.5rem);
    margin-right: auto;
    transform: translateY(-75px);
}

.page-contact .contact-card-main,
.page-contact .contact-card-sub {
    padding-left: 2.1rem;
    padding-right: 2.1rem;
}

.page-contact #contact .contact-visual {
    justify-content: flex-end;
    padding-right: 0;
    transform: translateX(-150px);
}

.page-contact #contact .contact-content {
    grid-template-columns: 1fr;
}

.page-contact #contact .contact-info {
    width: 100%;
}

.page-contact .contact-content {
    gap: clamp(1.5rem, 4vw, 2.5rem);
}

.page-contact .contact-right-stack {
    max-width: clamp(235px, 30vw, 325px);
    justify-self: end;
    transform: translateX(-50px);
}

.page-contact .contact-art-frame {
    padding: clamp(1rem, 2.5vw, 1.4rem);
}

.page-contact .contact-art-image {
    max-height: clamp(280px, 37vw, 390px);
    object-fit: contain;
}

/* Contact page readable text on light backgrounds */
.page-contact .contact-card-main h2,
.page-contact .contact-card-subtitle,
.page-contact .contact-title,
.page-contact .contact-text-info h4,
.page-contact .contact-text-info p,
.page-contact .form-input,
.page-contact .form-label {
    color: #000000;
}

.page-contact .form-input:focus+.form-label,
.page-contact .form-input:not(:placeholder-shown)+.form-label {
    color: #000000;
    background: transparent;
    -webkit-text-fill-color: #000000;
}

@media screen and (max-width: 968px) {
    .page-contact .contact-header-stack {
        margin-left: auto;
        margin-right: auto;
    }

    .page-contact #contact .contact-visual {
        justify-content: center;
        padding-right: 0;
    }

    .page-contact #contact .contact-content {
        grid-template-columns: 1fr;
    }

    .page-contact .contact-right-stack {
        justify-self: center;
        max-width: clamp(200px, 62vw, 280px);
    }
}

/* Footer - Improved Responsive */
.footer {
    background: linear-gradient(135deg, #e8ddd0 0%, #e0d5c5 50%, #d4c5b0 100%);
    border-top: 2px solid rgba(201, 169, 97, 0.4);
    padding: clamp(3rem, 6vw, 4rem) 0 2rem;
    width: 100%;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.1);
}

.footer-content {
    width: 100%;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    margin-bottom: 3rem;
}

.footer-brand {
    width: 100%;
}

.footer-title {
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #2c2416;
    margin-bottom: 0.5rem;
}

.footer-subtitle {
    color: var(--accent-gold);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 12px rgba(201, 169, 97, 0.5);
}

.footer-description {
    color: #4a3a28;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
}

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

.footer-social-link {
    width: clamp(40px, 6vw, 45px);
    height: clamp(40px, 6vw, 45px);
    background: rgba(201, 169, 97, 0.25);
    border: 1px solid var(--accent-gold);
    border-radius: 50%;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all var(--transition-fast);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    box-shadow: 0 0 18px rgba(201, 169, 97, 0.3);
}

.footer-social-link:hover {
    background: var(--accent-gold);
    color: var(--cover-dark);
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(201, 169, 97, 0.7);
}

.footer-newsletter {
    text-align: left;
    width: 100%;
}

.footer-column-title {
    color: var(--pure-white);
    font-size: clamp(1.1rem, 2vw, 1.2rem);
    margin-bottom: 1.5rem;
}

.newsletter-text {
    color: var(--light-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
}

.newsletter-form {
    width: 100%;
}

.newsletter-input-group {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    flex: 1;
    padding: clamp(0.7rem, 1.5vw, 0.8rem);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(52, 152, 219, 0.3);
    border-radius: 8px;
    color: var(--pure-white);
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

.newsletter-input::placeholder {
    color: var(--medium-gray);
}

.newsletter-btn {
    padding: clamp(0.7rem, 1.5vw, 0.8rem) clamp(0.8rem, 1.8vw, 1rem);
    background: linear-gradient(45deg, var(--thunder-blue), var(--lightning-gold));
    border: none;
    border-radius: 8px;
    color: var(--storm-dark);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(52, 152, 219, 0.2);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: var(--medium-gray);
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
}

.footer-legal {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.legal-link {
    color: var(--medium-gray);
    text-decoration: none;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    transition: color var(--transition-fast);
}

.legal-link:hover {
    color: var(--lightning-gold);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loadingProgress {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

@keyframes lightning-strike {

    0%,
    90%,
    100% {
        opacity: 0;
        transform: scaleY(0);
    }

    5%,
    10% {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes cloud-drift {
    from {
        transform: translateX(-100px);
    }

    to {
        transform: translateX(calc(100vw + 100px));
    }
}

@keyframes rain-fall {
    from {
        transform: translateY(-100vh);
        opacity: 1;
    }

    to {
        transform: translateY(100vh);
        opacity: 0;
    }
}

@keyframes glitch-1 {

    0%,
    100% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }
}

@keyframes glitch-2 {

    0%,
    100% {
        transform: translate(0);
    }

    20% {
        transform: translate(2px, -2px);
    }

    40% {
        transform: translate(2px, 2px);
    }

    60% {
        transform: translate(-2px, -2px);
    }

    80% {
        transform: translate(-2px, 2px);
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }

    to {
        width: 22ch;
    }
}

@keyframes blink {

    0%,
    50% {
        border-color: var(--lightning-gold);
    }

    51%,
    100% {
        border-color: transparent;
    }
}

@keyframes silhouette-sway {

    0%,
    100% {
        transform: rotate(-2deg);
    }

    50% {
        transform: rotate(2deg);
    }
}

@keyframes glow-pulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes storm-aura {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

@keyframes storm-float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Design - Mobile First Approach */
@media screen and (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }

    .container-fluid {
        padding: 0 15px;
    }

    .hero-content,
    .about-content,
    .book-showcase,
    .contact-content {
        gap: 2rem;
    }

    .nav-list {
        gap: 1.5rem;
    }
}

@media screen and (max-width: 968px) {
    .custom-cursor {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        margin: 0;
        background: rgba(13, 20, 33, 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translate3d(100%, 0, 0);
        transition: transform var(--transition-fast);
        z-index: 1001;
        pointer-events: none;
    }

    .nav-menu.show-menu {
        transform: translate3d(0, 0, 0);
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-close {
        display: block;
    }

    .hero-content,
    .about-content,
    .book-showcase,
    .contact-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-image-wrapper {
        max-width: 260px;
        margin-left: auto;
        margin-right: auto;
    }

    .book-3d {
        width: clamp(180px, 50vw, 260px);
        height: clamp(230px, 60vw, 340px);
    }

    .hero-book-copy {
        text-align: left;
    }

    .hero-text {
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }

    .hero-buttons {
        justify-content: center;
        gap: 1rem;
    }

    .timeline-line {
        left: 2rem;
    }

    .timeline-marker {
        left: 2rem;
    }

    .timeline-content {
        width: calc(100% - 4rem);
        margin-left: 4rem;
        text-align: left;
    }

    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
        margin-left: 4rem;
        margin-right: 0;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .achievement-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .quote-item {
        position: static;
        margin-bottom: 1rem;
        opacity: 1;
        transform: none;
    }

    .floating-quotes {
        position: static;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }

    .brand-text {
        font-size: 1.3rem;
    }

    .brand-subtitle {
        font-size: 0.7rem;
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .container-fluid {
        padding: 0 10px;
    }

    .section {
        padding: 60px 0;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .testimonial-controls,
    .gallery-controls {
        gap: 1rem;
    }
    
    .gallery-slider {
        max-width: 100%;
    }
    
    .gallery-image-wrapper {
        height: clamp(250px, 50vw, 350px);
    }
    
    .gallery-card {
        padding: clamp(0.6rem, 1.5vw, 1rem);
    }

    .book-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .social-links,
    .footer-social {
        justify-content: center;
    }

    .newsletter-input-group {
        flex-direction: column;
        gap: 1rem;
    }

    .newsletter-btn {
        width: 100%;
    }

    .brand-text {
        font-size: 1.2rem;
    }

    .brand-subtitle {
        font-size: 0.65rem;
    }
}

@media screen and (max-width: 576px) {
    .container {
        padding: 0 8px;
    }

    .container-fluid {
        padding: 0 8px;
    }

    .section {
        padding: 50px 0;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .contact-form-container {
        padding: 1.5rem;
    }

    .achievement-item {
        padding: 1rem;
    }

    .contact-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    .audio-controls {
        bottom: 1rem;
        right: 1rem;
    }

    .scroll-indicator {
        bottom: 1rem;
    }

    .brand-text {
        font-size: 1.1rem;
    }

    .brand-subtitle {
        font-size: 0.6rem;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding: 0 5px;
    }

    .container-fluid {
        padding: 0 5px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }

    .testimonial-author {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-legal {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .brand-text {
        font-size: 1rem;
    }

    .brand-subtitle {
        font-size: 0.55rem;
    }
}

@media screen and (max-width: 320px) {

    .container,
    .container-fluid {
        padding: 0 5px;
    }

    .section {
        padding: 40px 0;
    }

    .hero-content,
    .about-content,
    .book-showcase,
    .contact-content {
        gap: 1rem;
    }

    .testimonial-card,
    .contact-form-container,
    .achievement-item,
    .contact-item,
    .timeline-content {
        padding: 1rem;
    }
    
    .coming-soon-card {
        padding: clamp(2rem, 4vw, 2.5rem);
        margin: 0 1rem;
    }
    
    .coming-soon-icon {
        font-size: clamp(2.5rem, 5vw, 3rem);
    }
    
    .coming-soon-title {
        font-size: clamp(1.5rem, 3vw, 2rem);
    }
    
    .coming-soon-text {
        font-size: clamp(0.9rem, 1.8vw, 1rem);
    }

    .brand-text {
        font-size: 0.9rem;
    }

    .brand-subtitle {
        font-size: 0.5rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

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

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

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

.mb-3 {
    margin-bottom: 1.5rem;
}

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

.mb-5 {
    margin-bottom: 3rem;
}

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

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

.mt-3 {
    margin-top: 1.5rem;
}

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

.mt-5 {
    margin-top: 3rem;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

/* High DPI Display Support */
@media screen and (-webkit-min-device-pixel-ratio: 2),
screen and (min-resolution: 192dpi) {

    .book-cover img,
    .author-img,
    .author-avatar img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Responsive Video/Image Background */
@media (max-width: 768px) {
    .hero-video-bg,
    .hero-image-bg,
    .hero-blogs-bg {
        object-position: center;
    }
    
    .hero-video-overlay,
    .hero-image-overlay {
        background: rgba(0, 0, 0, 0.4);
    }
    
    .hero-blogs-overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.25) 0%,
            transparent 40%,
            transparent 60%,
            rgba(0, 0, 0, 0.2) 100%
        );
    }
}

/* Blogs Page Hero - BLOGS.png Background */
.hero.hero-blogs {
    background: #1a2332;
    min-height: 55vh;
}

.hero-blogs-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    pointer-events: none;
    animation: heroBlogsReveal 1.2s ease-out forwards;
}

@keyframes heroBlogsReveal {
    from {
        opacity: 0;
        transform: scale(1.08);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-blogs-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.15) 0%,
        transparent 35%,
        transparent 65%,
        rgba(0, 0, 0, 0.12) 100%
    );
    z-index: 2;
    pointer-events: none;
}

.hero.hero-blogs .hero-blogs-bg {
    transition: transform 6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero.hero-blogs:hover .hero-blogs-bg {
    transform: scale(1.04);
}

/* Contact Page Hero - reduced height */
.hero.hero-contact {
    min-height: 55vh;
}

/* Blogs Section - Blog Cards */
.blogs-section {
    background: #EEE6D9;
}

.blogs-intro-banner {
    width: 100%;
    min-height: 315px;
    margin: var(--header-height) 0 0;
    padding: clamp(1.1rem, 2.5vw, 1.6rem) clamp(1rem, 3vw, 2rem);
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    align-items: center;
}

.blogs-intro-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.blogs-intro-banner-inner p {
    margin: 0;
    color: #111111;
    font-family: var(--font-primary);
    font-size: clamp(1.4rem, 3.2vw, 2.1rem);
    line-height: 1.5;
    font-weight: 700;
    letter-spacing: 0.01em;
    max-width: 980px;
    margin-inline: auto;
}

.blogs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 2.5rem);
    max-width: 1200px;
    margin: 0 auto;
}

.blogs-section .section-subtitle,
.blogs-section .section-title {
    color: #000000;
}

.blogs-section .section-title {
    background: none;
    -webkit-text-fill-color: #000000;
}

/* Blogs page text color override (excluding navbar) */
.page-blogs .blogs-intro-banner,
.page-blogs .blogs-intro-banner *,
.page-blogs .blogs-section,
.page-blogs .blogs-section *,
.page-blogs .footer,
.page-blogs .footer * {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

.page-blogs .footer .newsletter-input::placeholder {
    color: #000000 !important;
    opacity: 1;
}

/* (art page used default responsive grid; page-specific breakpoints removed) */

.blog-card {
    background: linear-gradient(135deg, #ffffff 0%, #faf7f2 50%, #f5ede0 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(201, 169, 97, 0.3);
    transition: all var(--transition-medium);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 0 20px rgba(201, 169, 97, 0.12);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12), 0 0 35px rgba(201, 169, 97, 0.2);
    border-color: rgba(201, 169, 97, 0.5);
}

.blog-card-image {
    width: 100%;
    height: clamp(220px, 28vw, 280px);
    overflow: hidden;
    background: #e8ddd0;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-medium);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: clamp(1.25rem, 3vw, 1.75rem);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-family: var(--font-primary);
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
    font-weight: 700;
    color: #2c2416;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    transition: color var(--transition-fast);
}

.blog-card:hover .blog-card-title {
    color: var(--accent-gold);
}

.blog-card-excerpt {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    color: #4a3a28;
    line-height: 1.7;
    margin-bottom: 1rem;
    flex: 1;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--accent-gold);
    text-decoration: none;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    transition: all var(--transition-fast);
}

.blog-card-link:hover {
    color: var(--accent-amber);
    gap: 0.75rem;
}

.blog-card-link i {
    font-size: 0.85em;
    transition: transform var(--transition-fast);
}

.blog-card-link:hover i {
    transform: translateX(4px);
}

/* Single blog post page (e.g. Learning-to-Laugh.php) */
.blog-post-page {
    padding-top: calc(var(--header-height) + clamp(1.75rem, 4vw, 2.75rem));
    padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.blog-post-inner {
    max-width: 920px;
    margin: 0 auto;
}

.blog-post-full.blog-card {
    max-width: 100%;
}

.blog-post-full .blog-post-heading {
    font-size: clamp(1.45rem, 3.5vw, 2.15rem);
    margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
    line-height: 1.25;
}

.blog-post-subheading {
    font-family: var(--font-primary);
    font-size: clamp(1rem, 2.1vw, 1.25rem);
    color: #4a3a28;
    margin: -0.3rem 0 1.2rem;
    letter-spacing: 0.02em;
}

.blog-post-body {
    margin-bottom: 0.5rem;
}

.blog-post-body p {
    font-size: clamp(0.95rem, 1.9vw, 1.05rem);
    line-height: 1.85;
    color: #4a3a28;
    margin: 0 0 clamp(1rem, 2vw, 1.35rem);
}

.blog-post-body p:last-child {
    margin-bottom: 0;
}

.blog-post-back {
    margin-top: 1.5rem;
    align-self: flex-start;
}

.blog-post-back i {
    margin-right: 0.35rem;
}

.blog-post-full.blog-card:hover {
    transform: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 0 20px rgba(201, 169, 97, 0.12);
    border-color: rgba(201, 169, 97, 0.3);
}

.blog-post-full.blog-card:hover .blog-card-image img {
    transform: none;
}

@media (max-width: 768px) {
    .blogs-intro-banner {
        margin-top: var(--header-height);
        padding: 1rem 0.9rem;
    }

    .blogs-intro-banner-inner p {
        line-height: 1.6;
    }

    .blogs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .blog-card-image {
        height: clamp(200px, 45vw, 260px);
    }
}

/* Coming Soon Section */
.coming-soon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: clamp(2rem, 5vw, 4rem) 0;
}

.coming-soon-card {
    background: linear-gradient(135deg, #ffffff 0%, #faf7f2 50%, #f5ede0 100%);
    border-radius: 20px;
    border: 2px solid rgba(201, 169, 97, 0.3);
    backdrop-filter: blur(10px);
    padding: clamp(3rem, 6vw, 4rem);
    text-align: center;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 0 30px rgba(201, 169, 97, 0.15);
    transition: all var(--transition-medium);
}

.coming-soon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15), 0 0 40px rgba(201, 169, 97, 0.25);
    border-color: rgba(201, 169, 97, 0.5);
}

.coming-soon-icon {
    font-size: clamp(3rem, 6vw, 4rem);
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.coming-soon-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: #2c2416;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 5px rgba(201, 169, 97, 0.2);
}

.coming-soon-text {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: #4a3a28;
    line-height: 1.8;
    margin: 0;
}

/* Home (index.php): black text after hero — navbar & hero unchanged */
.page-index .section,
.page-index .section *,
.page-index .footer,
.page-index .footer * {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

.page-index .section .section-title {
    background: none !important;
    -webkit-text-fill-color: #000000 !important;
}

.page-index .footer .newsletter-input::placeholder {
    color: #000000 !important;
    opacity: 1;
}

/* About page: black text after hero — navbar & hero unchanged (hero has no .section class) */
.page-about .section,
.page-about .section *,
.page-about .footer,
.page-about .footer * {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

.page-about .section .section-title {
    background: none !important;
    -webkit-text-fill-color: #000000 !important;
}

.page-about .footer .newsletter-input::placeholder {
    color: #000000 !important;
    opacity: 1;
}

/* Books page: black text after hero — navbar & hero unchanged */
.page-books .section,
.page-books .section *,
.page-books .footer,
.page-books .footer * {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

.page-books .section .section-title {
    background: none !important;
    -webkit-text-fill-color: #000000 !important;
}

.page-books .footer .newsletter-input::placeholder {
    color: #000000 !important;
    opacity: 1;
}

/* Art page: black text after hero — navbar & hero unchanged */
.page-art .section,
.page-art .section *,
.page-art .footer,
.page-art .footer * {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

.page-art .section .section-title {
    background: none !important;
    -webkit-text-fill-color: #000000 !important;
}

.page-art .section .section-subtitle {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

.page-art .footer .newsletter-input::placeholder {
    color: #000000 !important;
    opacity: 1;
}

/* Contact page: black text after hero — navbar & hero unchanged */
.page-contact .section,
.page-contact .section *,
.page-contact .footer,
.page-contact .footer * {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

.page-contact .section .section-title {
    background: none !important;
    -webkit-text-fill-color: #000000 !important;
}

.page-contact .footer .newsletter-input::placeholder {
    color: #000000 !important;
    opacity: 1;
}

/* Print Styles */
@media print {

    .custom-cursor,
    .loading-screen,
    .hero-video-bg,
    .hero-video-overlay,
    .hero-blogs-bg,
    .hero-blogs-overlay,
    .nav-toggle,
    .storm-elements {
        display: none !important;
    }

    .hero,
    .section {
        page-break-inside: avoid;
    }

    body {
        background: white !important;
        color: black !important;
    }
}