:root {
    --accent: #76254d;
    --text: #e5e5e5;
    --highlight: #aa7699;
}

body {
    background: linear-gradient(90deg, rgb(83, 83, 84, 1) 1%, rgb(122, 122, 122, 1) 50%, rgba(83, 83, 84, 1) 100%);
    background-attachment: fixed;
    /* Prevents gradient from repeating on scroll */
    background-size: cover;
    /* Ensures gradient covers the entire viewport */
    color: var(--text);
    font-family: "Times New Roman", Times, serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    letter-spacing: 1px;
    line-height: 1.6;
    overflow-y: scroll;
    /* Keep scrolling functionality */
    scrollbar-width: 0px;
    /* For Firefox */
}

body::-webkit-scrollbar {
    display: none;
    /* For Chrome, Safari, and Edge */
}

/* Photo Container */
.photo-container {
    display: flex;
    flex-direction: column;
    position: absolute;
    align-items: center;
    animation: move-up 1.0s ease-out forwards;
    top: 8rem;
}

/* Photo Styling */
.photo {
    width: 200px;
    height: 200px;
    border-radius: 20%;
    border: 2px solid var(--accent);
    /* Purple border */
    overflow: hidden;
    margin-bottom: 20px;
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Name Styling */
.name {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    padding-bottom: 5px;
    text-align: center;
}

/* Title Styling */
.title {
    font-size: 1.4rem;
    color: var(--accent);
    padding-bottom: 5px;
    text-align: center;
    font-weight: bold;
}

/* Animation */
@keyframes move-up {
    from {
        transform: translateY(20vh);
        /* Start from center */
        opacity: 0;
    }

    to {
        transform: translateY(0);
        /* End at top position */
        opacity: 1;
    }
}

/* Personal Info Section */
.personal-info {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 21px;
    box-shadow: 0px 0px 6px 3px var(--accent);
    padding: 9px 23px;
    border-radius: 1rem;
}

.icon {
    display: inline-block;
    width: 21px;
    height: 21px;
    border-radius: 1rem;
    transition: transform 0.2s ease;
    /* Pulse animation */
}

.icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 5px;
    /* Add this if you want rounded corners for the icons */
}

.icon:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    /* Slight zoom on hover */
}

/* General Section Styling */
.section {
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards;
    animation-delay: var(--delay, 1s);
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 1s ease-out;
    color: var(--text);
    box-shadow: none;
    background: transparent;
    max-width: 80%;
    position: absolute;
    margin-top: 3rem;
    top: 57rem;
    /* left: 7rem; */
    width: 67%;
}

.section h2 {
    border-bottom: 2px solid var(--accent);
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.section-item {
    margin-bottom: 17rem;
    margin-top: 1rem;
    opacity: 0;
    /* Start invisible */
    transform: translateY(20px);
    /* Slightly below initial position */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    /* Smooth reveal animation */
}

/* Section-Item Visible State */
.section-item.visible {
    opacity: 1;
    animation: fadeIn 1.0s ease-out forwards;
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.3);
    border-radius: 2rem;
    padding: 2rem;
}

/* Section Active State */
.section.visible {
    opacity: 1;
    transform: translateY(0);
    /* Move into place */
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(186, 169, 238, 0.7);
        /* Initial shadow */
    }

    50% {
        box-shadow: 0 0 10px 10px rgba(138, 72, 215, 0.3);
        /* Larger glow */
    }

    100% {
        box-shadow: 0 0 0 0 rgba(138, 72, 215, 0.3);
        /* Reset glow */
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(100px);
        /* Slight downward offset */
    }

    to {
        opacity: 1;
        transform: translateY(50);
        /* Final position */
    }
}

@keyframes fadeInStatic {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Footer Styling */
.footer {
    position: fixed;
    background: rgba(0, 0, 0, 0.25);
    bottom: 0;
    width: 100%;
    border-radius: 1rem;
    z-index: 1000;
    animation: fadeIn 1.0s ease-out forwards;
}

.dashboard {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 22px;
}

.nav-icon {
    display: inline-block;
    width: 21px;
    height: 21px;
    transition: transform 0.2s ease;
}

.nav-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 5px;
    /* Add this if you want rounded corners for the icons */
}

