*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}
body{
    background-color:#08203e;
}
.header{
    position: fixed;
    height: 8vh;
    width: 100%;
    padding: 20px 10px;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    z-index: 100;
}
.logo{
    position: relative;
    font-size: 25px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    cursor: default;
    opacity: 0;
    animation: slideRight 1s ease forwards;
}
.navbar a{
    display: inline-block;
    font-size: 23px;
    font-weight: 300;
    color: white;
    text-decoration: none;
    margin-left: 35px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1px 10px;
    border-radius: 30px;
    opacity: 0;
    animation: slideTop .5s ease forwards;
}
.navbar a:hover {
    color:black;
    background-color: aqua;
    box-shadow: 0 0 10px aqua;
    transform: translateY(-3px) scale(1.02);

    
}
.home{
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    padding: 70px 10% 0;
    column-gap: 30px;
}
.homecontent{
    max-width: 600px;
}
.homecontent h3{
    font-size:32px;
    font-weight: 700;
    margin-bottom: 30px;
}
.homecontent h3 span{
    color: aqua;
    font-weight: 600;
}
.homecontent h1{
    font-size:56px ;
    font-weight: 700;
    margin: -3px 0;
}
.homecontent p{
    font-size: 20px;
}
.icons{
    display: flex;
    column-gap: 20px;
    font-size: 30px;
    align-items: flex-start;
    margin-top: 10%;
}
.icons a{
    transition: all;
    height: 40px;
    width: 42px;
    border: 2px solid aqua;
    border-radius: 50%;
    align-items: center;
    justify-items: center;
}
.icons a:hover{
    color: #081b29;
    box-shadow: 0 0 20px aqua;
    background-color: aqua;
    transform: translateY(-3px) scale(1.02);
}
.photo{
    width: 50%;
    height:75%;
    box-shadow:2px 3px 50px aqua;
    border-radius: 50%;
    background-image: url(photos/krishna.jpg);
    background-position: center;
    background-repeat: none;
    background-size: cover;
}
#more{
    display: inline-block;
    padding: 10px 20px;
    margin: 20px 0px;
    border-radius:40px;
    color: black;
    text-decoration: none;
    font-size: 20px;
    background-color: aqua;
}
#more:hover{
    box-shadow: 0 0 50px aqua;
    transform: translateY(-3px) scale(1.02);
}
.about{
    display: grid;
    width: 100vw;
    grid-template-columns: repeat(2,1fr);
    align-items: center;
    gap:1.5rem;
}
.about-img{
    height: 60%;
    width: 60%;
    padding-bottom: 30px;
    margin-left: 70px;
    border-radius: 50%;
    background-image: url(photos/krishna.jpg);
    background-repeat: none;
    background-position: center;
    background-size: cover;
    box-shadow: 0 0 30px aqua;
}

.about-text h2{
    font-size: 60px;
}
.about-text h2 span{
    color: aqua;
}
.about-text h4{
    font-size: 20px;
    font-weight: 600;
    color: white;
    line-height: 1.7;
    margin: 15px 0 30px;
}
.about-text p{
    color: aliceblue;
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 4rem;
}
.skills {
    padding: 60px 20px;
    text-align: center;
}

.skills h2{
    font-size: 60px;
    margin-bottom: 30px;
}
.skills h2 span{
    color: aqua;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 20px;
    justify-content: center;
}

.skill-card {
    background :black;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    margin: 0 40px;
}

.skill-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 0 20px rgba(0, 114, 255, 0.3);
}

.skill-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: white;
}

.skill {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.skill img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.skill:hover img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px #0072ff);
}

.skill span {
    flex: 1;
    text-align: left;
    font-weight: 500;
    color: white;
}

