*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    scroll-behavior: smooth;
    font-family: sans-serif;
}

:root{
    --bg-color: #ffffff;
    --text-color: #0a2b5e;
    --main-color: #eff8fa;
    --second-color: #082d64;
    --header-color: #f1f4fa;
    --shadow-color: #0a0a0a;
    --popup-color: #4d6078;
    --imgbg-color: #c2d8e0;
    --overlay-color: #4f73a9;
}

.dark-mode{
    --bg-color: #3B2F2F;
    --text-color: #F9FAFB;
    --main-color: #1d1b1b;
    --second-color: #ac6152;
    --header-color: #463128;
    --shadow-color: rgba(0,0,0,.7);
    --overlay-color: #1d1b1b;
    --imgbg-color: #463128;
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
}

body{
    background-color: var(--bg-color);
    color: var(--text-color);
}

::-webkit-scrollbar{
    width: 15px;
}

::-webkit-scrollbar-thumb{
    background-color: var(--main-color);
}

::-webkit-scrollbar-track{
    background-color: var(--bg-color);
    width: 50px;
}

span{
    color: var(--second-color);
}

.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: .5rem 1%;    
    display: flex;
    align-items: center;
    z-index: 100;
    background: var(--header-color);
}

.logo{
    margin-right : auto;
    margin-left: 20px;
    height: 50px;
    width: 50px;
}

.navBar{
    margin-right: 8rem;
}

.navBar a{
    position: relative;
    font-size: 1.7rem;
    font-weight: 500;
    margin-right: 3rem;
    color: var(--text-color);    
}

.header .navBar a.active{
    color: var(--second-color);
}

.navBar a.active::before{
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: .2rem;
    background-color: var(--second-color);    
}

.header.sticky .navBar a::before{
    background-color: var(--second-color);
    opacity: .7;
}

#darkMode-icon{
    font-size: 2.4rem;
    color: var(--text-color);
    cursor: pointer;
}

#menu-icon{
    font-size: 3.2rem;
    color: var(--text-color);
    display:none;
}

section{    
    min-height: 85vh;
    padding: 4rem;
}

/* Heading Styling */
.heading {
    font-size: 2.8em;
    color: var(--text-color);
    margin: 40px;
    position: relative;
    display: inline-block;
}

.heading::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: #3498db; 
    border-radius: 2px;
}

