:root {
    --bg-color: #0A2540;
    --primary-color: #F1F5F9;
    --secondary-color: #F6C343;
    --accent-color: #22C7A9;
    --card-bg: #2C4056;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family:'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
  flex-grow: 1;
}

/* Navbar Styles */
.navbar {
    background: var(--bg-color);
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid var(--card-bg);
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    height: 80px;
    z-index: 1;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 50px;
}

/* === LOGO STYLES === */

#navbar__logo {
    display: flex;
    align-items: center; /* Vertically centers the image */
    cursor: pointer;
    text-decoration: none;
    /* Removed: font-size, background-image, text-fill-color, etc. */
}

.navbar__logo-img {
    height: 50px; /* Adjust this to fit your navbar height */
    width: auto;  /* Maintains the aspect ratio */
    object-fit: contain;

    /* Optional: If you want a circular icon */
    /* border-radius: 50%; */
}

/* Mobile responsiveness adjustments */
@media screen and (max-width: 960px) {
    .navbar__logo-img {
        height: 40px; /* Slightly smaller on mobile */
    }
}

.navbar__menu {
    display: flex;
    align-items: center;
    list-style: none;
    text-align: center;
}

.navbar__item {
    height: 80px;
}

.navbar__links {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0 1rem;
    height: 100%;
    transition: all 0.3s ease;
}

.navbar__links:hover {
    color: var(--accent-color);
}

.navbar__btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
}

.button {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    padding: 10px 20px;
    border: none;
    outline: none;
    border-radius: 4px;
    background: var(--accent-color);
    color: var(--bg-color);
    font-weight: bold;
    transition: all 0.3s ease;
}

.button:hover {
    background: var(--primary-color);
    color: var(--bg-color);
}

/* Main Hero Section Styles (on index.html) */
.main {
    background: var(--bg-color);
    padding: 150px 0;
    width: 100%;
}

.main__container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0 30px;
}

.main__content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.main__content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.main__content p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.main__btn {
    font-size: 1rem;
    background-color: var(--accent-color);
    padding: 14px 32px;
    border: none;
    border-radius: 4px;
    color: var(--bg-color);
    font-weight: bold;
    cursor: pointer;
    position: relative;
    transition: all 0.35s;
    outline: none;
}

.main__btn a {
    position: relative;
    z-index: 2;
    color: var(--bg-color);
    text-decoration: none;
}

.main__btn:hover {
    background: var(--primary-color);
}

/* General Content Section Styles */
.content__section {
    padding: 40px 20px;
    width: 100%;
}

.content__section h1 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.25rem;
}

.content__container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.content__card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    min-width: 300px;
    flex: 1;
    transition: transform 0.2s ease-in-out;
}

.content__card:hover {
    transform: scale(1.03); /* Adds a subtle zoom effect on hover */
}

.content__card h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}



/* === PROJECT DETAILS PAGE === */

.details__container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem; /* Vertical space between sections */
}

.detail-row {
    display: flex;
    align-items: center; /* Vertically centers text with card */
    justify-content: space-between;
    gap: 3rem; /* Space between text block and image card */
}

/* AUTOMATIC ALTERNATING LAYOUT */
/* Every even row (2nd, 4th, 6th) reverses direction */
.detail-row:nth-child(even) {
    flex-direction: row-reverse;
}

.detail-text {
    flex: 1; /* Text takes up available space */
}

.detail-text h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.detail-text p {
    line-height: 1.6;
    font-size: 1.1rem;
    color: var(--text-color);
}

/* === THE IMAGE CARD === */
.detail-image {
    flex: 1; /* Takes up available space */

    /* Card Styling */
    background-color: var(--card-bg); /* Uses your theme's card color */
    padding: 1rem; /* Creates the white framing around the image */
    border-radius: 12px; /* Rounds the corners of the card */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Adds depth */

    /* Centering the image inside the card */
    display: flex;
    justify-content: center;
    align-items: center;
}

.detail-image img {
    width: 100%; /* Fills the card content area */
    height: auto;
    border-radius: 4px; /* Optional: slight rounding on the actual photo */
    object-fit: cover;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .detail-row {
        flex-direction: column !important; /* Always stack on mobile */
        text-align: center;
        gap: 2rem;
    }

    .detail-row:nth-child(even) {
        flex-direction: column !important; /* Keep stack order consistent */
    }

    .detail-image {
        width: 100%; /* Card fills width on mobile */
    }
}

/* === ABOUT ME PAGE STYLES === */

.about__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem; /* Side padding for the container */
    display: flex;
    flex-direction: column;
    gap: 2rem; /* Space between the cards */
}

.about__card {
    display: flex;
    align-items: center; /* Vertically centers text with image */
    justify-content: center;
    gap: 2rem;

    /* Box/Card Styling */
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); /* Very subtle static shadow */
}

/* AUTOMATIC ALTERNATING LAYOUT */
/* Selects every even card (2nd, 4th) and reverses the direction */
.about__card:nth-child(even) {
    flex-direction: row-reverse;
}

.about__text {
    flex: 1;
}

.about__text h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about__text p {
    line-height: 1.6;
    font-size: 1rem;
    color:var(--primary-color) ;
}

