body {
    margin: 0;
    background-color: #333;
    color: white;
    font-family: 'Inter', sans-serif;
    text-align: center;
    height: 100vh;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

/* Navbar styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background-color: #111;
    padding: 6px 20px;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    font-family: 'Roboto', sans-serif;
    font-size: 0.8em;
}

.navbar-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-left: 120px;
    gap: 10px;
}

.navbar-left a:hover {
    opacity: 0.8;
}

.navbar-left img {
    height: 32px;
    margin-right: 30px;
}

.site-name {
    font-size: 1.3em;
    color: white;
    font-weight: bold;
}

.navbar-right {
    display: flex;
    align-items: center;
    padding-left: 10px;
    margin-right: 30px;
}

.navbar-right .plain-link {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    margin-left: 30px;
    position: relative;
}

.navbar-right .plain-link::before,
.navbar-right .plain-link::after {
    opacity: 0;
    transition: opacity 0.2s ease;
    font-weight: bold;
    font-size: 1.2em;
    position: absolute;
}

.navbar-right .plain-link::before {
    content: "[";
    left: -10px;
}

.navbar-right .plain-link::after {
    content: "]";
    right: -10px;
}

.navbar-right .plain-link:hover::before,
.navbar-right .plain-link:hover::after {
    opacity: 1;
}

/* Rectangular button (e.g., Blog) */
.navbar-right .button-link {
    color: white;
    text-decoration: none;
    font-size: 1.3em;
    margin-left: 30px;

    background-color: #444;
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid #666;
    transition: background-color 0.3s ease;
}

.navbar-right .button-link:hover {
    background-color: #666;
    text-decoration: none;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Main content */
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 25vh;
    padding-bottom: 80px;
    /* Account for fixed footer */
    min-height: calc(100vh - 80px);
    /* Subtract footer height */
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.highlight-text {
    font-size: 48px;
    font-weight: 600;
    color: #7da0b8;
}

.subtext {
    font-size: 48px;
    font-weight: 300;
    color: #fff;
}

#dynamic-text::after {
    content: "|";
    animation: blink 1s step-start infinite;
    margin-left: 5px;
    width: 100%;
    overflow: visible;
    font-size: 40px;
}

.logo-image {
    margin-top: 1px;
    width: 200px;
    height: auto;
}

.footer {
    background-color: #111;
    color: #aaa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px;
    position: fixed;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    font-size: 0.8em;
}

.footer-left {
    padding-left: 120px;
}

.footer-right {
    padding-right: 120px;
}

.footer a {
    color: #aaa;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.footer a:hover {
    color: white;
}

.footer img {
    width: 20px;
    height: 20px;
    margin-left: 8px;
}

.subscription-box {
    margin-top: 40px;
    text-align: center;
}

.subscription-box form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.subscription-box input[type="email"] {
    padding: 10px 15px;
    font-size: 1em;
    border: none;
    border-radius: 4px;
    outline: none;
    width: 250px;
}

.subscription-box button {
    padding: 10px 20px;
    background-color: #555;
    border: 1px solid #888;
    color: white;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.subscription-box button:hover {
    background-color: #777;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 15px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .navbar-left {
        margin-left: 0;
        justify-content: center;
        gap: 15px;
        order: 1;
    }

    .navbar-left img {
        height: 28px;
        margin-right: 10px;
    }

    .site-name {
        font-size: 1.1em;
    }

    .navbar-right {
        margin-right: 0;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        order: 2;
        padding-left: 0;
    }

    .navbar-right .plain-link {
        font-size: 1em;
        margin-left: 0;
    }

    .navbar-right .button-link {
        font-size: 1em;
        margin-left: 0;
        padding: 6px 12px;
    }

    /* Adjust footer for mobile */
    .footer {
        flex-direction: column;
        gap: 10px;
        padding: 20px 15px;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        padding-left: 0;
        padding-right: 0;
    }

    /* Adjust main content for mobile */
    .content {
        padding-top: 20vh;
        padding-bottom: 120px;
        /* More space for mobile footer */
        min-height: calc(100vh - 120px);
    }

    .highlight-text,
    .subtext {
        font-size: 32px;
    }

    .logo-image {
        width: 150px;
    }

    .subscription-box input[type="email"] {
        width: 200px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .navbar {
        padding: 8px 10px;
    }

    .navbar-left img {
        height: 24px;
        margin-right: 8px;
    }

    .site-name {
        font-size: 1em;
    }

    .navbar-right .plain-link {
        font-size: 0.9em;
    }

    .navbar-right .button-link {
        font-size: 0.9em;
        padding: 5px 10px;
    }

    .highlight-text,
    .subtext {
        font-size: 24px;
    }

    #dynamic-text::after {
        font-size: 20px;
    }

    .logo-image {
        width: 120px;
    }

    .subscription-box input[type="email"] {
        width: 160px;
        font-size: 0.9em;
    }

    .subscription-box button {
        font-size: 0.9em;
        padding: 8px 15px;
    }
}