/* home section style */
.home{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.home .home-content{
    max-width: 50%;
    margin-right: 5rem;
    line-height: 23px;
}

.home-content h3{
    font-size: 3.2rem;
    font-weight: 700;
    line-height: .5;
}

.home-content h1{
    font-size: 4rem;
    font-weight: 700;
    margin: 1.5rem 0 2rem 0;
}

.home-content p{
    font-size: 1.6rem;
    margin: 1rem 5rem 0 0;
}

.my-roles {
  height: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.role {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.5rem;
  font-weight: 500;
  color: #EA580C;
}

.role.active {
  opacity: 1;
  transform: translateY(0);
}

.scroll {
  position: absolute;
  bottom: 5rem;
  font-size: large;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.7;
  animation: bounce 2s infinite;
}
.scroll i {
  font-size: 3rem;
  color: #9CA3AF;
  align-items: center;
}

.scroll span {
  color: #9CA3AF;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

.home-content .social-media a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background-color: transparent;
    border: .2rem solid var(--second-color);
    border-radius: 50%;
    box-shadow: 0 .2rem .5rem var(--shadow-color);
    font-size: 1.5rem;
    color: var(--second-color);
    margin: 2.5rem 1rem 3rem 0;
    transition: .5s ease;
}

.home-content .social-media a:hover{
    color: var(--bg-color);
    background-color: var(--second-color);
}

.primarybtn {
    display: inline-block;
    padding: 1rem 1.5rem;
    background: var(--second-color);
    border-radius: 5rem;
    box-shadow: 0 .2rem .5rem var(--shadow-color);
    font-size: 1.6rem;
    color: var(--bg-color);
    font-weight: 500;
    border: .2rem solid transparent;
    transition: .5s ease;
    margin-top: 20px;
}

.primarybtn:hover{
    background-color: transparent;
    color: var(--second-color);
    border-color: var(--second-color);
}

.secondbtn{
    display: inline-block;
    padding: 1rem 1.5rem;
    background: transparent;
    border-radius: 5rem;
    box-shadow: 0 .2rem .5rem var(--shadow-color);
    font-size: 1.6rem;
    color: var(--second-color);    
    font-weight: 500;
    border: .2rem solid var(--second-color);
    transition: .5s ease;
    margin-top: 3rem;
}

.secondbtn:hover{
    background-color: var(--bg-color);;
    border-color: var(--second-color);
}

.home-img{
    background-color: var(--popup-color);
    height: 325px;
    width: 250px;
    padding: 3rem;
    position: relative;
}

.home-img img{
    pointer-events: none;
    height: 325px;
    width: 250px;
    background-color: var(--header-color);
}


/* skills section style */

.skills_container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.skills_box {
    background-color: var(--imgbg-color);
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.skills_box:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.skills_box h3 {
    text-align: left;
    margin-bottom: 15px;
    color: var(--text-color);
}

.skills_box ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills_box ul li {
  display: inline-block;
  background-color: var(--main-color);
  color: var(--text-color);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s;
  white-space: nowrap;
}

.skills{
    margin: 0;
    text-align: center;
}

.skills_rolling_container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    height: 100%;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.skills_rolling_grid {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 20s linear infinite;
    min-width: 200%;
}

.skills_rolling_grid img {
  width: 100px;
  height: 75px;
  margin: 0 10px;
  border-radius: 5px;
  object-fit: contain; 
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.collaboration_container {
    display: flex;
    justify-content: center; 
    align-items: center; 
    margin: 10rem;
}

.collaboration_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); 
    gap: 40px; 
    max-width: 1000px; 
    width: 100%; 
}

.collaboration_grid img {
    width:100%; 
    height: auto; 
    object-fit: contain;
    aspect-ratio: 16 / 10;
    border-radius: 12px; 
}

/* Experience */
.experience{
    text-align: center;
}

.experience-container {
    text-align: left;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.experience-card {
    background: var(--header-color);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.experience-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, var(--main-color), var(--second-color));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.experience-card:hover::before {
    opacity: 1;
}

.experience-card h2 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.experience-card .duration {
    display: block;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.experience-card p {
    font-size: 13px;
    font-weight: 200;
    line-height: 1.6;
    margin-bottom: 10px;
}

.experience-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px var(--shadow-color);
}

/* publications section */
.publications-cloud {
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); 
    margin: 50px auto;
    max-width: 1200px;
    border-radius: 15px;
}

.cloud-wrapper {
    display: flex;
    flex-direction: column;
    align-items: left;
    gap: 100px;
}

.publication-tag-cloud {
    display: flex;
    flex-wrap: wrap; 
    justify-content: right;
    gap: 15px 25px; 
    max-width: 900px; 
    margin-bottom: 30px;
    margin-right: 10px;
}

.pub-tag {
    font-size: 1.2em; 
    color: #555;
    background-color: #e9ecef;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #dcdfe3;
    white-space: nowrap; 
}

.pub-tag:hover {
    border: var(--second-color);
    background-color:var(--second-color);
    color: var(--bg-color);
    border-width: 10px;
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--overlay-color);
}

.pub-tag.active {
    background-color: var(--second-color);
    color: #fff;
    border-color: var(--shadow-color);
    font-weight: bold;
}

.publication-viewer {
    background-color: #fefefe;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    width: 100%;
    max-width: 1200px; 
    text-align: left;
    min-height: 250px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
    position: relative; 
}

.viewer-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #aaa;
}

.viewer-placeholder i {
    font-size: 3em;
    margin-bottom: 15px;
}

.viewer-placeholder p {
    font-size: 1.1em;
    margin: 0;
}

.viewer-content {
    width: 100%;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: relative; 
    top: 0;
    left: 0;
    box-sizing: border-box; 
    display: none; 
}

