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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background-color: #d3d3d3;
    color: #0175BE;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Page Wrapper */
.page-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
}

.content-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fadeIn 1s ease-out forwards;
}

/* Logo Styles */
.logo-wrapper {
    width: 100%;
    max-width: 600px;
    margin-bottom: 80px;
}

.main-logo {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(12px 18px 12px rgba(0, 0, 0, 0.4));
    transition: filter 0.3s ease;
}

.main-logo:hover {
    filter: drop-shadow(15px 22px 15px rgba(0, 0, 0, 0.5));
}

/* Transparent Nav Links – Clean & Minimal */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 250px;
    margin: 80px 0 60px;
    flex-wrap: wrap;
}

.nav-link {
    font-size: 28px;
    font-weight: 600;
    color: #0074BD;
    text-decoration: none;
    letter-spacing: 3px;
    position: relative;
    padding-bottom: 8px;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #1CC1ED;
    transition: height 0.4s ease, background 0.4s ease;
}

.nav-link:hover {
    color: #1CC1ED;
}

.nav-link:hover::after {
    height: 4px;
    background: linear-gradient(90deg, #1CC1ED, #0074BD);
}

/* Description Text (Index Page) */
.description-text {
    max-width: 700px;
    color: #0175BE;
    font-size: 18px;
    line-height: 1.6;
    text-shadow: 0px 4px 3.7px rgba(0, 0, 0, 0.25);
}

.description-text p {
    margin: 0;
    padding: 2px 0;
}

/* Subpage Styles */
.page-title {
    font-size: 32px;
    font-weight: 500;
    color: #0175BE;
    text-shadow: 0px 4px 3.7px rgba(0, 0, 0, 0.25);
    margin-bottom: 30px;
}

.page-description {
    max-width: 900px;
    color: #0175BE;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 50px;
}

.page-description p {
    margin: 0;
    padding: 2px 0;
}

.mailing-title {
    font-size: 32px;
    font-weight: 500;
    color: #0175BE;
    text-shadow: 0px 4px 3.7px rgba(0, 0, 0, 0.25);
    margin-bottom: 15px;
}

.mailing-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #0175BE;
    margin-bottom: 30px;
    max-width: 800px;
}

/* Email Form */
.email-form {
    margin-bottom: 50px;
}

.form-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.email-input {
    width: 376px;
    max-width: 100%;
    height: 46px;
    background-color: #D9D9D9;
    border: 4px solid #0175BE;
    border-radius: 8px;
    padding: 0 20px;
    font-size: 16px;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
}

.email-input::placeholder {
    color: #898989;
}

.email-input:focus {
    background-color: #E5E5E5;
    border-color: #1CC1ED;
}

.signup-button {
    width: 180px;
    height: 38px;
    background-color: #1CC1ED;
    border: 4px solid #0175BE;
    border-radius: 8px;
    color: #0175BE;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease, transform 0.3s, box-shadow 0.3s;
    outline: none;
}

.signup-button:hover {
    background-color: #0074BD;
    color: #FFFFFF;
    border-color: #1CC1ED;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.signup-button:active {
    transform: scale(0.98);
}

/* Bottom Navigation – Matches Index Style */
.bottom-nav {
    display: flex;
    justify-content: center;
    gap: 150px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.bottom-link {
    font-size: 24px;
    font-weight: 600;
    color: #0074BD;
    text-decoration: none;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 8px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.bottom-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #1CC1ED;
    transition: height 0.4s ease, background 0.4s ease;
}

.bottom-link:hover {
    color: #1CC1ED;
    transform: translateY(-4px);
}

.bottom-link:hover::after {
    height: 4px;
    background: linear-gradient(90deg, #1CC1ED, #0074BD);
}

/* Footer with X Link */
footer {
    margin-top: 60px;
    padding: 20px 0;
    text-align: center;
    font-size: 16px;
    color: #0074BD;
}

.x-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #0074BD;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.x-link:hover {
    color: #1CC1ED;
    transform: translateY(-2px);
}

.x-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #1CC1ED;
    transition: height 0.3s ease, background 0.3s ease;
}

.x-link:hover::after {
    height: 3px;
    background: linear-gradient(90deg, #1CC1ED, #0074BD);
}

.x-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Merged Responsive Rules */
@media (max-width: 768px) {
    .logo-wrapper {
        max-width: 400px;
        margin-bottom: 60px;
    }

    .nav-links {
        gap: 60px;
    }

    .nav-link {
        font-size: 22px;
    }

    .description-text {
        font-size: 16px;
    }

    .page-title {
        font-size: 26px;
    }

    .page-description {
        font-size: 14px;
    }

    .mailing-title {
        font-size: 26px;
    }

    .mailing-subtitle {
        font-size: 13px;
    }

    .email-input {
        width: 100%;
        max-width: 350px;
    }

    .signup-button {
        width: 160px;
    }

    .bottom-nav {
        gap: 80px;
        flex-direction: column;
        gap: 15px;
    }

    footer {
        margin-top: 40px;
    }

    .x-link {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .page-wrapper {
        padding: 30px 15px;
    }

    .logo-wrapper {
        max-width: 280px;
        margin-bottom: 40px;
    }

    .nav-links {
        flex-direction: column;
        gap: 40px;
    }

    .description-text {
        font-size: 14px;
    }

    .page-title {
        font-size: 22px;
    }

    .page-description {
        font-size: 13px;
    }

    .mailing-title {
        font-size: 22px;
    }

    .mailing-subtitle {
        font-size: 12px;
    }

    .email-input {
        width: 100%;
        height: 42px;
        font-size: 14px;
    }

    .signup-button {
        width: 140px;
        height: 36px;
        font-size: 13px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: #1CC1ED;
    color: white;
}

::-moz-selection {
    background: #1CC1ED;
    color: white;
}

/* Fade-In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
