/* 
    R. Erich Telsch - Horatio: Love in the Floodwaters
    Premium Theme & Advanced Water Animations
    Refined Alignment & Responsive Grid
*/

:root {
    /* Color Palette */
    --clr-bg: #050a11;
    --clr-surface: #0a1320;
    --clr-surface-card: #0d1b2d;
    --clr-primary: #1b3857;
    /* Deep water blue */
    --clr-accent: #48739e;
    --clr-accent-bright: #64a6e3;
    --clr-text: #e2e8f0;
    --clr-text-muted: #94a3b8;

    /* Typography */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Variables */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 80px;
}

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

html {
    scroll-behavior: auto;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6,
.logo,
.loader-text,
.sub-heading-accent {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

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

.text-center .section-title::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.sub-heading-accent {
    color: var(--clr-accent-bright);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 8px;
}

.lead-text {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Loader */
.flood-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #03070d;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.water-level {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, var(--clr-primary), var(--clr-accent), #0a1b2d);
    z-index: 1;
    opacity: 0.85;
}

.loader-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.loader-text {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    position: relative;
}

.loader-text::before {
    content: "HORATIO";
    position: absolute;
    left: 0;
    top: 0;
    color: #fff;
    width: 0%;
    overflow: hidden;
    white-space: nowrap;
    -webkit-text-stroke: 0px;
}

.loader-sub {
    font-size: 1.1rem;
    color: var(--clr-accent-bright);
    margin-top: 10px;
    opacity: 0;
    text-transform: uppercase;
    letter-spacing: 4px;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(5, 10, 17, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
    overflow: visible;
}

.site-header.scrolled {
    background: rgba(5, 10, 17, 0.96);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    border-bottom-color: rgba(72, 115, 158, 0.2);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
    min-width: 0; /* Prevent flex children from overflowing */
    gap: 16px;
    position: relative;
}

.logo {
    font-size: clamp(1rem, 3.5vw, 1.4rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    color: rgba(255, 255, 255, 0.85);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--clr-accent), var(--clr-accent-bright));
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover {
    color: #fff;
}

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

/* Buttons */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, #1b3857 0%, #2c5987 50%, #48739e 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(27, 56, 87, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 10px 30px rgba(72, 115, 158, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.btn-outline {
    border: 1px solid var(--clr-accent-bright);
    color: var(--clr-accent-bright);
    padding: 10px 24px;
    font-size: 0.9rem;
}

.btn-outline:hover {
    background: var(--clr-accent-bright);
    color: #050a11;
    box-shadow: 0 0 20px rgba(100, 166, 227, 0.4);
}

.btn-water-ripple {
    position: relative;
    overflow: hidden;
}

.btn-water-ripple .btn-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 45%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.8s ease-out;
    pointer-events: none;
    z-index: 0;
}

.btn-water-ripple:hover .btn-wave {
    transform: translate(-50%, -50%) scale(1.5);
}

.btn-water-ripple span {
    position: relative;
    z-index: 1;
}

.btn-large {
    padding: 18px 44px;
    font-size: 1.2rem;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: var(--transition);
}

/* Sections Base */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    margin-bottom: 24px;
    color: #fff;
    position: relative;
    display: inline-block;
    line-height: 1.15;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--clr-accent), var(--clr-accent-bright));
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.split-layout {
    display: flex;
    align-items: center;
    gap: 70px;
}

.split-layout.reverse {
    flex-direction: row-reverse;
}

.split-image,
.split-text {
    flex: 1;
    width: 100%;
}

.split-text p {
    margin-bottom: 18px;
    color: var(--clr-text-muted);
    font-size: 1.05rem;
}

/* ==========================================================================
   HERO SECTION - PERFECTED ALIGNMENT
   ========================================================================== */
.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    padding-top: calc(var(--header-height) + 30px);
    padding-bottom: 90px;
    overflow: hidden;
    background-color: var(--clr-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg .bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5) contrast(1.2);
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 40%, rgba(27, 56, 87, 0.5) 0%, rgba(5, 10, 17, 0.9) 70%, var(--clr-bg) 100%);
}