.viewer-content.active {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

.viewer-title {
    font-size: 1.8em;
    color: #34495e;
    margin-top: 0;
    margin-bottom: 5px;
    line-height: 1.3;
}

.viewer-meta {
    font-size: 1.2em;
    color: #777;
    margin-bottom: 12px;
    font-style: italic;
}

.viewer-abstract {
    font-size: 1.3em;
    line-height: 1.5;
    color: #555;
    margin-bottom: 25px;
}

.viewer-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    background-color: var(--second-color);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.viewer-link:hover {
    background-color: var(--overlay-color); 
    transform: translateY(-2px);
}

.viewer-link i {
    margin-right: 10px;
    font-size: 1.2em;
}

@media (min-width: 769px) {
    .cloud-wrapper {
        flex-direction: row; 
        justify-content: center;
        align-items: flex-start; 
    }

    .publication-tag-cloud {
        flex: 1;
        max-width: 45%; 
        min-height: 300px; 
        align-content: flex-start; 
    }

    .publication-viewer {
        flex: 1; 
        max-width: 50%; 
    }
}

@media (max-width: 768px) {
    .publications-cloud {
        padding: 50px 15px;
        margin: 30px auto;
    }

    .heading {
        font-size: 2.5em;
        margin-bottom: 40px;
    }

    .publication-tag-cloud {
        gap: 10px 15px;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .pub-tag {
        font-size: 1em;
        padding: 8px 15px;
    }

    .publication-viewer {
        min-height: 200px;
        padding: 20px;
    }

    .viewer-title {
        font-size: 1.5em;
    }

    .viewer-meta, .viewer-abstract {
        font-size: 0.9em;
    }

    .viewer-link {
        padding: 10px 20px;
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .heading {
        font-size: 2em;
    }
    .pub-tag {
        font-size: 0.9em;
        padding: 7px 12px;
    }
    .viewer-placeholder i {
        font-size: 2.5em;
    }
    .viewer-placeholder p {
        font-size: 1em;
    }
}

/* qualification section style */
.qualification{
    background-color: #ffffff;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    margin: 50px auto;
    max-width: 1200px;
    border-radius: 12px;
}

.qualification h2{
    margin-bottom: 3rem;
}

.timeline-items{
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

.timeline-items::before{
    content: "";
    position: absolute;
    width: 5px;
    height: 100%;
    background-color: var(--second-color);
    left:calc(50% - 1px);
}

.timeline-item{
    width: 100%;
    position: relative;
}

.timeline-item:last-child{
    margin-bottom: 0;
}

.timeline-item:nth-child(odd){
    padding-right: calc(50% + 30px);
    text-align: right;
}

.timeline-item:nth-child(even){
    padding-left: calc(50% + 30px);
    text-align: left;
}

.timeline-dot{
    height: 21px;
    width: 21px;
    background-color: var(--second-color);
    box-shadow: 0 0 25px var(--second-color);
    position: absolute;
    left: calc(50% - 8px);
    border-radius: 50%;
}

.timeline-date{
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0px 0 15px;
}

.timeline-content{
    background-color: transparent;
    border: 3px solid var(--second-color);
    padding: 15px 15px;
    border-radius: 4rem;
    box-shadow: 0 0 10px var(--second-color);
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.timeline-content:hover{
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--second-color);
}

.timeline-content h3{
    font-size: 18px;
    color: var(--second-color);
    font-weight: 700;
}

.timeline-content h4{
    font-size: 16px;
    color: var(--text-color);
    margin: 0 0 8px;
    font-weight: 700;
}

.timeline-content p{
    color: var(--text-color);
    font-size: 14px;
    font-weight: 200;
    line-height: 22px;
}

/* projects section */
.latest-projects {
    background-color: #ffffff;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    margin: 50px auto;
    max-width: 1200px;
    border-radius: 12px;
}

.category-folders {
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; 
}

.category-folder {
    width: 230px; 
    height: 250px;
    background-color: #f0f4f8; 
    border-radius: 18px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding-top: 15px;
    position: relative;
}

.category-folder:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.category-folder.active {
    outline: 3px solid #007bff; 
    outline-offset: 4px; 
}

.folder-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    grid-template-rows: repeat(2, 1fr);
    gap: 4px; 
    width: 200px; 
    height: 200px;
    background-color: var(--header-color); 
    border-radius: 10px; 
    overflow: hidden; 
    margin-bottom: 10px;
    border: 1px solid rgba(0, 123, 255, 0.2); 
    position: relative;
}

.folder-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 5px; 
    border: 1px solid #f0f0f0; 
}

.folder-preview:has(img:nth-last-child(2):first-child) { 
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 1fr);
}
.folder-preview:has(img:first-child:last-child) { 
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    display: flex;
    align-items: center;
    justify-content: center;
}
.folder-preview img:nth-child(n+5) { 
    display: none;
}


.folder-title {
    font-size: 0.95em;
    font-weight: 600;
    color: #34495e;
    text-align: center;
    padding: 0 5px; 
}


.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.6); 
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    max-width: 900px; 
    width: 90%; 
    max-height: 90vh; 
    overflow-y: auto; 
    animation: fadeIn 0.3s ease-out; 
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: #333;
}

