/* Reset */
body {
    margin: 0;
    font-family: sans-serif;
}

/* =========================
   Hero Section
========================= */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center; /* keeps background content centered */
    text-align: center;
    background: url('../images/aws-logo.png?v=2') center/cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 700px;
    padding: 1rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px; /* spacing between subtitle and button */

    margin-top: 50vh; /* moves only the text/button below center */
}

.hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: bold;
    margin: 0;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 300;
    opacity: 0.9;
    margin: 0;
}

.hero-cta {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    color: #fff;
    border: 2px solid #fff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s;
}

.hero-cta:hover {
    background-color: #fff;
    color: #000;
}

/* =========================
   Navigation Bar
========================= */
.topnav {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 0;
    z-index: 3;
}

.topnav a {
    color: #fff;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.topnav a:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.topnav a.active {
    background-color: rgba(255, 255, 255, 0.5);
    color: #000;
}