/* Base Styles */
:root {
    --text-color: #ff6600;
    --beskar-steel: #2d2d2d;
    --mandalorian-blue: #006699;
    --blaster-orange: #ff6600;
    --starfield: #000033;
    --hologram-teal: #00ffff;
    font-size: 17px; /* Set the base font size */
}

::-webkit-scrollbar {
    width: 10px;
    background-color: #020826;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: #FF6600;
    border-radius: 10px;
}

body {
    background: var(--starfield);
    color: white;
    font-family: 'Space Mono', monospace;
    overflow-x: hidden;
}

/* Starfield Animation */
.star {
    position: fixed;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--duration) infinite ease-in-out;
    z-index: -1;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem; /* Adjust this value based on the height of your nav bar */
}

a {
    color: var(--text-color);
    text-decoration: none;
}

nav {
    background-color: rgba(15, 15, 15, 0.949);
    display: flex;
    justify-content: space-between;
    padding: 0 3.125rem;
    height: 5rem;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(1px);
    transition: background-color 0.3s ease;
}

nav:hover {
    background-color: rgba(15, 15, 15, 0.8);
}

nav .left a {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
}

nav .right a {
    color: var(--text-color);
    font-size: 1.375rem;
    margin: 0 0.625rem;
    position: relative;
}

nav .right a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--blaster-orange);
    transition: width 0.3s ease;
}

nav .right a:hover::after {
    width: 100%;
}

nav .right a:hover {
    color: var(--link-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    justify-content: center;
    align-items: center;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 2rem;
    height: 0.25rem;
    margin: 0.25rem 0;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Back to Top Button */
#back-to-top {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1200;
    background: var(--blaster-orange);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    font-size: 2rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

#back-to-top:hover {
    background: var(--mandalorian-blue);
    transform: scale(1.1);
}

/* General Section Styles */
section {
    padding: 8rem 2rem;
    min-height: 80vh; /* Reduce the default minimum height */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--text-color);
    gap: 2rem;
    transition: var(--background-color) 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

section:nth-of-type(odd) {
    background-color: rgba(45, 45, 45, 0.8); /* Dark background for odd sections */
}

section:nth-of-type(even) {
    background-color: rgba(0, 102, 153, 0.1); /* Light background for even sections */
}

/* Section Heading Styles */
section h2 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    letter-spacing: 1px;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 4px;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--blaster-orange);
    border-radius: 2px;
}

/* About Section */
#about-section .headshot {
    position: relative;
    width: 20rem;
    height: 20rem;
    margin-top: 1rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

#about-section .headshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

#about-section .headshot::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, 
        var(--hologram-teal),
        var(--mandalorian-blue),
        var(--blaster-orange));
    z-index: 0;
    animation: hologram 3s linear infinite;
}

#about-section .social-links a {
    font-size: 2rem;
    color: #9d3f00;
    transition: transform 0.3s ease;
}

#about-section .social-links a:hover {
    transform: translateY(-5px);
}

/* Experience Section */
#experience-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

#experience-section h2 {
    margin-bottom: 1rem;
    font-size: 2.75rem;
    font-weight: 700;
}

#experience-section .experience-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 56.25rem;
    width: 100%;
}

#experience-section .experience-box {
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    text-align: left;
}

#experience-section .experience-box h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

#experience-section .experience-box p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 300;
}

/* Projects Section */
#projects-section {
    width: 100%;
    margin: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

#projects-section h2 {
    margin-bottom: 1rem;
    font-size: 2.75rem;
    font-weight: 700;
}

#projects-section h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 500;
    text-decoration: underline;
}

.project-subsection {
    width: 100%;
    margin-bottom: 4rem; /* Add space between subsections */
}

.projects-scroll-container {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    width: 100%;
    max-width: 1600px;
    overflow-x: auto; /* Allow horizontal scrolling if needed */
    margin: 0 auto;
}

.project-box {
    flex: 0 0 16rem; /* Fixed width for the boxes */
    text-align: center;
    border: 1px solid #d7dbd8;
    border-radius: 0.5rem;
    color:#000;
    padding: 1rem;
    margin: 0 0.5rem;
    background-color: #f6efef90;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for scaling */
}

