@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kaushan+Script&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
*{
    margin: 0;
    padding: 0;
}

body{
    font-family: "DM Sans", sans-serif;
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16"><circle cx="8" cy="8" r="4" fill="black"/></svg>') 8 8, auto;
}

/* Cursor for clickable elements */
a, button, .btn, .btn2, .hamburger-icon, .icon[style*="cursor: pointer"], 
[onclick], input[type="button"], input[type="submit"], .project-icon-btn,
.category-btn, .logo img, .achv-member:not([alt="line"]), .scroll-to-top,
.stay-top-btn, .skill-card, .card1, .card2 {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="8" fill="black"/><circle cx="12" cy="12" r="4" fill="white"/></svg>') 12 12, pointer !important;
}

#gridCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10000;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -9999;
    display: block;
    pointer-events: none;
    overflow: hidden;
}

.background-video .bg-video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    display: block;
    /* Prevent horizontal scroll */
    max-width: 100vw;
    max-height: 100vh;
}


.mobile-bg {
    display: none;
}

.desktop-bg {
    display: block;
}

.background-video::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    /* Gradient: transparent at top, white at bottom */
    background: linear-gradient(to bottom, rgba(255,255,255,0) 60%, #fff 100%);
    z-index: 1;
}

html{
    scroll-behavior: smooth;
}

p{
    color: rgb(85,85,85);
}

/*Transition*/
a, .btn{
    transition: all 300ms ease;
}

/*Desktop Navigation*/
nav, .nav-links{
    display: flex;
}

nav{
    justify-content:space-around;
    align-items: center;
    height: 17vh;
}

.desktop-nav{
    position: fixed;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6),
                0 8px 32px rgba(0, 0, 0, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.desktop-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
    pointer-events: none;
    opacity: 0.8;
}

.nav-links{
    gap: 1.5rem;
    list-style: none;
    font-size: 1.3rem;
}

a{
    color: black;
    text-decoration: none;
}

a:hover{
    color: gray;
    text-decoration:underline;
    text-underline-offset: 1rem;
    text-decoration-color: gray;
}

.logo{
    font-size: 1.5rem;
    font-family: "DM Sans", serif;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    
    h1{
        font-weight: 400;
    }

    img{
        height: 50px;
        transition: rotate 0.3s ease, transform 0.3s ease;
    }
}


.logo:hover{
    cursor: default;
}

/*Mobile Navigation*/

#hamburger-nav{
    display: none;
}

.hamburger-menu{
    position: relative;
    display: inline-block;
    z-index: 1000000;
}

