
:root {
    --primary: #0A2540;
    --accent: #2EC4B6;
    --accent-hover: #1AA79B;
    --bg-light: #F4F8FB;
    --text-dark: #1F2933;
    --border: #E5E7EB;
}
/* this adds smooth scrolling */

html{
   scroll-behavior: smooth; 
}
body {
    margin: 0;
    font-family: 'Source Sans 3', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
}

h1,h2,h3 {
    font-family: 'Playfair Display', serif;
}

/* HERO */
.hero {
    background: linear-gradient(rgba(10,37,64,0.7), rgba(10,37,64,0.9)), url('https://images.unsplash.com/photo-1560275619-4662e36fa65c');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 20px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: auto;
}

header {
    background: var(--primary);
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    color: white;
    margin-left: 15px;
    text-decoration: none;
}

nav a:hover {
    color: var(--accent);
}

section {
    padding: 60px 20px;
    max-width: 1100px;
    margin: auto;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.card a{
    color:black;
    text-decoration:none;
}

/* this changes the background color on your project links when you hoverr */
#research .card a:hover{
    color:white;
}
#research .card:hover{
    background:#1AA79B;
    color:white;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 20px;
    padding:20px;
}

.gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform .3s;
}

.gallery img:hover {
    transform: scale(1.05);
}
/* Wrap each image */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

/* Keep your image behavior */
.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* Overlay (hidden by default) */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 37, 64, 0.75);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Hover effects */
.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

button {
    background: var(--accent);
    border: none;
    padding: 12px;
    color: white;
    border-radius: 6px;
}

footer {
    text-align: center;
    padding: 30px;
    background: var(--primary);
    color: white;
}
.overlay {
    background: rgba(10, 37, 64, 0.5);
    backdrop-filter: blur(5px);
}

/* Hamburger (hidden on desktop) */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* Mobile styles */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 70px;
        right: 0;
        background: var(--primary);
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;

        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    nav a {
        padding: 15px 0;
        width: 100%;
        text-align: center;
    }

    /* When menu is open */
    nav.active {
        max-height: 300px;
    }
}
