html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    height: 100%;
}

body {
    background-color: #00274C;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.bold {
    font-weight: bold;
}

/* header */
header {
    position: relative;
    width: 100%;
}

.logo {
    position: absolute;
    left: 4rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: bold;
    z-index: 1;
}

.logo a {
    color: #fff;
    text-decoration: none;
}

nav {
    height: 80px;
    background: linear-gradient(rgba(255, 203, 5, 0.6), rgba(255, 203, 5, 0.6));
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.nav-links ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 3rem;
}

.nav-links ul li {
    display: flex;
    align-items: center;
}

.nav-links ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.nav-links ul li a:hover {
    color: #00274C;
}

.nav-links a.active {
    text-decoration: underline;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 calc((100vw - 1300px) / 2);
    margin: 0;
}

.center {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
    text-align: justify;
}

/* card styles */
.card {
    background-color: rgba(255, 255, 255, 0.95);
    color: #000;
    border-radius: 10px;
    padding: 20px;
    margin: 0 0 24px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.title-card {
    background-color: rgba(255, 255, 255, 0.95);
    color: #000;
    border-radius: 10px;
    padding: 20px;
    margin: 0 0 24px 0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* image placeholder */
.image-placeholder {
    width: 300px;
    height: 300px;
    margin: 0 auto 20px;
    /* i used chat to make sure i got the margin right */
    border-radius: 10px;
    overflow: hidden;
}

.image-placeholder img,
.image-placeholder2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-placeholder:hover img,
.image-placeholder2:hover img {
    transform: scale(1.05);
}

.image-placeholder2 {
    width: 100%;
    max-width: 400px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 10px;
    overflow: hidden;
}

.text-content {
    text-align: center;
}

.text-content h2,
.text-content h3 {
    margin: 0 0 16px 0;
    font-size: 24px;
    color: #00274C;
}

.text-content p {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.text-content p:last-child {
    margin: 0 0 0 0;
}

.text-content a {
    color: #00274C;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.text-content a:hover {
    color: #ffb700;
}

/* classes and interests sections */
.classes,
.interests {
    margin:15px 0px 0px 0px;
    text-align: center;
}

.class-item,
.interests-item {
    background-color: #fff;
    color: #00274C;

    padding: 10px 30px;
    margin: 10px 20px;

    width: fit-content;
    border-radius: 5px;

    display: inline-flex;
    justify-content: center;

    font-size: 2.25rem;
    font-weight: bold;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.class-item a {
    color: #00274C;
    text-decoration: none;
    transition: color 0.3s ease;
}

.class-item:hover,
.interests-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.class-item a:hover {
    color: #ffb700;
}

/* headings */
h1,
h2 {
    color: #fff;
    text-align: center;
    margin: 0 0 32px 0;
}

h1 {
    font-size: 3.5rem;
    margin: 32px 0 0 0;
}

h2 {
    font-size: 2.5rem;
    margin: 0 0 48px 0;
}

/* grid layouts */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.grid-container2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 20px 0;
}

.grid-container2 .card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-container2 .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.grid-container3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* web design card */
.grid-container2 .card:last-child {
    grid-column: span 2;
}

/* dropdown styles */
.dropbtn {
    background-color: #00274C;
    color: white;
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(0, 39, 76, 0.9);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 10px;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: center;
}

.dropdown-content a:hover {
    background-color: rgba(255, 203, 5, 0.6);
    border-radius: 10px;
}

.dropdown:hover .dropbtn {
    background-color: #00274C;
}

.dropdown:hover .dropdown-content,
.dropdown-content:hover {
    display: block;
}

/* media queries */
@media screen and (max-width: 768px) {
    .content {
        padding: 16px;
    }

    .nav-links ul {
        position: absolute;
        top: 100%;
        left: 0;
        background: rgba(0, 39, 76, 0.9);
        width: 100%;
        display: none;
    }

    .nav-links.active ul {
        display: block;
    }

    .nav-links ul li {
        display: block;
        text-align: center;
    }

    .nav-links ul li a {
        font-size: 12px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .image-placeholder,
    .image-placeholder2 {
        width: 100%;
        max-width: 300px;
    }

    .skills {
        grid-template-columns: 1fr;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }

    .logo {
        left: 2rem;
        font-size: 20px;
    }
}