/* Define root variables */
:root {
    --primary-bg-color: #f2f2f2;
    --text-primary: #333;
    --heading-color: #333;
    --subsection-bg: #ffffff;
    --link-color: #2c937a;
    --container-bg: #f2f2f2;
    --navbar-bg: #eee;
    --navbar-link-color: #000;
    --link-hover-bg: #ddd;
    --footer-color: #333;
    --project-desc-color: #666;
    --section-bg: #f9f9f9;
    --toggle-bg: #333;
    --toggle-color: #ccc;
    --toggle-hover-bg: #858585;
    --profile-border-color: #333;
    --font-family: 'Arial', sans-serif;
    --mini-heading-color: #c4c3c3;
    --highlight-color: #2c937a;
    --divider: #2C937A;
    --tag-box-color: #daf4ee;
    --tag-box-drop-shadow:#434343;
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 40px;
}

/* Dark mode variables */
body.dark-mode {
    --primary-bg-color: #202020;
    --text-primary: #ccc;
    --heading-color: #ccc;
    --link-color: #2c937a;
    --container-bg: #202020;
    --navbar-bg: #222;
    --navbar-link-color: #eee;
    --link-hover-bg: #2c937a;
    --footer-color: #bbb;
    --project-desc-color: #bbb;
    --section-bg: #1c1c1c;
    --subsection-bg: #292828;
    --toggle-bg: #ccc;
    --toggle-color: #333;
    --toggle-hover-bg: #858585;
    --highlight-color: #2c937a;
    --divider: #2C937A;
    --tag-box-color: #161616;
    --tag-box-drop-shadow:#2C937A;
    --profile-border-color: #bbb;
    --mini-heading-color: #454545;
}

/* General styles */
body {
    font-family: var(--font-family);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    font-size: 16px;
    background-color: var(--primary-bg-color);
    color: var(--text-primary);
    width: 100%;
}

h1, h2, h3 {
    color: var(--heading-color);
    margin-top: 0;
    margin-bottom: 0;
}

a {
    padding-bottom: 2px;
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s, text-decoration 0.3s;
}

/* .here-link a:hover {
    border-bottom: 2px solid var(--link-color);
} */

#shareButton {
    background: transparent;
    border: none;
    color: var(--navbar-link-color);
    margin-left: auto;
}

.share-btn {
    font-weight: normal;
    display: flex;
    align-items: center;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md);
    background: var(--container-bg);
    border-radius: 8px;
    justify-content: space-between;
}

.navbar, .navbar1 {
    
    overflow: auto;
    background: var(--navbar-bg);
    padding-left: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -50px;
    top: 0;
    z-index: 1000;
}
.navbar{
    position: sticky;
}
.navbar1 {
    position: fixed;
    margin-right: 0;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 1px var(--mini-heading-color) solid;
}
.navbar .nav-links, .navbar1 .nav-links{
    text-align: center;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    
}

.navbar .nav-links li, .navbar1 .nav-links li {
    margin: 0 ;
}

.navbar .nav-links a, .navbar1 .nav-links a {
    color: var(--navbar-link-color);
    font-weight:normal;
    padding-top: 4px;
    border-radius: 2px;
    transition: background 0.3s;
    font-size: small;


}
.caption-back {
    
    font-weight: bold;
    color: var(--highlight-color);
}

.cv-drive-icon {
    margin-left: 8px;
}
.nav-icon:hover {
    border-bottom: 3px solid var(--highlight-color);
}
.navbar .nav-links a:hover + .nav-icon, .navbar1 .nav-links a:hover, .here-link a:hover, .more-link a:hover {
    border-bottom: 3px solid var(--highlight-color); /* Add a solid border at the bottom */
}
.more-link {
    float: right;
    margin-right: 8px;
    margin-top: 0px;
}

.header {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 0px;
    margin-top: 32px;
    padding: 0;
    height: auto;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}

.mini-heading {
    text-decoration: underline;
    text-decoration-color: var(--mini-heading-color);
}

.mode-toggle {
    background-color: var(--toggle-bg);
    color: var(--toggle-color);
    border: none;
    padding: 0;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.6s, transform 0.6s, opacity 1.2s ease-in-out;
    opacity: 1;
    position: absolute;
    top: var(--space-sm); /* Adjust as needed */
    right: var(--space-sm); /* Adjust as needed */
    z-index: 10;
    margin-right: 24px ;
    margin-top: -4px;
}

