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

body {
    /* font-family: Arial, sans-serif; */
    background: #f0c933;
    font-family: "sofia-pro-narrow", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #09093f
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold
}

a {
    color: #6d6dff!important;
    transition: 0.3s ease;
    text-decoration: none;
}

a:hover {
    color: #09093f!important;
    font-weight: bold;
    text-decoration: underline;
}

/* NAVBAR */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #3b5f9e;
    padding: 15px 20px;
    color: yellow;
}

.nav-link {
    color: yellow;
    text-decoration: none;
}

.menu-icon {
    display: none;
    font-size: 24px;
}

/* SEARCH */
.search-bar {
    display: flex;
    gap: 12px;
    padding: 24px 40px;
    background: #3b5f9e;
;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-bar input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.search-bar input:focus {
    outline: none;
    border-color: #f0c933;
    box-shadow: 0 0 0 3px rgba(59, 95, 158, 0.1);
}

.search-bar select {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: #ffffff;
    font-size: 15px;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.search-bar select:hover {
    border-color: #f0c933;
}

.search-bar select:focus {
    outline: none;
    border-color: #f0c933;
    box-shadow: 0 0 0 3px rgba(59, 95, 158, 0.1);
}

/* MICROPHONE BUTTON */
.mic-button {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: #ffffff;
    font-size: 18px;
    transition: all 200ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mic-button:hover {
    border-color: #f0c933;
    background: #f5f5f5;
}

.mic-button.listening {
    background: #f0c933;
    border-color: #f0c933;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(240, 201, 51, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 95, 158, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 95, 158, 0);
    }
}

/* CARD GRID */
.infocard {
    background: #6263ad;
    border-radius: 10px;
    transition: .5s;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    color: aliceblue
}

.infocard:hover {
    transform: scale(1.02);
}

.infocard button {
    background: #f0c933;
    transition: .5s;
    margin-top: auto;
}

.infocard button:hover {
    background: #fff;
    color: #f0c933;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between; /* spread links evenly */
    width: 48%; /* controls how much horizontal space the links take */
    margin: 0 auto;
}

/* MODALS */
.modal-content {
    background-color: #f0c933;
    transition: 0s
}

.modal-dialog:hover {
    transform: scale(1);
}

.modal-dialog {
    min-width: 80vw;
    transition: 0s;
}

.modal-header {
    border-bottom: 10px double #3b5f9e;
}

/* NAVBAR */
.navbar {
    background: #3b5f9e;
    padding: 20px 0;
}

/* NAV LINKS — WIREFRAME SPACING */
.nav-link {
    justify-content: space-between; /* spread links evenly */
    text-align: center!important;
    color: yellow;
    font-size: clamp(1.6vw, 18px);
    text-decoration: none;
    transition: 2s;
}

.nav-link:hover {
    color: #fff;
    border-bottom: 2px solid yellow;
    width: 100%
}

/* Navbar spacing overrides */
.navbar-nav {
    display: flex !important;
    gap: 200px; /* increase this to space links more */
    margin: 0 auto
}

.navbar-nav .nav-link {
    color: yellow !important;
    padding: 8px 6px;
    position: relative;
    transition: 200ms;
}

.navbar-nav .nav-link:hover {
    color: #ffffff !important;
    border-bottom-color: 2px solid #f0c933;
}

@media (max-width: 768px) {
    .navbar-nav {
        flex-direction: column !important;
        gap: 12px; /* reduce gap for smaller screens */
    }
}
