/* Importing Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

:root {
    --background-dark: #121212;
    --text-light: #ffffff;
    --accent-color: #d9afe4;
    --nav-bg: #1f1f1f;
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-light);
    transition: background-color 0.3s, color 0.3s;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--nav-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Navigation Bar */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 700;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-links li a:hover {
    color: var(--accent-color);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: var(--text-light);
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.1);
    background-color: var(--text-light);
    color: var(--background-dark);
}

.social-icons img {
    width: 16px;
    height: 16px;
}


.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: calc(100vh - 80px); /* Full height minus header */
    padding: 0 5%;
    box-sizing: border-box;
    animation: fadeIn 1s ease-in-out;
}

.hero-text {
    flex: 1;
    padding-right: 2rem;
    animation: slideInLeft 1s ease-in-out;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.2rem;
    line-height: 1.6;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease-in-out;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        padding-right: 0;
    }
    .hero-image {
        margin-top: 2rem;
    }
}

/* Timeline Styles */
.timeline {
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.timeline h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.timeline-container {
    position: relative;
    padding: 2rem 0;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 1rem;
    box-sizing: border-box;
}

.timeline-item.left {
    left: 0;
    text-align: center;
}

.timeline-item.right {
    left: 50%;
    text-align: center;
}

.timeline-item.left::before,
.timeline-item.right::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 90px; /* Length of the horizontal branch */
    height: 4px; /* Thickness of the branch */
    background-color: var(--accent-color);
}

.timeline-item.left::before {
    right: 5px; /* Extends to the left from the main line */
}

.timeline-item.right::before {
    left: 5px; /* Extends to the right from the main line */
}

.timeline-item .content {
    padding: 1rem 2rem;
    background-color: #1f1f1f;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.timeline-item.left .content {
    transform: translateX(-20%);
}

.timeline-item.right .content {
    transform: translateX(20%);
}

.timeline-item h2 {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.timeline-item h3 {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    color: var(--text-light);
}

.timeline-item ul {
    list-style: none; /* Removes default bullet or marker */
    padding-left: 1.5rem;
    text-align: left;
}

.timeline-item ul li {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-light);
}

/* Removed the colored circles */


/* Responsive Design */
@media (max-width: 768px) {
    .timeline-container::after {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 40px;
    }

    .timeline-item.left .content,
    .timeline-item.right .content {
        transform: translateX(0);
    }

    .timeline-item.right::after {
        left: 10px;
    }
}
/* Projects Page */
.projects {
    text-align: center;
    padding: 2rem;
}

.projects h1 {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.project-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.project-box {
    background-color: #1f1f1f;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    width: 90%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.project-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
}

.project-content h2 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.project-content p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* General Styles for Small Screens */
@media screen and (max-width: 768px) {
    body {
        font-size: 90%; /* Reduce font size slightly */
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .social-icons {
        position: static;
        margin-top: 1rem;
    }

    .timeline-container::after {
        left: 5%; /* Adjust the vertical line for smaller screens */
    }

    .timeline-item {
        width: 90%; /* Full width for smaller screens */
        left: 0;
        margin: 1rem auto;
        text-align: left;
    }

    .timeline-item.left .content,
    .timeline-item.right .content {
        transform: translateX(0); /* Center content for mobile */
    }

    .timeline-item.left::before,
    .timeline-item.right::before {
        display: none; /* Remove horizontal branches on small screens */
    }

    .timeline-item ul {
        padding-left: 1rem; /* Adjust padding for readability */
    }

    .timeline-item.right {
        left: 0; /* Align to the left like the left-aligned boxes */
    }
}

/* Specific Styles for Extra Small Screens */
@media screen and (max-width: 480px) {
    header {
        padding: 0.5rem 1rem;
    }

    nav a {
        font-size: 0.9rem; /* Smaller font for nav links */
    }

    .social-icons a {
        width: 24px; /* Smaller icons */
        height: 24px;
    }

    .timeline h1 {
        font-size: 2rem; /* Reduce heading size */
    }

    .timeline-item h2 {
        font-size: 1.2rem;
    }

    .timeline-item .dates {
        font-size: 0.9rem;
    }
}

/* Education Section */
#education {
    text-align: center;
    padding: 3rem 0;
}

.education-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.education-item {
    background-color: #1f1f1f;
    padding: 1.5rem;
    width: 60%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.education-item h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.education-item p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Skills Section */
#skills {
    text-align: center;
    padding: 3rem 0;
}

.skills-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.skill-category {
    background-color: #1f1f1f;
    padding: 1.5rem;
    width: 250px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.skill-category h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.skill-category ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.skill-category ul li {
    color: var(--text-light);
    font-size: 1rem;
    padding: 0.3rem 0;
    transition: color 0.3s ease;
}

.skill-category ul li:hover {
    color: var(--accent-color);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .education-item {
        width: 80%;
    }
    .skill-category {
        width: 90%;
    }
}
