/* General Styles */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    background: linear-gradient(135deg, var(--gray-50) 0%, #ffffff 100%);
}

body {
    font-family: Arial, sans-serif;
    color: var(--gray-700);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Navigation */
nav {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    height: 50px;
}

.logo a {
    color: var(--gray-800);
    text-decoration: none;
    font-family: audiowide;
}

/* Logo Section */
.logo {
    opacity: 0; /* Initial hidden state */
    transform: translateY(-20px); /* Initial position for slide-in effect */
    animation: fadeSlideInLogo 0.8s ease forwards; /* Animation */
}

.logo img {
    transition: transform 0.3s ease; /* Smooth transform for hover effect */
}

.logo:hover img {
    transform: scale(1.1); /* Slight zoom on hover */
}

/* Keyframes for the fade and slide-in animation */
@keyframes fadeSlideInLogo {
    from {
        opacity: 0;
        transform: translateY(-20px); /* Start slightly above */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Slide into place */
    }
}

img {
    max-width: 150px;
    height: auto;
    object-fit: contain;
}

/* Hero Section */
.hero {
    background-color: var(#fff);
    color: #000;
    text-align: center;
    padding: 2rem 1rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
}

/* Sections */
section {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

section div {
    padding: 2rem 1rem;
    margin: 1rem auto;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 800px;
}

section h2 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

section p, section ul li {
    color: var(--gray-600);
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

ul {
    padding-left: 1.5rem;
}

ul li {
    list-style-type: disc;
}

/* Footer */
footer {
    background: white;
    padding: 2rem 1rem;
    width: 100%;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 90;
    box-sizing: border-box; /* Include padding in width calculation */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.footer-logo img {
    max-width: 150px;
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.footer-links a {
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
    position: relative;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

.footer-links a:hover::after {
    left: 0;
    width: 100%;
}

footer p {
    margin: 0;
}

.footer-contact {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.footer-contact a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: var(--gray-600);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* back to top */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, opacity 0.3s ease;
}

#back-to-top:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* Smooth appearance/disappearance animation for Back-to-Top button */
#back-to-top.show {
    display: flex;
    opacity: 1;
    transition: opacity 0.3s ease;
}

#back-to-top.hide {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* General Scroll-Based Reveal */
.footer-content > * {
    opacity: 0;
    transform: translateY(20px); /* Slide in from the bottom */
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.footer-content > *.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    footer .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .launch-container {
        padding: 100px 20px 40px;
        min-height: 100vh;
    }

    .countdown {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .countdown-item {
        min-width: calc(50% - 20px);
        padding: 15px;
    }
}

/* Update launch container */
.launch-container {
    text-align: center;
    padding: 120px 20px 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    background: transparent; /* Remove background from here since it's on body */
}

.launch-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--gray-800);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.8s ease forwards 0.3s;
}

.launch-description {
    font-size: 1.2rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.8s ease forwards 0.6s;
}

.countdown {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.8s ease forwards 0.9s;
}

.countdown-item {
    background: white;
    padding: 25px;
    border-radius: 15px;
    min-width: 130px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.countdown-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.2);
}

.countdown-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.countdown-label {
    font-size: 1rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* Number change animation */
@keyframes numberChange {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.number-change {
    animation: numberChange 0.3s ease-out;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}