:root {
    --bg: #10233f;
    --bg2: #18345d;
    --card: rgba(22, 43, 74, 0.76);
    /* Changed from bright sky blue to a rich sapphire/deep royal blue */
    --blue: #3a7bd5; 
    /* Changed from bright neon-ish blue to a soft, rich slate blue */
    --blue-soft: #4f8ff7; 
    --yellow: #ffd65a;
    --yellow-soft: #ffe38a;
    --text: #f5f8ff;
    --muted: #c8d5ea;
    --border: rgba(255, 255, 255, 0.10);
    --shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
    --transition: 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background:
        /* Adjusted the radial gradient to match the new deep sapphire tone */
        radial-gradient(circle at top left, rgba(58, 123, 213, 0.20), transparent 30%),
        radial-gradient(circle at bottom right, rgba(255, 214, 90, 0.12), transparent 30%),
        linear-gradient(135deg, #122848 0%, #18345d 50%, #1f4a7d 100%);
    color: var(--text);
    overflow-x: hidden;
    padding-top: 90px;
    /* Accounts for fixed navbar spacing since sections no longer stack */
}

.container {
    width: min(1120px, 92%);
    margin: auto;
}

/* NAV */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(14px);
    background: rgba(16, 35, 63, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.logo {
    color: white;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--yellow);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.4rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--yellow), #ffc93a);
    color: #10233f;
    box-shadow: 0 0 25px rgba(255, 214, 90, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(255, 214, 90, 0.40);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.09);
}

/* STANDALONE PAGE COMPONENT SPACE */
.page-wrapper {
    padding: 3.5rem 0 5.5rem 0;
    min-height: 75vh;
}

.section-title {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-subtitle {
    text-align: center;
    color: var(--muted);
    max-width: 700px;
    margin: 0 auto 3rem auto;
    line-height: 1.7;
}

/* UPDATED FOOTER */
footer {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(16, 35, 63, 0.3);
    font-size: 0.95rem;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-content p {
    color: var(--muted);
}

.footer-contact a {
    color: var(--yellow);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.footer-contact a:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 214, 90, 0.3);
}

@media(max-width:760px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

/* RESPONSIVE FLUIDITY */
@media(max-width:760px) {
    body {
        padding-top: 130px;
    }

    .nav {
        flex-direction: column;
        justify-content: center;
        gap: 1rem;
        height: auto;
        padding: 1rem 0;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

.bio-btn {
    margin-top: 1rem;
    background: linear-gradient(135deg, var(--yellow-soft), #ffd65a);
    color: #111;
    border: none;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.bio-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 22px;
    max-width: 600px;
    width: 100%;
    padding: 2rem;
    box-shadow: var(--shadow);
    position: relative;
    animation: popup .25s ease;
}

@keyframes popup {
    from {
        opacity: 0;
        transform: scale(.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-content h2 {
    margin-bottom: 1rem;
}

.modal-content p {
    line-height: 1.7;
}

.close {
    position: absolute;
    right: 18px;
    top: 10px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #aaa;
    transition: .2s;
}

.close:hover {
    color: white;
}