.about__card img {
    flex: 1;
    max-width: 300px; /* Controls image size */
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* === MOBILE RESPONSIVENESS (ABOUT_ME)=== */
@media screen and (max-width: 768px) {
    .about__card {
        flex-direction: column !important; /* Stack vertically on mobile */
        text-align: center;
        gap: 1.5rem;
    }

    /* Keep the stack order consistent on mobile (Image on top, Text below) */
    .about__card:nth-child(even) {
        flex-direction: column !important;
    }

    .about__card img {
        /* CHANGED: Cap the width so it doesn't fill the whole screen */
        max-width: 280px;

        width: 100%; /* Allows it to shrink smaller if the screen is tiny */
        height: auto; /* Maintains aspect ratio */

        /* ADDED: Centers the image horizontally */
        display: block;
        margin: 0 auto;
    }
}

/* Footer */
.footer__container {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--card-bg);
    color: var(--accent-color);
}

/* Mobile Responsive Styles */
@media screen and (max-width: 960px) {
    .navbar__container {
        display: flex;
        justify-content: space-between;
        height: 80px;
        z-index: 1;
        width: 100%;
        max-width: 1300px;
        padding: 0;
    }

    .navbar__menu {
        display: grid;
        grid-template-columns: 1fr;
        margin: 0;
        width: 100%;
        position: absolute;
        top: -1000px; /* Hide off-screen */
        opacity: 0;
        transition: all 0.5s ease;
        z-index: -1;
        background: var(--bg-color);
    }

    .navbar__menu.active {
        top: 80px;
        opacity: 1;
        transition: all 0.5s ease;
        z-index: 99;
        height: auto;
        padding-bottom: 20px;
    }

    #navbar__logo {
        padding-left: 25px;
    }

    .navbar__toggle .bar {
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background: #fff;
        display: block;
        cursor: pointer;
    }

    #mobile-menu {
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .navbar__item {
        width: 100%;
    }

    .navbar__links {
        text-align: center;
        padding: 1.5rem;
        width: 100%;
        display: table;
    }

    .navbar__btn {
        padding-bottom: 2rem;
    }

    .button {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 80%;
        height: 60px;
        margin: 0 auto;
    }

    .main__content h1 {
        font-size: 2.5rem;
    }

    .main__content h2 {
        font-size: 1.5rem;
    }
}

.featured__container {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Makes boxes the same height */
    flex-wrap: wrap; /* Allows boxes to stack on small screens */
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.project-box {
    background: var(--card-bg);
    border-radius: 10px;
    text-decoration: none;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    max-width: 400px;
    overflow: hidden; /* Keeps image corners rounded */

    /* 2. Add smooth animation for the hover effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    border: 1px solid transparent; /* invisible border to prevent layout jump on hover */
}

.project-box:hover {
    transform: scale(1.03); /* Makes the whole box grow slightly */
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* Adds a pop-up shadow */
    border-color: var(--accent-color); /* Optional: Highlights the border */
}

.project-box img {
    width: 100%;
    height: 250px; /* Gives images a uniform height */
    object-fit: cover; /* Prevents images from stretching */
}

.project-box__content {
    padding: 1.5rem;
    flex-grow: 1; /* Ensures content area expands */
}

.project-box__content h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.project-box__content p {
    line-height: 1.5;
}

.btn__container {
    text-align: center; /* Centers the button */
    margin-top: 3rem; /* Adds space between the boxes and the button */
}

.featured__btn {
    /* --- Here is the specific sizing --- */
    display: inline-block; /* Needed to apply padding and width */
    padding: 14px 32px; /* Controls the button's height and text padding */
    width: 250px;      /* Sets a specific width */

    /* --- Styling (to match your other buttons) --- */
    background-color: var(--accent-color);
    color: var(--bg-color);
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.featured__btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto; /* Centers the form horizontally */
    padding: 2rem;
    background-color: var(--card-bg); /* Uses your card background color */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Adds a subtle shadow */
    display: flex;
    flex-direction: column;
    gap: 1.2rem; /* Spacing between form elements */
}

.contact-form label {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
    display: block;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit; /* Ensures font matches the rest of the site */
    box-sizing: border-box; /* Keeps padding inside the width */
}

.contact-form textarea {
    resize: vertical; /* Allows user to stretch the box vertically only */
}

.submit__btn {
    background-color: var(--accent-color);
    color: var(--bg-color);
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    align-self: center;
    transition: background-color 0.3s ease;
}

.submit__btn:hover {
    background-color: var(--primary-color);
}

.education__container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto 2rem auto;
}

.edu-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    flex: 1; /* Makes both boxes equal width */
    min-width: 300px; /* Prevents them from getting too squished */
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.edu-card h2 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.edu-card h3 {
    color: var(--accent-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* -- 2. Work History Section -- */
.history__container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.history__row {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--card-bg); /* Optional: Remove if you want transparent background */
    border-radius: 8px;
}

.history__row img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0; /* Prevents image from shrinking when text gets long */
}

.history__text h2 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.history__text h3 {
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: normal;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-style: italic;
}

