/* ===== Global Reset ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode',
                 'Lucida Grande', 'Lucida Sans',
                 Arial, sans-serif;
}

body {
    background-color: #0b1d3a;
}

/* ===== Navigation ===== */
nav {
    height: 80px;
    background: rgb(0, 0, 39);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
}

.logo {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 0 2rem;
}

nav a {
    color: #fff;
    font-size: 1rem;
    padding: 0 1.5rem;
    text-decoration: none;
}

nav a:hover {
    color: darkgray;
}

/* ===== Projects Page ===== */
.projects-page {
    min-height: calc(100vh - 80px);
    padding: 4rem 2rem;
    background-color: #e7ecff;
}

/* ===== Grid Layout ===== */
.projects-grid {
    max-width: 1600px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    justify-items: center;
}

/* ===== Clickable Link Wrapper ===== */
.project-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    max-width: 720px;
}

/* ===== Project Cards ===== */
.project-card {
    background-color: #ffffff;
    padding: 3rem;

    width: 100%;
    min-height: 440px;

    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(21, 11, 78, 0.26);

    display: flex;
    flex-direction: column;
    justify-content: center;

    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: fadeIn 0.6s ease-out;
}

/* Typography */
.project-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: rgb(0, 0, 39);
}

.project-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

/* ===== Hover + Focus Interaction ===== */
.project-link:hover .project-card,
.project-link:focus-visible .project-card {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(21, 11, 78, 0.35);
    cursor: pointer;
}

/* Accessibility focus outline */
.project-link:focus-visible {
    outline: 3px solid #0b1d3a;
    outline-offset: 6px;
    border-radius: 16px;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Styles ===== */
@media (max-width: 1100px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    nav {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 0.5rem;
    }

    nav a {
        padding: 0.5rem;
        font-size: 0.95rem;
    }

    .projects-page {
        padding: 3rem 1.5rem;
    }

    .project-card {
        padding: 2.5rem 2rem;
        min-height: auto;
    }
}