.hamburger-icon{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.hamburger-icon span{
    width: 100%;
    height: 2px;
    background-color: black;
    transition: all 0.3s ease-in-out;
    border-radius: 5px;
}

.menu-links{
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 250px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    transform-origin: top right;
    transform: scale(0.95);
    opacity: 0;
    padding: 0;
    margin-top: 10px;
}

.menu-links a{
    display: block;
    padding: 15px 20px;
    text-align: left;
    font-size: 1.2rem;
    color: black;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.menu-links a:hover {
    background: rgba(0, 0, 0, 0.05);
    padding-left: 25px;
    text-decoration: none;
    text-underline-offset: 0;
}

.menu-links li{
    list-style: none;
}

.menu-links.open{
    max-height: 400px;
    transform: scale(1);
    opacity: 1;
    padding: 10px;
}

.menu-links.open a {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.menu-links.open a:nth-child(2) {
    transition-delay: 0.25s;
}

.menu-links.open a:nth-child(3) {
    transition-delay: 0.3s;
}

.menu-links.open a:nth-child(4) {
    transition-delay: 0.35s;
}

.menu-links.open a:nth-child(5) {
    transition-delay: 0.4s;
}

.menu-links.open a:nth-child(6) {
    transition-delay: 0.45s;
}

.hamburger-icon.open span:first-child{
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-icon.open span:nth-child(2){
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger-icon.open span:last-child{
    transform: rotate(-45deg) translate(8px, -8px);
}

.hamburger-logo {
    display: flex;
    align-items: center;
    padding: 10px;
    position: relative;
    z-index: 1000;
}

/* Section */
section{
    padding-top: 4vh;
    height:96vh;
    margin:0 10rem;
    box-sizing:border-box;
    min-height: fit-content;
}

.section-container{
    display:flex;
    align-items: center;
    gap:2rem;
    height: 80%;

}

/* .profile-section{
    bottom: 20rem;
} */

/* Profile Section */

#profile{
    display:flex;
    justify-content: center;
    gap: 5rem;
    /* height: 80vh;
    margin-top: 20vh; */
    animation: fadeInBlur 1s ease-out;

}




.section-pic-container{
    display: flex;
    height: 400px;
    width: 400px;
    margin: auto, 0;
    animation: slideInFromLeft 1s ease-out;
    
}
.profile-photo { 
    border-radius: 50%;
    box-shadow: 0 0 20px #ffffff,
               0 0 60px #ffffff,
                0 0 40px #ffffff,
                0 0 80px #ffffff;

    /* border: 1px solid rgb(53,53,53); */
 }
 .profile-photo:hover{
    transform: scale(1.05);
    transition: transform 0.3s ease ;
    box-shadow: 0px 0.5rem 1rem rgb(255, 255, 255);
    border-style:dashed;
    border-width: 0.1rem;
    padding: 0.7rem;
 }

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

.section-text.profile-text{
    position: absolute;
    top: 27vh;
    right: 0;
    margin-right: 6vw;
    align-items: flex-end;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.section-text.profile-text .name {
    /* ...existing code... */
    background: linear-gradient(270deg, #222 0%, #444 40%, #8e8c8c 80%, #222 100%);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: ash-gradient-move 10s ease-in-out infinite;
}

@keyframes ash-gradient-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.section-text-p1{
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
}

.section-text-p2{
    font-size: 1.2rem;
    margin-bottom: 2rem;
    margin-top: -0.8rem;
    font-weight: 500;
    color: rgb(112, 112, 112);
}

.section-text-p3{
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: rgb(112, 112, 112);
}

.inline-container {
    justify-content: center;
    display: flex;
    align-items: center;
    margin-bottom: -0.5rem;
}

.inline-2{
 margin-bottom: 0.5rem;
}

.section-text-p4{
    font-size: 0.9rem;;
    color:rgb(150,150,150);
    font-weight: 400;
}

.uni-logo {
    width: auto; 
    height: 40px;
}


.title{
    font-size: 2.5rem;
    text-align: center;
    font-weight: 600;
}

.name{
    font-size: 5.8rem;
    font-weight: 500;
    font-family: "DM Sans", serif;
}

/* Slogan Section */

.slogan-inline-btn{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 50vh;
    flex-direction: column;
}

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

.slogan-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: rgb(85,85,85);
    margin-bottom: 1rem;
}

#social-container{
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    gap: 1.5rem;
}

.icon{
    cursor: pointer;
    height: 2rem;
}

.forward-icon{
    position: absolute;
    top:10px;
    left:-20px;
    z-index: -1;
    opacity: 0.2;
}

/* Button */

.btn-container{
    display: flex;
    justify-content: center;
    gap: 1rem;
    
}

.btn{
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem 1.5rem;
    width: auto;
    min-width: 8.4rem;
    border-radius: 100px;
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.btn2{
    font-weight: 600;
    transition: all 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
    padding:0.75rem;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

/* Glass Morphism Effect for Slider Buttons */
.btn2.leftbtn,
.btn2.rightbtn {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn2.leftbtn::before,
.btn2.rightbtn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn2.leftbtn:hover::before,
.btn2.rightbtn:hover::before {
    opacity: 1;
}

.btn2.leftbtn::after,
.btn2.rightbtn::after {
    content: '';
    position: absolute;
    inset: -15px;
    background: radial-gradient(circle, rgba(0,0,0,0.08) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: -1;
}

.btn2.leftbtn:hover::after,
.btn2.rightbtn:hover::after {
    opacity: 1;
    inset: -20px;
}

.btn2.leftbtn:hover,
.btn2.rightbtn:hover {
    transform: scale(1.12) translateY(-3px);
    background: rgba(255, 255, 255, 0.35);
    border: 2px solid rgba(0, 0, 0, 0.25);
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.5),
                0 0 0 4px rgba(255, 255, 255, 0.1);
}

.btn2.leftbtn:active,
.btn2.rightbtn:active {
    transform: scale(1.05) translateY(-1px);
    box-shadow: 0 4px 16px rgba(31, 38, 135, 0.2),
                inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn2.leftbtn .icon,
.btn2.rightbtn .icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(20%) contrast(100%);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn2.leftbtn:hover .icon,
.btn2.rightbtn:hover .icon {
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(10%) contrast(100%);
    transform: scale(1.15);
}

.btn2.leftbtn:disabled,
.btn2.rightbtn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(0, 0, 0, 0.08);
}

.btn2.leftbtn:disabled:hover,
.btn2.rightbtn:disabled:hover {
    transform: none;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

/* Liquid Glass Morphism Button Styles - Light Background with Black Text */
.btn-color-1,
.btn-color-2 {
    backdrop-filter: url(#frosted);
    -webkit-backdrop-filter: url(#frosted);
    color: #000000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    border: 0px solid transparent;
}

/* Contact Info Button - Solid Glass Style */
.btn-color-1 {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6),
                0 16px 32px rgba(0, 0, 0, 0.12);
    font-weight: 500;
}

/* Download CV Button - Outlined Glass Style */
.btn-color-2 {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6),
                0 16px 32px rgba(0, 0, 0, 0.12);
    font-weight: 500;
}

.btn-color-1::before,
.btn-color-2::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 100px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.btn-color-1:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8),
                0 20px 40px rgba(0, 0, 0, 0.18);
    transform: translateY(-3px) scale(1.02);
    color: #000000;
}

.btn-color-2:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8),
                0 20px 40px rgba(0, 0, 0, 0.18);
    transform: translateY(-3px) scale(1.02);
    color: #000000;
}

.btn-color-1:hover::before,
.btn-color-2:hover::before {
    opacity: 1;
}

.btn-color-1:active {
    transform: translateY(-1px) scale(1);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7),
                0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-color-2:active {
    transform: translateY(-1px) scale(1);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7),
                0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Slider button entrance animation */
@keyframes slideButtonFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.btn2.leftbtn,
.btn2.rightbtn {
    animation: slideButtonFadeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.btn2.leftbtn {
    animation-delay: 0.1s;
}

.btn2.rightbtn {
    animation-delay: 0.2s;
}

/* Focus state for accessibility */
.btn2.leftbtn:focus,
.btn2.rightbtn:focus {
    outline: 3px solid rgba(0, 0, 0, 0.3);
    outline-offset: 3px;
}

.btn2.leftbtn:focus:not(:focus-visible),
.btn2.rightbtn:focus:not(:focus-visible) {
    outline: none;
}

/* Swipe Hint - Mobile Only - Minimal Glass Design */
.swipe-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #000000;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-align: center;
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: swipeHintPulse 2.5s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.swipe-hint span {
    display: inline-block;
    line-height: 1;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.swipe-hint svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 1;
    color: #000000;
    animation: swipeArrowMove 1.8s ease-in-out infinite;
}

.swipe-hint svg:first-child {
    transform: scaleX(-1);
    animation-delay: 0.9s;
}

.swipe-hint.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(15px) scale(0.9);
    pointer-events: none;
}

@keyframes swipeHintPulse {
    0%, 100% {
        opacity: 0.7;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.02);
    }
}

@keyframes swipeArrowMove {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.8;
    }
    50% {
        transform: translateX(4px);
        opacity: 1;
    }
}

/* Show swipe hint only on mobile */
@media screen and (max-width: 768px) {
    .swipe-hint {
        display: flex;
    }
    
    #projects,
    #achievements {
        position: relative;
    }

    .experience-details-container-project .btn2.leftbtn,
    .experience-details-container-project .btn2.rightbtn {
        display: none;
    }
}

.inline-btn-social-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* About Section */

#about{
    position: relative;
}