@media (min-width: 840px) {
    .header {
        height: 300px;
        padding: var(--space-md);
    }
    .share-btn {
        margin-top: 4px;
    }
    
}


.highlight-text {
    color: var(--highlight-color);
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    width: 100%;
}

.profile-container {
    display: flex;
    justify-content: space-between; /* Ensure space between profile pic and icons */
    align-items: center;
}

.profile-pic {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 5px solid var(--highlight-color);
}

.social-icons {
    display: flex;
    flex-direction: row; /* Display icons vertically */
    align-items: flex-end; /* Align icons to the right */
    gap: 12px; /* Adjust spacing between icons */
    margin-left: auto; /* Add margin to create space between picture and icons */
}
.social-icons-beside {
    display: flex;
    flex-direction: row; /* Display icons vertically */
    align-items: flex-end; /* Align icons to the right */
    gap: 12px; /* Adjust spacing between icons */
    margin-top: 8px;
}

.social-icon img {
    width: 24px;
    height: 24px;
    margin-bottom: -4px;
    transition: transform 0.3s ease;
}
.navbar1{
    margin-top: 0;
}
.social-icon img:hover {
    transform: scale(1.2); /* Scale up on hover */
}
body.dark-mode .social-icon img , body.dark-mode .share-btn img, body.dark-mode .project-link-icon, body.dark-mode .nav-icon img
 {
    filter: invert(1); /* Invert the color of SVG to white */
}

.header-text {
    color: var(--text-primary);
    font-size: 1.5rem;
}

.header-title {
    color: var(--text-primary);
    font-size: 1.125rem;
    margin-top: var(--space-xs);
}
.time-period{
    text-align: right;
    float: right;
    padding-right: 0;
}
.skills, .intro, .project-box {
    
    background-color: var(--subsection-bg);
    padding: var(--space-md);
    border-radius: 8px;
    margin-bottom: var(--space-sm);
    z-index: 100;
}
.skills {
    margin-top: 0;
}
.intro {
    margin-top: 16px;
    padding-top: 10px;
}
.section-name, .section-name-hidden {
    border-bottom: 3px solid var(--divider);
    border-radius: 2px;
    padding-bottom: 8px;
    padding-right: 32px;
}
 .section-name-hidden {
    visibility: hidden;
}
.about-me{
    height: max-content;
}
.about-me, .projects, .cv, .awards {
    background-color: var(--section-bg);
    padding: var(--space-md);
    border-radius: 2px;
    margin-bottom: var(--space-lg);
}
.tag-box {
    text-align: left;
    font-family: "Outfit", sans-serif;
    font-size: 16px;
    letter-spacing: -0.02em;
    font-weight: 400;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
  }
  .tag-box-main, .tag-box-main1 {
    background: var(--tag-box-color);
    border-radius: 12px;
    padding: 4px 8px 4px 8px;
    display: inline-flex;
    flex-direction: row;
    gap: 4px;
    box-shadow: 2px 2px 0px 0px var(--tag-box-drop-shadow);
    align-items: left;
    justify-content: left;
    flex-shrink: 0;
    position: relative;
    margin: 4px;
  }
.about-me:hover, .projects:hover, .cv:hover, .certifications:hover, .skills:hover {
    transform: none;
}
.project-box:hover{
    transform:scale(1.01);

}
.cv {
    position: relative;
    padding: 20px;
}

.timeline {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--highlight-color);
    left: 20px;
    margin-left: -2px;
}

.timeline-item {
    position: relative;
    margin: 20px 0;
    padding-left: 40px;
}
.project-box-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.project-link-class {
    display: flex;
    float: right;
    position:relative;
    padding: 24px;
    z-index: 102;
}

.timeline-icon{
    position: absolute;
    left: 8px;
    top: 24px; /* Adjust the position as needed */
    width: 24px;
    height: 24px;
    text-align: center;
    background: var(--section-bg);
    border: 2px solid var(--highlight-color) hidden;
    border-radius: 50%;
    z-index: 100;
}
.cv-drive-icon {
    position: relative;
    left: 32px;
    text-align: center;
    background: var(--section-bg);
    border: 2px solid var(--highlight-color) hidden;
    border-radius: 50%;
    z-index: 100;
}

.timeline-content {
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--highlight-color);
}

.project-link-icon {
    width: 16px;
    height: 16px;
    margin-right: 0px;
}

.project-link-icon2 {
    width: 16px;
    height: 16px;
    margin-left: -24px;
    margin-right: 8px;
    margin-bottom: -2px;
}


