/* Global transitions and animations */
* {
    transition:
        color 0.3s var(--scroll-timing),
        background-color 0.3s var(--scroll-timing),
        border-color 0.3s var(--scroll-timing),
        box-shadow 0.3s var(--scroll-timing),
        transform 0.3s var(--scroll-timing);
}

/* Smooth section transitions */
section {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 0.6s var(--scroll-timing),
        transform 0.6s var(--scroll-timing);
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }

    /* Add subtle animation to icons */
    .section-heading i {
        display: inline-block;
        transition: transform 0.3s ease;
    }

    .section-heading:hover i {
        transform: scale(1.15);
    }
}

/* Enable smooth scrolling globally with optimized settings */
html {
    scroll-behavior: smooth;
    /* Higher quality scrolling with optimized timing */
    --scroll-timing: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Respect user preferences for reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Button hover effects */
.filter-btn,
.action-button,
.skill-tag,
#contact-form button[type="submit"] {
    position: relative;
    overflow: hidden;
}

.filter-btn::after,
.action-button::after,
#contact-form button[type="submit"]::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(100, 100);
        opacity: 0;
    }
}

.filter-btn:focus:not(:active)::after,
.action-button:focus:not(:active)::after,
#contact-form button[type="submit"]:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

/* Typography System */
:root {
    /* Font families */
    --font-heading: "Inter", sans-serif;
    --font-body: "Poppins", sans-serif;

    /* Font sizes */
    --fs-xs: 0.75rem; /* 12px */
    --fs-sm: 0.875rem; /* 14px */
    --fs-base: 1rem; /* 16px */
    --fs-md: 1.125rem; /* 18px */
    --fs-lg: 1.25rem; /* 20px */
    --fs-xl: 1.5rem; /* 24px */
    --fs-2xl: 1.875rem; /* 30px */
    --fs-3xl: 2.25rem; /* 36px */
    --fs-4xl: 3rem; /* 48px */

    /* Font weights */
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    /* Line heights */
    --lh-tight: 1.2;
    --lh-snug: 1.375;
    --lh-normal: 1.5;
    --lh-relaxed: 1.625;
    --lh-loose: 2;

    /* Colors - keeping existing color scheme */
    --color-primary: #2857a4;
    --color-secondary: #ec4d1c;
    --color-text-dark: #333;
    --color-text-light: #666;
    --color-background: #fff;
}

body {
    margin: 0px;
    font-family: var(--font-body);
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
    color: var(--color-text-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-tight);
    margin-top: 0;
}

h1 {
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
}

h2 {
    font-size: var(--fs-2xl);
}

h3 {
    font-size: var(--fs-xl);
}

h4 {
    font-size: var(--fs-lg);
    font-weight: var(--fw-medium);
}

h5,
h6 {
    font-size: var(--fs-md);
    font-weight: var(--fw-medium);
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: var(--fs-base);
}

small,
.text-small {
    font-size: var(--fs-sm);
}

/* Updated styling for section headings */
.section-heading {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    font-size: var(--fs-2xl);
    color: var(--color-primary);
}

.section-heading span {
    font-weight: var(--fw-bold);
}

body::-webkit-scrollbar {
    display: none;
}

/* Body Header */

#body-header {
    max-height: 60vh;
    /* opacity: 1; */
    background-image: url(assets/topbg.gif);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 1.2rem;
    opacity: 0.8;
}

/* Horizontal Lists */

.bars {
    color: white;
    margin: 0;
    margin-right: 5%;
    display: none;
}

.bars i {
    font-size: 2rem;
}

.dropdown-list {
    margin: 0;
    display: none;
    background-color: #828470;
    box-shadow: 0px 4px 8px 1px #535547;
}

.dropdown-list ul {
    margin: 0.2rem 0.2rem;
    text-align: left;
    padding: 0px 0.8rem;
}

.dropdown-menu:hover .dropdown-list {
    display: block;
    position: absolute;
    right: 3%;
}

.dropdown-list li {
    margin: 0.4rem 0px;
}

.no-list-style {
    list-style: none;
}

.no-list-style li {
    font-weight: var(--fw-regular);
    font-size: var(--fs-base);
}

.no-list-style li a {
    list-style: none;
    color: rgb(1, 255, 221);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: var(--fs-md);
    font-weight: var(--fw-medium);
    transition: all 0.3s ease;
}

