/* Basic Reset & Font */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Inter', sans-serif;
    color: #fff;
    overflow: hidden; /* Prevents scrollbars from the full-screen setup */
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This makes the video cover the screen without stretching */
}

/* Dark Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 20, 0.7); /* Dark blueish tint for a cool cinematic feel */
    backdrop-filter: blur(5px); /* Adds a subtle blur to the background */
    z-index: -1;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: absolute;
    width: calc(100% - 80px); /* Full width minus padding */
    top: 0;
    left: 0;
    animation: fadeInDown 1s ease-out;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: #fff; /* A vibrant accent color could also be used here */
}

.main-nav a {
    color: #ccc;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #fff;
}

/* Main Content */
.content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
}

.hero {
    animation: fadeInUp 1.2s ease-out 0.2s;
    animation-fill-mode: both; /* Keeps the state of the animation after it's done */
}

.hero h1 {
    font-size: 4rem; /* Large, impactful text */
    font-weight: 900;
    margin: 0;
    text-shadow: 0px 4px 15px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    font-weight: 400;
    margin-top: 10px;
    color: #ddd;
    max-width: 600px;
}

/* Search Bar */
.search-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-container input {
    width: 400px;
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50px 0 0 50px; /* Rounded on the left */
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: background-color 0.3s ease;
}

.search-container input::placeholder {
    color: #999;
}

.search-container input:focus {
    background-color: rgba(0, 0, 0, 0.5);
    border-color: #00AFFF; /* Accent color on focus */
}

.search-container button {
    padding: 15px 30px;
    border: none;
    background-color: #00AFFF; /* VIBRANT ACCENT COLOR */
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 0 50px 50px 0; /* Rounded on the right */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-container button:hover {
    background-color: #008fcc;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for smaller screens */
@media (max-width: 768px) {
    .main-header {
        padding: 15px 20px;
        width: calc(100% - 40px);
        flex-direction: column;
    }
    
    .main-nav {
        margin-top: 10px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
        padding: 0 20px;
    }

    .search-container {
        flex-direction: column;
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .search-container input {
        width: 100%;
        border-radius: 50px;
        margin-bottom: 10px;
        box-sizing: border-box; /* Fixes padding issue */
    }

    .search-container button {
        width: 100%;
        border-radius: 50px;
    }
}
