*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
}
:root{
    --bg-color: #080808;
    --second-bg-color: #131313;
    --text-color: white;
    --main-color: rgb(142, 233, 246);
    --background-color: 
    radial-gradient(at 18% 99%, rgb(28, 28, 25) 0px, transparent 50%) repeat scroll 0% 0%, 
    radial-gradient(at 97% 8%, rgb(16, 17, 17) 0px, transparent 50%) repeat scroll 0% 0%, 
    radial-gradient(at 79% 82%, rgb(33, 32, 32) 0px, transparent 50%) repeat scroll 0% 0%,
    radial-gradient(at 96% 10%, rgb(23, 20, 24) 0px, transparent 50%) repeat scroll 0% 0%,    
    radial-gradient(at 42% 20%, rgb(30, 34, 34) 0px, transparent 50%) repeat scroll 0% 0%,
    radial-gradient(at 4% 49%, rgb(16, 16, 16) 0px, transparent 50%) repeat scroll 0% 0%, rgba(0, 0, 0, 0) radial-gradient(at 57% 33%, rgb(141, 233, 246) 3px, hwb(245 65% 20%) 50%) repeat scroll 0% 0%;
}

.dark-theme{
    --bg-color: #080808;
    --second-bg-color: #131313;
    --text-color: white;
    --main-color: rgb(142, 233, 246);
    --background-color: #080808;
}
html{
    font-size: 60%;
    overflow-x: hidden;
}
body{
    color: var(--text-color);
    background: var(--background-color);

}
#info-background{
    color: var(--text-color);
    background-image: url("images/background.webp")
}
.box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: flex-end;
}
.box .group{
    position: relative;
    transform: rotate(-30deg);
    display: flex;
    flex-direction: column;
    gap: 1 em;
}
.iconContainer{
    display: flex;
    gap: 0.5em;
    margin-bottom: 0.5em;
    font-size: 4em;
    width: 200vw;
    animation: bganimate 80s linear infinite;
}
@keyframes bganimate{
    0%, 100%{
        transform: translateX(-100vw);
    }
    50%{
        transform: translateX(0vw);
    }
}
.iconContainer:nth-child(even){
    animation: bganimate-reverse 80s linear infinite;
}
@keyframes bganimate-reverse{
    0%, 100%{
        transform: translate(0vw);
    }
    50%{
        transform: translate(-100vw);
    }
}
.iconContainer i{
    cursor: default;
    user-select: none;
    transition: 5s;
    color: transparent;
    opacity: 0.35;
    
}
.iconContainer i:hover{ 
    color: var(--main-color);
    transition: 0s;
    -webkit-text-stroke: 1px transparent;
    opacity: 1;
    text-shadow: 0 0 50px var(--main-color);
}
.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 4rem 12% 4rem;
    background: rgba(60, 59, 61, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}
.logo{
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
}
.logo:hover{
    transform: scale(1.1);
}

.logo span{
    text-shadow: 0 0 25px var(--main-color);
}
#moonicon{
    background-color: transparent;
    border: 1px solid var(--main-color);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    padding: 5px;
    box-sizing: border-box;
    margin-left: 4rem;
    transform: translateY(5px);
}
#moonicon:hover{
    color: var(--text-color);
    transform: scale(1.3);
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
}

.navbar a{
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}
.navbar a:hover{
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

#menu-icon{
    font-size: 3.6rem;
    color: var(--main-color);
    display: none;
}
section{
    padding: 10rem 12%;
    
}
.home{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10rem;    
    min-height: 100vh;
}

.home-content{
    display: flex;
    flex-direction: column;
    align-items: baseline;
    text-align: left;
    justify-content: center;
    margin-top: 3rem;
    z-index: 1;
    padding: 10px 30px 30px 30px;
    border-radius: 4rem;
    background-color: rgba(70, 57, 59, 0.8);
    box-shadow: 0 0 25px var(--main-color);
    overflow: hidden;
    align-items: center;
    text-align: center;
}
.home-content::after {
    content: '';
    display: absolute;
    width: 110%;
    height: 110%;
    background: linear-gradient(145deg, rgba(255, 0, 0, 0.5), rgba(0, 0, 255, 0.5));
    z-index: -1;
}

span{
    color: var(--main-color);
}
.logo span{
    color: var(--main-color);
}
.home-content h3{
    margin-bottom: 2rem;
    margin-top: 1rem;
    font-size: 3.5rem;
}
.home-content h1{
    font-size: 7rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
}