.horizontal-list {
    padding-left: 0px;
    margin: 0px;
}

.horizontal-list li {
    display: inline-block;
    margin: 0px 8px 8px 0px;
}

.nav-menu li a {
    transition:
        color 0.5s,
        border-bottom 4s;
}

.nav-menu li a:hover {
    color: lightgrey;
    border-bottom: 1px solid black;
}

/* Name and Social Icons*/

#name-social-container {
    margin-top: 20vh;
}

#my-name {
    font-size: var(--fs-4xl);
    color: #04ffe6;
    font-weight: var(--fw-bold);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    text-shadow: 0 0 3px #19bcc8;
    line-height: 1.2;
}

#my-name span {
    font-size: var(--fs-xl);
    font-weight: var(--fw-medium);
    letter-spacing: 0.03em;
}

.social-icons li a i {
    padding: 10px;
    font-size: var(--fs-xl);
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.social-icons li a i:hover {
    box-shadow: 0px 0px 6px 4px rgba(230, 196, 196, 0.3);
}

/*Section Classes*/

section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 20px;
    flex-wrap: nowrap;
}

section:nth-child(2n) {
    background-color: #9e9b9b29;
}

section:nth-child(2n + 1) {
    background-color: white;
}

.section-heading {
    width: auto;
    padding: 20px 10px 10px;
    font-weight: var(--fw-semibold);
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-heading span {
    font-size: var(--fs-2xl);
    color: var(--color-primary);
    display: inline-block;
    padding-top: 10px;
    margin-right: 0.5rem;
    font-weight: var(--fw-bold);
    letter-spacing: 0.02em;
}

/*About Section*/

#about {
    height: auto;
    width: 100%;
    position: relative;
    margin-bottom: 30px;
}

#about-para {
    padding: 10px;
    width: 80%;
    text-align: justify;
    color: var(--color-text-dark);
    line-height: var(--lh-relaxed);
    font-size: var(--fs-base);
    margin: auto;
    margin-top: 20px;
}

/* New professional about styling */
.professional-about {
    font-size: var(--fs-md);
    line-height: var(--lh-relaxed);
    margin-bottom: 1.5rem;
    color: var(--color-text-dark);
    text-align: justify;
    font-family: var(--font-body);
    font-weight: var(--fw-regular);
}

.text-highlight {
    color: var(--color-primary);
    font-weight: var(--fw-semibold);
}

.horizontal-running-letter {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0px 0.2rem;
    animation: running-letter 2s ease-in-out alternate infinite;
}

@keyframes running-letter {
    0% {
        transform: translateY(-10%);
    }

    100% {
        transform: translateY(10%);
    }
}

/* Skills Section */

/* Remove the old progress bar styles */
/* Skills category tags */
.skills-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 40px;
    width: 85%;
    max-width: 1200px;
}

.skills-category {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    margin: 10px;
    width: calc(33% - 40px);
    min-width: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.skills-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(40, 87, 164, 0.15);
    border-color: rgba(40, 87, 164, 0.2);
}

.skills-category h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--color-primary);
    text-align: center;
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    font-family: var(--font-heading);
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(40, 87, 164, 0.1);
    letter-spacing: 0.02em;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.skill-tag {
    background-color: rgba(40, 87, 164, 0.1);
    color: var(--color-primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: var(--fs-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: var(--fw-medium);
    font-family: var(--font-heading);
    border: 1px solid transparent;
    letter-spacing: 0.02em;
}

.skill-tag:hover {
    background-color: var(--color-primary);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(40, 87, 164, 0.2);
}

/* Work Experience and Education Sections */

.timeline {
    position: relative;
    width: 85%;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-box {
    padding: 18px;
    width: 40%;
    min-height: 150px;
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(to bottom, #ffffff, #f9fbff);
    margin: 5px;
    left: 5%;
}

/* Right boxes - for experience first and third, for education second */
.timeline-box.right {
    left: 53%;
    text-align: justify;
}

/* Left boxes - for experience second, for education first and third */
.timeline-box.left {
    left: 5%;
    text-align: justify;
}

.timeline-box.left::after {
    right: -11.8%;
}

.timeline-box.right::after {
    left: -9%;
}

.timeline-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(40, 87, 164, 0.12);
    border-color: rgba(40, 87, 164, 0.15);
    background: linear-gradient(to bottom, #ffffff, #f0f7ff);
}

.timeline-box:hover::after {
    background-color: var(--color-primary);
    box-shadow: 0 0 0 6px rgba(40, 87, 164, 0.2);
}

.timeline-container {
    padding: 8px;
    position: relative;
}

.timeline-logo {
    position: relative;
    width: 50px;
    height: 50px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    z-index: 3;
}

.timeline-logo:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(40, 87, 164, 0.15);
    border-color: rgba(40, 87, 164, 0.2);
}

.timeline-logo > img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 45px;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
}

#timeline-divider {
    position: absolute;
    width: 0;
    top: 10%;
    left: 50%;
    border: 1px dashed #0096fa6b;
    height: 66%;
    color: #433e3f;
    z-index: 1;
}

#timeline-divider .timeline-traveller {
    position: sticky;
    top: 135px;
    z-index: 2;
    background: white;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -23px;
    transition: all 0.3s ease;
    border: 2px solid rgba(40, 87, 164, 0.3);
}