.about-containers2{
    gap:1rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
    /* margin-left: -3rem;
    margin-right: 3rem; */
    padding: 2rem 1rem;
    display:flex;
    flex-direction: row;
    overflow-x: scroll; 
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-mask: linear-gradient(90deg,#0000,#000 3% 97%,#0000)
}

.about-containers2::-webkit-scrollbar {
    display: none;
}

.about-containers1{
    margin-bottom: 1rem;
    margin-top: 3rem;
    display:flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 2rem;
    align-items: center;
}

.quote{
    
    font-weight: 700;
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: right;
    align-items: baseline;
    width: 100%;

}

.achieve{
    font-size: 70px;
    transform: rotate(-15deg);
    font-family: "Kaushan Script", cursive;
}


.imagine{
    font-size: 50px;
    font-family: "Playfair Display", serif;
}



.about-containers::-webkit-scrollbar {
    width: 0.2em;
}
 
.about-containers::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 0px black;
}
 
.about-containers::-webkit-scrollbar-thumb {
  background-color: lightgrey;
  outline: 1px solid white;
}

.about-details-container{
    justify-content: center;
    flex-direction: column;;
}

.about-containers,.about-details-container{
    display: flex;
}
.about-pic{
    border-radius: 2rem;
    /* border-style:groove; */
}

