/* Global Styles */    
body {
    margin: 0;
    padding: 0;
    font-family: 'Times New Roman', serif;
    color: #fff; /* White text throughout the web body */
    background: linear-gradient(135deg, #2c2c2c, #8b3b5e, #0a0a29); /* Dull gray, dull pink, and dark navy blue */
}

header {
    position: fixed;
    width: 100%;
    background-color: #2c2c2c; /* Blending dull gray color for header */
    padding: 20px 0; /* Increase padding for larger tab */
    color: #fff; /* White text for the header */
    transition: background-color 0.3s ease;
    z-index: 1000; /* Ensure it stays on top of other content */
    display: flex;
    align-items: center;
}

header.transparent {
    background-color: rgba(44, 44, 44, 0.7); /* Dull gray but with transparency on scroll */
}

nav {
    margin-left: auto;
}

.header-title {
    margin-left: 20px;
    font-size: 1.5em; /* Adjust font size for the portfolio title */
    font-weight: bold;
}

nav ul {
    display: flex;
    justify-content: flex-start; /* Align to the left */
    list-style: none;
    padding: 0;
    margin-left: 20px; /* Adds left margin for spacing */
}

nav ul li {
    margin-right: 30px; /* Increase spacing between menu items */
}

nav ul li a {
    color: #fff; /* White text for navigation links */
    text-decoration: none;
    font-size: 1.3em; /* Increase font size */
    font-weight: bold;
}

.contact-btn {
    background-color: #8b3b5e; /* Dull pink for the contact button */
    color: #fff;
    padding: 15px 25px; /* Larger button size */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: 2px solid #8b3b5e;
    margin-right: 20px; /* Adjust space from the right */
}


.contact-btn:hover {
    background-color: #73284d; /* Slightly darker dull pink shade on hover */
}

section {
    padding: 80px 40px; /* Increased padding */
    text-align: center;
}

.home-content {
    height: 65vh; /* Ensure it's visible, adjusted height to cover more of the viewport */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertically center the content */
    align-items: center; /* Horizontally center the content */
    background: none;
    color: #fff; /* White text for the write-up */
    font-size: 1.3em; /* Adjust font size as needed */
    text-align: center;
    line-height: 1.7;
}
/* Skill Filter */
.skill-filter {
    margin: 20px auto; /* Center the filter within the section */
    text-align: center;
}

.skill-filter label {
    font-size: 1.3em; /* Match font size with the existing design */
    font-weight: bold;
    margin-right: 10px;
    color: #fff; /* White text to align with the theme */
}

#skill-select {
    padding: 10px 15px; /* Add padding for a larger dropdown */
    font-size: 1em; /* Match dropdown font size */
    border-radius: 5px; /* Rounded corners */
    border: 1px solid #8b3b5e; /* Dull pink border to match the theme */
    background-color: #2c2c2c; /* Dull gray background for dropdown */
    color: #fff; /* White text */
    transition: background-color 0.3s ease, color 0.3s ease;
}

#skill-select:hover {
    background-color: #8b3b5e; /* Slightly lighter dull pink on hover */
    color: #fff;
}

.projects-container {
    display: flex;
    flex-direction: column; /* Stack projects vertically */
    align-items: center; /* Center each project */
    gap: 30px; /* Keep space between projects */
    margin-top: 5px;
    min-height: 500px; /* Prevent container from collapsing */
}

.project {
    display: flex; /* Make the project content align side by side */
    flex-direction: row; /* Image on one side, text on the other */
    align-items: center; /* Align items vertically */
    justify-content: space-between; /* Ensure spacing between image and text */
    width: 95%; /* Set project width */
    max-width: 1100px; /* Limit max width */
    box-sizing: border-box;
    background-color: #fff;
    color: #333;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    height: auto; /* Allow height to adjust dynamically */
    transition: opacity 0.3s ease, transform 0.3s ease;
    padding: 5px;
}


.project.hidden {
    opacity: 0; /* Make hidden projects invisible */
    transform: scale(0.9); /* Slightly shrink hidden projects */
    pointer-events: none; /* Disable interactions with hidden projects */
    visibility: hidden; /* Keep space reserved to prevent layout shifting */
    height: 0; /* Collapse the height smoothly */
    overflow: hidden; /* Prevent content from being seen */
    transition: all 0.3s ease-in-out;
}

.project img {
    width: 30%; /* Adjust width of the image */
    height: auto; /* Maintain aspect ratio */
/*     object-fit: cover; /* Ensures images fill the space without distortion */ */
    border-radius: 15px;
}

.project-description {
    width: 70%; /* Adjust width of the text */
    padding: 5px;
    font-size: 1.1em;
    text-align: left;
}

.resume-content {
    margin-top: 5px; /* Adjust spacing as needed */
    text-align: center;
    padding: 20px;
    border-radius: 5px;
    color: #fff; /* White text */
    font-size: 1.3em;
}

.resume-content .resume-btn {
    background-color: #2c2c2c; /* Dull pink for the resume button */
    color: #fff;
    padding: 15px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: 2px solid #8b3b5e;
}

.resume-content .resume-btn:hover {
    background-color: #73284d; /* Slightly darker dull pink shade on hover */
}

/* Work Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.timeline-item {
    display: flex;
    align-items: center; /* Aligns items in the center vertically */
    justify-content: space-between; /* Ensures space between text and image */
    position: relative;
    margin-bottom: 60px;
}

.timeline-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 70%;
    position: relative;
    left:80%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    color: #333; /* White text for the write-up */
/*     font-size: 1.2em; /* Adjust font size as needed */ */
}

.timeline-icon {
    width: 100px; /* Adjust image size */
    height: 100px;
    border-radius: 50%;
    background-color: #fff; /* Keeps background */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -77px; /* Moves it slightly inside the box */
}

.timeline-icon img {
    width: 100%;
    height: 100%;
    border-radius: 30%;
    object-fit: cover; /* Ensures the image fills the circle properly */
}

.timeline::before {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #fff; /* Use the dull pink color for the line */
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item:nth-child(even) .timeline-content {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

.timeline-item:nth-child(even) .timeline-icon {
    left: auto;
    right: 0;
    transform: translateX(30px); /* Adjust the value as needed */
}


#work-experience {
    font-size: 17px; /* Reduce overall text size */
}

#work-experience h3 {
    font-size: 20px; /* Slightly bigger for company name */
    font-weight: bold;
}



#contact {
    text-align: left; /* Align text to the left */
    padding: 40px;
    max-width: 800px; /* Optional: Limit the width for better alignment */
    margin: 20px; /* Center the entire contact section within its container */
}

#contact p {
    margin: 10px 0;
    font-size: 1.2em;
    text-align: left; /* Ensure each paragraph is aligned to the left */
}

#contact a {
    color: #fff;
    text-decoration: none;
}

#contact a:hover {
    text-decoration: underline;
}

.social-icons {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.social-icons img {
    width: 30px; /* Set icon size */
    height: 30px;
    margin-right: 10px;
    cursor: pointer;
}

.social-icons img:hover {
    transform: scale(1.2);
}
