html {
    scroll-behavior: smooth;
}

/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    scroll-behavior: smooth;
    background-color: #000000;
}

/* -----------------------------------------------------NAVBAR */
nav {
    height: 60px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Links Container */
.links-container {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    color: orange;
    background-color: #1a2c2c;
}

/* Navbar Links */
nav a {
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: orange;
    font-weight: bold;
}

nav a:hover {
    color: white;
    border-radius: 5px;
}

/* Home Link */
nav .home-link {
    margin-right: auto;
}

/* SVG Icons */
nav svg {
    fill: aliceblue;
}

/* Sidebar Active Checkbox */
#sidebar-active {
    display: none;
}

/* Sidebar Buttons */
.open-sidebar-button,
.close-sidebar-button {
    display: none;
}

/* Mobile Styles */
@media (max-width: 450px) {
    .links-container {
        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: 0;
        right: -100%;
        z-index: 10;
        width: 250px;
        background-color: var(--color-1);
        box-shadow: -5px 0 5px rgba(0, 0, 0, 0.25);
        transition: 0.8s ease-out;
        overflow-y: auto;
        /* Ensures content inside can scroll if too long */
    }

    nav a {
        box-sizing: border-box;
        height: auto;
        width: 100%;
        padding: 20px 30px;
        justify-content: flex-start;
    }

    .open-sidebar-button,
    .close-sidebar-button {
        padding: 20px;
        display: block;
    }

    nav a:hover {
        background-color: rgb(65, 63, 63);
        border-radius: 5px;
    }

    #sidebar-active:checked~.links-container {
        right: 0;
        color: white;
        background: black;
    }

    #sidebar-active:checked~#overlay {
        height: 100%;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9;
    }
}



/*----------------------------------------------------- ABOUT */
#about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #000000;
    padding: 10px 20px;
    color: #ffffff;
    text-align: center;
}

.personal-info-container {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 130px;
}

.image-container {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    /* Space between image and text */
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-info h1 {
    font-family: 'Arial', sans-serif;
    font-size: 2em;
    color: #ffffff;
    margin-bottom: 10px;
}

.text-info p {
    font-size: 1.2em;
    color: #ffffff;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid orange;
    color: orange;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.25s ease-in-out;
    border-radius: 10px;
    font-size: 18px;
}

.btn:hover {
    background-color: orange;
    color: black;
}

.button-container {
    display: grid;
    gap: 15px;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 10px;
}

.social-icons a:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}


.social-icon {
    width: 30px;
    height: 30px;
}

@media (max-width: 768px) {
    .text-info h1 {
        font-size: 1.8em;
    }

    .text-info p {
        font-size: 1em;
    }

    .button-container {
        flex-direction: column;
        gap: 10px;
    }

    .image-container {
        width: 150px;
        height: 150px;
    }
}



/*------------------------------------------------- EXPERIENCE  */
/* General Styles */
.experience-container {
    max-width: 900px;
    margin: auto;
    padding-top: 40px;
    color: white;
}

.experience-container h1 {
    text-align: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 20px;
    position: relative;
}

/* Timeline Structure */
.timeline {
    position: relative;
    padding-left: 50px;
    border-left: 4px solid orange;
}

/* Each Timeline Item */
.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 20px;
}

/* Year Box */
.timeline-year {
    position: absolute;
    left: -60px;
    top: 0;
    background: #1a2c2c;
    color: orange;
    padding: 6px 12px;
    font-weight: bold;
    border-radius: 5px;
    text-align: center;
}

/* Timeline Content */
.timeline-content {
    background: #1a2c2c;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid orange;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.timeline-content h2 {
    margin: 0;
    font-size: 20px;
    color: orange;
}

.timeline-content p {
    margin: 5px 0;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline {
        padding-left: 20px;
        border-left: 3px solid orange;
    }
    
    .timeline-year {
        left: -30px;
        font-size: 12px;
        padding: 5px 10px;
    }

    .timeline-content {
        padding: 12px;
        font-size: 12px;
    }
}