.about-pic:hover{
    transform: scale(1.05);
    transition: transform 0.3s ease;
    box-shadow: 0px 0.5rem 1rem rgba(0, 0, 0, 0.5);
}
.arrow{
    position:absolute;
    right:-5rem;
    bottom:2rem;
    cursor: pointer;
    height: 2rem;
}

.details-container{
    position: relative;
    padding:1.5rem;
    flex:1;
    background: white;
    border-radius: 2rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-color: rgb(163,163,163);
    text-align: center;
    display: inline-block; /* Ensures each container stays in a line */

}

.details-container p{
    font-size: 0.8rem;
}

.text-container {
    /* background-color: #ffffff;  */
    padding: 20px;
    margin: 0 auto; 
    line-height: 1.6; 
}
.text-container p {
    margin-bottom: 5px; 
    font-size: 0.85rem;
}


.card1 {
    position: relative;
    width: 100%;
    height: 200px;
    /* background: linear-gradient(-45deg, #faf9f8 0%, #f6f5f5 100% ); */
    border-radius: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    border: 1px solid rgba(156, 156, 156, 0.466);

  }

  .card2 {
    position: relative;
    width: 100%;
    height: 200px;
    /* background: linear-gradient(-45deg, #f3f3f3 0%, #fafafa 100% ); */
    border-radius: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    border: 1px solid rgba(156, 156, 156, 0.466);
  }
  
  .card svg {
    width: 100px;
    fill: #333;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
  }
  
  .card1:hover {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }

  .card2:hover {
    transform: rotate(-5deg) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }
  
  .card__content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    background-color: #fff;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);

  }
  
  .card:hover .card__content {
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 1;
  }
  
  .card__title {
    margin: 0;
    font-size: 20px;
    color: #333;
    font-weight: 500;
    text-align: center;
  }
  
  .card__description {
    margin: 10px 0 0;
    font-size: 13px;
    color: #777;
    line-height: 1.4;
    text-align: center;
    border-top: 1px solid #928f8f;
    padding-top: 10px;
  }
  
  .card:hover svg {
    scale: 0;
    transform: rotate(-45deg);
  }
  

/* Experience Section */

#skills{
    position: relative;
    background: 
        linear-gradient(
            to bottom, 
            rgba(255,255,255,1) 0%, 
            rgba(255,255,255,0) 10%, 
            rgba(255,255,255,0) 90%, 
            rgba(255,255,255,1) 100%
        ),
        linear-gradient(
            to top, 
            rgba(255,255,255,1) 0%, 
            rgba(255,255,255,0) 10%, 
            rgba(255,255,255,0) 90%, 
            rgba(255,255,255,1) 100%
        ),
        linear-gradient(
            to right, 
            rgba(255,255,255,1) 0%, 
            rgba(255,255,255,0) 10%, 
            rgba(255,255,255,0) 90%, 
            rgba(255,255,255,1) 100%
        ),
        linear-gradient(
            to left, 
            rgba(255,255,255,1) 0%, 
            rgba(255,255,255,0) 10%, 
            rgba(255,255,255,0) 90%, 
            rgba(255,255,255,1) 100%
        ),
        url('./assets/skill-background.png') center center/contain no-repeat;
    background-attachment: scroll;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: 70% center; /* Move image more right */
}

.experience-subtitle{
    color:rgb(85,85,85);
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: 2rem;
}

.experience-details-container{
    display:flex;
    justify-content: center;
    flex-direction: column;
}

.experience-details-container-project{
    display:flex;
    align-items: center;
    flex-direction: row;
    padding: 0 1.5rem;
    gap: 1rem;
    position: relative;
}

.experience-details-container-project .btn2.leftbtn {
    position: absolute;
    left: -30px;
    z-index: 10;
}

