:root {
    --bg-color: #040f26;
    --second-bg-color:#252C37;
    --text-color: #fff;
    --main-color: #1cc6e4;
    --box-color: #4B5567;
    --scrol-color: #001634;
}

body {
    display: block;
    color-scheme: dark;
    background: radial-gradient(circle at top center, rgba(6, 59, 111, .5) 0, transparent 50%, transparent 100%);

    background-color: var(--bg-color);
    background-attachment: fixed;
}

body.light{
    --bg-color: rgba(173, 190, 224, 0.7);
    --second-bg-color: #8195b7;
    --text-color: black;
    --main-color: #1cc6e4;
    --box-color: #8195b7;
    --scrol-color: #9eb8e5;

    background: radial-gradient(circle at top center, rgba(27, 115, 206, 0.5) 0, transparent 50%, transparent 100%);

    background-color: var(--bg-color);
    background-attachment: fixed;
}

/* Button Styles */
    #btnProject {
        display: inline-block;
        margin: 30px auto;
        padding: 12px 28px;
        background: #0ef;
        border-radius: 40px;
        box-shadow: 0 0 10px rgba(0, 238, 255, 0.5);
        font-size: 16px;
        color: #1f242d;
        letter-spacing: 1px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
        text-align: center;
    }

    #btnProject:hover {
        background: #1f242d;
        color: #0ef;
        box-shadow: 0 0 20px rgba(0, 238, 255, 0.8);
        transform: translateY(-3px);
    }

    /* Center the button */
    .project-category {
        text-align: center;
    }

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

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--second-bg-color);
    font-size: 1.3rem;
    color: var(--text-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
    border: var(--text-color) 2px solid;
}

.btn:hover {
    background: rgba(179, 54, 255, 0.3);
    box-shadow: 0 0 1rem var(--main-color);
}

.name {
    font-size: 2.2rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: default;
    margin-left: 1.5rem;
}

section{
    padding: 8rem 2% 2rem;
    overflow: hidden;

}

div {
    display: block;
}

h3 {
    display: block;
    margin-block-start: 0;
    margin-inline-start: 0;
    margin-inline-end: 0;
    unicode-bidi: isolate;
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--text-color);
    font-style: italic;
    /* font-family: "Caveat", cursive;*/
}

h1 {
    font-size: 5.3rem;
    font-weight: 700;
    line-height: 1.3;
    display: block;
    margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0;
    margin-inline-end: 0;
    color: var(--main-color);

}


#cursor{
    z-index:10000;
    width:20px;
    height:20px;
    border: 2px solid var(--text-color);
    padding: -10px;
    position:fixed;
    pointer-events: none;
    border-radius:100%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;

}

#cursor>div{
    width:10px;
    height:10px;
    background-color: var(--text-color);
    border-radius:100%;
    animation: bubble 2s ease-out infinite;
}

@keyframes bubble {
    0% {
        transform: scale(0);
        opacity: 9;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}



/*---------------------------Scrolling Design-------------------------------------*/
.scrolling-page {
    height: 100vh;
    background-color: var(--scrol-color);
    position: absolute;
    top: 0;
    width: 100%;
    transform: translateY(0);
    transition: transform 0.5s ease;
    overflow-y: auto;
    z-index: 50;
    
}

.scrolling-page.open {
    transform: translateY(-100%);
}

.scrolling-page h1 {
    text-align: center;
    margin-top: 40vh;
    margin-bottom: 0;
    transform: translateY(-50%);
}

.scrolling-page h1 span {
    font-weight: 500;
    color: var(--text-color);
    font-size: 2rem;
    letter-spacing: 1.5rem;
}

/* Graduation Cap on "R" */
.graduation-cap {
    position: relative;
    display: inline-block;
}

.graduation-cap::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    mix-blend-mode: multiply;
    filter: brightness(0) invert(1);
    background-image: url('https://cdn-icons-png.flaticon.com/512/0/422.png');
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 1;
}

.graduation-cap::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 15px;
    background-color: #f8f3f3;
    z-index: 0;
}

/*---------------------------Header Design-------------------------------------*/
.header {
    background-color: rgba(29, 33, 46, 0.9);
    backdrop-filter: blur(10px);
    height: 90px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
}