.nav-icon:hover {
    transform: scale(1.2);
    box-shadow: 0 0 4px 4px var(--highlight);
    /* Purple shadow around active icon */
    border-radius: 1rem;
    /* Slight zoom on hover */
}

/* Footer Nav Active State */
.nav-icon.active {
    background: transparent;
    transform: scale(1.2);
    box-shadow: 0 0 4px 4px var(--highlight);
    /* Rounded purple shadow */
    transition: all 0.3s ease-in-out;
    border-radius: 1rem;
    /* Smooth transition */
}

/* Highlights Section */
.highlights-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    /* Allow wrapping for smaller screens */
    gap: 2rem;
    /* Space between containers */
    max-width: 80%;
    width: 80%;
    /* Limit the section width */
    padding: 20px;
    margin-top: 1rem;
}

/* Highlight Container */
.highlight-container {
    /* Responsive width for 3 items in a row */
    max-width: 330px;
    /* Limit the container width */
    padding: 10px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    font-size: 15px;
    /* Transparent background */
    border-radius: 1rem;
    /* Rounded corners */
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.2);
    /* Rounded shadow */
    color: var(--text);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Smooth hover effect */
}

/* Header Styling */
.highlight-container h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--accent);
    font-weight: bold;
    margin-top: 0.5rem;
}

/* Hover Effect */
.highlight-container:hover {
    transform: translateY(-2px);
    /* Lift slightly on hover */
    box-shadow: 0 15px 15px rgba(0, 0, 0, 0.3);
    /* Slightly darker shadow on hover */
}

/* Resume Section */
.resume-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px auto;
    padding: 20px;
    max-width: 600px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    /* Transparent background */
    border-radius: 15px;
    /* Rounded corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* Subtle shadow */
}

/* Header Styling */
.resume-container h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--text);
    /* Light text color */
}

/* Download Button */
.download-button {
    display: flex;
    padding: 1px 21px;
    font-size: 0.8rem;
    color: black;
    background: var(--highlight);
    border-radius: 1rem;
    text-decoration: none;
    /* letter-spacing: 2px; */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin: 0.8rem 2rem;
    transition: all 0.3s ease;
    align-items: center;
}

.download-button:hover {
    background: #ffffff;
    /* Lighter color on hover */
    color: #282838;
    /* Darker text on hover */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Sticky Header */
.sticky-header {
    position: fixed;
    /* Sticks to the top of the viewport */
    top: 0;
    width: 100%;
    /* Full width */
    background: rgba(0, 0, 0, 0.25);
    /* Semi-transparent dark background */
    /* Light text color */
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.3);
    /* Subtle shadow */
    z-index: 1000;
    /* Ensures it stays on top of other elements */
    display: flex;
    justify-content: space-between;
    /* Space between name and button */
    align-items: center;
    /* Align content vertically */
    border-radius: 1rem;
    animation: fadeInStatic 1.0s ease forwards;
}

/* Name Styling */
.header-name {
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    margin-left: 4rem;
    color: var(--highlight);
}

.header-name:hover {
    color: #ffffff;
}

/* Vertical Navigation Line */
.vertical-navigation {
    position: fixed;
    top: 24%;
    right: 3%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
}

/* Vertical Line */
.nav-line {
    width: 2px;
    height: 100rem;
    background: rgba(255, 255, 255, 0.4);
    margin-bottom: 10px;
}

.options {
    width: 27px;
    height: 27px;
    margin-right: 0.4rem;
}

.purple-icon {
    box-shadow: 0 0 4px 4px var(--highlight);
    border-radius: 1rem;
}


/* Scroll Down Button */
.scroll-down-button {
    position: fixed;
    bottom: 17%;
    /* Positioned to align with the vertical line */
    font-size: 1.5rem;
    padding: 5px 8px;
    border: none;
    background: var(--accent);
    border-radius: 50%;
    /* Circular button */
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    /* Button shadow */
    transition: transform 0.3s ease, background 0.3s ease;
}

