/* ========== BASIC RESET ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== GLOBAL STYLES ========== */
body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #000;
    color: #fff;
    line-height: 1.6;
}

a {
    color: #ff3b3b;
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

/* image hover effect */
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img.hover-zoom:hover {
    transform: scale(1.03);
    box-shadow: 0 0 18px rgba(255, 59, 59, 0.6);
}

/* ========== LAYOUT ========== */
header {
    background: #111;
    padding: 1.5rem 1rem;
    text-align: center;
    border-bottom: 2px solid #ff3b3b;
}

header h1 {
    font-size: 2.1rem;
    text-shadow: 3px 3px 3px #fff;
}

header p {
    margin-top: 0.5rem;
    color: #ddd;
}

/* ========== STICKY NAV ========== */
nav {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #000;
    border-bottom: 2px solid #ff3b3b;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

nav li {
    margin: 0;
}

nav a.button {
    display: block;
    padding: 0.75rem 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    color: #fff;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

nav a.button:hover,
nav a.button:focus {
    background: #ff3b3b;
    color: #fff;
    transform: translateY(-2px);
}

nav a.active {
    border-bottom: 3px solid #ff3b3b;
}

/* ========== MAIN CONTENT AREA ========== */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.card {
    background: #111;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
}

/* two-column layout */
.flex-two {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.flex-two > * {
    flex: 1 1 280px;
}

/* lists */
ul, ol, dl {
    margin: 1rem 0 1rem 1.5rem;
}

dt {
    font-weight: bold;
    color: #ff3b3b;
}

/* homepage grid */
.grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 800px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* return home button */
.return-home {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    background: #ff3b3b;
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.return-home:hover,
.return-home:focus {
    background: #ff5c5c;
    transform: translateY(-1px);
}

/* footer */
footer {
    background: #111;
    border-top: 2px solid #ff3b3b;
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

footer a {
    color: #ffb3b3;
}

.footer-desktop {
    display: block;
}

.footer-mobile {
    display: none;
}

/* mobile */
@media screen and (max-width: 768px) {
    nav ul {
        justify-content: flex-start;
        overflow-x: auto;
    }

    header h1 {
        font-size: 1.6rem;
    }

    .footer-desktop {
        display: none;
    }
    .footer-mobile {
        display: block;
    }
}