.header-container {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

#logo {
    background-image: url("/assests/images/logo.png");
    background-size: cover;
    background-position: center;
    width: 40px;
    height: 50px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.name {
    color: var(--main-color);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-center {
    display: flex;
    gap: 1.5rem;
    margin-right: auto;
    /* Pushes nav-right to the far right */
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: 2rem;
}

.contact-btn {
    background: var(--main-color);
    color: #fff !important;
    padding: 1rem 2rem;
    /* Increased from previous size */
    border-radius: 30px;
    font-weight: 600 !important;
    font-size: 1.2rem;
    /* Increased font size */
    box-shadow: 0 4px 15px rgba(28, 198, 228, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    gap: 0.8rem;
    /* Increased icon spacing */
    position: relative;
    overflow: hidden;
    margin-left: 3rem;
    /* Pushes it further right */
    min-width: 160px;
    /* Ensures consistent size */
}

.contact-btn i {
    font-size: 1.1rem;
    /* Slightly larger icon */
    transition: transform 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(28, 198, 228, 0.5);
    background: #1ab7d8;
    padding: 1rem 2.2rem;
    /* Slight expansion on hover */
}

.contact-btn span {
    display: inline-block;
    vertical-align: middle;
}

@media (max-width: 1200px) {
    .contact-btn {
        margin-left: 0;
        width: 100%;
        justify-content: center;
        display: flex;
    }
}
.nav-right {
    margin-left: auto;
    /* Pushes it all the way to the right */
    padding-left: 2rem;
    /* Adds some breathing room */
}
.nav-right {
    margin-left: auto; /* Pushes it all the way to the right */
    padding-left: 2rem; /* Adds some breathing room */
}

/* Other existing styles remain the same */
.navbar a {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.navbar a:not(.contact-btn):after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--main-color);
    transition: width 0.3s ease;
}

.navbar a:hover:not(.contact-btn),
.navbar a.active:not(.contact-btn) {
    color: var(--main-color);
}

.navbar a:hover:not(.contact-btn):after,
.navbar a.active:not(.contact-btn):after {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(29, 33, 46, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: right 0.5s ease;
        padding: 2rem;
    }

    .navbar.active {
        right: 0;
    }

    .nav-center,
    .nav-right {
        flex-direction: column;
        width: 100%;
        margin-left: 0;
    }

    .contact-btn {
        width: 100%;
        justify-content: center;
    }

    .menu-btn {
        display: block !important;
    }
}

/*---------------------------Mode Design-------------------------------------*/
.mode{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-right: 5px;
}

input[type = 'checkbox']{
    position: absolute;
    opacity: 0;
}

.moon{
    font-size: 1.5rem;
    color: var(--text-color);
    transition: 0.5s ease;

}

.sun{
    position: absolute;
    font-size: 1.5rem;
    color: var(--text-color);
    transform: scale(0);
    transition: 0.5s ease;
}

.toggle{
    position: absolute;
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    z-index: 10;
    transition: 0.5s;
}

input[type = 'checkbox']:checked~.moon{
    transition-delay: 0s;
    transform: rotate(360deg) scale(0);
}

input[type = 'checkbox']:checked~.sun{
    transition-delay: 0s;
    transform:  scale(1) rotate(360deg);
}



/*---------------------------Home Design-------------------------------------*/
.home {
    margin-top: 8vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 8%;
    position: relative;
    min-height: 90vh;
}

.home-content {
    max-width: 650px;
    position: relative;
    z-index: 2;
}

.greeting {
    color: var(--main-color);
    font-size: 2rem;
    /* Increased from 1.5rem */
    margin-bottom: 0.8rem;
    font-weight: 400;
}

#myName {
    font-size: 4.5rem;
    /* Increased from 3rem */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

#myName span {
    color: var(--main-color);
    position: relative;
}

#myName span::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--main-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

#myName:hover span::after {
    transform: scaleX(1);
    transform-origin: left;
}

.typing {
    color: var(--text-color);
    font-size: 2rem;
    /* Increased from 1.5rem */
    font-weight: 400;
    margin-bottom: 2rem;
    display: inline-block;
}