#timeline-divider .timeline-traveller:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(40, 87, 164, 0.2);
}

#timeline-divider .timeline-traveller i {
    transform: rotate(90deg);
    margin-top: 0;
    color: var(--color-primary);
    font-size: 1.2rem;
}

.experience-designation,
.education-designation {
    font-size: var(--fs-lg);
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    color: var(--color-primary);
    margin-bottom: 8px;
    line-height: 1.3;
    text-align: left;
    display: flex;
    align-items: flex-start;
    word-break: normal;
}

.experience-company-name {
    margin: 5px 0 10px;
    color: #eb822d;
    font-weight: var(--fw-medium);
    font-size: var(--fs-md);
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    text-align: left;
}

.experience-company-name i {
    color: #eb822d;
    margin-right: 8px;
    font-size: 1.1em;
}

.education-designation {
    font-size: var(--fs-lg);
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    color: var(--color-primary);
    margin-bottom: 8px;
    line-height: 1.3;
    text-align: left;
}

.education-institution-name {
    margin: 5px 0 10px;
    color: #eb822d;
    font-weight: var(--fw-medium);
    font-size: var(--fs-md);
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    text-align: left;
}

.education-institution-name i {
    color: #eb822d;
    margin-right: 8px;
    font-size: 1.1em;
}

.experience-duration {
    color: #666;
    font-weight: var(--fw-light);
    font-size: var(--fs-sm);
    font-family: var(--font-body);
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 3px 10px;
    border-radius: 15px;
}

.experience-duration::before {
    content: "\f017";
    font-family: "Font Awesome 5 Free";
    margin-right: 5px;
    color: #777;
}

.experience-description {
    font-size: var(--fs-sm);
    padding: 2px;
    color: #555;
    line-height: var(--lh-relaxed);
    font-family: var(--font-body);
    text-align: justify;
}

/* Enhanced experience bullet points */
.experience-description ul {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.experience-description li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.experience-description li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

/* Style for bullet points in experience descriptions */
.experience-description br {
    margin-bottom: 8px;
}

.experience-description br + • {
    display: inline-block;
    margin-left: -15px;
}

/* Special skills highlight in experience */
.skill-highlight {
    background-color: rgba(40, 87, 164, 0.1);
    color: var(--color-primary);
    padding: 0 5px;
    border-radius: 3px;
    font-weight: var(--fw-medium);
    white-space: nowrap;
}

.experience-cgpa {
    color: var(--color-primary);
    font-weight: var(--fw-semibold);
    margin: 8px 0;
    font-family: var(--font-heading);
    display: inline-flex;
    align-items: center;
    background-color: rgba(40, 87, 164, 0.1);
    padding: 3px 10px;
    border-radius: 15px;
}

/* Portfolio Section */

#portfolio-container {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    padding: 0 50px;
    margin-bottom: 20px;
    justify-content: space-around;
    max-width: 90%;
}

.portfolio-image-container {
    width: 300px;
    overflow: hidden;
    margin: 25px;
    position: relative;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.portfolio-image-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(40, 87, 164, 0.2);
}

.portfolio-image-container img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    display: block;
}

