/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #ffffff;
    margin: 0;
    padding: 0;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #1e1e1e;
    padding: 12px 0;
    text-align: center;
    z-index: 1000;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 30px;
}

/* About Section */
.about {
    text-align: center;
    padding: 50px 20px;
}

.about img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
}

/* Projects Section */
.projects {
    text-align: center;
    padding: 50px 20px;
}

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.project-card {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(255, 204, 0, 0.2);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.4);
}


.project-card i {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 10px;
}

.project-card p {
    font-size: 1rem;
    color: #b0b0b0;
    margin-bottom: 15px;
}

.project-card .btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: #007bff;
    color: #121212;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.project-card .btn:hover {
    background-color: #0077b5;
}

/* Contact Section */
.contact {
    text-align: center;
    padding: 30px 20px;
    font-size: 1rem;
}

.contact a {
    color: #007bff; 
    text-decoration: none;
    font-weight: 600;
}

.contact a:hover {
    text-decoration: underline;
    color: #0077b5;
}


/* Resume Section */
.resume {
    text-align: center;
    padding: 50px 20px;
}

.resume h2 {
    font-size: 2rem;
    color: #ffcc00;
    margin-bottom: 10px;
}

.resume p {
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 15px;
}

.resume-btn {
    display: inline-block;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: bold;
    color: #121212;
    background-color: #007bff;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.resume-btn:hover {
    background-color: #0077b5;
    transform: translateY(-3px);
}




/* Responsive Design */
@media screen and (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .project-list {
        flex-direction: column;
        align-items: center;
    }

    .project-card {
        width: 80%;
    }
}

.profile-pic {
    width: 200px; /* Adjust size as needed */
    height: 215px;
    border-radius: 50%;
    object-fit: cover;
}


.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* Ensures responsiveness on smaller screens */
    gap: 20px;
    text-align: left;
}

.social-links {
    margin-right: 10px;
    color: white;
    text-decoration: none;
}

.social-links a:hover {
    color: #0077b5; /* Change color on hover */
}

.hero-content {
    max-width: 500px;
}

.hero-content h1 {
    font-size: 2rem; /* increased size */
}

.experience-item {
    background: #222;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.hidden {
    display: none !important;
}

/* Enhanced Timeline Layout with Better Spacing */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    padding: 20px 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 28%; /* Slightly adjusted for better centering */
    width: 2px;
    height: 100%;
    background: #444;
    top: 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px; /* Increased spacing between timeline items */
    position: relative;
}

.timeline-date {
    flex: 1.2; /* Slightly wider date section */
    text-align: right;
    padding-right: 30px; /* More space between date and line */
    font-weight: bold;
    color: #aaa;
    position: relative;
    margin-top: 10px;
}

.timeline-content {
    flex: 3;
    background: #1e1e1e;
    padding: 20px; /* More padding inside content box */
    border-radius: 5px;
    position: relative;
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
    border-left: 3px solid #007bff;
    margin-left: 20px; /* Added space between line and content */
}

.timeline-content h3 {
    margin-top: 0;
    margin-bottom: 12px; /* Space between title and description */
    color: #fff;
}

.timeline-content p {
    margin: 0;
    line-height: 1.5; /* Better line height for readability */
}

.timeline-content::before {
    content: "";
    position: absolute;
    left: -36px; /* Adjusted dot position */
    top: 15px;
    width: 12px;
    height: 12px;
    background: #007bff;
    border-radius: 50%;
    border: 2px solid #fff;
    z-index: 1;
    box-shadow: 0 0 5px rgba(0,123,255,0.5); /* Subtle glow on dots */
}

/* Experience section header improvements */
.experience h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #fff;
}

.projects h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #fff;
}

.resume h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #fff;
}

.contact h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #fff;
}


/* Enhanced Button UI Styling */
.switch-container {
    display: flex;
    justify-content: center;
    margin: 30px 0 40px;
    position: relative;
    background: #1e1e1e;
    padding: 6px;
    border-radius: 30px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.switch-container button {
    position: relative;
    padding: 10px 22px;
    margin: 0;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 25px;
    background-color: transparent;
    color: #999;
    transition: all 0.3s ease;
    outline: none;
    z-index: 1;
    min-width: 120px;
    text-transform: uppercase;
}

.switch-container button:hover {
    color: #fff;
}

.switch-container button.active {
    color: #fff;
    background-color: #0062cc;
    box-shadow: none;
}

/* Active button indicator/slider */
.switch-container::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 6px;
    left: 6px;
    width: calc(50% - 6px);
    height: calc(100% - 12px);
    background: linear-gradient(135deg, #0062cc, #007bff);
    border-radius: 25px;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Bouncy transition */
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.5);
}

/* Move the active indicator when academic is active */
.switch-container.academic-active::after {
    left: calc(50% + 0px);
}

/* Focus state for accessibility */
.switch-container button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5);
}

/* Add a subtle hover effect */
.switch-container:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 40px; /* Space for the vertical line on mobile */
    }

    .timeline-date {
        text-align: left;
        padding-right: 0;
        padding-bottom: 10px;
        margin-left: 0;
        margin-bottom: 5px;
    }

    .timeline-content {
        width: 100%;
        margin-left: 0;
        box-sizing: border-box;
    }

    .timeline-content::before {
        left: -30px;
        top: 15px;
    }
    
    /* Responsive adjustments for switch container */
    .switch-container {
        width: 80%;
        max-width: 300px;
    }
    
    .switch-container button {
        min-width: 0;
        padding: 8px 16px;
        font-size: 14px;
    }
}

.section-divider {
    border: none;
    height: 2px;
    background: #444;
    margin: 40px 0;
}

.role-description {
    color: gray;
}