.container{
    position: relative;
    width: 32vw;
    height: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: 0.4s ease-in-out;
}
.container:hover{
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color),
                0 0 100px var(--main-color);
} 

.home-content p{ 
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
    max-width: 1000px
}
.social-icons a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: transparent;
    border: 2px solid var(--main-color);
    font-size: 2.5rem;
    border-radius: 50%;
    color:var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease-in-out;
}
.social-icons a:hover
{
    color: var(--text-color);
    transform: scale(1.3)translateY(-5px);
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
}
.btn, .project-btn{
    display: inline-block;
    padding: 1rem 2.8rem;
    border-radius: 4rem;
    font-size: 1.6rem;
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease-in-out;
    cursor: pointer;
    background: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    color: black;
}
.btn:hover{
    transform: scale(1.05);
    box-shadow: 0 0 50px var(--main-color);
}
.btn-group{
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.btn-group a:nth-of-type(2){
    background-color: black;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    box-shadow: 0 0 25px transparent;
}
.btn-group a:nth-of-type(2):hover{
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
    color: black;
}

.heading{
    font-size: 5rem;
    text-align: center;
    margin: 2rem 0;
}
.aboutme h2{
    color: white;
    margin-top: 0;
    margin-bottom: 70px;
}
.aboutme-text{
    font-size: 15px;
    text-align: center;
    margin-top: 3rem;
}
.aboutme-container{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 0px 2.5rem;
    align-items: start;
}
.aboutme-containers{
    display: flex;
}
.aboutme-box {
    min-height: 250px;
    background-color: rgba(0,0,0,.2);
    border-radius: 3rem;
    border: 5px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: 0.4s ease-in-out;
    
}
.aboutme-pic{
    width: 30vw;
    height: 30vw;
    border-radius: 10%;
    margin-right: 40px;
    cursor: pointer;
    transition: 0.4s ease-in-out;
}
.aboutme-h4{
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--main-color);
}
.aboutme-icon1, .aboutme-icon3, .arrow{
    width: 22px;
}
.aboutme-icon2{
    width: 15px;
}
.aboutme-icon1, .aboutme-icon2{
    padding: 20px 0px 10px;
}
.aboutme-skills{
    grid-column: 1;
    grid-row: 2;
    text-align: center;
    background-color: rgba(0,0,0,.2);
    border-radius: 3rem;
    padding: 10px;
}
.aboutme-box:hover{
    background: linear-gradient(145deg, white, --main-color);
    color: var(--background-color);
    border: 5px solid var(--main-color);
    transform: scale(1.03);
}
.aboutme-box:nth-child(2){
    grid-column: 2;
    grid-row: 1/ span 2;
    height: 100%;
}
.education, .award{
    padding: 15px;
    font-size: 15px;
}
.award p{
    font-size: 15px;
}
.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(--main-color);
    left: calc(50% - 1px);
}
.timeline-item{
    width: 100%;
    position: relative;
    margin-bottom: 10px;
}
.timeline-item:last-child{
    margin-bottom: 0;
}
.timeline-item:nth-child(odd){
    padding-right: calc(50% + 30px);
}
.timeline-item:nth-child(even){
    padding-left: calc(50% + 30px);
}

.timeline-dot{
    height: 21px;
    width: 21px;
    background-color: var(--main-color);
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color);
    position: absolute;
    left: calc(50% - 8px);
    border-radius: 50%;           
}
.timeline-date{
    font-size: 15px;
    font-weight: 500;
    color: white;
    margin: 6px 0 15px;
}
.timeline-content{
    background-color: var(--bg-color);
    border: 3px solid var(--main-color);
    padding: 30px 50px;
    border-radius: 4rem;
    box-shadow: 0 0 10px var(--main-color);
    cursor: pointer;
    transition: 0.3s ease in-out;
    font-size: 15px;
}
.timeline-content:hover{
    transform: scale(1.05);
    box-shadow: 0 0 25px;
}
.timeline-content h3{
    font-size: 20px;
    margin: 0 0 10px;
    font-weight: 800;
}
.timeline-content p{
    line-height: 22px;
}
.timeline-content li{
    margin-left: 20px;
}
::-webkit-scrollbar{
    width: 15px;
}
::-webkit-scrollbar-thumb{
    background-color: var(--main-color);
}
::-webkit-scrollbar-track{
    background-color: var(--bg-color);
    width: 50px;
}
.project-box{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.project-box img, .temp{
    width: 30rem;
    height: 20rem;
    border-radius: 10px;
    border: 3px solid var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
}
.proj_desc1 {
    font-size: 18px;
    color: #4a5dc7;
}

.proj_desc2 {
    font-size: 18px;
    color: #4a5dc7;
}

.wrapper{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}
.project-item{
    min-height: 300px;
    max-width: 450px;
    background: rgba(0, 0, 0, 0.7);
    border: 3px solid rgba(238, 238, 238, 0.2);
    border-radius: 2rem;
    padding: 30px 60px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    color: white;
    transition: 0.4s ease-in-out;
}
.project-item:hover{
    border: 3px solid var(--main-color);
    transform: translateY(-10px)scale(1.03);
    box-shadow: 0 0 50px var(--main-color)
}
.project-item h2{
    font-size: 2.8rem;
}
.project-header {
    margin-bottom: 4rem;
}
.project-title {
    margin-right: auto;   
}
#soundsurf h1{
    font-size: 6rem;
    color: var(--text-color);
}
.project-date {
    font-size: 2.4rem;
    color: #666;
}
.projectFont {
    font-weight: bold;
    font-size: 20px;
}

