/* Global Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #333;
    padding-top: 60px; /* Adjust padding to the height of the fixed header */
}

/* Header Styles */
header {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100vw; /* Set width to 100% of the viewport width */
    position: fixed; /* Fix the header to the top of the page */
    top: 0;
    left: 0;
    z-index: 1000; /* Ensure the header is above other content */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Add a subtle shadow for better visibility */
    box-sizing: border-box; /* Ensure padding is included in the width calculation */
}

header .logo {
    font-size: 24px;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav ul li {
    margin: 0 10px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
}

header nav ul li a:hover {
    text-decoration: underline;
}

/* Main Content Styles */
main {
    padding: 20px;
}

section {
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 8px;
}

/* Home Section Styles */
#home {
    position: relative;
    overflow: hidden;
    height: 100vh;
    background-color: transparent; /* Ensure the background is fully transparent */
}

.canvas-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1; /* Ensure it is behind the content */
}

.hero-text {
    position: relative; /* Position it relative to its normal position */
    z-index: 1;
    color: #008080; /* Teal color */
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 40px; /* Adjust this margin to ensure it is below the scrolling container */
}

.belt-buckle-container {
    position: absolute;
    left: 30px; /* Space from the left edge */
    top: 50%; /* Center vertically */
    transform: translateY(-50%); /* Center vertically */
    width: 268px; /* Fixed external width */
    height: 400px; /* Fixed external height */
    border-radius: 25px; /* Rounded corners */
    overflow: hidden; /* Hide any overflow */
    z-index: 1; /* Ensure it is above the scrolling content */
    background: #fff; /* Optional: background color to see the container boundaries */
}

.belt-buckle {
    position: absolute; /* Position relative to its container */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the image */
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ensure the entire image fits within the container */
}

.scrolling-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #333;
    color: white;
    padding: 10px 0;
}

.scrolling-content {
    display: flex;
    width: 200%; /* Ensure width is more than 100% to allow scrolling */
    animation: scroll 20s linear infinite;
}

.scrolling-content img {
    flex: none;
    padding: 0 20px;
    height: 200px; /* Adjust height as needed */
    width: auto; /* Ensure images are properly scaled */
}

@keyframes scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%); /* Move left by half of the container width */
    }
}


/* About Section Styles */
#about {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.about-container {
    display: flex;
    gap: 20px;
}

.linkedin-badge {
    flex-shrink: 0;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    color: #008080;
    margin-bottom: 10px;
}

.additional-content {
    margin-top: 20px;
}

/* Skills Section Styles */
#skills {
    padding: 20px;
    background-color: #f4f4f4;
}

#skills h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2em;
    color: #333;
}

.skill-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.skill {
    text-align: center;
    flex: 1 1 150px;
    max-width: 150px;
}

.skill-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

.skill-name {
    display: block;
    font-size: 1em;
    color: #333;
}

/* Projects Section Styles */
#projects {
    padding: 40px 20px;
    background-color: #f4f4f4;
}

#projects h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2em;
    color: #333;
}

#major-projects h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #333;
}

.project-thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.project {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    width: 100%;
    text-align: center;
}

.project h4 {
    margin-top: 0;
    color: #008080;
}

.project-thumbnail {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.project p, .project ul {
    text-align: left;
    line-height: 1.6;
}

.project ul {
    list-style: disc;
    padding-left: 20px;
}

/* Resume Section Styles */
#resume {
    background-color: #fff;
}

.download-button {
    display: inline-block;
    background-color: #008080;
    color: #fff;
    padding: 10px 20px;
    margin: 10px 0;
    text-decoration: none;
    border-radius: 5px;
}

.download-button:hover {
    background-color: #006666;
}

.experience-timeline {
    margin-top: 20px;
}

.experience {
    background-color: #f4f4f4;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Contact Section Styles */
#contact {
    background-color: #fff;
}

#contact form {
    display: flex;
    flex-direction: column;
}

#contact form input, #contact form textarea {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#contact form button {
    background-color: #008080;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

#contact form button:hover {
    background-color: #006666;
}

/* Social Media Links Styles */
.social-media a {
    color: #008080;
    text-decoration: none;
    margin-right: 10px;
}

.social-media a:hover {
    text-decoration: underline;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    text-align: center;
}

footer .quick-links a {
    color: #008080;
    text-decoration: none;
    margin: 0 10px;
}

footer .quick-links a:hover {
    text-decoration: underline;
}
