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

body {
    font-family: 'Courier New', monospace;
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    background-color: #31B5FC;
    position: relative;
}

body::before {
    display: none;
}

.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
    font-family: 'Courier New', monospace;
}

.nav-link:hover {
    color: #31B5FC;
}

.content-overlay {
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    gap: 1rem;
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 0;
    /*text-shadow: 2px 2px 4px rgba(0,0,0,0.2);*/
    font-family: 'Rubik', sans-serif;
    letter-spacing: -0.02em;
    color: #000000;
    position: relative;
    z-index: 3;
}

.subtitle {
    font-size: 1.7rem;
    max-width: 600px;
    /*color: #F22929;
    font-family: 'Permanent Marker', cursive; */
    position: relative;
    z-index: 3;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    h1 {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 1148px) {
    .content-overlay {
        padding: 0 1rem;
    }
    
    .subtitle {
        font-size: 1.3rem;
        max-width: 100%;
    }
}

.about-section {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 6rem 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #31B5FC;
    font-family: 'Courier New', monospace;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    font-family: 'Courier New', monospace;
}

/* Add smooth scrolling to the page */
html {
    scroll-behavior: smooth;
}

.contact-section {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 6rem 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #31B5FC;
    font-family: 'Courier New', monospace;
}

.contact-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    font-family: 'Courier New', monospace;
}

.contact-link {
    color: #31B5FC;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #ffffff;
}

.copyright {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 1rem;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #ffffff;
}

.writing-section {
    position: relative;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 6rem 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.writing-content {
    max-width: 800px;
    margin: 0 auto;
}

.writing-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #31B5FC;
    font-family: 'Courier New', monospace;
}

.writing-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    font-family: 'Courier New', monospace;
}

.substack-widget {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
    margin: 30px auto 0;
    padding: 0 2rem;
}

.substack-widget iframe {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: white;
}

.submarine-image {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.submarine-image img {
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 80%;
    height: auto;
    object-fit: cover;

}

.book-cover {
    margin-top: 3rem;
    text-align: center;
}

.book-cover img {
    max-width: 200px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.book-cover img:hover {
    transform: scale(1.05);
}