.project-box:hover {
    transform: scale(1.05); /* Grow the box slightly on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.project-box img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
}

.project-box h4 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.project-box h5 {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.project-box p {
    font-size: 1rem;
    font-weight: 300;
    color: #494a4a;
}

/* Skills Section */
#skills-section {
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem; /* Add gap between elements */
}

.skill-icon {
    width: 50px;
    height: 50px;
}

#skills-section h2 {
    margin-bottom: 1rem;
    font-size: 2.75rem;
    font-weight: 700;
}

#skills-section .skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem; /* Add gap between icons */
}

#skills-section i {
    font-size: 3rem;
    color: #9d3f00;
    transition: transform 0.3s ease, color 0.3s ease;
    margin: 1rem 0; /* Add margin to ensure proper spacing */
}

#skills-section i:hover {
    transform: scale(1.2);
    color: #6d2c01;
}

.skills-text {
    margin-bottom: 2rem;
    padding: 0 2rem;
    max-width: 56.25rem;
    font-size: 1.25rem;
    font-weight: 300;
}

/* Education section */
#education {
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem; /* Add gap between elements */
}

#education h2 {
    margin-bottom: 1rem;
    font-size: 2.75rem;
    font-weight: 700;

}

.education-item {
    margin-bottom: 20px;

}

.education-item h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 5px;
    font-weight: bold;
}

.education-item .degree {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 3px 0;
    font-style: italic;
}

.education-item .timeline {
    font-size: 1rem;
    color: var(--text-color);
    margin: 3px 0;
}
/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 2s ease-in-out forwards;
}

.slide-in-from-left {
    animation: slideInFromLeft 1s ease-in-out forwards;
}

.fade-in-up {
    animation: fadeInUp 1s ease-in-out forwards;
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    nav .left a {
        font-size: 1.25rem;
    }

    nav .right a {
        font-size: 1rem;
        margin: 0 0.5rem;
    }

    #about-section .headshot {
        width: 18rem;
        height: 18rem;
    }

    #projects-section .project-box {
        flex: 0 0 14rem; /* Adjust width for smaller screens */
    }

    #skills-section i {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    nav .left a {
        font-size: 1.25rem;
    }

    nav .right a {
        font-size: 1.1rem;
        margin: 0 0.375rem;
    }

    nav .right {
        display: none;
        position: absolute;
        top: 5rem;
        right: 0;
        background: rgba(15, 15, 15, 0.98);
        flex-direction: column;
        width: 60vw;
        box-shadow: -2px 0 8px rgba(0,0,0,0.2);
        padding: 2rem 1rem;
        border-radius: 0 0 0 1rem;
        z-index: 1050;
    }

    nav .right.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    #about-section .headshot {
        width: 16rem;
        height: 16rem;
    }

    #projects-section .project-box {
        flex: 0 0 14rem;
    }

    #skills-section i {
        font-size: 2rem;
    }

    #skills-section .skills-container {
        gap: 1.25rem;
    }
}

@media (max-width: 576px) {
    nav {
        padding: 0 1rem;
    }

    nav .left a {
        font-size: 1.1rem;
    }

    nav .right a {
        font-size: 0.8rem;
        margin: 0 0.25rem;
    }

    #about-section .social-links {
        font-size: 1.75rem;
    }

    #about-section h2 {
        font-size: 2.4rem;
    }

    #about-section .headshot {
        width: 12rem;
        height: 12rem;
    }

    #projects-section .project-box {
        flex: 0 0 14rem;
    }

    #skills-section i {
        font-size: 1.5rem;
    }

    #skills-section .skills-container {
        gap: 1rem;
    }

    section {
        padding: 6rem 1rem; /* Adjust padding for smaller screens */
    }

    #projects-section {
        padding: 6rem 1rem; /* Adjust padding for smaller screens */
    }

    #leave-message-section {
        padding: 3rem 1rem; /* Adjust padding for smaller screens */
    }
}

/* Hologram Effect */
@keyframes hologram {
    0% { opacity: 0.5; filter: hue-rotate(0deg); }
    50% { opacity: 0.8; }
    100% { opacity: 0.5; filter: hue-rotate(360deg); }
}