/* Project overlay hover effect */
.portfolio-image-container a {
    position: relative;
    display: block;
    text-decoration: none;
}

.portfolio-image-container a::before {
    content: "View Project";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 180px; /* Same as image height */
    background-color: rgba(40, 87, 164, 0.8);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 600;
    opacity: 0;
    border-radius: 12px 12px 0 0;
    transition: all 0.3s ease;
    z-index: 1;
}

.portfolio-image-container a:hover::before {
    opacity: 1;
}

.portfolio-details {
    padding: 20px;
    color: var(--color-text-dark);
    background-color: white;
    position: relative;
    top: auto;
    left: auto;
    height: auto;
    display: block;
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
    font-family: var(--font-body);
}

.portfolio-details h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--color-primary);
    font-size: var(--fs-lg);
    font-weight: var(--fw-semibold);
    font-family: var(--font-heading);
}

.portfolio-details p {
    margin-bottom: 15px;
    min-height: 60px;
    color: var(--color-text-light);
    font-size: var(--fs-base);
    line-height: var(--lh-relaxed);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 15px;
}

.tech-stack span {
    background-color: rgba(40, 87, 164, 0.1);
    color: var(--color-primary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    font-family: var(--font-heading);
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

.tech-stack span:hover {
    background-color: var(--color-primary);
    color: white;
}

/* Project Filter Buttons */
.projects-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 8px 16px;
    margin: 0 5px 10px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: var(--fw-medium);
    font-size: var(--fs-sm);
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(40, 87, 164, 0.2);
}

/* Contact Form */

#contact {
    background-color: #0abcf9;
    background-image: linear-gradient(50deg, #2857a4 0%, #403066 74%);
    color: white;
    padding-bottom: 40px;
}

#contact h1,
#contact h1 span {
    color: white;
}

#contact-form {
    margin-left: 20%;
}

#contact-container {
    display: flex;
}

#my-details-container {
    width: 35%;
    margin-left: 6%;
}

#my-details-container h3 {
    color: white;
    font-weight: 550;
    font-size: 1.2rem;
}

#contact-form-container {
    width: 50%;
}

#my-details-container p {
    color: #d9dcdd;
    font-size: 0.9rem;
}

.my-details-info-container {
    margin-bottom: 20px;
    color: #d9dcdd;
    font-size: 1rem;
    display: flex;
    align-items: flex-start;
}

.my-details-info-container i {
    margin-top: 3px;
}

.my-details-info-container span {
    margin-left: 0.4rem;
    word-break: break-word;
}

.my-details-icon {
    width: 1rem;
    height: 1rem;
    vertical-align: bottom;
    margin-right: 0.5rem;
}

#contact-form input,
textarea {
    max-width: 90%;
    margin: 15px;
    padding: 4px 10px;
    border: 0px solid transparent;
    border-bottom: 2px solid white;
    color: #d9dcdd;
    background: transparent;
    width: 90%;
    line-height: var(--lh-normal);
    font-size: var(--fs-base);
    font-family: var(--font-body);
    box-sizing: border-box;
}

#contact-form input,
#contact-form textarea {
    transition: box-shadow 0.3s;
}

#contact-form input:focus,
#contact-form textarea:focus {
    box-shadow: 0 0 8px rgba(40, 87, 164, 0.6);
}

#contact-form button[type="submit"] {
    background: transparent;
    font-size: var(--fs-sm);
    border: 2px solid white;
    margin-top: 5%;
    margin-left: 35%;
    border-radius: 4px;
    color: white;
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.05em;
    line-height: var(--lh-tight);
    padding: 0.8em 1.2em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.sub-btn {
    transition:
        background-color 0.3s,
        transform 0.3s;
}

.sub-btn:hover {
    background-color: #2a9d8f;
    transform: scale(1.05);
}

#contact-form button:hover {
    background: white;
    color: var(--color-primary);
}

