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

:root{
    --bg-color: #000000;
    --second-bg-color: #161616;
    --text-color: #fff;
    --main-color: #0096FF;
}

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

body{
    background: var(--bg-color);
    /* font-family: ; */
    color: var(--text-color);
}

html::-webkit-scrollbar{
    width: 0.8rem;
}

html::-webkit-scrollbar-track{
    background: var(--bg-color);
}

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

.header{
    position: fixed;
    top: 0;
    left: 0;
    padding: 3rem 9%;
    width: 100%;
    background: rgba(0,0,0,0.7);
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo{
    font-size: 3rem;
    color: var(--main-color);
    font-weight: 800;
    cursor: pointer;
}

.logo:hover{
    transition: 0.5s ease;
    transform: scale(1.1);
}

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

.navbar a:hover, .navbar a.active{
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
    transition: 0.3s ease;
}

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

@media (max-width:995px){
    #menu-icon{
        display: block;
    }
    .navbar{
        position: absolute;
        top: 100%;
        right: 0;
        width: 40%;
        border-left: 3px solid var(--main-color);
        border-bottom: 3px solid var(--main-color);
        padding: 1rem 3%;
        background-color: var(--second-bg-color);
        border-top: 0.1rem solid rgba(0,0,0,0.1);
        display: none;
    }
    .navbar.active{
        display: block;
    }
    .navbar.a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }
    .navbar a:hover, .navbar a.active{
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid var(--main-color);
    }
}

section{
    min-height: 100vh;
    padding: 5rem 9% 5rem;
}

.home{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background: var(--bg-color);
}

.home .home-content h1{
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

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



.home-img{
    border-radius: 50%;
}

.home-img img{
    position: relative;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
}

.home-img img:hover{
    transform: scale(1.01);
    filter: drop-shadow(0 0 25px var(--main-color));
}

.home-content p{
    font-size: 1.8rem;
    font-weight: 500;
}

.social-icon a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: 0.2rem solid var(--main-color);
    font-size: 2rem;
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
}

.social-icon a:hover{
    color: white;
    transform: scale(1.3);
    background: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
}

 .typing-text span{
    position: relative;
    color: var(--main-color);
}

/*.typing-text span::before{
    content: 'Nachiket';
    color:  var(--main-color);
    animation: words 20s infinite;
}

.typing-text span::after{
    content: '';
    position: absolute;
    background: var(--bg-color);
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid var(--bg-color);
    right: -8;
    animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
} */

/* @keyframes cursor{
    to{
        border-left: 3px solid var(--main-color);
    }
} */

/* @keyframes words{
    0%,20%{
        content: 'Nachiket Amlekar';
    }
    21%,40%{
        content: 'Web Developer';
    }
    41%,60%{
        content: 'Student';
    }
    61%,80%{
        content: 'Web Developer';
    }
    81%,100%{
        content: 'Nachiket Amlekar';
    }
}

@keyframes typing{
    10%,15%,30%,35%,50%,55%,70%,75%,90%,95%{
        width: 0;
    }
    5%,20%,25%,40%,45%,60%,65%,80%,85%{
        width: calc(100% + 8px);
    }
} */

.typing-text {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--main-color);
    width: 0;
    animation: typing 3s steps(20, end) forwards, blink 0.8s infinite;
}
  
@keyframes typing {
    0% { width: 0; }
    50% { width: 100%; }
    100% { width: 100%; } /* Hold the text */
}
  
  /* Restart animation after delay */
@keyframes restart {
    0%, 80% { opacity: 1; }
    100% { opacity: 0; }
}
  
.typing-container {
    animation: restart 6s infinite;
}

.about{
    text-align: center;
}

.skill-icons a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 6rem;
    height: 6rem;
    background: transparent;
    border: 0.2rem solid var(--main-color);
    font-size: 4.5rem;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
}

.skill-icons a:hover{
    color: white;
    transform: scale(1.3);
    background: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
}
.skill-icons a::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none; /* Prevents interfering with hover */
}

/* Show tooltip on hover */
.skill-icons a:hover::after {
    opacity: 1;
    background: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
}

@media (max-width: 1000px){
    .home{
        gap: 4rem;
    }
}

@media (max-width: 995px){
    .home{
        flex-direction: column;
        margin: 5rem 4rem;
    }
    .home-content h1{
        font-size: 5rem;
    }
    .home-img img{
        width: 70vw;
        margin-top: 4rem;
    }
}

.heading{
    font-size: 6rem;
    padding: 3rem;
}

.info{
    font-size: 2rem;
}

.info h3{
    font-size: 4rem;
    margin-top: 2rem;
}

.my-img{
    border-radius: 50%;
    padding: 2rem;
}

.my-img img{
    position: relative;
    width: 14vw;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
}

.my-img img:hover{
    transform: scale(1.01);
    filter: drop-shadow(0 0 25px var(--main-color));
}

.portfolio{
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slider-container {
    width: 800px;
    height: 500px;
    position: relative;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.text-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px;
    font-size: 14px;
    text-align: center;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 2;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
    background: rgba(0, 0, 0, 0.8);
}