/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #1a1a1a;
    --color-secondary: #4a4a4a;
    --color-accent: #6b6b6b;
    --color-white: #ffffff;
    --color-text: #1a1a1a;
    --color-text-light: #4a4a4a;
    --font-serif: 'Crimson Text', serif;
    --font-sans: 'Inter', sans-serif;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    --max-width: 700px;
    --transition: all 0.3s ease;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text);
    background: #1a1a2e;
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Background Image */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('sailboat woman.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 1;
    z-index: 0;
}

@media (max-width: 768px) {
    .background-image {
        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
        background-repeat: no-repeat;
    }
}

@media (max-width: 480px) {
    .background-image {
        background-size: cover;
        background-position: center center;
        background-attachment: scroll;
        background-repeat: no-repeat;
    }
}

/* Glass Morphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: var(--spacing-lg);
    margin: var(--spacing-md) auto;
    max-width: var(--max-width);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.5);
}

.glass-inner {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--spacing-md);
    margin-top: var(--spacing-md);
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: var(--spacing-sm);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

a {
    color: var(--color-white);
    text-decoration: none;
    transition: var(--transition);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

a:hover {
    color: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
}

strong {
    font-weight: 600;
    color: var(--color-white);
}

em {
    font-style: italic;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-white);
    text-decoration: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-logo:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--color-white);
    text-decoration: none;
    position: relative;
    transition: var(--transition);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.8);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    margin-right: var(--spacing-xs);
    gap: 5px;
    position: relative;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--color-white);
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(80px + var(--spacing-xl)) var(--spacing-md) var(--spacing-xl);
    position: relative;
    z-index: 1;
}

.hero-card {
    text-align: center;
    width: 100%;
}

.hero-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--spacing-sm);
    color: var(--color-white);
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
}

.hero-text {
    text-align: left;
    margin-bottom: var(--spacing-lg);
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.8;
    color: var(--color-white);
}

.hero-text p {
    margin-bottom: var(--spacing-md);
}

.hero-image {
    margin: 0 auto var(--spacing-lg);
    display: flex;
    justify-content: center;
}

.author-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-lg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 12px;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--color-white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--color-white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Section Styles */
.section {
    padding: var(--spacing-xl) var(--spacing-md);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

/* About Section */
.about-content {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.8;
}

.about-content p {
    margin-bottom: var(--spacing-md);
}

/* Book Section */
.book-content {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.8;
}

.book-content p {
    margin-bottom: var(--spacing-md);
}

.book-status {
    margin-top: var(--spacing-lg);
}

.book-status p {
    margin-bottom: var(--spacing-xs);
}

.muted {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95em;
    font-style: italic;
}

/* Press Section */
.press-content {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.8;
}

.press-content p {
    margin-bottom: var(--spacing-md);
}

/* Contact Section */
.contact-content {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.8;
    text-align: center;
}

.contact-content p {
    margin-bottom: var(--spacing-sm);
}

.contact-content a {
    color: var(--color-white);
    font-weight: 500;
}

/* Footer */
.footer {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--spacing-md);
    text-align: center;
    margin: 0;
    border-radius: 0;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer p {
    margin-bottom: var(--spacing-xs);
    font-size: 0.9rem;
    color: var(--color-white);
}

.footer a {
    color: var(--color-white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.footer a:hover {
    color: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding-right: var(--spacing-lg);
        padding-left: var(--spacing-md);
    }

    .nav-toggle {
        display: flex;
        padding: var(--spacing-xs) var(--spacing-sm);
        margin-right: 0;
        min-width: 48px;
        min-height: 48px;
        justify-content: center;
        align-items: center;
        flex-shrink: 0;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: #7e99a3;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
        padding: var(--spacing-lg) 0;
        gap: 0;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-top: none;
        border-radius: 0 0 24px 24px;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: var(--spacing-sm) 0;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: calc(70px + var(--spacing-md)) var(--spacing-md) var(--spacing-md);
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .section {
        padding: var(--spacing-lg) var(--spacing-md);
    }

    .hero-text {
        text-align: left;
    }

    .author-photo {
        width: 150px;
        height: 150px;
    }

    .glass-card {
        padding: var(--spacing-md);
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
    }

    .nav-container {
        padding: var(--spacing-sm);
    }

    .glass-card {
        padding: var(--spacing-sm);
        margin: var(--spacing-sm) auto;
    }

    .author-photo {
        width: 120px;
        height: 120px;
    }
}

/* Smooth scroll offset for fixed navbar */
section {
    scroll-margin-top: 80px;
}