input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* Ensure social icons display properly on mobile */
.social-icons-container {
    width: 100%;
    padding: 20px 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* Common Text Align Classes */

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.text-justify {
    text-align: justify;
}

/* Common Margin Classes */

.m0 {
    margin: 0;
}

.mb75px {
    margin-bottom: 75px;
}

.mb50px {
    margin-bottom: 50px;
}

/*common color classes */

.text-highlight {
    color: #19bcc8;
    font-weight: 600;
}

/* setting background-color */

.m-blue {
    color: #2857a4;
}

.mb-blue {
    background-color: #2857a4;
}

.mb-orange {
    background-color: #ec4d1c;
}

.mb-teal {
    background-color: #0b8176;
}

.mb-light-purple {
    background-color: #93738c;
}

.mb-light-blue {
    background-color: #0abcf9;
}

.mb-dark-blue {
    background-color: #403066;
}

.mb-light-grey {
    background-color: #9e9b9b29;
}

/* Small screens (mobile devices) */
@media only screen and (max-width: 572px) {
    .bars {
        display: block;
    }

    .timeline-logo {
        width: 40px;
        height: 40px;
    }

    .timeline-container {
        padding-left: 55px !important;
    }

    .nav-menu {
        display: none;
    }

    #body-header {
        height: 50vh;
    }

    #timeline-divider {
        display: none;
    }
    .timeline-box {
        width: 90%;
        left: 5%;
        padding: 15px;
        margin-bottom: 20px;
    }

    #timeline-divider .timeline-traveller {
        width: 30px;
        height: 30px;
        margin-left: -15px;
        padding: 5px;
    }

    #timeline-divider i {
        font-size: 1rem;
    }

    .experience-company-name,
    .education-institution-name {
        font-size: var(--fs-sm);
        font-weight: var(--fw-regular);
    }

    .experience-designation,
    .education-designation {
        font-size: var(--fs-base);
    }

    .experience-duration {
        font-size: var(--fs-xs);
    }

    .experience-description {
        font-size: var(--fs-xs);
    }

    #portfolio-container {
        padding: 0;
        max-width: 99%;
    }

    #name-social-container {
        margin-top: 7vh;
    }

    .skills-category {
        width: calc(100% - 40px);
    }
}

/* Medium screens (tablets) */
@media only screen and (max-width: 768px) {
    /* Ensure logos don't get too small on mobile */
    .timeline-logo > img {
        max-height: 38px;
    }

    /* Better mobile spacing */
    .timeline-container {
        padding: 0px 8px !important;
    }
}

/* Larger screens */
@media only screen and (min-width: 1200px) {
    .timeline {
        width: 80%;
        max-width: 1200px;
    }

    .timeline-box {
        padding: 25px;
    }

    .timeline-logo {
        width: 60px;
        height: 60px;
    }

    .experience-designation {
        font-size: var(--fs-xl);
    }

    .experience-company-name {
        font-size: var(--fs-lg);
    }

    .experience-description {
        font-size: var(--fs-base);
    }
}

/* achievement */

.achievement-card {
    margin: 0 10vw;
}
.achievement-desc {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0.5rem 0;
    color: #565a61;
    text-align: justify;
}

.achievement-heading {
    color: #2857a4;
}

.achievement-card ul {
    list-style: none;
}

.achievement-card li {
    background-color: #d9dacd;
    padding: 20px;
    margin: 10px 0;
    border-radius: 8px;
}

/* Go to top button - Consolidated and improved styling */
#go-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    border: none;
    outline: none;
    background-color: #2857a4;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: 
        background-color 0.3s var(--scroll-timing),
        transform 0.3s var(--scroll-timing),
        opacity 0.3s var(--scroll-timing),
        visibility 0.3s var(--scroll-timing),
        box-shadow 0.3s var(--scroll-timing);
}

#go-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#go-to-top:hover {
    background-color: #3a70c2;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
}

#css-battle {
    background: yellow;
    height: 3rem;
    border-radius: 50%;
    margin-top: 20px;
    position: absolute;
    left: 20px;
    top: 10px;
}

/* Added hover effect for project containers */