.short-bio,
.full-bio {
    color: var(--text-color);
    font-size: 1.4rem;
    /* Increased from 1.1rem */
    line-height: 1.7;
    margin-bottom: 2rem;
}

.read-more-btn {
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.2rem;
    /* Increased from 1rem */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.read-more-btn:hover {
    background: var(--main-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.home-image {
    position: relative;
    width: 450px;
    /* Increased from 350px */
    height: 550px;
    /* More rectangular proportion */
}

#homePic {
    width: 120%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    position: relative;
    z-index: 2;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease;
}

.image-frame {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--main-color);
    border-radius: 10px;
    z-index: 1;
    transition: all 0.5s ease;
}

.home-image:hover #homePic {
    transform: translate(-15px, -15px);
}

.home-image:hover .image-frame {
    transform: translate(15px, 15px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .home {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 3rem;
    }

    .home-content {
        margin-top: 3rem;
    }

    .home-image {
        width: 380px;
        height: 480px;
    }

    #myName {
        font-size: 3.5rem;
    }

    .greeting {
        font-size: 1.8rem;
    }

    .typing {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .home-image {
        width: 300px;
        height: 380px;
    }

    #myName {
        font-size: 2.8rem;
    }
}
/*---------------------------About Design-------------------------------------*/
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    position: relative;
    overflow: hidden;
    /* Ensures the background animation doesn't overflow */
}

.about::before,
.about::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(120, 71, 255, 0.2);
    /* Tomato color with transparency */
    border-radius: 50%;
    z-index: -1;
    /* Place behind the content */
    animation: float 6s ease-in-out infinite;
}

.about::before {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    /* Start immediately */
}

.about::after {
    bottom: 10%;
    right: 5%;
    animation-delay: 3s;
    /* Start after 3 seconds */
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.1);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

/* Additional Background Shapes */
.about .about-section::before,
.about .about-section::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(30, 144, 255, 0.2);
    /* Dodger Blue with transparency */
    border-radius: 50%;
    z-index: -1;
    animation: float 4s ease-in-out infinite;
}

.about .about-section::before {
    top: 20%;
    left: 20%;
    animation-delay: 1s;
}

.about .about-section::after {
    bottom: 20%;
    right: 20%;
    animation-delay: 2s;
}

/* Additional Colorful Shapes */
.about .about-content::before,
.about .about-content::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(55, 57, 61, 0.2);
    /* Lime Green with transparency */
    border-radius: 50%;
    z-index: -1;
    animation: float 5s ease-in-out infinite;
}

.about .about-content::before {
    top: 30%;
    left: 30%;
    animation-delay: 1.5s;
}

.about .about-content::after {
    bottom: 30%;
    right: 30%;
    animation-delay: 2.5s;
}

/* Existing Styles */
.about-section {
    display: flex;
}

.about-content {
    padding-top: 10vh;
}

.about-content>h1>span {
    color: var(--text-color);
}

.about-img {
    position: relative;
    padding-right: 2vw;
    margin-left: 4rem;
    margin-right: 4rem;
    perspective: 1000px;
}

.about-img>img {
    width: 35vw;
    height: 80vh;
    object-fit: cover;
    border-radius: 20px;
    transform-style: preserve-3d;
    position: relative;
    z-index: 2;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
    filter: grayscale(20%) contrast(110%);
    border: 5px solid rgba(255, 255, 255, 0.1);
}
.about-img::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--main-color) 0%, transparent 70%);
    border-radius: 20px;
    z-index: 1;
    top: -15px;
    left: -15px;
    opacity: 0.7;
    transition: all 0.5s ease;
}
.about-img::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--main-color);
    border-radius: 20px;
    z-index: 3;
    top: 20px;
    left: 20px;
    transition: all 0.5s ease;
}
.about-img:hover>img {
    transform: rotateY(10deg) rotateX(5deg) scale(1.03);
    filter: grayscale(0%) contrast(100%);
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.4);
}
.about-img:hover::before {
    top: -20px;
    left: -20px;
    opacity: 0.5;
}

.about-img:hover::after {
    top: 15px;
    left: 15px;
}

/* Floating Elements */
.about-img .floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

.about-img .floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: -30px;
    right: -30px;
    background: rgba(28, 198, 228, 0.2);
    animation-delay: 0s;
}