#modalCategoryTitle {
    text-align: center;
    font-size: 2.2em;
    color: #2c3e50;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
}

.modal-project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px; 
    padding: 10px;
}

.modal-project-list .project-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.modal-project-list .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.modal-project-list .project-card .project-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid #eee;
}

.modal-project-list .project-card .project-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.modal-project-list .project-card .project-title {
    font-size: 1.4em;
    color: #34495e;
    margin-top: 0;
    margin-bottom: 10px;
}

.modal-project-list .project-card p {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.modal-project-list .project-card a {
    display: inline-flex;
    align-items: center;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: color 0.3s ease;
}

.modal-project-list .project-card a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.modal-project-list .project-card a i {
    margin-right: 8px;
    font-size: 1.1em;
}

@media (max-width: 768px) {
    .latest-projects {
        padding: 60px 15px;
        margin: 30px auto;
    }

    .heading {
        font-size: 2.5em;
        margin-bottom: 30px;
    }

    .category-folders {
        gap: 20px;
    }

    .category-folder {
        width: 120px; 
        height: 140px;
        border-radius: 15px;
    }

    .folder-preview {
        width: 80px; 
        height: 80px;
        border-radius: 8px;
    }

    .folder-title {
        font-size: 0.9em;
    }

    .modal-content {
        padding: 20px;
        width: 95%;
        max-height: 85vh;
    }

    #modalCategoryTitle {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .modal-project-list {
        grid-template-columns: 1fr; 
        gap: 20px;
    }

    .modal-project-list .project-card .project-image {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .heading {
        font-size: 2em;
    }
    .category-folder {
        width: 100px;
        height: 120px;
    }
    .folder-preview {
        width: 70px;
        height: 70px;
    }
    .folder-title {
        font-size: 0.8em;
    }
    .close-button {
        font-size: 28px;
        top: 10px;
        right: 15px;
    }
}

/* about section style */
.about{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

.about-img{
    background-color: var(--popup-color);
    height: 325px;
    width: 250px;
    padding: 3rem;
    position: relative;
}

.about-img img{
    pointer-events: none;
    height: 325px;
    width: 250px;
    padding: 1rem;
    background-color: var(--imgbg-color);
}

.about-content h2{
    text-align: left;
    line-height: 1.2;
}

.about-content h3{
    font-size: 2rem;    
}

.about-content p{
    font-size: 1.5rem;
    margin: 2rem 0 3rem;
}

.read-more-content {
    max-height: 200px; 
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.read-more-content.open {
    max-height: none; 
}

/* contact section style */
.contact {
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1); 
    margin: 50px auto;
    max-width: 1200px;
    border-radius: 15px;
}

.contact .box {
    max-width: 100%;
    margin: 50px;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
}

.contact .box #pop-up{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); 
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  visibility: hidden;
}

.icon-container{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.popup-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.loader {
    border: 6px solid #f3f3f3; 
    border-top: 6px solid #4CAF50;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.checkmark-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #4CAF50; 
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }
  
  .checkmark {
    width: 20px;
    height: 10px;
    border-left: 3px solid white;
    border-bottom: 3px solid white;
    transform: rotate(-45deg);
    position: absolute;
  }

  .warning-icon {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 60px solid #ffcc00; 
    position: relative;
    display: inline-block;
    margin: 20px;
  }
  
.warning-icon .exclamation {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 32px;
    font-weight: bold;
    color: #333; 
  }

.error-icon {
    width: 60px; 
    height: 60px; 
    background-color: #f44336; 
    border-radius: 50%;
    display: flex;
    justify-content: center; 
    align-items: center; 
    position: relative;
    margin: 20px;
  }
  
  .error-icon .cross {
    font-size: 36px; 
    color: white; 
  }

.contact .box .form {
    flex: 1 1 45%;
    background-color: transparent;
    border-radius: 8px;
    margin-left: 50px;
}

.contact .box .contactInfo-border {
    width: 35%;
    height: 100%;
    display: block;
    margin-right: 100px;
    background-color: rgba(128, 128, 128, 0.361);
}

.contact .box .contactInfo {
    flex: 1 1 45%;
    text-align: left;
    margin: 40px;
    width: 100%;
    height: 100%;
    padding: 40px;
    display: block;
    background-color: var(--overlay-color);
    color: var(--bg-color);
}

.contact .info-title {
    font-size: 2rem;
    color: var(--bg-color);
    margin-bottom: 30px;
}

.contact .info-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--popup-color);
    font-weight: 300;
    letter-spacing: 0.5px;
}