.water-ripple-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-radial-gradient(circle at 50% 50%, rgba(72, 115, 158, 0.03) 0, rgba(72, 115, 158, 0.03) 10px, transparent 10px, transparent 20px);
    pointer-events: none;
    animation: pulseRipple 8s infinite linear;
}

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

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

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

.hero-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    z-index: 2;
    gap: 40px;
    margin: auto 0;
}

.hero-text {
    flex: 1;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.badge-tag {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(72, 115, 158, 0.25);
    border: 1px solid rgba(100, 166, 227, 0.4);
    border-radius: 30px;
    color: var(--clr-accent-bright);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-text h1 {
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    line-height: 0.95;
    margin-bottom: 12px;
    background: linear-gradient(180deg, #ffffff 30%, #a2c4e8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.9));
}

.hero-text .subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-family: var(--font-heading);
    color: var(--clr-accent-bright);
    letter-spacing: 6px;
    margin-bottom: 20px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.hero-desc {
    font-size: 1.15rem;
    color: rgba(226, 232, 240, 0.9);
    margin-bottom: 35px;
    line-height: 1.6;
    max-width: 520px;
}

.cta-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.book-3d-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.book-mockup {
    width: 100%;
    max-width: 440px;
    height: auto;
    max-height: 440px;
    object-fit: contain;
    filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.9));
    position: relative;
    z-index: 2;
    margin: 0 auto;
    display: block;
}

.water-glow-behind {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: 85%;
    background: radial-gradient(circle, rgba(72, 115, 158, 0.45) 0%, rgba(27, 56, 87, 0.1) 65%, transparent 85%);
    filter: blur(40px);
    z-index: 1;
    border-radius: 50%;
}

/* Wave Separator */
.hero-wave-separator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 3;
    pointer-events: none;
}

.waves {
    position: relative;
    width: 100%;
    height: 65px;
    margin-bottom: -1px;
    min-height: 50px;
    max-height: 90px;
}

.parallax-waves>use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax-waves>use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.parallax-waves>use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.parallax-waves>use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.parallax-waves>use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}

/* About Book */
.cover-frame-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.full-cover {
    width: 100%;
    height: auto;
    display: block;
}

.book-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-num {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--clr-accent-bright);
}

.feature-txt {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}

/* About Author */
.dark-section {
    background-color: var(--clr-surface);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.author-card-enhanced {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: var(--clr-surface-card);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(72, 115, 158, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.author-image-box {
    position: relative;
    width: 100%;
    height: 360px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.2);
}

.author-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 19, 32, 0.95) 0%, rgba(10, 19, 32, 0.2) 60%, transparent 100%);
}

.author-avatar-badge {
    position: absolute;
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.author-avatar-badge .initials {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}

.author-card-footer {
    padding: 18px 10px 8px;
    text-align: center;
}

.author-role {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-accent-bright);
    font-weight: 600;
}

.author-tagline {
    font-size: 1.35rem;
    color: #fff;
    margin-top: 4px;
}

.water-ring {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 160px;
    height: 160px;
    border: 2px dashed rgba(72, 115, 158, 0.3);
    border-radius: 50%;
    animation: spin 30s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.author-name {
    font-size: 2.2rem;
    color: var(--clr-accent-bright);
    margin-bottom: 20px;
}

/* ==========================================================================
   PRE-FOOTER CTA - PERFECTED CENTER ALIGNMENT
   ========================================================================== */
.cta-section {
    position: relative;
    padding: 110px 0 0;
    background: linear-gradient(180deg, var(--clr-bg) 0%, var(--clr-surface) 50%, var(--clr-primary) 100%);
    overflow: hidden;
    text-align: center;
}

.cta-water-container {
    position: relative;
    width: 100%;
}

.cta-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cta-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(100, 166, 227, 0.15);
    border: 1px solid rgba(100, 166, 227, 0.4);
    border-radius: 30px;
    color: var(--clr-accent-bright);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 auto 20px auto;
    text-align: center;
}

