/* ===================== COLOR PALETTE =====================
Primary Deep Space: #0f0f1c
Secondary Void Blue: #1a1a2e
Accent Royal Gold: #FFD700
Steel Gray: #424141
Celestial Blue: #339af0
Light Silver: #f4f4f4
============================================================ */

/* ============================ RESET & BASE ============================ */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
}

#main-container {
    max-width: 100vw;
    margin: 0 auto;
    background: linear-gradient(to bottom right, #0f0f1c, #1a1a2e, #2c3e50);
    color: #ffffff;
}

/* =============================== GLOBAL STYLES =============================== */

h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.6px;
}

p, a {
    font-weight: 400;
    line-height: 1.8;
    font-size: 1.6rem;
}

a {
    text-decoration: none;
}

a:link, a:visited {
    color: #fff;
}

ul {
    list-style-type: none;
}

.btn {
    display: inline-block;
    padding: 1.5rem 3rem;
    border-radius: 8px;
    transition: transform 0.3s;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-primary {
    background-color: #339af0;
    color: #fff;
}

.btn-secondary {
    border: 1px solid #339af0;
    border-radius: 1rem;
}

footer {
    margin-top: 10rem;
    text-align: center;
    background-color: #424141;
    padding: 2rem 0;
}

/* ============================== HEADER SECTION ============================== */
header {
    margin-bottom: 5rem;
}

#nav-bar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #424141;
    padding: 1rem 2rem;
    height: auto;
    font-size: 1.8rem;
    flex-wrap: wrap;
}

.image {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.logo-text {
    height: 3.6rem;
    width: 3.6rem;
    border-radius: 50%;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    align-items: center;
    justify-content: center;
}

.navigation {
    font-size: 2rem;
    text-align: center;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  background: #111;
  padding: 10px 0;
  min-width: 180px;
  border: 1px solid gold;
  z-index: 1000;
}

.dropdown-menu li {
  text-align: left;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #fff;
  transition: background 0.3s;
}

.dropdown-menu a:hover {
  background: #222;
  color: #FFD700;
}

/* Show on Hover */
.dropdown:hover .dropdown-menu {
  display: block;
}

/* =========================== HERO SECTION =========================== */
#hero-section {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin: 5rem 0;
    justify-content: space-between;
    align-items: center;
}

.cta {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    height: 10rem;
    width: 10rem;
    border-radius: 50%;
    overflow: hidden;
}

.heading {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 5rem;
}

.images {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0f0f1c;
}

.images img {
    width: 100%;
    height: auto;
    max-height: 54rem;
    object-fit: cover;
    transition: opacity 1s ease-in-out;
}

.edit {
    display: block;
    margin-bottom: 16px;
}

/* ============================ FEATURES SECTION ============================ */

#overview {
    text-align: center;
    margin-bottom: 6rem;
}

.card {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.division {
    max-width: 30rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border: 0.2px solid #6b6969;
    border-radius: 2rem;
    min-height: 27rem;
    background-color: rgba(66, 65, 65, 0.6);
    box-shadow: 0 0 1rem #6b6969;
    transition: transform 0.3s;
}

.division:hover {
    transform: scale(1.08);
}

.text {
    border-bottom: 1px solid #424141;
    border-top: 1px solid #424141;
    margin: 1rem 0;
}

.fancy {
    font-style: italic;
}

.section {
    margin: 10rem 0;
    padding: 2rem;
    text-align: center;
}

/* ============================= FOOTER SECTION ============================= */
.footer-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 2rem;
    gap: 1rem;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    justify-content: center;
}

.small {
    font-size: 1.2rem;
    color: #f4f4f4;
}

.medium {
    height: 10rem;
    width: 10rem;
}

/* ========================== RESPONSIVE DESIGN ========================== */

/* Tablets (<= 1024px) */
@media (max-width: 1024px) {
    #nav-bar {
        flex-direction: column;
        gap: 1rem;
    }

    .menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    #hero-section {
        height: auto;
        margin: 3rem 0;
    }

    .card {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Phones (<= 768px) */
@media (max-width: 768px) {
    html {
        font-size: 55%;
    }

    #nav-bar {
        flex-direction: column;
        align-items: center;
    }

    .menu {
        flex-direction: column;
        gap: 1rem;
    }

    .card {
        flex-direction: column;
        align-items: center;
    }

    .division {
        width: 90%;
    }

    #hero-section .images img {
        max-height: 40rem;
    }

    .heading {
        font-size: 2.4rem;
    }

    .btn {
        padding: 1rem 2rem;
        font-size: 1.4rem;
    }

    footer {
        padding: 1rem;
    }
}

/* Very small phones (<= 480px) */
@media (max-width: 480px) {
    html {
        font-size: 50%;
    }

    .logo-text {
        height: 3rem;
        width: 3rem;
    }

    .heading {
        font-size: 2rem;
    }

    .division {
        padding: 1.5rem;
        width: 95%;
    }

    .card {
        gap: 1.5rem;
    }
}