.contact .info-details {
    list-style-type: none;
    padding: 0;
}

.contact .info-details li {
    margin-bottom: 15px;
    font-size: 16px;
}

.contact .info-details li i {
    font-size: 1.5rem;
    margin-right: 10px;
    color: var(--bg-color);
    background-color: var(--text-color);
    padding: 12px;
    border-radius: 50%;
}

.contact .info-details li a {
    color: var(--bg-color);
    text-decoration: none;
}

.contact .info-details li a:hover {
    color: var(--bg-color);
}

/* Form styling */
.contact .form-title {
    font-size: 3rem;
    color: var(--text-color);
}

.contact .form-fields {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.contact .form-group {
    flex: 1 1 100%;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.contact .form-group input,
.contact .form-group textarea {
    width: 75%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid var(--text-color);
    border-radius: 4px;
}

.contact .form-group.error input,
.contact .form-group.error textarea{
    border-color: #e74c3c;
}

.contact .form-group small{
    visibility: hidden;
}

.contact .form-group.error small{
    visibility: visible;
    color: #e74c3c;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.contact label {
    font-size: 1rem;
    padding: 5px;
    display: block;
}

.contact .form-group textarea {
    height: 120px;
    resize: none;
}

.footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 7%;
    background-color: var(--overlay-color);
}

.footer-text p{
    font-size: 1.6rem;
    color: var(--text-color);
}

.footer-iconTop a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--bg-color);
    border-radius: .8rem;
    border: .2rem solid var(--main-color);
    outline: .2rem solid transparent;
    transition: .5s ease;
}

.footer-iconTop a:hover{
    outline-color: var(--bg-color);
}

.footer-iconTop a i{
    font-size: 2.4rem;
    color: var(--text-color);
}

@media (max-width: 1920px) {
    html{
        font-size: 70%;
    }
    section{    
        min-height: 90vh;
    }
    /* .home-img img{
        height: 400px;
        width: 310px;
    }
    .home-img{
        height: 400px;
        width: 310px;
    } */
}

@media (max-width: 1280px) {
    html{
        font-size: 60%;
    }
    /* .home-content h1 {
        font-size: 4rem;
    } */

    .timeline-date{
        font-size: 17px;
        font-weight: 500;
        margin: 0px 0 14px;
    }
    
    .timeline-content{
        padding: 12px 12px;        
    }

    .timeline-content h3{
        font-size: 15px;
        font-weight: 600;
    }
    
    .timeline-content h4{
        font-size: 15px;
        margin: 0 0 8px;
        font-weight: 600;
    }
    
    .timeline-content p{
        font-size: 13px;
        font-weight: 100;
        line-height: 20px;
    }

    .about {
        gap: 20rem;
    }

    .about-content h3 {
        font-size: 1.8rem;
    }

    .about-content p {
        font-size: 1.4rem;
    }

    .contact .box {
        margin: 20px;
    }

    .contact .box .contactInfo-border {
        width: 40%;
        margin-right: 50px;
    }
}

@media (max-width: 1024px) {

    section{
        padding: 10rem 3% 2rem;
    }

    .collaboration_grid {
        grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); /* Responsive columns */
    }

    .contact .box {
        flex-direction: column;
    }

    .contact .box .contactInfo-border,
    .contact .box .form {
        width: 100%;
        margin: 0px;
        margin-top: 20px;
    }

    .contact .box .contactInfo {
        margin: 20px 0;
    }
}

