/* style.css */

/* --- 1. Variables and Reset --- */

:root {
    --primary-color: #121212; /* Darkest background */
    --secondary-bg: #1E1E1E; /* Secondary content background */
    --accent-color: #007BFF; /* Electric Blue for focus */
    --text-color-light: #E0E0E0; /* Main light text */
    --text-color-muted: #AAAAAA; /* Muted text */
    --border-color: #333333; /* Subtle border/divider */
}

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

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    line-height: 1.6;
    text-align: center;
    min-height: 100vh;
}

/* --- 2. Typography and Utility --- */

.accent-text {
    color: var(--accent-color);
}

/* --- 3. Header and Navigation --- */

header {
    padding: 20px 5%;
    background-color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.5em;
    font-weight: 800;
    color: var(--accent-color);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo span {
    color: white;
}

nav a {
    color: var(--text-color-muted);
    text-decoration: none;
    margin-left: 25px;
    opacity: 0.8;
    transition: color 0.3s, opacity 0.3s;
    font-weight: 500;
}

nav a:hover {
    color: var(--accent-color);
    opacity: 1;
}

/* --- 4. Hero Section --- */

.hero {
    padding: 100px 5%; 
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 3.8em;
    margin-bottom: 15px;
    color: white;
    letter-spacing: -2px;
    font-weight: 900;
}

.hero p {
    font-size: 1.2em;
    max-width: 650px;
    margin-bottom: 40px;
    color: var(--text-color-muted);
}

/* --- 5. Search Bar & CTA --- */

.search-container {
    width: 90%;
    max-width: 750px;
    display: flex;
    background-color: var(--secondary-bg);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Subtle lift */
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.search-input {
    flex-grow: 1;
    padding: 20px 30px;
    border: none;
    background: none;
    color: var(--text-color-light);
    font-size: 1.1em;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-color-muted);
}

.cta-button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 20px 40px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.cta-button:hover {
    background-color: #0056b3; /* Darker blue on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.5);
}

/* --- 6. Feature Section --- */

.features {
    padding: 80px 5%;
    background-color: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
}

.features h2 {
    font-size: 2.5em;
    margin-bottom: 50px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 30px;
    background-color: #282828; 
    border-radius: 12px;
    text-align: left;
    border-left: 5px solid var(--accent-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 123, 255, 0.4);
}

.feature-card h3 {
    color: var(--text-color-light);
    font-size: 1.6em;
    margin-top: 10px;
    margin-bottom: 10px;
}

.icon {
    font-size: 2.5em;
    color: var(--accent-color);
    display: block;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-color-muted);
}

/* --- 7. Footer --- */

footer {
    padding: 40px 5%;
    background-color: var(--primary-color);
    border-top: 1px solid var(--border-color);
    color: #777;
    font-size: 0.9em;
}

footer p {
    margin-bottom: 10px;
}

.footer-links a {
    color: #777;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* --- 8. Media Queries (Responsiveness) --- */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5em;
        letter-spacing: -1px;
    }
    .hero p {
        font-size: 1em;
    }
    header {
        flex-direction: column;
    }
    nav {
        margin-top: 15px;
    }
    nav a {
        margin: 0 10px;
    }
    .search-container {
        flex-direction: column;
        border-radius: 10px;
    }
    .search-input {
        border-radius: 10px 10px 0 0;
        padding: 15px 20px;
        text-align: center;
    }
    .cta-button {
        border-radius: 0 0 10px 10px;
        padding: 15px 20px;
    }
}
