:root {
    --primary-color: #FFFFFF; /* White */
    --secondary-color: #B0B0B0; /* Light Grey */
    --background-color: #000000;
    --text-color: #F5F5F5;
    --card-background: #121212;
    --header-background: rgba(0, 0, 0, 0.8);
    --font-family: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--header-background);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    transition: background-color 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.logo:hover {
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-button {
    background-color: transparent;
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.cta-button:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
    transform: translateY(-2px) scale(1.05);
}

main {
    padding-top: 80px; /* Adjust for fixed header */
}

@keyframes animated-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 80vh;
    padding: 4rem 2rem;
    background: url('../../media/banner.gif') no-repeat center center/cover;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    min-height: 4rem;  /* Fallback minimum height (adjust if needed) */
    display: flex;  /* NEW: Flexbox for vertical centering */
    align-items: center;  /* NEW: Center text vertically within the reserved height */
    justify-content: center;  /* NEW: Center text horizontally */
    text-align: center;  /* Keep for compatibility */
    overflow: hidden;  /* NEW: Prevent any overflow during animation */
}


.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-button-large {
    background-color: var(--primary-color);
    color: var(--background-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.cta-button-large:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.05);
}

.coming-soon-section {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.coming-soon-text {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.subscribe-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.subscribe-form input[type="email"] {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 2px solid var(--primary-color);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    width: 280px;
    max-width: 100%;
}

.subscribe-form input[type="email"]::placeholder {
    color: var(--secondary-color);
}

.subscribe-form input[type="email"]:focus {
    border-color: var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.features, .about {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.features h2, .about h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--card-background);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid #222;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-card p {
    /* No specific transition needed for opacity if not changing on hover */
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-card i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.about {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-content {
    flex: 1;
}

.about-image {
    flex: 1;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary-color);
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.about-image:hover img {
    filter: grayscale(0%);
}

footer {
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    background-color: #050505;
    border-top: 1px solid #222;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    /* Navigation: Keep horizontal, but reduce sizes to fit in one line */
    nav {
        flex-direction: row;  /* Keep row direction (horizontal) */
        flex-wrap: wrap;  /* Allow wrapping if needed, but aim for single line */
        justify-content: space-between;  /* Spread items evenly */
        align-items: center;
    }
    
    .nav-links {
        flex-direction: row;  /* Keep horizontal */
        margin-top: 0;  /* No extra top margin */
        gap: 0.5rem;  /* Smaller gaps between items */
    }
    
    .nav-links li {
        margin-left: 0;  /* Remove left margin to save space */
        margin-bottom: 0;  /* No bottom margin */
    }
    
    .nav-links a {
        padding: 0.5rem 0.75rem;  /* Smaller padding for links */
        font-size: 0.9rem;  /* Slightly smaller text to fit */
    }
    
    .cta-button {  /* Get Started button - keep it inline and compact */
        padding: 0.5rem 1rem;  /* Compact for horizontal fit */
        font-size: 0.9rem;  /* Match link size */
        white-space: nowrap;  /* Prevent button text from wrapping */
    }
    
    .logo {
        font-size: 1.5rem;  /* Slightly smaller logo to save space */
    }
    
    /* Hero Section: Adjustments unchanged, but ensure it fits */
    .hero {
        min-height: 60vh;
        padding: 2rem 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .cta-button-large {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .subscribe-form {
        flex-direction: row;  /* Keep form horizontal if possible */
        flex-wrap: wrap;  /* Wrap if screen is too small */
        justify-content: center;
        gap: 0.5rem;  /* Smaller gap */
    }
    
    .subscribe-form input[type="email"] {
        width: auto;  /* Flexible width */
        min-width: 200px;  /* Minimum to prevent shrinking too much */
    }
    
    /* Features and About: Minor tweaks for spacing */
    .features, .about {
        padding: 4rem 5%;
    }
    
    .feature-grid {
        gap: 1.5rem;
    }
    
    .about {
        flex-direction: column;  /* Still stack this for readability - if you want horizontal, change to row and add flex-wrap */
        gap: 2rem;
    }
    
    .about-image img {
        max-width: 80%;
    }
    
    /* Header: Reduce padding */
    .main-header {
        padding: 0.75rem 5%;
    }
}

@media screen and (max-width: 480px) {
    /* For very small screens: Further reduce sizes to keep horizontal */
    .nav-links a {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .cta-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .subscribe-form {
        flex-direction: column;  /* Stack form vertically on tiniest screens to avoid squeeze */
    }
}