@media(max-width:991px){
    html{
        font-size: 55%;
    }

    .skills_grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); /* Responsive columns */
    }

    .collaboration_grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Responsive columns */
        gap:55px;
    }

    /* .home .home-content{
        margin-right: 10rem;
        max-width: 50rem;
    }
    .home-img{
        height: 250px;
        width: 200px;
        padding: 3rem;
    }  
    .home-img img{
        height: 250px;
        width: 200px;
    } */
    footer{
        padding: 2rem 3%;
    }
}

@media (max-width: 768px) {

    section{
        min-height: 0;
    }

    #menu-icon{
        display: block;
    }

    #darkMode-icon{
        position:absolute;
        right: 7rem;
        font-size: 2.6rem;
        color: var(--text-color);
        margin-bottom: .1rem;
    }

    .home-img{
        display: none;
    }  
    .home-img img{
        display: none;
    }
    .home .home-content{
        max-width: 100%;
        margin-right: 0;
    }
    .home-content p{
        font-size: 1.6rem;
        margin: 0;
    }
    .logo{
        margin-right : auto;
        margin-left: 20px;
        height: 40px;
        width: 40px;
    }

    #darkMode-icon{
        right: 6rem;
    }
    .navBar{
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background-color: var(--bg-color);
        border-top: .1rem solid rgba(0,0,0,.2);
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.1);
        display: none;
    }

    .navBar.active{
        display: block;
    }

    .navBar a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        color: var(--text-color);
    }

    .timeline-date{
        font-size: 12px;
        font-weight: 300;
        margin: 0px 0 14px;
    }

    .navBar a:nth-child(1),
    .navBar a:nth-child(2){
        color: var(--text-color);
    }

    .navBar a.active{
        color: var(--main-color);
    }

    .navBar a::before{
        display: none;
    }

    .home{
        padding: 10rem;
        justify-content: center;
        align-items: center;
        text-align: center;
    }


    .collaboration_grid {
        grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)); /* Responsive columns */
        gap:50px;
    }

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

    .timeline-content h3{
        font-size: 12px;
        font-weight: 400;
    }
    
    .timeline-content h4{
        font-size: 12px;
        margin: 0 0 8px;
        font-weight: 400;
    }
    
    .timeline-content p{
        font-size: 10px;
        font-weight: 50;
        line-height: 18px;
    }

    .latest-projects .project-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .about {
        flex-direction: column-reverse;
        text-align: center;
    }

    .about-content h2 {
        text-align: center;
    }
    .about {
        gap: 5rem;
    }
    .about-img{
        height: 300px;
        width: 220px;
    }
    
    .about-img img{
        height: 300px;
        width: 220px;
    }
    .contact .info-title {
        font-size: 1.5rem;
    }

    .contact .info-subtitle {
        font-size: 1.2rem;
    }

    .contact .info-details li {
        font-size: 14px;
    }

    .contact .form-title {
        font-size: 2rem;
    }

    .contact .form-subtitle {
        font-size: 1.2rem;
    }

    .contact .form-group input,
    .contact .form-group textarea {
        width: 100%;
    }

    .contact .form-group textarea {
        height: 100px;
    }
}
/* std */
@media (max-width: 610px) {
    html{
        font-size: 45%;
    }

    #darkMode-icon{
        right: 5rem;
    }
    .skills_grid {
        grid-template-columns: repeat(auto-fill, minmax(75px, 1fr)); /* Responsive columns */
    }

    .collaboration_grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); /* Responsive columns */
        gap:30px;
    }

    .about-img{
        height: 275px;
        width: 200px;
    }
    
    .about-img img{
        height: 275px;
        width: 200px;
    }
}

@media (max-width: 576px) {

    .about-img{
        height: 200px;
        width: 150px;
    }
    
    .about-img img{
        height: 200px;
        width: 150px;
    }
    
    .contact {
        padding: 20px 0;
    }

    .contact .box {
        margin: 10px;
    }

    .contact .box .form {
        margin-left: 0;
    }

    .contact .form-group input,
    .contact .form-group textarea {
        font-size: 0.9rem;
    }

    .contact .form-group textarea {
        height: 80px;
    }
}

@media(max-width: 450px){
    html{
        font-size: 40%;
    }
    

    .home{
        padding: 0 3% 30rem ;
    }
    
}

@media (max-width: 365px){
    .about-img img{
        width: 90vw;
    }

    .footer{
        flex-direction: column-reverse;
    }

    .footer p{
        text-align: center;
        margin-top: 2rem;
    }
}
