:root {
    --accent: #d97706;
    --accent-hover: #f59e0b;
    --radius: 12px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #032349;
    color: rgba(255, 255, 255, .7);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Playfair Display", "Georgia", serif;
    font-weight: 600;
}

body, p, .btn, a, .navbar-brand, .nav-link {
    font-family: "Lora", "Georgia", serif;
}

a {
    color: var(--accent);
    transition: all .3s ease-in-out;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: none;
}

button {
    transition: all .3s ease-in-out;
}

.container {
    max-width: 1170px;
}

/* Navbar */
.navbar {
    background: #032349;
    padding-top: 24px;
    padding-bottom: 24px;
    border: none;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.navbar .container {
    padding-left: 24px;
    padding-right: 24px;
}

.nav-pill {
    background: rgba(255, 255, 255, .15);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
    padding: 8px;
    display: flex;
    align-items: center;
    min-height: 48px;
}

.navbar-brand {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.3px;
    color: rgba(255, 255, 255, .6) !important;
}

.navbar-brand.nav-pill {
    padding: 8px 24px;
}

.navbar-nav {
    gap: 0.5rem;
}

.nav-link {
    font-size: 18px;
    font-weight: 500;
    text-transform: lowercase;
    padding: 6px 16px !important;
    border-radius: var(--radius);
    color: rgba(255, 255, 255, .6) !important;
    transition: background .2s ease, color .2s ease;
}

.nav-link.active {
    background: rgba(255, 255, 255, .1);
}

.nav-link:hover {
    background: var(--accent);
    color: #fff !important;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Buttons */
.btn-d, .btn-d:hover, .btn-d:focus {
    color: #FFF;
    background: var(--accent);
    border: none;
}

.btn-d:hover {
    background: var(--accent-hover);
}

.btn-lg {
    font-size: 18px;
    padding: 10px 16px;
    border-radius: var(--radius);
}

/* Images */
.img-fluid {
    display: block;
}

/* Research card hover effects */
.research-card {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
    transition: box-shadow .4s ease;
    background: #0a2d4f;
}

/* Scroll-reveal animation */
.research-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease-out, transform .6s ease-out, box-shadow .4s ease;
}

.research-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.research-card .card-img-wrap {
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
}

.research-card .card-img-wrap img {
    width: 100%;
    display: block;
    transition: transform .4s ease;
}

.research-card h3 {
    font-size: 1.1rem;
    border-left: 4px solid var(--accent);
    padding: 6px 0 6px 14px;
    background: transparent;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 12px;
}

.research-card p {
    font-size: .9rem;
}

.research-card:hover {
    box-shadow: 0 6px 28px rgba(0,0,0,.35);
}

.research-card:hover .card-img-wrap img {
    transform: scale(1.06);
}

.social-icon {
    width: clamp(36px, 6vw, 48px);
    height: clamp(36px, 6vw, 48px);
}

.social-link {
    color: rgba(255, 255, 255, .6);
}

.social-link:hover {
    color: var(--accent);
}

.orcid-link:hover {
    color: #A6CE39;
}

.hero-container,
.research-container {
    padding-left: 24px;
    padding-right: 24px;
}

/* Section padding */
.section {
    padding: 50px 0;
}

/* Hero text */
.hero-text {
    font-size: 20px;
}

/* Scroll to top */
.scrollToTop {
    width: 40px;
    height: 40px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    opacity: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.scrollToTop svg {
    display: block;
}

.showScrollTop {
    opacity: 1;
}

/* Color utilities */
.bgc-oxford-blue {
    background-color: #032349;
}

.mg-md {
    margin-top: 10px;
    margin-bottom: 20px;
}

.mg-lg {
    margin-top: 10px;
    margin-bottom: 40px;
}


