body {
    background: #322a27;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif; /* Cleaner look for portfolio */
    transition: all 0.5s ease;
}

body.light-mode{
    background: #cdf9fc;
}

.banner {
    position: relative;
    opacity:100;
    width: 100%;
    z-index: -50;
    transition: all 0.8s ease;
}

.banner.light-mode{
    /* display: none; */
    opacity: 0;
    position:absolute;
    left:0;
    top:0;
}

.flex-container {
    display: flex;
    align-items: flex-start; /* Aligns items to the top of the container */
    margin-top: -10vh;    
    padding-left: 5vw;
}

#pfp {
    /* z-index: 10; */
    border-radius: 50%;
    height: 30vh;
    margin-left:5vw;
    border: 3px solid #100c08; /* Adds a small gap between image and background */
    transition: all 0.5s ease;
}

#pfp.light-mode{
    border: 3px solid #0040ff; 
}

/* This new container stacks the Name and Description vertically */
.text-content {
    display: flex;
    flex-direction: column;
    margin-left: 30vw;
    margin-top: 5vh; /* Adjust this to move text up or down relative to PFP */
}

#name {
    font-size: 3.5rem;
    color: #c8aebd;
    margin: 0; /* Remove default margins to control spacing better */
}

#name.light-mode{
    color:#27576F;
}

#description {
    color: beige;
    margin-top: 1.2rem;
    font-weight: 400;
    max-width: 500px; /* Prevents text from stretching too wide */
    font-size:1.4rem;
}

#description.light-mode{
    color:#33282E;
}

.icons {
    position: absolute; 
    top: 5vh; 
    right: 3vw;
    /* z-index: 100; */
    display: flex;
    gap: 15px;
}

.social {
    color: aliceblue;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social.light-mode{
    color:#100c08;
}

.icon.light-mode{
    color:#2E0404;
}

.social:hover{
    color: #c4aead;
    transform: scale(1.1);
}

.social.light-mode:hover{
    color:#5151e1;
}

#cert_heading{
    text-align: center;
    color: #fdf5e6;
    font-family: 'JetBrains Mono'; 
}

#cert_heading.light-mode{
    color: #332828;
}

.certificates{
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 8px;
    margin-left:2vw;
    margin-right:2vw;
}

/* 1. Large screens up to 1360px (Default 3 columns) */
@media (max-width: 1360px) {
    .certificates {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 956px) {
    .certificates {
        grid-template-columns: repeat(2, 1fr);
    }
    .flex-container{
        display: flex;
        flex-direction: column;
        align-items: center;    /* Horizontal centering for flex items */
        justify-content: center;
        text-align: center;     /* Horizontal centering for text lines */
        margin-left:-18vw;        /* Centers the container block */
        width: 100%;
    }
    #pfp{
        margin-left:30%;
    }
}

@media (max-width: 600px) {
    .certificates {
        grid-template-columns: repeat(1, 1fr);
    }
}
.cert-card {
    background: #1a161285;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #333;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.cert-card.light-mode{
    background: #66f5ff42;
}

.cert-card:hover {
    transform: translateY(-5px);
    border-color: #c4aead;
}

.cert-card i {
    font-size: 2rem;
    color: #c4aead;
    margin-bottom: 15px;
}

.cert-card h4 {
    color: aliceblue;
    font-family: 'JetBrains Mono', monospace;
    margin: 10px 0;
}

.cert-card.light-mode h4, .cert-card.light-mode p{
    color: #2E0404;
}

.cert-card p {
    color: beige;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cert-card img{
    max-height: 28vh;
    max-width: 20vw;
    border-radius: 6%;
    border:2px dotted #ff9f55;
}

@media (max-width: 600px) {
    .cert-card img{
        max-width:50vw;
    }
}

.cert-card.light-mode img{
    border: 2px dotted #440E03;
}

a{
    text-decoration: none;
}

#lightbox{
    left: 0;
    top: 0;
    position:fixed;
    background-color: rgba(0, 0, 0, 0.2);
    height: 100vh;
    width: 100vw;
    z-index: 100;
    align-items: center;
    visibility: hidden;
    display: flex;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    transition: all 0.4s ease;
}

#lightbox.show {
    opacity: 1;
    visibility: visible;
    background-color: rgba(02,05,01,0.5);
}

#lightbox-img{
    max-height: 70vh;
    max-width: 70vw;
    opacity: 0.1;
    transform: scale(0.2);
    transition: all 0.4s ease;
}

.close-help{
    opacity: 0.8;
    color: white;
}

#lightbox.show #lightbox-img {
    transform: scale(1);
    opacity: 1;
}

.top-left{
    top: 5vh;
    left: 2vw;
    gap: 2vw;
    position: absolute;
    display: flex;
    flex-direction: row;
}

#submenu{
    display: none;
    flex-direction: column;
    text-decoration: none;
    position: absolute;
    background: #100c08;
    left: 0;
    padding: 1rem;
    list-style: none;
    gap: 2rem;
    border-radius: 5%;
    border: dashed;
    border-color: #cdf9fc;
    transition: all 0.3s ease;
}

#submenu a {
    color: #c4aead;
}

#submenu.active{
    display:flex;
}

.light-mode #submenu{
    background-color: #def9fd;
    border-color: #010eae;
}

.light-mode #submenu a{
    color: black;
}

#menu{
    gap: 0;
}

.flex-col{
    display: flex;
    flex-direction: column;
}