.mode-toggle {
    background-color: var(--toggle-bg);
    color: var(--toggle-color);
    border: none;
    padding-left: var(--space-xs);
    padding-right: var(--space-xs);
    padding-top: var(--space-xs);
    padding-bottom: 4px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.6s, transform 0.6s, opacity 1.2s ease-in-out;
    opacity: 1;
}

.mode-toggle img {
    width: 24px;
    height: 24px;
    transition: transform 0.6s ease;
}

.mode-toggle:hover {
    background-color: var(--toggle-hover-bg);
    transform: scale(1.05);
}

.footer {
    text-align: center;
    padding: var(--space-sm);
    color: var(--footer-color);
}

/* Adjustments for social icons */
.social-icons {
    display: flex;
    justify-content: flex-end; /* Align icons to the right */
    gap: 12px; /* Add spacing between icons */
}
.nav-icon, .nav-icon1{
    display: flex;
    flex-direction: row;
    
    align-items: center;
    text-align: center;
    justify-content: center;
    
}

.nav-icon, .nav-icon1{
    width: 108px;
}

.nav-icon1 img {
    width: 32px;
    height: 32px;
}

.nav-icon img{
    width: 24px;
    height: 24px;
}
.social-icon img{
    width: 24px; /* Adjust icon size */
    height: 24px; /* Adjust icon size */
    transition: transform 0.3s ease;
}

.social-icon img:hover {
    transform: scale(1.2); /* Scale up on hover */
}
.share-btn img:hover {
    transform: scale(1.2); /* Scale up on hover */
}

.share-btn {
    display:flex;
    align-items: center;
    float: right;
    margin-right: 72px;
    margin-left: -24px;
}
.share-btnmob a{
    margin-top: 0px;
    margin-bottom: 1px;
}
.share-btnmob img{
    margin-top: -1px;
    padding-bottom: 4px; 
}
.share-btn img {
    float: right;
    width: 24px;
    height: 24px;
    margin-right: var(--space-md); /* Adjust margin as needed */
    transition: transform 0.3s ease;
}
.nav-icon1{
    visibility: hidden;
}
#copyNotification {
    visibility: hidden;
    min-width: 160px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px; /* Make the corners rounded */
    padding: 8px;
    position: fixed;
    z-index: 1001;
    bottom: 50px;
    right: 10px;
    font-size: 14px;
}
.nav-icon{
    border-bottom: 3px solid var(--link-color) hidden;
}
#copyNotification.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}
.home-button-main {
    font-size: small;
    margin-right: 40px;
    margin-top: 2px;
    color: var(--link-color);
    text-align: center;
}
@keyframes fadein {
    from {bottom: 30px; opacity: 0;} 
    to {bottom: 50px; opacity: 1;}
}
.nav-item.active .nav-icon,
.nav-icon.active-icon {
    border-bottom: 3px solid var(--highlight-color)
}
@keyframes fadeout {
    from {bottom: 50px; opacity: 1;} 
    to {bottom: 30px; opacity: 0;}
}

/* Responsive adjustments */
@media (min-width: 841px) {
    .header {
        height: 300px;
        padding: var(--space-xl);
    }

    .header-content {
        flex-direction: row;
        justify-content: flex-start;
    }
    .about-me, .projects {
        column-count: 2;
        justify-content: space-between ;
       }
       .column {
        display: block;
        flex-direction: column;
        width: 100%; /* Adjust as needed */
      }
    .profile-container {
        margin-right: var(--space-lg);
    }

    .profile-pic {
        width: 220px;
        height: 220px;
    }

    .header-text {
        font-size: 2rem;
    }

    .header-title {
        font-size: 1.25rem;
    }
    .header-left {
        padding-left: 32px;
    }
    .share-btnmob {
        visibility: hidden;
    }
    #shareButtonmob:hover
    {
        visibility: hidden;
    }
    .hidepp {
        display: none;
    }
}
/* CSS for smaller screens */