.progress {
    background: #e0e0e0;
    height: 10px;
    border-radius: 10px;
    overflow: hidden;
    width: 40%;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, aqua, rgb(199, 19, 103));
    transition: width 2s ease-in-out;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.percent{
    position: relative;
    z-index: 2;
}
/* Category colors */
.prog-bar {
    background: linear-gradient(90deg, #0072ff, #00c6ff);
}
.web-bar {
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
}
.db-bar {
    background: linear-gradient(90deg, #11998e, #38ef7d);
}
.tool-bar {
    background: linear-gradient(90deg, #9d50bb, #6e48aa);
}

/* Profiles */
.profiles {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: aqua;
    padding: 10px 18px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color:black
}

.profile-btn img {
    width: 22px;
    height: 22px;
}

/* Brand colors */
.leetcode { background:rgb(32, 20, 160)}
.hackerrank { background: #1ba94c; }
.github { background: yellow; }

.profile-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.projects {
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
    height: 100%;
}

.projects h2{
    font-size: 60px;
    text-align: center;
    margin-bottom: 30px;
}
.projects h2 span{
    color: aqua;
}
.main-text {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    margin: 0 40px;
}
.project {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background :black;
    padding: 20px 40px;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.project:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 0 20px rgba(0, 114, 255, 0.3);
}

.project h2{
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin: 0 10px;
    padding-bottom: 10px;
}
.img1{
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    background-image: url(photos/movie.jpg);
    background-repeat: none;
    background-position: center;
    background-size: cover;
    border-radius: 10px;
}
.img2{
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    background-image: url(photos/portfolio.png);
    background-repeat: none;
    background-position: center;
    background-size: cover;
    border-radius: 10px;
}
.img3{
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    background-image: url(photos/e-commerce.jpeg);
    background-repeat: none;
    background-position: center;
    background-size: cover;
    border-radius: 10px;
}
.img4{
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    background-image: url(photos/weather.jpg);
    background-repeat: none;
    background-position: center;
    background-size: cover;
    border-radius: 10px;
}
.project p{
    color: white;
    font-size: 15px;
    text-align: center;
    margin-bottom: 10px;
}
.tech{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.tech a{
    border: 2px solid rgb(27, 38, 103);
    padding: 5px 5px;
    border-radius:15px;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tech a:hover{
    transform: scale(1.1);
    box-shadow: 0 0 5px aqua;
}
.git{
    text-decoration: none;
    padding: 0;
    color: white;
    border: 2px solid rgb(27, 38, 103);
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.git:hover{
    transform: scale(1.1);
    box-shadow: 0 0 5px aqua;
}
.contact{
    padding: 80px 20px;
    text-align: center;
    width: 100%;
    height: 100%;
}
.contact h2{
    font-size: 60px;
    margin-bottom: 20px;
}
.contact h2 span{
    color: aqua;

}
.contact-container{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    justify-content: center;
    gap: 40px;
}
.contact-text{
    padding: 20px;
    text-align: start;
    background-color: black;
    color: white;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.contact-text h2{
    font-size: 30px;
}
.contact-info h3{
    font-size: 25px;
}
.contact-info p{
    font-size: 20px;
}
.contact-info p a{
    font-size: 20px;
    text-decoration: none;
}
.contact-text:hover{
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 0 20px rgba(0, 114, 255, 0.3);
}
.contact-icon{
    display: flex;
    gap:20px;
    margin-top: 20px;
    font-size: 30px;
}
.contact-icon a{
    border: 2px solid rgb(16, 16, 122);
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.contact-icon a:hover{
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 0 15px aqua;
}
.contact-form{
    padding: 20px 40px;
    background:black;
    border-radius: 15px;
}
.contact-form form{
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}
.contact-form form input,form textarea,form button{
    font-size: 20px;
    padding: 5px 10px;
    border-radius: 15px;
}
.contact-form form button{
    transform:0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.contact-form form button:hover{
    background-color: aqua;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 0 15px aqua;
}
@keyframes slideRight{
    0%{
        transform: translateX(-100px);
        opacity: 0;
    }
    100%{
        transform: translateX(0px);
        opacity: 1;
    }
}
@keyframes slideTop{
    0%{
        transform: translateY(-100px);
        opacity: 0;
    }
    100%{
        transform: translateY(0px);
        opacity: 1;
    }
}