#soundsurf{
    max-width: 800px;
    margin: 10rem auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#soundsurf .project-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin-bottom: 3rem;
}

#soundsurf p {
    width: 100%;
    font-size: 1.8rem;
    line-height: 1.6;
    text-align: justify;
    margin-bottom: 5rem;
}

.project-btns{
    display: flex;
    align-items: center;
    gap: 5rem;
}
.project-btn:hover{
    transform: scale(1.05);
    box-shadow: 0 0 50px var(--main-color);
}
/* Event Collection Section */
.events-container {
    max-width: 1200px;
    margin: auto;
    padding: 4rem 2rem;
    text-align: center;
}

.events-container h1 {
    font-size: 4rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
}

/* Event Card */
.event-card {
    background: rgba(0, 0, 0, 0.8);
    border: 3px solid rgba(238, 238, 238, 0.2);
    border-radius: 2rem;
    padding: 2rem;
    text-align: center;
    color: white;
    transition: 0.4s ease-in-out;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.event-card:hover {
    transform: translateY(-10px) scale(1.05);
    border: 3px solid var(--main-color);
    box-shadow: 0 0 50px var(--main-color);
}

/* Event Image */
.event-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Event Title */
.event-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

/* Event Date */
.event-date {
    font-size: 1.6rem;
    color: #888;
    margin-bottom: 1rem;
}

/* Event Description */
.event-description {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 2rem;
}

/* Event Link */
.event-btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.6rem;
    border-radius: 1rem;
    border: 2px solid var(--main-color);
    background: var(--main-color);
    color: black;
    font-weight: bold;
    transition: 0.3s ease-in-out;
}

.event-btn:hover {
    background: transparent;
    color: var(--main-color);
}


.footer{
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background-color: var(--second-bg-color);
}
.footer .social{
    text-align: center;
    padding-bottom: 25px;
    color: var(--main-color);
}
.footer .social a{
    font-size: 25px;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    width: 42px;
    height: 42px;
    line-height: 42px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    margin: 0 10px;
    transition: 0.3s ease-in-out
}
.footer .social a:hover{
    transform: scale(1.2)translateY(-10px);
    background-color: var(--main-color);
    color: black;
    box-shadow: 0 0 25px var(--main-color);
}
.footer ul{
    margin-top: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: center;
}
.footer ul li a{
    color: white;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease in out;
}
.footer ul li a:hover{
    border-bottom: 3px solid var(--main-color);
}
.footer ul li{
    display: inline-block;
    padding: 0 15px;
}
.footer .copyright{
    margin-top: 50px;
    text-align: center;
    font-size: 16px;
    color: white;
}
.block2{
    display: none;
}

