/* ---------------------------
   General Page Styles
---------------------------- */
html,
body {
    min-height: 100%;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #fff;
    /* restore white text */
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: url("/images/Tech Background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

main {
    flex: 1;
    padding: 40px 20px;
}

/* ---------------------------
   Navigation
---------------------------- */
nav {
    background: #222;
    padding: 15px;
    text-align: center;
}

nav a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
    font-weight: 500;
}

nav a:hover {
    text-decoration: underline;
}

/* ---------------------------
   Navbar Layout
---------------------------- */
.navbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    background: #222;
    padding: 14px 30px;
}

.nav-left {
    justify-self: start;
}

.nav-logo {
    width: 60px;
    height: auto;
    transform: scale(1.45);
    /* adjust this value */
    transform-origin: left center;
}

.nav-center {
    justify-self: center;
}

.nav-center a {
    color: #fff;
    margin: 0 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
}

.nav-center a:hover {
    text-decoration: underline;
}

/* ---------------------------
   Page Titles
---------------------------- */
.page-title {
    text-align: center;
    margin-bottom: 30px;
}

/* ---------------------------
   Accolades Grid
---------------------------- */
.accolades-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    padding: 30px;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .accolades-grid {
        grid-template-columns: 1fr;
    }
}

.accolades-item {
    background-color: #fff;
    color: #000;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    /* horizontal centering */
    justify-content: center;
    /* vertical centering */

}

.accolades-item img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    cursor: pointer;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.accolades-item img:hover {
    transform: scale(1.05);
}

.caption {
    margin-top: 10px;
    font-weight: 500;
}

/* ---------------------------
   Resume Layout
---------------------------- */
/* Resume container (flex) */
.resume-container {
    display: flex;
    flex-wrap: wrap;      /* allows stacking on small screens */
    gap: 30px;
    max-width: 1200px;    /* a bit wider to accommodate image + text box */
    margin: 0 auto;
}

.resume-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.resume-image img:hover {
    transform: scale(1.05);
}

.resume-text {
    flex: 1;
    min-width: 250px;
}

/* ---------------------------
   Social Logos
---------------------------- */
.social-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px auto 0;
}

.social-logos a img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.social-logos a img:hover {
    transform: scale(1.2);
}

.social-logos-wrapper {
    grid-column: 1 / -1;
    /* span full grid width */
    display: flex;
    justify-content: center;
    /* center horizontally */
    margin-top: 30px;
    /* space from last certificate */
}

/* ---------------------------
   Back to Top Button
---------------------------- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #000;
    border-radius: 8px;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.back-to-top:hover {
    transform: translateY(-3px);
    background-color: #f0f0f0;
}

/* ---------------------------
   Modal
---------------------------- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.modal-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.modal-content.zoomed {
    transform: scale(1.5);
    cursor: zoom-out;
}

#modalCaption {
    margin-top: 15px;
    color: #fff;
    font-size: 1.1rem;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 32px;
    color: #fff;
    cursor: pointer;
}

/* ---------------------------
   Footer
---------------------------- */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.9rem;
}

footer a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;

}

/* ---------------------------
   About Section Text Box
---------------------------- */
.about-text-box {
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    padding: 2.5rem 3rem;
    border-radius: 20px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    line-height: 1.7;
    font-size: 1.1rem;
}

.about-text-box p {
    margin-bottom: 1.25rem;
}

.about-text-box p:last-child {
    margin-bottom: 0;
}

/* Text box inside resume container */
.resume-text-box.projects {
    flex: 1 1 500px;        /* flex-grow:1, flex-shrink:1, flex-basis:500px */
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    padding: 2.5rem 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    line-height: 1.7;
    font-size: 1.1rem;
    min-width: 300px;       /* prevent box from getting too small */
}

/* Featured Accolade */
.featured-accolade {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px; /* space between featured and grid */
}

.featured-accolade img {
    width: 50%;
    max-width: 500px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.featured-accolade img:hover {
    transform: scale(1.05);
}

.featured-accolade .caption {
    margin-top: 15px;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    color: #fff;
}

/* ---------------------------
   Featured Accolade at Top
---------------------------- */
.featured-accolade-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 50px; /* space between featured and grid */
    position: relative; /* for the star */
}

.featured-accolade {
    text-align: center;
    position: relative;
}

.featured-accolade img {
    width: 80%;       /* bigger than grid items */
    max-width: 600px; /* responsive max width */
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6); /* subtle cyan glow */
}

.featured-accolade img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.9); /* brighter cyan glow on hover */
}

.featured-accolade .caption {
    margin-top: 15px;
    font-size: 1.4rem; /* slightly bigger */
    font-weight: bold;
    color: #fff;
}

/* Star icon accent */
.featured-accolade::before {
    content: "⭐";
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    text-shadow: 0 0 8px cyan, 0 0 12px cyan; /* cyan glow for the star */
}