@media (max-width: 840px) {
    .about-me{
        height: 1600px;
    }
    .home-button-main {
        margin-left: calc(100vw/20);
        margin-right: calc(100vw/20);
        font-size: x-small;
    }
    .section-name, .section-name-hidden {
        padding-bottom: 4px;
    }
    .nav-links {
        display: flex;
        align-items: center; /* Center align links */
        padding: var(--space-xs); /* Add padding */
    }
    .header{
        margin-bottom: -84px;
        margin-top: 32px;
    }
    .nav-icon1 img{
        width: 28px;
        height: 28px;
    }
    .nav-icon img{
        width: 24px;
        height: 24px;
        transition: transform 0.3s ease;
    }
    .navbar, .navbar1 {

        position: fixed;
        margin-left: calc(-100vw/20);
        margin-right: -50px;
    }
    .share-btnmob {
        visibility: hidden;
    }

    .nav-links li {
        
        margin: 0 ; /* Adjust margin */
        border-radius: 2px; /* Rounded corners */
        background-color: var(--navbar-bg); /* Match navbar background */
    }
    .nav-icon, .nav-icon1{
        width: calc(100vw/6);
    }
    .social-icons-beside {
        display: flex;
        flex-direction: row; /* Display icons vertically */
        align-items: flex-end; /* Align icons to the right */
        gap: 12px; /* Adjust spacing between icons */
        margin-top: 10px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        margin-bottom: 100px;
    }
    .navbar{

        overflow: auto;
        background: var(--navbar-bg);
        padding-left: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: fixed;
        margin-top: 0px;
        top: 0;
        z-index: 1000;
    }
    .navbar .nav-links a, .navbar1 .nav-links a {
        color: var(--navbar-link-color);
        font-weight:normal;
        padding-top: 4px;
        border-radius: 2px;
        transition: background 0.6s ease;
        font-size: x-small;

    }
    .nav-links a {
        display: block;
        padding: 0px;
        color: var(--navbar-link-color);
        text-align: center;
        border-radius: 2px; /* Rounded corners */
        transition: background 0.6s ease;
    }

    /* Hide the Skills section in smaller screens */

    .profile-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        margin-top: 40px;
    }
    .share-btn img {
        padding-right: 0px; /* Adjust margin as needed */
        margin-left: -40px;
    }
    .profile-pic {
        margin-bottom: var(--space-sm);
    }
    .header-left {
        padding: 0%;
    }
    .header-content {
        text-align: center;
    }
    .mode-toggle {
        margin-right: 32px ;
        margin-top: -10px;
        right: 10px;
        float: right;
    }
    ul {
        margin-left: -24px;
    }
    .share-btn{
        float: right;
    }
}
/* Add styles for the dividers */
.project-divider {
    border: 0;
    height: 1px;
    background: var(--divider);
    opacity: 0.75;
}
.subproject-divider {
    border: 0;
    height: 1px;
    background: var(--divider);
    opacity: 0.25;
}
.section-divider {
    border: 0;
    height: 1px;
    background: var(--divider);
    opacity: 1;
    visibility: hidden;
}
.skillscolumn{
    margin-top: -435px;
    position:sticky;
}

Ensure that the project descriptions have some padding for better readability
.project-description {
    padding: var(--space-sm) 0;
}
.project-title {
    display: flex;
    text-transform: uppercase;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1rem;
    color: #999696;
    
}
.intro .project-title{
    padding-top: 10px;
}

.project-link-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    margin-left: auto;
    margin-bottom: -5px;
    margin-right: 0; /* Adjust margin as needed */
}

.project-link-icon:hover {
    transform: scale(1.2); /* Scale up on hover */
}

ul {
    list-style-type: none;
  }
html {
	scroll-behavior:smooth;
}

@media screen and (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}
.flip-container {
    perspective: 1000px;
}
.flip-container .flipper {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}
.flip-container.flip .flipper {
    transform: rotateY(180deg);
}
.flip-container .front, .flip-container .back, .dummy{
    position:relative;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}
.flip-container .intro-back {
    transform: rotateY(180deg);
}
.flip-container .skill-back {
    transform: rotateY(180deg);
    margin-top: -360px;
}
.dummy{
    height: 300px;
    visibility: hidden;
}
#skillsContainer, #introContainer {
   background:none;
   margin: -20px;
}
.back:hover, .intro-back:hover, .skill-back:hover{
    scale: 1.01;
    cursor:pointer
}
.tag-box-main:hover, .tag-box-main1:hover{
    scale: 1.02;
    cursor: pointer;
}
.inside-image {
    margin-top: 16px;
    margin-left: 16px;
    margin-bottom: 8px;
    height: 150px;
    border-radius: 6px;
}
@media (min-width: 1100px) {
    .header {
        height: 300px;
        padding: var(--space-md);
    }
    .share-btn {
        margin-top: 4px;
    }
    .caption-back{
        margin-top: 15%;
        margin-left: 50%;
        float:right;
        padding-left: 10px;    }
    .inside-image {
        height: 200px;
        margin-top: -26%;
    }
}