.about-img .floating-element:nth-child(2) {
    width: 60px;
    height: 60px;
    bottom: -20px;
    left: -20px;
    background: rgba(120, 71, 255, 0.2);
    animation-delay: 2s;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-img {
        margin: 0 auto 3rem;
        width: 70%;
    }

    .about-img>img {
        width: 100%;
        height: auto;
        max-height: 500px;
    }

    .about-img::before,
    .about-img::after {
        display: none;
    }
}

/* Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}
.heading {
    text-align: center;
    font-size: 4.2rem;
}

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

.about-content h3 {
    font-size: 2.3rem;
    color: var(--main-color);
    font-style: normal;
}

.about-content ul {
    font-size: 1.5rem;
    margin: 2rem 0 3rem;
    width: 80%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    list-style: none;
}

.about-content>ul>li {
    display: contents;
}

.about-content>ul>li>span:first-child {
    font-weight: 500;
    color: var(--text-color);
}

.about-content>ul>li>span:last-child {
    color: var(--main-color);
    font-weight: 400;
}

.about-content button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border-radius: .8rem;
    transition: .5s ease;
    color: white;
}

/*---------------------------Education-------------------------------------*/

.education{

}

.education-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.education-grid-item{
    display: flex;!important;
    align-items: center;
    gap: 1rem;
}

.education-grid-item img{
    width: 120px;
}

.education-item-text>h2{
    font-size: 1.5rem;
    text-align: start;
    color: var(--text-color);
}

.education-item-text>h3{
    font-size: 1.2rem;
    text-align: start;
    color: var(--main-color);
}

.education-item-text>h4{
    font-size: .9rem;
    text-align: start;
    color: var(--text-color);
}



/*---------------------------Skills Design-------------------------------------*/

.skills-title{
    font-size: 2rem;
    display: grid;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    text-align: center;
    margin-top: 3rem;
}

.skills div h2{
    color: var(--text-color);
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.grid-item{
    display: flex;!important;
    align-items: center;
    gap: .75rem;
}

.grid-item img{
    width: 100px;
}

.item-text{
    text-align: start;
}


/*---------------------------Certification Design-------------------------------------*/


.certification-container{
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 2rem;
    padding: 3rem;
    overflow: hidden;
}

.certification-box{
    background: var(--second-bg-color);
    padding: 1rem 1rem 1rem;
    border-radius: 1rem;
    box-shadow: 0 0 1.4rem var(--main-color);
    max-height: 350px;
    overflow: hidden;

}

.certification-box:hover{
    cursor: pointer;
}

.certification-box img{
    width: 100%;
    height: 70%;
    object-fit: cover;
    border-radius: 0.5rem;

}

.certification-box img:hover{
    transform: scale(1.1);
    transition: .9s ease;
}

.certification-box h4{
    padding: 1rem 0;
    font-size: 1rem;
    color: var(--text-color);
}

#hackerrank div{
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

#sololearn div{
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

#uom div{
    grid-template-columns: repeat(4, minmax(0, 1fr));
}


/*---------------------------Services Design-------------------------------------*/

.services {
    padding: 4rem 0;
    background: var(--bg-color);
}

.services h1 {
    margin-bottom: 5rem;
    text-align: center;
    font-size: 3.3rem;
    color: var(--text-color);
}

.services h1>span {
    color: var(--main-color);
}

.services-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 4rem;
}

.services-container .services-box {
    flex: 1 1 25rem;
    background: var(--box-color);
    padding: 2rem;
    border-radius: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.services-container .services-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.services-box .icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--main-color);
    border-radius: 50%;
    transition: background 0.3s ease;
}

.services-box:hover .icon-wrapper {
    background: var(--text-color);
}

.services-box img {
    height: 40px;
    transition: transform 0.3s ease;
}

.services-box:hover img {
    transform: scale(1.2);
}

.services-box h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.services-box p {
    font-size: 1.1rem;
    color: white;
    opacity: 0.9;
    line-height: 1.6;
}

.services-box .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.services-box:hover .overlay {
    opacity: 1;
}

/*---------------------------Projects Design-------------------------------------*/

