/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    width: 100%;
}

indexColumn {
    display: flex;
    flex-direction: column;
}
/* /////////////////////////////////  HEADER INFO   ///////////////////////////////////////////////// */
.toolbar {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    background: linear-gradient(to right, #425453, #9df5f0);
    color: #000;
    font-weight: 600;
    position: sticky;
    z-index: 1000;
    padding: 0 20px;
}


.HeaderColumn {
    display: flex;
    background-color: #424242;
}

.HeaderImage {
    margin: 6px;
}

.toolbar img {
    height: 100px;
    width: 100px;
    border-radius: 50%;
    text-align: right;
}

@media (max-width: 768px) {
    .footer {
        flex-direction: row !important;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

        .footer a {
            margin: 0 !important;
            width: auto !important;
            padding: 5px 10px;
        }
}

.footer .spacer {
    display: none;
}

}


/* /////////////////////////////////  HOME INFO   ///////////////////////////////////////////////// */
#container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Prevents flex items from overflowing */
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.HomeBG {
    background: linear-gradient(to right, #011816, #02a58d);
    display: flex;
    flex-wrap: wrap;
    justify-content: right;
    align-items: right;
    padding: 40px 20px;
    flex: 1;
    width: 100%;
}

.HomeCleanBackground {
    background-color: #92def2;
    padding: 20px;
    text-align: center;
}

.HomeImage {
    text-align: center;
    width: 50%;
    height: auto;
    max-height: 70%;
    object-fit: cover;
}

.HColumn {
    text-align: center;
    padding-right: 15%;
    flex: 1 1 40%;
    padding: 20px;
}

.ImageColumn {
    text-align: center;
    padding-left: 20%;
    flex: 1 1 40%;
    padding: 20px;
}

.HColumn h1 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 2.5em;
}

.HColumn p {
    color: #fff;
    font-size: 1.2em;
    line-height: 1.5;
}

/* Dialog Section */
.HomeCleanBackground button {
    background: #fff;
    color: #000;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s;
}

    .HomeCleanBackground button:hover {
        background: var(--clr, #02a58d);
        box-shadow: 0 0 10px var(--clr, #02a58d);
    }

.custom-dialog {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(120deg, #abdeff, #c8c8c8);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2em;
}

    .custom-dialog p {
        margin-bottom: 10px;
        font-size: 1em;
    }

    .custom-dialog button {
        background: #02a58d;
        color: #fff;
        border: none;
        padding: 8px 16px;
        border-radius: 4px;
        cursor: pointer;
        transition: background 0.3s;
    }

        .custom-dialog button:hover {
            background: #028f75;
        }


/* Image Carousel */
.image-carousel {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    background-color: #424242;
}

.carousel-track {
    display: flex;
    height: 100%;
    animation: scroll 20s linear infinite;
    margin: 0%;
}

    .carousel-track img {
        width: 300px;
        height: 250px;
        object-fit: cover;
        margin-right: 20px;
        border-radius: 10px;
    }

/* Keyframes for Scrolling */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* /////////////////////////////////  FOOTER INFO   ///////////////////////////////////////////////// */
.footer {
    display: flex;
    flex-direction: row;
    gap: 5px;
    justify-content: flex-end; /* Ensure links are pushed to the right */
    background-color: #333; /* Set background color for footer */
    width: 100%; /* Ensure footer takes up the full width */
    padding: 10px 20px; /* Optional padding */
    flex-wrap: wrap; /* Allow wrapping of footer links */
}

    .footer a {
        margin-left: 0;
        margin-bottom: 10px;
        text-decoration: none;
        color: white; /* Ensure links are visible on dark background */
    }

        .footer a:hover {
            color: #02a58d;
        }

    /* This is to put the linkedin and github logos on the right */
    .footer .spacer {
        flex-grow: 1; /* This will make the spacer take up available space */
    }

/* Media Query for Mobile Screens */
@media (max-width: 768px) {
    .footer {
        flex-direction: column;
        align-items: flex-start; /* Change this as needed for alignment */
    }

        .footer a {
            margin: 1em 0;
        }

        .footer .spacer {
            display: none; /* Optionally hide the spacer in the mobile view if it’s unnecessary */
        }
}

/* /////////////////////////////////  INPUT INFO   ///////////////////////////////////////////////// */

/* Glowing buttons */

a {
    position: relative;
    background: #fff;
    min-height: 10px;
    max-height: 45px;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.5em;
    letter-spacing: 0.1em;
    font-weight: 400;
    padding: 10px 30px;
    transition: 0.5s;
}

    a:hover {
        background: var(--clr);
        box-shadow: 0 0 35px var(--clr);
        letter-spacing: 0.25em;
    }

/* Responsive Styles */
@media (max-width: 1024px) {
    .HColumn h1 {
        font-size: 2em;
    }

    .HColumn p {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .HomeBG {
        flex-direction: column;
        padding: 20px 10px;
    }

    .ImageColumn,
    .HColumn {
        flex: 1 1 100%;
        padding: 10px;
        text-align: center;
    }

    .HColumn {
        padding-right: 0;
    }

        .HColumn h1 {
            font-size: 2em;
        }

        .HColumn p {
            font-size: 1em;
            padding-right: 0;
        }



    .toolbar img {
        height: 80px;
        width: 80px;
        margin-bottom: 10px;
    }

    .toolbar .nav-links {
        flex-direction: center;
        gap: 10px;
    }

        .toolbar .nav-links a {
            margin: 0;
            padding: 15px 15px;
            width: 100%;
            text-align: right;
        }

    .footer {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .HColumn h1 {
        font-size: 1.5em;
    }

    .HColumn p {
        font-size: 0.9em;
    }

    .footer a {
        font-size: 1.2em;
    }

    .toolbar img {
        height: 60px;
        width: 60px;
    }

    .toolbar .nav-links a {
        font-size: 0.9em;
    }
}

/* /////////////////////////////////   About INFO   ///////////////////////////////////////////////// */

.AImageSections {
    background: linear-gradient(to right, #011816, #02a59d);
    display: flex;
}

.About {
    background: linear-gradient(to right, #011816, #02a59d);
    text-align: center;
    width: 100%;
    font-size: 2em;
    padding-top: 1%
}

.AImageInfo {
    margin-left: 6%;
    font-size: 2em;
}

.box img {
    max-width: 100%;
    max-height: 100%;
    z-index: 1;
}

.box {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    margin-left: 6%;
    margin-top: 8px;
    position: relative;
    width: 400px;
    height: 340px;
    background: repeating-conic-gradient(from var(--a), #92def2 0%, #92def2 5%, transparent 5%, transparent 20%, #92def2 50%);
    animation: animate 4s linear infinite;
}

@property --a {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

@keyframes animate {
    0% {
        --a: 0deg;
    }

    100% {
        --a: 360deg;
    }
}

.box::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-conic-gradient(from var(--a), #92def2 0%, #92def2 5%, transparent 5%, transparent 20%, #92def2 50%);
    animation: animate 4s linear infinite;
    animation-delay: -1s;
    z-index: 0;
}

/* This style is to let the footer links stay to the right */
.spacer {
    flex: 1;
}

/* /////////////////////////////////   Resume INFO   ///////////////////////////////////////////////// */

.Rbody {
    display: flex; /* Use flexbox for side-by-side layout */
    justify-content: space-between; /* Distribute space evenly between items */
    align-items: flex-start; /* Align items to the top of the container */
    flex-wrap: nowrap; /* Prevent items from wrapping to the next line */
}


.PLColumn {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%;
    margin: 10px;
    padding: 10px;
    height: 98.5%;
    background-color: #cccccc;
}

.PLImageBorder {
    background-color: #028f75;
    text-align: center;
    margin-top: 2em;
    height: 15%;
    width: 50%;
    border-radius: 1em;
    display: flex; /* Flexbox for centering image inside */
    justify-content: center; /* Horizontally center image */
    align-items: center; /* Vertically center image */
}

.PLImage {
    margin-top: 0em;
    width: 90%;
    height: 90%;
    border: dimgrey;
    border-radius: 1em;
}

.PContent {
    font-size: 1rem;
    line-height: 1.6;
    margin: 10px 0;
}

    .PContent p {
        margin-bottom: 1rem;
        font-size: 1em;
    }

    .PContent hr {
        margin-top: 2rem; /* Add space above the horizontal rule */
        border: 0;
        border-top: 1px solid #ccc; /* Make the horizontal rule lighter */
    }

.PInfo {
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 1em;
    padding: 10px;
    width: 75%;
}

.PGreyHeading {
    font-weight: bold;
    text-align: left;
    margin: 5%;
    font-size: 1em;
}

.UL {
    padding-left: 10%;
    font-size: 1em;
}

.PHeading {
    font-weight: bold;
    text-align: left;
    font-size: 2em;
}

.PInternship {
    display: flex;
    flex-direction: column;
    background: linear-gradient(45deg, #abdeff, #c8c8c8);
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.Test {
    flex-direction: column;
}

@media (max-width: 768px) {
    .Rbody {
        justify-content: flex-start; /* Ensure they align at the start on small screens */
    }

    .PLColumn, .PInfo {
        width: auto; /* Allow both columns to adjust based on content */
    }

    .PInfo {
        margin-top: 10px; /* Add top margin for spacing between elements */
    }

    .PLImageBorder {
        background-color: #028f75;
        text-align: center;
        margin-top: 2em;
        height: 16em;
        width: 8em;
        border-radius: 1em;
        display: flex; /* Flexbox for centering image inside */
        justify-content: center; /* Horizontally center image */
        align-items: center; /* Vertically center image */
    }

    .PLImage {
        margin-top: 0em;
        height: 15em;
        border: dimgrey;
        border-radius: 1em;
    }

    .PContent {
        font-size: 0.9rem; /* Slightly reduce font size for smaller screens */

        max-width: 100%; /* Ensure the content takes full width on small screens */
    }

        .PContent p {
            margin-bottom: 1rem;
            font-size: 1.2em;
        }

        .PContent li {
            margin-bottom: 0.5rem;
            font-size: 1em;
        }


    .PInternship {
        min-height: 100vh; /* Ensure full height on mobile */
        padding: 0px; /* Adjust padding for smaller screens */
    }

    .PHeading {
        font-size: 1.2rem; /* Slightly reduce font size for smaller screens */
    }

    .PGreyHeading {
        font-weight: bold;
        text-align: left;
        margin: 10%;
    }

    .UL {
        padding-left: 10%;
        font-size: .5em;
    }
}

/* ////////////////////////////// MOBILE DEVICE ////////////////////////////// */

/* Mobile Devices */
@media (max-width: 600px) {
    .toolbar {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }

        .toolbar img {
            height: 50px;
            width: 50px;
            margin-bottom: 10px;
        }

        .toolbar .nav-links {
            flex-direction: row;
            gap: 10px;
            width: 100%;
        }

            .toolbar .nav-links a {
                padding: 10px;
                text-align: center;
                width: 100%;
            }

    .AImageSections {
        padding: 10px;
    }

    .box {
        width: 80%;
        max-width: 400px;
        height: auto;
    }

    .carousel-track img {
        width: 90%;
        height: auto;
        margin-right: 10px;
    }

    .footer {
        flex-direction: row;
        gap: 5px;
    }

        .footer a {
            margin-left: 0;
            margin-bottom: 10px;
        }
}