.experience-details-container-project .btn2.rightbtn {
    position: absolute;
    right: -30px;
    z-index: 10;
}

.article-container{
    display: flex;
    text-align: initial;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 1rem;
    justify-content:space-around;

}

article{
    display: flex;
    width:7rem;
    /* justify-content: space-around; */
    /* gap: 1rem; */
}

article .icon{
    cursor:default;
    
}

/* 
.category-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    margin-top: 5rem;
}

.category-btn {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.category-btn:hover {
    transform: scale(1.05);
}

.category-btn:active {
    transform: scale(0.95);
}

.category-btn.active {
    background-color: rgb(53,53,53);
    color: white;
}

.category-btn:not(.active) {
    background-color: #e2e8f0;
    color: #1a202c;
}

.skills-container {
    position: relative;
    overflow: hidden;
}

.skills-wrapper {
    overflow-x: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-mask: linear-gradient(90deg,#0000,#000 3% 97%,#0000)
}

.skills-wrapper::-webkit-scrollbar {
    display: none;
}

.skills-scroll {
    display: flex;
    transition: transform 0.3s ease;
}

.skill-card {
    background-color: rgb(250,250,250);
    border-radius: 0.5rem;
    padding: 0rem;
    margin: 0.5rem;
    min-width: 160px;
    height: 192px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: rgb(53,53,53) 0.05rem solid;
    border-color: rgb(163,163,163);
    transition: all 0.2s ease;
}

.skill-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.skill-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a202c;
    text-align: center;
    margin-bottom: 0.5rem;
}

.skill-level {
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.skill-level.Experienced {
    background-color: #c6f6d5;
    color: #22543d;
}

.skill-level.Intermediate {
    background-color: #fefcbf;
    color: #744210;
}

.skill-level.Basic {
    background-color: #fed7d7;
    color: #742a2a;
}


@media (max-width: 640px) {
    .category-buttons {
        flex-wrap: wrap;
    }

    .skill-card {
        width: 140px;
        height: 172px;
    }
} */


.category-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.category-btn {
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    color: #000;
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.category-btn.active {
    background-color: #333;
    color: #fff;
}
.skills-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    
}
.skills-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.skills-row.show {
    opacity: 1;
    transform: translateY(0);
}
.tech-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin: 10px;
    transition: transform 0.3s ease;
    position: relative;
}
.tech-icon:hover {
    transform: scale(1.1);
}
.tech-icon img {
    width: 60px;
    height: 60px;
}
.tech-icon span {
    margin-top: 8px;
    font-size: 12px;
    text-align: center;
}
.tech-icon .experience-level {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.25);
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 500;
    font-size: 0.8rem;
}

