/* =====================
   CSS VARIABLES
===================== */
:root {
    --background-color: white;
    --text-color: black;
    --nav-background-color: #333;
    --nav-text-color: white;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #121212;
        --text-color: white;
        --nav-background-color: #444;
        --nav-text-color: white;
    }
}

/* =====================
   BASE STYLES
===================== */
body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
}
/* =====================
   Images
===================== */
.profile-img {
    width: 500px;
    height:auto
}

/* =====================
   Icons
===================== */
.icon-home {
    width: 28px;
    height: auto
}
/* =====================
   HEADER 
===================== */
header {
    background-color: var(--nav-background-color);
    padding: 1em;
}

/* =====================
   NAV
===================== */
.caret {
  font-size: 0.7rem;
  margin-left: 4px;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--nav-background-color);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    min-width: 160px;
    display: none;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    text-align: left;
}

.dropdown-menu li a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--nav-text-color);
    font-weight: normal;
}

.dropdown-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.dropdown:focus-within .dropdown-menu {
  display: block;
}
.dropdown:hover .dropdown-menu {
    display: block;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-around;
}

nav ul li a {
    color: var(--nav-text-color);
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* =====================
   CONTACT PAGE
===================== */
.contact-links {
    list-style: none;
    padding: 0;
    margin: 2rem auto;
    display: flex;
    justify-content: space-around;
    max-width: 600px;
}

.contact-links li a {
    color: var(--text-color);
    font-weight: bold;
    text-decoration: none;
}

.contact-links li a:hover {
    text-decoration: underline;
}
