body {
    font-family: 'Poppins', sans-serif;
    background-color: #1c1c1c;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    background-color: #2b2b2b;
    padding: 0.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.headshot {
    border-radius: 5px;
    width: 100px;
    height: 100px;
    margin-right: 1rem;
}

.header-text h1 {
    margin: 0;
    font-size: 1.8rem;
    color: #d3d3d3;
}

.header-text p {
    margin: 0;
    color: #c7a9ff;
}

.social-links a {
    color: #c7a9ff;
    margin-right: 10px;
    text-decoration: none;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #b3a1ff;
}

section {
    padding: 5rem 0; /* Increased padding to separate from the header */
    margin-top: 100px;
}

h2 {
    font-size: 2rem;
    color: #c7a9ff;
    text-align: center;
    margin-bottom: 2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.skill {
    background-color: #333;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
}

.progress-bar {
    background-color: #555;
    border-radius: 5px;
    overflow: hidden;
    height: 20px;
    margin-top: 10px;
}

.progress {
    background-color: #c7a9ff;
    height: 100%;
    transition: width 1s;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.project {
    background-color: #333;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    color: #e0e0e0;
}

.project:hover {
    background-color: #444;
}

.project img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 1rem;
}

footer {
    background-color: #2b2b2b;
    color: #c7a9ff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

#contact p {
    text-align: center;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.appear {
    opacity: 1;
    transform: translateY(0px);
}

#about {
    padding-top: 7rem; /* Increase this value for more space */
}

/* General hyperlink style */
a {
    color: #ffffff; /* Change this to the color you prefer */
    text-decoration: none; /* Removes the underline */
    transition: color 0.3s ease; /* Smooth transition on hover */
}

a:hover {
    color: #b3a1ff; /* Lighter or contrasting color on hover */
}

/* Navigation-specific links */
nav ul li a {
    color: #ffffff; /* Set the navigation link color */
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #b3a1ff; /* Set a different color for hover state */
}

/* Lightning Strike Animation */
@keyframes lightning-strike {
    0% {
        background-color: #ffffff; /* Flash the background white */
        color: #000000; /* Temporarily change text color to black */
        box-shadow: 0 0 50px 20px #ffffff; /* Intense glow effect */
    }
    25% {
        background-color: #2b2b2b; /* Back to original background color */
        color: #ffffff; /* Back to original text color */
        box-shadow: 0 0 20px 10px #ffffff; /* Dim glow effect */
    }
    50% {
        background-color: #ffffff; /* Another brief flash */
        color: #000000;
        box-shadow: 0 0 50px 20px #ffffff;
    }
    75% {
        background-color: #2b2b2b;
        color: #ffffff;
        box-shadow: 0 0 20px 10px #ffffff;
    }
    100% {
        background-color: #2b2b2b;
        color: #ffffff;
        box-shadow: none;
    }
}

/* Grow and Fade In Animation */
@keyframes grow-fade-in {
    0% {
        opacity: 0;
        transform: scale(0.95); /* Start slightly smaller */
    }
    100% {
        opacity: 1;
        transform: scale(1); /* End at full size */
    }
}

/* Apply the animation to all sections */
.fade-in {
    opacity: 0; /* Start with the section invisible */
    animation: grow-fade-in 1.5s ease-out forwards; /* Apply grow and fade-in animation */
}


/* Apply the animation to the header
header {
    animation: lightning-strike 2s ease-out forwards;
}
*/

#projects, #skills, #resume, #contact {
    padding-top: 7rem; /* Adjust this value to match the header height */
    margin-top: -4rem; /* Adjust this value to offset the extra padding */
}

.gallery-container {
    position: relative;
    max-width: 80%;
    margin: auto;
    overflow: hidden;
    padding-top: 45%; /* Maintain the 16:9 aspect ratio */
    background-color: transparent; /* Remove any background color */
}

.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Cover the container without black bars */
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    user-select: none;
}

.prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