/* Keep original tab styles */
.project-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem auto;
    max-width: 800px;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    background: var(--second-bg-color);
    color: var(--text-color);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover {
    background: var(--main-color);
    color: var(--bg-color);
    transform: translateY(-3px);
}

.tab-btn.active {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--main-color);
}

.project-category {
    display: none;
    animation: fadeIn 0.5s ease;
}

.project-category.active {
    display: block;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Keep original project box styles */
.projects-container {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.projects-box {
    background: var(--second-bg-color);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 0 1rem var(--main-color);
    transition: all 0.4s ease;
    overflow: hidden;
}

/* Original image size */
.projects-box img {
    width: 100%;
    height: 250px;
    /* Keep original height */
    object-fit: cover;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

/* Reduced hover scale effect */
.projects-box:hover img {
    transform: scale(1.03);
    /* Reduced from 1.05 to 1.03 */
}

/* Rest of the styles remain unchanged */
.projects-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--main-color);
}

.projects-box h5 {
    padding: 1rem 0 0.5rem;
    color: var(--main-color);
    font-size: 1rem;
    font-weight: 600;
}

.projects-box h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 738px) {
    .projects-container {
        grid-template-columns: 1fr;
    }
}


/*---------------------------Assignments Design-------------------------------------*/

.assignments-container{
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem 2rem;
    padding: 3rem;
    overflow: hidden;
}

.assignments-box{
    background: var(--second-bg-color);
    padding: 1rem 1rem 1rem;
    border-radius: 1rem;
    box-shadow: 0 0 1.4rem var(--main-color);
    height: fit-content;
    overflow: hidden;

}

.assignments-box img{
    width: 100%;
    height: 70%;
    object-fit: cover;
    border-radius: 0.5rem;

}

.assignments-box h5{
    padding: 1rem 0;
    color: var(--main-color);
}

.assignments-box h4{
    font-size: 1rem;
    color: var(--text-color);
}

#btnAssignments{
    margin-left: 50%;
    transform: translateX(-50%);
    width: 50vw;
    margin-top: 3rem;
    text-align: center;
}

.btn-box {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
}

.assignment-btn{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    background: var(--main-color);
    border-radius: .4rem;
    transition: .5s ease;
    color: white;
}

.assignment-btn:hover {
    background: rgba(179, 54, 255, 0.3);
    box-shadow: 0 0 1rem var(--main-color);
    cursor: pointer;
}



/*---------------------------Blogs Design-------------------------------------*/

.blogs-container{
    margin: 1.5rem;
    display: block;
    padding: 1rem;
    overflow: hidden;
}

.blogs-box {
    /*background: var(--second-bg-color);*/
    padding: 1rem 1rem 1rem;
    border-radius: 1rem;
    border-bottom: 3px solid var(--main-color);
    /*box-shadow: 0 0 1.4rem var(--main-color);*/
    max-height: 200px;
    overflow: hidden;
    margin: 0 0 2rem 0;

}

.blogs-box:hover{
    cursor: pointer;
    scale: 1.05;
}

.blogs-box a{
    display: flex;
}

.blogs-box img{
    width: 22%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.5rem;

}

.blogs-text{
    padding: 0 1rem;
}

.blogs-text h3{
    font-size: 2rem;
    color: var(--text-color);
    font-style: normal;
    font-weight: bold;
}

.blogs-text h4{
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: normal;
}

.blogs-text h5{
    font-size: 1.2rem;
    padding: 0.7rem 0;
    color: var(--main-color);
}

#btnBlogs{
    margin-left: 50%;
    transform: translateX(-50%);
    width: 50vw;
    text-align: center;
    margin-bottom: 3rem;
}




/*---------------------------Gallery Design-------------------------------------*/

/*.gallery-container{
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1rem;
    padding: 1rem;
    overflow: hidden;
}

.gallery-box{
    height: 400px;
    width: 100px;
    background: var(--second-bg-color);
    border-radius: 2rem;
    box-shadow: 0 0 1.4rem var(--main-color);
    max-height: fit-content;
    overflow: hidden;
    text-align: center;
}

.scaled{
    width: fit-content;
    z-index: 5;
    transition: all 0.5s ease-in-out;
}

.gallery-box img{
    border-radius: 2rem;
    object-fit: cover;
}*/


