/* 1. GLOBAL STYLES (Resets) */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* 2. HEADER STYLES */
header {
    background-color: #333;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
}

/* 3. HERO SECTION STYLES */
.hero {
    background-color: #f4f4f4;
    padding: 50px 20px;
    text-align: center;
}

/* Image Styles */
.hero img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    margin-top: 0;
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

button:hover {
    background-color: #0056b3;
}

/* 4. FEATURES SECTION STYLES */
.features {
    display: flex;           /* Aligns children in a row */
    justify-content: center; /* Centers them */
    gap: 20px;               /* Space between cards */
    padding: 50px 20px;      /* Space top and bottom */
}

.card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    width: 300px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* MOBILE RESPONSIVE RULE */
/* If the screen is smaller than 768px (like a phone)... */
@media (max-width: 768px) {
    .features {
        flex-direction: column; /* Stack them vertically */
        align-items: center;
    }
}

/* 5. FOOTER STYLES */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}