.tech-icon:hover .experience-level {
    opacity: 1;
}
.github-button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    
}
.github-button a {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 0.1rem solid #33333381;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}
.github-button a:hover {
    background-color: #dfdcdc;
}
.github-button svg {
    margin-right: 8px;
}

.counters {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    padding: 1.5rem 2.5rem;
    margin: 2rem auto;
    max-width: fit-content;
    
    /* Glassmorphism effect */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.counter-container {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s, transform 1s;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1rem;
}

.counter {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.label {
    font-size: 0.7rem;
    opacity: 0.8;
    text-align: center;
}


/* Projects Section */
 
#projects{
    position: relative;
}

color-container{
    border-color: rgb(163,163,163);
    background: rgb(250,250,250);
}
.info {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-items: center;
    align-items: center;
}

/* Keyframe animations for project description */
@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-30px) scale(0.95);
    }
    60% {
        opacity: 0.8;
        transform: translateX(5px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes fadeSlideOut {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    40% {
        opacity: 0.5;
        transform: translateX(-10px) scale(0.98);
    }
    100% {
        opacity: 0;
        transform: translateX(-30px) scale(0.95);
    }
}

.info2 {
    display: flex;
    opacity: 0; 
    max-height: 0; 
    width: 0px;
    overflow: hidden; 
    flex-direction: column;
    gap: 1rem;
    transform: translateX(-30px) scale(0.95);
    animation: fadeSlideOut 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.info1:hover ~ .info2 {
    width: 100%;
    max-height: 500px;
    animation: fadeSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Staggered animation for child elements */
.info2 h3 {
    font-weight: 500;
    font-size: medium;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}

.info1:hover ~ .info2 h3 {
    opacity: 1;
    transform: translateY(0);
}

.info2 p {
    width: 200px;
    font-size: 0.7rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease 0.35s, transform 0.4s ease 0.35s;
}

.info1:hover ~ .info2 p {
    opacity: 1;
    transform: translateY(0);
}

.info1 {
    transition: transform 0.3s ease;
}

.info1:hover {
    transform: translateX(-10px);
}

.project-img {
    border-radius: 2rem;
    width: 280px;
    height: auto;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.3s ease;
}

.project-img:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0px 0.5rem 1.5rem rgba(0, 0, 0, 0.4);
}


.project-title{
    margin: 1rem;
    color: black;
    font-size: 1.2rem;
}

.project-btn{
    color: black;
    border-color: rgb(163,163,163);
    width: fit-content;

}

.tech-stack{
    margin-top: 0.8rem;
    border-top: 1px solid rgb(163,163,163);
    padding-top: 5px;
}

.iconss{
    display: flex;
    justify-content: center;
    gap: 3px;
}


.arrow {
    animation: float 2s ease-in-out infinite;
}

/* Domain Chip for Projects */
.domain-chip {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
}

.domain-chip.ai-ml {
    background: linear-gradient(135deg, #673AB7, #3F51B5);
}

.domain-chip.fullstack {
    background: linear-gradient(135deg, #4CAF50, #2196F3);
}

.domain-chip.backend {
    background: linear-gradient(135deg, #FF9800, #F44336);
}

.domain-chip.computer-vision {
    background: linear-gradient(135deg, #E91E63, #9C27B0);
}

.domain-chip.system {
    background: linear-gradient(135deg, #607D8B, #455A64);
}

/*Achievements Section*/

#achievements{
    position: relative;
}

.achievement-container{
    padding:1rem;
    /* flex:content; */
    background: white;
    border-radius: 2rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-color: rgb(163,163,163);
    text-align: center;
    display: flex;
    flex-direction: row;
    gap:2rem;
    align-items: flex-start;
}

.achv-photo{
    border-radius: 2rem;
    width:400px;
    height: auto;

}

.achv-photo:hover{
    transform: scale(1.05);
    transition: transform 0.3s ease;
    box-shadow: 0px 0.5rem 1rem rgba(0, 0, 0, 0.5);
}

.achv-btn{
    color: black;
    border-color: rgb(163,163,163);
    width: fit-content;

}

.achv-photo-container{
    display: flex;
    text-align: initial;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 1rem;
    justify-content:space-around;
    margin-top: 2.5rem;
}

.place-container{
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    flex-direction: row;
    align-items: center;
    margin-bottom: 1rem;

}
.achv-title{
    color: black;
    font-size: 1.2rem;
    margin-bottom: 0rem;
    white-space: nowrap; /* Safari compatible property instead of text-wrap */
    font-weight: 500;
}
.achv-desc{
    text-align: justify;
}

/* Team Members with Overlapping Effect */
.team-members {
    display: flex;
    align-items: center;
    position: relative;
    padding: 10px 0;
}

.achv-member{
    height: 3.5rem;
    width: 3.5rem;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1;
    object-fit: cover;
}

/* Overlapping effect - each member shifts left */
.team-members .achv-member:not(:first-child):not([alt="line"]) {
    margin-left: -15px;
}

/* Line separator should not overlap and be styled differently */
.team-members .achv-member[alt="line"] {
    margin: 0 5px;
    border: none;
    box-shadow: none;
    z-index: 0;
    height: 2rem;
    width: auto;
    border-radius: 0;
    cursor: default;
}

/* Minimal hover effect - just elevation and scale */
.achv-member:not([alt="line"]):hover {
    transform: translateY(-8px) scale(1.15);
    z-index: 100;
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

/* When hovering over team-members, others fade slightly */
.team-members:hover .achv-member:not([alt="line"]):not(:hover) {
    opacity: 0.6;
    filter: grayscale(20%);
}

/* Contact Section */
#contact{
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 70vh;
    position: relative;
    background: 
        linear-gradient(
            rgba(255, 255, 255, 0.7), 
            rgba(255, 255, 255, 0.7)
        ),
        linear-gradient(
            to bottom, 
            rgba(255,255,255,1) 0%, 
            rgba(255,255,255,0) 10%, 
            rgba(255,255,255,0) 90%, 
            rgba(255,255,255,1) 100%
        ),
        linear-gradient(
            to top, 
            rgba(255,255,255,1) 0%, 
            rgba(255,255,255,0) 10%, 
            rgba(255,255,255,0) 90%, 
            rgba(255,255,255,1) 100%
        ),
        linear-gradient(
            to right, 
            rgba(255,255,255,1) 0%, 
            rgba(255,255,255,0) 10%, 
            rgba(255,255,255,0) 90%, 
            rgba(255,255,255,1) 100%
        ),
        linear-gradient(
            to left, 
            rgba(255,255,255,1) 0%, 
            rgba(255,255,255,0) 10%, 
            rgba(255,255,255,0) 90%, 
            rgba(255,255,255,1) 100%
        ),
        url('./assets/contact-background.png') center center/cover no-repeat;
    background-attachment: scroll;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 70% center; /* Move image more right */
    z-index: 1;
    

    
}

.contact-info-upper-container{
    display: flex;
    justify-content: center;
    border-radius: 2rem;
    border: rgb(53,53,53) 0.1rem solid;
    border-color: rgb(163,163,163);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    margin: 1rem auto;
    padding: 0.5rem;
    gap: 0.5rem;
}

.contact-info-container{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem;
    max-width: 400px;
}
.contact-info-container p{
    font-size: larger;
}

.contact-icon{
    cursor:default;
}

.email-icon{
    height: 2.5rem;
}

.batman{
    height: 5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;

}

/* Footer */
footer{
    height: 30vh;
    margin: 0 1rem;
}

footer p{
    text-align: center;
    font-size: 1rem;
    color: rgb(85,85,85);
}

.footer-note{
    font-size: 0.8rem;
}

.logo-img {
    height: 50px;
    animation: logo-spin 12s linear infinite;
    transition: animation 0.3s ease;
}


.logo-img-mobile {
    height: 40px;
    width: auto;
    transition: all 0.3s ease-in-out;
    animation: logo-spin 12s linear infinite;
}



/* Logo Rotation Animation */
@keyframes logo-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Loading Screen Styles */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-content {
    text-align: center;
    font-family: "DM Sans", sans-serif;
}

.loading-content h2 {
    font-size: 2.5rem;
    font-weight: 500;
    color: #000;
    margin-bottom: 0.5rem;
}

.loading-content p {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 2rem;
    font-style: italic;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #000;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* STAY Button Styling */
.stay-top-btn {
    background-color: white;
    border: 0.1rem solid rgba(163, 163, 163);
    border-radius: 2rem;
    padding: 1rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 200px;
    max-width: 90%;
    z-index: 1000;
    position: relative;
    overflow: hidden;
}

.stay-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stay-btn-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.stay-text {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 8px;
    color: #000;
    transition: transform 0.3s ease;
}

.morse-code {
    font-size: 1.6rem;
    letter-spacing: 2px;
    color: #000;
    opacity: 0;
    transform: translateY(-15px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    height: 0;
}

.stay-top-btn:hover .stay-text {
    transform: translateY(-8px);
}

.stay-top-btn:hover .morse-code {
    opacity: 0.8;
    transform: translateY(0);
    height: auto;
}

/* Scroll to Top Button with Progress Indicator */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: url(#frosted);
    -webkit-backdrop-filter: url(#frosted);
    border: 2px solid transparent;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6),
                0 16px 32px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.scroll-to-top:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8),
                0 20px 40px rgba(0, 0, 0, 0.18);
    transform: translateY(-5px) scale(1.05);
}

.scroll-to-top:active {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7),
                0 8px 20px rgba(0, 0, 0, 0.15);
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
    width: 60px;
    height: 60px;
}

.progress-ring-circle {
    stroke-dasharray: 164;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.1s linear;
    stroke: rgba(0, 0, 0, 0.15);
}

.progress-ring-bar {
    stroke-dasharray: 164;
    stroke-dashoffset: 164;
    transition: stroke-dashoffset 0.1s linear;
    stroke-linecap: round;
    stroke: rgba(0, 0, 0, 0.7);
}


.arrow-icon {
    width: 24px;
    height: 24px;
    color: rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.5));
}

.scroll-to-top:hover .arrow-icon {
    transform: translateY(-3px);
    color: rgba(0, 0, 0, 1);
}


