:root {
    --primary: #024969;
    --primary-light: #025e84;
    --text: #222222;
    --bg: #ffffff;
    --gray: #f5f5f5;
}

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

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    width: min(90%, 1200px);
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: rgba(2, 73, 105, 0.95);
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

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

.nav-links a {
    color: white;
    font-weight: 400;
    transition: opacity 0.3s;
    padding: 0.5rem 1rem; /* Improved touch target */
}

.nav-links a:hover {
    opacity: 0.8;
}

.mobile-menu {
    display: none;
    cursor: pointer;
}

#hero {
    background: var(--primary);
    color: white;
    padding: 160px 0 100px;
    text-align: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.buy-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    background: white;
    color: var(--primary);
    padding: 0.9rem 2rem;
    border-radius: 4px;
    font-weight: 700;
    transition: all 0.3s;
    min-width: 220px;
    min-height: 48px; /* Better touch target */
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

section {
    padding: 100px 0;
}

section:nth-child(even) {
    background: var(--gray);
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 400;
    color: var(--primary);
}

.about-author p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    text-align: center;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.video-description {
    max-width: 900px;
    margin: 2rem auto 0;
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: left;
}

.video-description p {
    margin-bottom: 1rem;
}

#contact {
    text-align: center;
}

#contact p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    background: white;
    padding: 2rem;
}

#contactForm {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
}

.form-group .required {
    color: #d32f2f;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

#contactForm .btn {
    align-self: center;
    min-width: 200px;
    margin-top: 0.5rem;
}

.form-message {
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
    margin-top: 1rem;
}

.form-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #4caf50;
}

.form-message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
}

#turnstile-widget {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

#turnstile-widget p {
    margin: 0;
    padding: 0.5rem;
}

footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 3rem 0;
    font-size: 1.1rem;
}

footer a {
    color: white;
    text-decoration: underline;
    transition: opacity 0.3s;
}

footer a:hover {
    opacity: 0.8;
}

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary);
        padding: 1rem 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 1rem;
        text-align: center;
        min-height: 48px; /* Larger touch targets on mobile */
    }

    .mobile-menu {
        display: block;
    }

    .mobile-menu span {
        display: block;
        width: 25px;
        height: 3px;
        background: white;
        margin: 5px 0;
        transition: 0.3s;
    }
}