/* -- 3. Awards Section -- */
.awards__container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.award-box {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    text-decoration: none; /* Removes underline from link */
    color: inherit; /* Inherits text color */
    flex: 1;
    min-width: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent; /* Prevents layout jump on hover */
}

.award-box:hover {
    transform: translateY(-5px); /* Moves box up slightly */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    border-color: var(--accent-color); /* Adds highlight border on hover */
}

.award-icon {
    font-size: 3rem; /* Size of the emoji icon */
    margin-bottom: 0.25rem;
}

.award-box h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* -- Mobile Responsiveness -- */
@media screen and (max-width: 768px) {
    .history__row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

.action-buttons__container {
    display: flex;
    justify-content: center; /* Centers buttons horizontally */
    gap: 1.5rem; /* Space between the two buttons */
    margin: 2rem auto; /* Spacing above and below */
    padding: 0 1rem;
}

.action-btn {
    display: inline-block;
    padding: 12px 28px; /* Sizing: Height and Width padding */
    background-color: var(--accent-color);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    transition: transform 0.2s ease, background-color 0.2s ease;
    min-width: 160px; /* Ensures buttons are consistent width */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.action-btn:hover {
    transform: scale(1.03); /* Grows slightly on hover */
    background-color: var(--primary-color);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

.lab__container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem; /* Spacing between items */
}

.lab__item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--card-bg); /* Optional: Remove if you want transparent background */
    border-radius: 8px;
}

.lab__content {
    flex: 1; /* Takes up remaining space */
}

.lab__content h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.lab__content h3 {
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.lab__item img {
    width: 250px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    /* Optional: minimal shadow just for the image to make it pop */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    flex-shrink: 0; /* Prevents image from shrinking when text gets long */
}

/* -- Mobile Responsiveness -- */
@media screen and (max-width: 768px) {
    .lab__item {
        flex-direction: column-reverse; /* Puts image on top on mobile */
        align-items: center;
        text-align: center;
    }

    .lab__item img {
        width: 100%;
        max-width: 400px;
        height: auto;
    }
}

/* === ACTIVE NAVBAR LINK STYLE === */
.navbar__links.active {
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.1rem;
}

/* === MAIN PROJECTS PAGE === */

.project__container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 1. Make the link behave like a block container */
.project__link {
    text-decoration: none;
    display: block; /* Crucial: makes the link fill the container width */
    color: inherit; /* Inherits text color so headers don't turn blue */
}

.project__row {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: 8px;

    /* 2. Add smooth animation for the hover effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    border: 1px solid transparent; /* invisible border to prevent layout jump on hover */
}

.project__row img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.project__text h2 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.project__text p {
    color: var(--primary-color);
    line-height: 1.5;
}

/* When the link is hovered, style the row inside it */
.project__link:hover .project__row {
    transform: scale(1.03); /* Makes the whole box grow slightly */
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* Adds a pop-up shadow */
    border-color: var(--accent-color); /* Optional: Highlights the border */
}

/* === DIVIDER LINES === */

/* Full width separating line */
.divider-full {
    width: 100%;
    height: 2px; /* Thickness */
    background-color: var(--secondary-color); /* Color */
    margin: 0.5rem 0; /* Vertical spacing */
    opacity: 0.75;
    border-radius: 2px;
}

/* Small accent line (centered by default) */
.divider-small {
    width: 80px; /* Short width */
    height: 4px; /* Slightly thicker */
    background-color: var(--secondary-color);
    margin: 0.75rem auto; /* 'auto' centers it horizontally */
    opacity: 0.75;
    border-radius: 2px;
}

/* Small accent line (left aligned) */
.divider-small-left {
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 1rem 0; /* Aligned to the left */
    opacity: 0.75;
    border-radius: 2px;
}

/* === IMAGE STACK WRAPPER === */
.image-stack {
    flex: 1; /* Takes up the same half-width space as before */
    display: flex;
    flex-direction: column; /* Forces items inside to stack vertically */
    gap: 1.5rem; /* Adds space between the top and bottom images */
}

/* Mobile Tweak: Ensure the stack takes full width on phones */
@media screen and (max-width: 768px) {
    .image-stack {
        width: 100%;
    }
}

/* === UNDER CONSTRUCTION BANNER === */
.construction-banner {
    background-color: rgba(255, 193, 7, 0.1); /* Low opacity amber */
    border: 1px solid #ffc107; /* Amber border */
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 800px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #ffc107; /* Text color matches border */
}

.construction-icon {
    font-size: 2.5rem; /* Large Emoji size */
}

.construction-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: #ffc107;
}

.construction-content p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-color); /* Keeps body text readable */
    opacity: 0.9;
}

/* === COMING SOON PLACEHOLDER === */
.coming-soon-container {
    background-color: var(--card-bg);
    padding: 4rem 2rem;
    border-radius: 12px;
    text-align: center;
    border: 2px dashed var(--accent-color); /* Dashed border style */
    margin-top: 2rem;
}

.coming-soon-container h2 {
    margin: 1rem 0;
    color: var(--primary-color);
}

.coming-soon-container p {
    margin-bottom: 2rem;
    color: var(--text-color);
}