.scroll-up-button {
    position: fixed;
    top: 27%;
    /* Positioned to align with the vertical line */
    font-size: 1.5rem;
    padding: 5px 8px;
    border: none;
    background: var(--accent);
    border-radius: 50%;
    /* Circular button */
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    /* Button shadow */
    transition: transform 0.3s ease, background 0.3s ease;
}

.no-pulse {
    animation: none;
    /* Disable animation */
    box-shadow: none;
    /* Remove shadow */
}

.no-pulse {
    animation: none !important;
    /* Disable animation */
    box-shadow: none !important;
    /* Remove shadow */
}


.scroll-down-button:hover {
    background: #ffffff;
    /* Lighter background on hover */
    color: black;
    /* Darker text on hover */
}

.scroll-up-button:hover {
    background: #ffffff;
    /* Lighter background on hover */
    color: black;
    /* Darker text on hover */
}

/* Technology Carousel */
.tech-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 0rem;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); */
    background: transparent;
    padding: 10px 0px;
}

/* Carousel Container */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Carousel Track */
.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
    /* Space between items */
}

/* Carousel Items */
.carousel-item {
    padding: 13px 10px;
    background: rgba(0, 0, 0, 0.1);
    /* Semi-transparent */
    color: var(--text);
    /* Light text color */
    text-align: center;
    font-size: 0.9rem;
    align-content: center;
    font-weight: bold;
    border-radius: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    user-select: none;
}

.carousel-item:hover {
    background: #ffffff;
    /* Lighter color on hover */
    color: #282838;
    /* Darker text on hover */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.footer-sticky {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    /* Dark background */
    color: var(--text);
    /* Light text */
    padding: 20px 0;
    position: relative;
    /* Ensures it appears only at the end of the page */
    text-align: center;
    z-index: 10;
    margin-top: auto;
    /* Pushes footer to the bottom */
}

/* Footer Content */
.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.copyright {
    font-size: 0.8rem;
    color: var(--highlight);
    left: 4rem;
    position: absolute;
}

/*
    Responsive
*/

/* General adjustments for smaller devices */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        /* Hide navigation menu */
    }

    .vertical-navigation {
        display: none;
    }

    .hamburger-menu {
        display: block;
        /* Show hamburger icon */
        font-size: 2rem;
        cursor: pointer;
        padding: 10px;
    }

    .highlight-container {
        flex: 1 1 100%;
        /* Full width on smaller screens */
    }

    .section-item {
        margin-bottom: 6rem;
    }

    .download-button {
        font-size: 0.7rem;
    }

    .copyright {
        font-size: 0.6rem;
        color: var(--highlight);
        left: unset;
        bottom: 0;
        position: absolute;
    }

    .photo-container {
        top: 4rem;
        /* Adjust top spacing for smaller screens */
    }

    .photo {
        width: 100px;
        /* Scale photo size */
        height: 100px;
    }

    .name {
        font-size: 1.4rem;
        /* Reduce font size */
    }

    .title {
        font-size: 1rem;
        /* Adjust title size */
    }

    .section {
        /* Full-width sections on small screens */
        margin-top: 2rem;
        /* Adjust spacing */
        top: 100%;
        /* Remove fixed top positioning */
    }

    .icon {
        width: 30px;
        /* Smaller icons */
        height: 30px;
    }

    .highlights-section {
        flex-direction: column;
        /* Stack highlights vertically */
        gap: 1rem;
        flex-wrap: nowrap;
        /* Reduce spacing */
    }

    .highlight-container {
        width: 79%;
        /* Full-width containers */
        max-width: none;
    }

    .footer {
        padding: 10px;
        /* Reduce padding */
    }

    .footer-content {
        flex-direction: column;
        /* Stack content vertically */
        gap: 10px;
        /* Reduce spacing */
    }

    .dashboard {
        justify-content: space-evenly;
        padding: 7px;
    }
}

/* Adjustments for very small devices (mobile phones) */
@media (max-width: 480px) {
    .photo-container {
        top: 10rem;
    }

    .photo {
        width: 150px;
        height: 150px;
    }

    .name {
        font-size: 1.2rem;
    }

    .title {
        font-size: 0.9rem;
    }

    .icon {
        width: 20px;
        height: 20px;
    }

    .section {
        font-size: 0.9rem;
        /* Reduce font size for smaller screens */
    }
}