.wrapper {
    border: none;
    position: relative;
    width: 410px;
    height: 340px;
    display: block;
    margin: 100px auto;
    perspective: 1000px;
}

.carousel {
    width: 100%;
    height: 100%;
    position: absolute;
    transform: translateZ(288px);
    transform-style: preserve-3d;
    transition: transform 1s;
}

.cell {
    position: absolute;
    width: 200px;
    height: 200px;
    left: 115px;
    top: 100px;
    border: none;
    transition: transform 1s, opacity 1s;
}

.cell img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    /* This will make the image circular */
    object-fit: cover;
    /* Ensures the image covers the entire circle without distortion */
}

.cell:nth-child(1) {
    transform: rotateY(0deg) translateZ(288px);
}

.cell:nth-child(2) {
    transform: rotateY(40deg) translateZ(288px);
}

.cell:nth-child(3) {
    transform: rotateY(80deg) translateZ(288px);
}

.cell:nth-child(4) {
    transform: rotateY(120deg) translateZ(288px);
}

.cell:nth-child(5) {
    transform: rotateY(160deg) translateZ(288px);
}

.cell:nth-child(6) {
    transform: rotateY(200deg) translateZ(288px);
}

.cell:nth-child(7) {
    transform: rotateY(240deg) translateZ(288px);
}

.cell:nth-child(8) {
    transform: rotateY(280deg) translateZ(288px);
}

.cell:nth-child(9) {
    transform: rotateY(320deg) translateZ(288px);
}

/*---------------------------Contact me Design-------------------------------------*/
.contact-me {
    min-height: 60vh;
    padding: 10rem 14% 1rem;
    background: var(--bg-color);
}

.contact-me .contact-container {
    flex: 1 1 30rem;
    background: var(--box-color);
    padding: 3rem 2rem 4rem;
    border-radius: 2rem;
    text-align: center;
    border: .2rem solid var(--main-color);
    box-shadow: 0 0 1.4rem var(--main-color);
    margin-bottom: 8rem;
}

.heading span {
    color: var(--text-color);
}

.contact-form {
    max-width: 50rem;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    font-size: 1.5rem;
    color: var(--text-color);
    background: var(--bg-color);
    border: .2rem solid var(--main-color);
    border-radius: 1rem;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.form-group textarea {
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.5rem;
    color: var(--text-color);
    background: var(--main-color);
    border-radius: 1rem;
    border: .2rem solid var(--main-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--bg-color);
    color: var(--main-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.social-media {
    margin-top: 3rem;
}

.social-media p {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.fa {
    padding: 1.2rem;
    font-size: 1.8rem;
    text-align: center;
    text-decoration: none;
    border: .2rem solid var(--main-color);
    border-radius: 50%;
    color: var(--main-color);
    background-color: var(--box-color);
    box-shadow: 0 0 1rem var(--main-color);
    transition: all 0.3s ease;
}

.fa:hover {
    color: var(--text-color);
    background-color: var(--main-color);
    transform: translateY(-0.3rem);
    box-shadow: 0 0 1.5rem var(--main-color);
}



/*---------------------------Footer Design-------------------------------------*/

.footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: #13171F;
}

.footer-text p {
    font-size: 1.3rem;
    color: white;
}

.footer div button{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border-radius: .8rem;
    transition: .5s ease;
}

.footer div button a{
    font-size: 1.7rem;
    color: var(--text-color);
}

.footer div button:hover{
    box-shadow: 0 0 1rem var(--main-color);

}

.header.sticky{
    border-bottom: .1rem solid rgba(0,0,0,.2);
}




/*---------------------------Hidden to show animation-------------------------------------*/

.hidden-left{
    opacity: 0;
    filter: blur(5px);
    transform: translateX(-100%);
    transition: all 1s;
}

.hidden-right{
    opacity: 0;
    filter: blur(5px);
    transform: translateX(100%);
    transition: all 1s;
}

.hidden-top{
    opacity: 0;
    filter: blur(5px);
    transform: translateY(-100%);
    transition: all 1s;
}

.hidden-bottom{
    opacity: 0;
    filter: blur(5px);
    transform: translateY(100%);
    transition: all 1s;
}

.show{
    opacity: 1;
    filter: blur(0);
    transform: translate(0);

}