.loader{
    position: fixed;
    top: 50%;
    left:50%;
    transform: translate(-50%, -50%);
    padding: 100px;
    background: #313c7e;
    border-radius: 50%;
    box-shadow: 45px 45px 45px rgba(0,0,0,.8);
    z-index: 5;
    overflow: hidden;
}
.loader:before{
    content:'';
    position: absolute;
    top: 0;
    left: -50%;
    width: 100%;
    height: 100%;
    background:rgba(207, 60, 182, 0.3);
}
.heart{
    position: relative;
    width: 100px;
    height: 100px;
    background: rgb(134, 69, 132);
    transform: rotate(45deg) translate(10px, 10px);
    animation: animate 1s linear infinite;

}
.heart:before{
    content: '';
    width: 100%;
    height: 100%;
    background: rgb(134, 69, 132);
    position: absolute;
    top: -50%;
    left: 0;
    border-radius: 50%;
}
.heart:after{
    content: '';
    width: 100%;
    height: 100%;
    background: rgb(134, 69, 132);
    position: absolute;
    bottom: 0%;
    right: 50%;
    border-radius: 50%;
}
@keyframes animate{
    0%{
        transform: rotate(45deg) translate(10px,10px) scale(1);
    }
    25%{
        transform: rotate(45deg) translate(10px,10px) scale(1);
    }
    30%{
        transform: rotate(45deg) translate(10px,10px) scale(1.4);
    }
    50%{
        transform: rotate(45deg) translate(10px,10px) scale(1.2);
    }
    70%{
        transform: rotate(45deg) translate(10px,10px) scale(1.4);
    }
    90%{
        transform: rotate(45deg) translate(10px,10px) scale(1);
    }
    100%{
        transform: rotate(45deg) translate(10px,10px) scale(1);
    }
}

@media(max-width:1350px){
    .project .wrapper{
        grid-template-columns: repeat(2, 1fr);
    }

    .cybercare-img{
        display:none;
    }
}
/*Tablet and smaller desktop screens*/
@media (max-width: 1200px){
    html {
        font-size: 55%;
    }

    .home {
        gap: 5rem;
    }
    .aboutme-pic{
        display: none;
    }
    .container {
        width: 40vw;
        height: 40vw;
    }

    .wrapper {
        gap: 2rem;
    }

    .project-item {
        padding: 20px 30px;
    }
    
}
@media(max-width: 991px){
    header{
        padding: 2rem 3%;
    }
    
    .timeline-items::before{
        left: 7px;
    }
    .timeline-item:nth-child(odd){
        padding-right: 0;
        text-align: left;
    }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even){
        padding-left: 37px;
    }
    .timeline-dot{
        left: 0;
    }
    .project .wrapper{
        grid-template-columns: repeat(2, 1fr);
    }
    .contact form{
        flex-direction: column;
    }
    footer{
        padding: 2rem 3%;
    }
}

@media(max-width: 895px){
    #menu-icon{
        display: block;
    }
    
    .navbar{
        position: absolute;
        top: 100%;
        right: 0;
        width: 50%;
        padding: 1rem 3%;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(20px);
        border-bottom-left-radius: 2rem;
        border-left: 2px solid var(--main-color);
        border-bottom: 2px solid var(--main-color);
        display: none;
    }   
    .navbar.active{
        display: block;
    }
    .navbar a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        color: white;
    }
    .home{
        flex-direction: column-reverse;
        margin-top: 5rem 4rem;
    }
    .home-content{
        margin-top: 0;
    }
    .home-content h3{
        font-size: 2.6rem;
    }
    .home-content h1{
        font-size: 8rem;
    }   
    .home-content p{
        max-width: 600px;
        margin: 0 auto;
        font-weight: bold;
    }
    section{
        padding: 10rem 3% 2rem;
    }
    .project .wrapper{
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 700px){
    .project .wrapper {
        grid-template-columns: 1fr;
    }
    
}
/* Mobile phones */
@media (max-width: 480px) {
    .header {
        padding: 1.5rem 4%;
    }
    .home-content h1 {
        font-size: 4rem;
    }
    .home-content h3 {
        font-size: 2.5rem;
    }
    .text-animation {
        font-size: 2.5rem;
        min-width: 200px;
    }
    .btn-group {
        flex-direction: column;
        gap: 1rem;
    }

    .social-icons a {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 2rem;
    }

    .timeline-content {
        padding: 15px 25px;
    }
    .project-item {
        padding: 15px;
    }
    .footer ul li {
        display: block;
        margin: 1rem 0;
    }
    .footer .social a {
        margin: 0 5px;
    }
}

/* Handle very small screens */
@media (max-width: 350px) {
    .home-content h1 {
        font-size: 3.5rem;
    }

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

    .btn {
        padding: 0.8rem 2rem;
        font-size: 1.4rem;
    }
}

/* Improve navigation for touch devices */
@media (hover: none) {
    .navbar a:hover {
        background: var(--main-color);
        color: var(--bg-color);
        padding: 0.5rem 1rem;
        border-radius: 2rem;
    }

    .btn:active,
    .social-icons a:active {
        transform: scale(0.95);
    }
}