.archived-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    font-family: var(--font-heading);
    letter-spacing: 0.03em;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.private-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(40, 87, 164, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    font-family: var(--font-heading);
    letter-spacing: 0.03em;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.timeline-box {
    opacity: 0;
}

.timeline-box:nth-child(1) {
    animation-delay: 0.1s;
}

.timeline-box:nth-child(2) {
    animation-delay: 0.3s;
}

.timeline-box:nth-child(3) {
    animation-delay: 0.5s;
}

.timeline-box:nth-child(4) {
    animation-delay: 0.7s;
}

.timeline-box:nth-child(5) {
    animation-delay: 0.9s;
}

/* Timeline entry animations */
@keyframes timelineEntryLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes timelineEntryRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-box.left {
    animation: timelineEntryLeft 0.6s ease-out forwards;
    opacity: 0;
}

.timeline-box.right {
    animation: timelineEntryRight 0.6s ease-out forwards;
    opacity: 0;
}

/* For those who prefer reduced motion */
@media (prefers-reduced-motion) {
    .timeline-box {
        animation: none;
        opacity: 1;
    }
}

/* Timeline logo positioning */
.timeline-box.left .timeline-logo {
    top: 5px;
    right: -10px;
}

.timeline-box.right .timeline-logo {
    top: 5px;
    left: -10px;
}

/* Company-specific logo styling */
.timeline-box:nth-child(1) .timeline-logo {
    border-bottom: 3px solid #97144d; /* Axis Bank color */
}

.timeline-box:nth-child(2) .timeline-logo {
    border-bottom: 3px solid #f37021; /* Coding Ninjas color */
}

.timeline-box:nth-child(3) .timeline-logo {
    border-bottom: 3px solid #0066b3; /* Celebal Technologies color */
}

/* Education institution logo styling */
#education .timeline-box:nth-child(1) .timeline-logo {
    border-bottom: 3px solid #003d7d; /* KIIT University color */
}

#education .timeline-box:nth-child(2) .timeline-logo {
    border-bottom: 3px solid #1e4ca0; /* DPS color */
}

#education .timeline-box:nth-child(3) .timeline-logo {
    border-bottom: 3px solid #006633; /* JCHS color */
}

@media screen and (max-width: 600px) {
  .timeline-box {
    left: 10% !important;
    width: 80%;
  }

  .timeline-box::after {
    left: -9.3% !important;
  }

  .timeline-box:nth-child(2n) {
    left: 10% !important;
  }

  .timeline-box:nth-child(2n)::after {
    left: -9.3% !important;
  }

  .timeline-box:nth-child(2n+1)::after {
    left: -9.3% !important;
  }

  .timeline-logo{
    right: -10px;
  }
}

/* Contact section responsive styles */
@media screen and (max-width: 1200px) {
    #contact-form {
        margin-left: 15%;
    }
}

@media screen and (max-width: 900px) {
    #contact-form {
        margin-left: 10%;
    }
    
    #contact-form-container {
        width: 45%;
    }
    
    #my-details-container {
        width: 40%;
        margin-left: 5%;
    }
}

@media screen and (max-width: 768px) {
    #contact-container {
        flex-direction: column;
    }
    
    #contact-form {
        margin-left: 0;
    }
    
    #contact-form-container {
        width: 90%;
        margin: 0 auto;
    }
    
    #my-details-container {
        width: 90%;
        margin: 30px auto;
    }
    
    #contact-form button[type="submit"] {
        margin-left: 20%;
    }
}

@media screen and (max-width: 480px) {
    #contact-form-container {
        width: 95%;
    }
    
    #my-details-container {
        width: 95%;
    }
    
    .my-details-info-container {
        display: flex;
        align-items: center;
        word-break: break-word;
    }
    
    .my-details-info-container i {
        margin-right: 10px;
        min-width: 20px;
        text-align: center;
    }
    
    .my-details-info-container span {
        font-size: 0.9rem;
    }
    
    #contact-form input,
    #contact-form textarea {
        width: 85%;
        max-width: 85%;
        margin: 10px;
    }
    
    #contact-form button[type="submit"] {
        margin-left: 10%;
        padding: 0.6em 1em;
        font-size: 0.9rem;
    }
}

/* Extreme small screen fixes */
@media screen and (max-width: 360px) {
    #contact-form input,
    #contact-form textarea {
        width: 80%;
        max-width: 80%;
        margin: 10px;
    }
    
    #contact-form button[type="submit"] {
        margin-left: 5%;
        width: 80%;
        max-width: 80%;
    }
    
    .my-details-info-container span {
        font-size: 0.8rem;
    }
    
    .social-icons li {
        margin: 0 5px;
    }
    
    .social-icons li a i {
        padding: 6px;
    }
}

.timeline-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.timeline-box-info{
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.timeline-box .box-info{
    text-align: right;
    width: 70%;
}

.box-info h3,h4{
    text-align: right;
}