.cta-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    color: #fff;
    margin: 0 auto 20px auto;
    line-height: 1.15;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    text-align: center;
    width: 100%;
}

.cta-desc {
    font-size: 1.15rem;
    color: var(--clr-text-muted);
    margin: 0 auto 35px auto;
    line-height: 1.6;
    max-width: 650px;
    text-align: center;
}

.cta-btn-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.cta-pulse {
    animation: ctaGlow 3s infinite alternate;
}

@keyframes ctaGlow {
    0% {
        box-shadow: 0 0 20px rgba(72, 115, 158, 0.4);
    }

    100% {
        box-shadow: 0 0 45px rgba(100, 166, 227, 0.8);
    }
}

.cta-waves-wrapper {
    position: relative;
    width: 100%;
    line-height: 0;
    z-index: 2;
    margin-top: 10px;
}

.cta-waves {
    height: 85px;
    max-height: 110px;
}

/* Contact Us */
.contact-section {
    background-color: var(--clr-bg);
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-lead {
    font-size: 1.1rem;
    color: var(--clr-text-muted);
    margin-bottom: 35px;
    line-height: 1.6;
}

.info-boxes {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: var(--transition);
}

.info-card:hover {
    background: rgba(72, 115, 158, 0.1);
    border-color: rgba(100, 166, 227, 0.3);
    transform: translateX(5px);
}

.info-icon {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    background: rgba(72, 115, 158, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-accent-bright);
}

.info-text h5 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 2px;
}

.info-text p {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
}

.contact-form-wrapper {
    background: rgba(10, 19, 32, 0.7);
    padding: 45px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--clr-accent-bright);
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    background: rgba(5, 10, 17, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-accent-bright);
    box-shadow: 0 0 15px rgba(100, 166, 227, 0.3);
    background: rgba(5, 10, 17, 0.95);
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
}

/* Footer */
.site-footer {
    background-color: #020408;
    padding: 60px 0 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: var(--clr-text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

.footer-socials a:hover {
    color: var(--clr-accent-bright);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

/* ==========================================================================
   STRICT RESPONSIVE ALIGNMENT FIXES (DESKTOP, TABLET & MOBILE)
   ========================================================================== */

@media (max-width: 992px) {
    .hero {
        min-height: auto;
        max-height: none;
        padding-top: calc(var(--header-height) + 30px);
        padding-bottom: 80px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 35px;
    }

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

    .badge-tag {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-group {
        justify-content: center;
    }

    .book-mockup {
        max-width: 360px;
        max-height: 360px;
    }

    .split-layout,
    .split-layout.reverse {
        flex-direction: column;
        gap: 45px;
        text-align: center;
    }

    .split-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .book-features {
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .header-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
        flex-shrink: 0;
    }

    /* Mobile dropdown menu - fixed to always appear below the header, full width */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100vw;
        background: rgba(5, 10, 17, 0.98);
        padding: 24px 20px;
        text-align: center;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-bottom: 1px solid rgba(72, 115, 158, 0.3);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
        z-index: 999;
        gap: 20px;
    }

    .hero {
        padding-top: calc(var(--header-height) + 20px);
        padding-bottom: 65px;
    }

    .book-mockup {
        max-width: 300px;
        max-height: 300px;
    }

    .author-card-enhanced {
        max-width: 100%;
    }

    .author-image-box {
        height: 300px;
    }

    .cta-section {
        padding-top: 80px;
    }

    .cta-content {
        padding-bottom: 40px;
    }

    .contact-form-wrapper {
        padding: 25px 20px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 3rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .btn {
        width: 100%;
    }

    .book-mockup {
        max-width: 240px;
        max-height: 240px;
    }

    .section {
        padding: 60px 0;
    }

    .book-features {
        grid-template-columns: 1fr;
    }
}