@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100;0,300;1,400&display=swap");

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

body {
    font-family: "IBM Plex Sans", sans-serif;
    color: #fff;
    background-color: #1D1F20;
    margin: 0;
}

.header {
    height: 100vh;
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0)),
        url('images/backdrop.JPG') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 20px;
}

.section {
    padding-bottom: 5%;

}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(0, 0, 0, 0.7);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ABCDED;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar .nav-links li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.navbar .nav-links li a:hover {
    color: #00aced;
}

.header-content {
    padding: 20px;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.header-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.header-content p {
    font-size: 1.2rem;
    line-height: 1.5;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
    margin: 10px 0;
}

.header-content img {
    display: block;
    margin: 20px auto;
    width: 30%;
    min-width: 200px;
    max-width: 300px;
    border-radius: 16px;
    border: 5px solid white;
}

.about-section .header-content img {
    width: 70%;
    max-width: 600px;
    min-width: 300px;
}

header h1 {
    margin-top: 20px;
}

header img {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 20px;
        justify-content: space-between;
        align-items: center;
    }

    .nav-links {
        gap: 15px;
        margin: 0;
        font-size: 0.9rem;
    }

    .header-content {
        max-width: 100%;
        padding: 10px;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .header-content p {
        font-size: 1rem;
    }

    .card {
        width: calc(50% - 15px);
    }

    .skillImage {
        width: 80%;
        min-width: 250px;
    }

    section {
        padding: 20px;
    }

    .project-card {
        max-width: 600px;
        width: calc(100% - 40px);
        margin: 0 20px;
    }

    .project-image {
        aspect-ratio: 16/9;
    }

    .projects {
        padding: 10px 0;
    }

    .project-content h3 {
        font-size: 1.1rem;
    }

    .project-content p {
        font-size: 0.85rem;
    }

    .tech-tag {
        font-size: 0.75rem;
    }

    iframe {
        height: 600px;
    }

    .header-content img {
        width: 40%;
        min-width: 180px;
    }

    .about-section .header-content img {
        width: 80%;
        min-width: 280px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 10px;
    }

    .nav-links {
        gap: 10px;
        font-size: 0.8rem;
    }

    .classes {
        margin: 10px 0;
        padding: 0;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .card {
        width: 90%;
        min-width: auto;
        margin: 0 auto;
    }

    .skillImage {
        width: 90%;
        min-width: 200px;
    }

    .project-card {
        width: 90%;
        margin: 0 auto;
    }

    .project-content {
        padding: 15px;
    }

    .project-content h3 {
        font-size: 1rem;
    }

    .project-content p {
        display: none;
    }

    .tech-tag {
        font-size: 0.7rem;
        padding: 3px 6px;
    }

    .project-link {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .project-links {
        margin: 10px 0;
    }

    iframe {
        height: 500px;
    }

    .header-content {
        padding: 5px;
    }

    .header-content img {
        width: 50%;
        min-width: 150px;
    }

    .about-section .header-content img {
        width: 90%;
        min-width: 250px;
    }

    .projects {
        padding: 10px 0;
        margin: 0;
        width: 100%;
    }
}

footer {
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

section {
    margin: 5px;
    padding: 50px;
}

p {
    margin: 20px;
}

.sectionheader {
    color: #ABCDED;
}

.resume {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 20px 0;
    text-align: center;
    margin: 2rem 0;
}

iframe {
    width: 100%;
    height: 800px;
    border: none;
    max-width: 1000px;
}

#contact img {
    padding-top: 5px;
    width: 50px;
    height: 50px;
    filter: brightness(0) invert(1);
}

.skillSection {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 80px;
}

.skill-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    padding: 20px;
}

.classes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px auto;
    justify-items: center;
    width: 100%;
}

.skills {
    padding: 20px;
}

.card {
    background: #2c5282;
    color: white;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.3);
    width: 100%;
    max-width: 300px;
    text-align: center;
    border-radius: 16px;
    overflow: hidden;
    padding: 10px;
}

.card ul {
    text-align: left;
    margin: 0;
    padding-left: 20px;
}

.card ul li {
    color: #ffffff; 
    font-weight: 800; 
    line-height: 1.6; 
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.skillImage {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 60%;
    max-width: 800px;
    min-width: 300px;
}

.caption {
    text-align: center;
}

.projectSection {
    display: flex;
    flex-direction: column;
    padding-top: 80px;
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 20px;
    width: 100%;
    margin: 0 auto;
}

.project-card {
    background: #2c5282;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.project-content {
    padding: 20px;
}

.project-content h3 {
    color: white;
    margin-bottom: 10px;
}

.project-content p {
    color: white;
    margin: 10px 0;
    font-size: 0.9rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.project-links {
    margin: 15px 0;
}

.project-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: #ABCDED;
    color: #1D1F20;
    text-decoration: none;
    border-radius: 8px;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.project-link:hover {
    background-color: #00aced;
    color: white;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tech-tag {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Home page specific layout */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 20px;
    align-items: center;
}

.about-content {
    padding: 20px;
}

.resume-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.map-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
}

.map-section p {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    text-align: center;
}

.map-section h2 {
    margin-bottom: 2rem;
}

#ncmap {
    height: 400px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.download-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #2c5282;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700; 
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px; 
}

.download-button:hover {
    background-color: #1a365d;
}

@media (max-width: 768px) {
    .about-section {
        grid-template-columns: 1fr;
    }

    .skill-intro {
        grid-template-columns: 1fr;
    }

    .classes {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

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