/* Base color: rgb(22,29,35) = #161D23 */
:root {
    --bg-color: #161D23;
    --text-color: #F5F5F5;
    --highlight: #0066CC;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Make the body a column flex container so footer sticks to bottom */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

/* Page transition animation */
.page {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

body.fade-out {
    animation: fadeOut 0.5s ease-in-out;
    animation-fill-mode: forwards;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding: 2rem 5rem;
}

.header-left {
    display: flex;
    align-items: center;
    margin-left: 2rem;
}

.site-header .logo {
    width: 125px;
    height: auto;
    margin-right: 1rem;
}

.site-header h1 {
    margin: 0;
    font-size: 1.75rem;
}

.beta-button {
    background-color: #ffffff;
    color: #000000;
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    position: fixed;
    top: 4rem;
    right: 3rem;
    z-index: 1000;
}

.faq-button {
    background-color: #808080;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    position: fixed;
    top: 4rem;
    right: 13.5rem;
    z-index: 1000;
}

.contact-button {
    background-color: #808080;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    position: fixed;
    top: 4rem;
    right: 20.5rem;
    z-index: 1000;
}

.hero {
    display: flex;
    align-items: center;
    max-width: 100%;
    margin: 5rem 5rem 5rem;
    padding: 0 1rem;
    text-align: left;
    font-family: 'Roboto', sans-serif;
}

.hero h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero .features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 1.25rem;
}

.hero .features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 2.1rem;
    font-family: 'Roboto', sans-serif;
}

.hero .emoji {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.hero p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-family: 'Roboto', sans-serif;
}

.app-button {
    display: inline-block;
    background-color: #ffffff;
    color: #000000;
    padding: 0.75rem 2rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
}

.hero-image {
    flex: 1;
    text-align: right;
    position: relative;
}

.hero-image img {
    width: 300px; /* Base size for larger screens */
    max-width: 100%; /* Ensures it scales down */
    border-radius: 12px;
    position: relative;
}

.slideshow-overlay {
    position: absolute;
    top: 80px; /* Base position for larger screens */
    right: -35px; /* Base position for larger screens */
    width: 380px; /* Base size for larger screens */
    height: 500px; /* Base size for larger screens */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 10;
}

.slideshow-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
    flex: 1;
}

.contact, .faqs {
    margin-bottom: 2rem;
}

.contact h2, .faqs h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--highlight);
    display: inline-block;
}

.contact p,
.faqs dd {
    line-height: 1.6;
    margin: 0.5rem 0 1rem;
}

.faqs dl dt {
    font-weight: bold;
    margin-top: 1rem;
}

.faqs dl dd {
    margin-left: 1rem;
}

a {
    color: var(--highlight);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 16rem;
    margin-top: auto;
    font-size: 0.9rem;
}

.footer-left {
    margin-left: -10rem;
}

.footer-right {
    margin-right: -13rem;
}

.site-footer a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 1rem;
}

.site-footer a:first-child {
    margin-left: 0;
}

/* Media Queries for Smaller Screens */
@media (max-width: 1024px) {
    .hero-image img {
        width: 250px; /* Reduced size */
    }

    .slideshow-overlay {
        top: 60px; /* Adjusted position */
        right: -25px; /* Adjusted position */
        width: 320px; /* Reduced size */
        height: 420px; /* Reduced size */
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        margin: 2rem 5% 4rem;
        text-align: center;
    }

    .hero-image {
        text-align: center;
        margin-top: 1rem;
    }

    .hero-image img {
        width: 200px; /* Further reduced */
    }

    .slideshow-overlay {
        top: 40px; /* Adjusted for smaller screen */
        right: 0; /* Centered */
        width: 250px; /* Further reduced */
        height: 330px; /* Further reduced */
    }
}

@media (max-width: 480px) {
    .hero-image img {
        width: 150px; /* Smallest size */
    }

    .slideshow-overlay {
        top: 30px; /* Adjusted for smallest screen */
        width: 180px; /* Smallest size */
        height: 240px; /* Smallest size */
    }
}