/* ----------------------------------------------------EDUCATION */
/* Education Section */
#education {
    background-color: #000000;
    text-align: center;
}

/* Education Title */
.education-title {
    font-size: 2rem;
    color: rgb(255, 255, 255);
    position: relative;
    display: inline-block;
}

.education-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    border-radius: 2px;
}

/* Education Container */
.education-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Education Cards */
.education-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 90%;
    max-width: 900px;
}

/* Individual Card Styling */
.education-info {
    background-color: #1a2c2c;
    border-left: 5px solid orange;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(255, 165, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    text-align: left;
}

/* Degree Title */
.education-info h3 {
    font-size: 1.6rem;
    color: orange;
    margin-bottom: 0.5rem;
}

/* Institution, CGPA, Duration */
.education-info p {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

/* Coursework Section */
.education-coursework {
    margin-top: 1rem;
}

/* Styled Coursework Tags */
.education-coursework .coursework-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.education-coursework .coursework-tags span {
    border: 2px solid orange;
    color: orange;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .education-title {
        font-size: 2rem;
    }

    .education-details {
        width: 95%;
    }

    .education-info {
        padding: 1.5rem;
    }

    .education-info h3 {
        font-size: 1.4rem;
    }

    .education-info p {
        font-size: 0.95rem;
    }

    .education-coursework h4 {
        font-size: 1.1rem;
    }

    .education-coursework ul li {
        font-size: 0.85rem;
        padding: 0.3rem 0.5rem;
    }
}



/* -------------------------------------------------------- PROJECTS */
.projects-container {
    max-width: 980px;
    margin: auto;
    padding: 40px 20px;
    color: white;
}

.project-title {
    text-align: center;
    font-size: 2rem;
    color: rgb(255, 255, 255);
    margin-bottom: 20px;
}

/* Project Grid */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Project Card */
.project-card {
    display: flex;
    align-items: center;
    background: #1a2c2c;
    border-radius: 10px;
    padding: 20px;
    gap: 20px;
    overflow: hidden;
}

/* Image on Left */
.project-card img {
    width: 100%; /* Ensures it fits within the container */
    max-width: 430px; /* Adjust based on design */
    height: auto; /* Maintains aspect ratio */
    object-fit: contain; /* Prevents cropping */
    border-radius: 10px; /* Optional: Adds smooth corners */
}


/* Project Details */
.project-info {
    width: 70%;
}

.project-info h2 {
    margin: 0;
    font-size: 22px;
    color: orange;
}

.project-info p {
    margin: 5px 0;
    font-size: 16px;
}

.project-info ul {
    list-style: disc;
    padding-left: 20px;
}

.project-info ul li {
    margin-bottom: 5px;
}

.project-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background: orange;
    color: black;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease;
}

.project-link:hover {
    background: #1a2c2c;
    color: rgb(255, 255, 255);
    border: 2px solid orange;
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-card {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .project-card img {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }

    .project-info {
        width: 100%;
        padding-top: 10px;
    }

    .project-info ul {
        text-align: left;
    }
}


/*------------------------------------------------------- SKILL */
#skills {
    padding: 50px 0;
    background-color: #000000;
}

.skills-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.skills-container h1 {
    font-size: 2rem;
    margin-bottom: 50px;
    color: #ffffff;
}

/* Skill Category Styles */
.skills-category {
    margin-bottom: 40px;
}

.skills-category h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #d5d5d5;
    text-transform: uppercase;
    font-weight: bold;
}

/* Cards Container */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    /* Space between cards */
}

/* Individual Card Styles */
.card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Skill Logo Styles */
.skill-logo {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
    border-radius: 10px;
}

/*---------------------------------------------------------- FOOTER */
footer {
    background-color: black;
    color: white;
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid gray;
    /* Optional for visual separation */
    font-size: 14px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/*-----------------------NAVBAR */
@media (max-width: 768px) {
    .card {
        width: 80px;
        height: 80px;
    }

    .skills-container h1 {
        font-size: 2rem;
    }

    .skills-category h3 {
        font-size: 1.4rem;
    }
}

