*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: sans-serif;
    color: white;
}

.container{
    background-color: rgb(4, 4, 57);
}

.header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgb(20, 20, 61);
    color: white;
    width: 100%;
    height: 50px;
    position: fixed;
    z-index: 1000;
}

.header .bx,#check{
    display: none;
}

.header span{
    padding-left: 100px;
}

.navbar a {
    text-decoration: none;
    padding: 10px;
    color: white;
    transition: 0.9s;
    /* Removed opacity: 0 to ensure links are visible */
    animation: slideTop 1s ease-in forwards;
    animation-delay: calc(0.1s * var(--i));
}

.navbar a:hover {
    color: #0ef;
}

.navbar{
    padding-right: 50px;
}

.home {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px;
    min-height: 90vh;
}

.home .left,.right{
    width: 50%;
}

.home .right img{
    height: 300px;
    width: 300px;
    border-radius: 50%;
}

.home .left{
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding-left: 100px;
    height: 100%;
    
}

.home span{
    color: #0ef;
}

.home h3,a{
    animation: slideleft 1s ease forwards;
}

.home h1,p{
    animation: slideDaye ease 1s forwards;
}
.home h1{
    font-size: 50px;
    font-weight: 600;
}
.home p{
    font-size: 20px;
    margin-top: 10px;
    font-weight: 400;
}
.abt-btn {
    animation: slideDaye ease 1s forwards;
}

.home .right{
    display: flex;
    justify-content: center;
    align-items: center;
}

.home .right .myphoto{
    position: absolute;
    height: 360px;
    width: 360px;
    /* right: 240px; */
}

.home .right .circle-photo{
    box-shadow: 0 0 5px cyan,
    0 0 25px cyan,0 0 50px cyan,
    0 0 100px cyan, 0 0 200px cyan;
    border: 5px solid cyan;
    /* position: absolute; */
}

.logo:hover{
    color:cyan;
    text-shadow: 0 0 5px cyan,
    0 0 25px cyan,0 0 50px cyan,
    0 0 100px cyan, 0 0 200px cyan;
    cursor: pointer; 
}

.icon-box img{
    height: 20px;
    width: 20px;
    border-radius: 50%;
}

.icon-box{
    margin-top: 15px;
    display: flex;
    gap: 10px;
}
.icon-box1 img{
    height: 20px;
    width: 20px;
    border-radius: 50%;
}

.icon-box1{
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.about {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.abt-btn{
    border-radius: 50px;
    font-weight: bold;
    padding: 20px;
    margin-top: 20px;
    font-size: .9rem;
    color: black;
    cursor: pointer;
}

.p1{
    font-size: 20px;
    margin-top: 10px;
    font-weight: 400;
    text-align: justify;
}

.about .about-details{
    width: 200px;
}
.h1-heading{
    font-size: 40px;
    width: auto;
}
.about a{
    background-color: skyblue;
    width: 150px;
    border: 2px solid black;
    padding: 10px;
    border-radius: 50px;
    font-weight: bold;
    font-size: .9rem;
    color: black;
    cursor: pointer;
    margin-top: 100px;
    text-decoration: none;
    text-align: center;
}
.about a:hover{
    box-shadow: 0 0 5px cyan,
    0 0 25px cyan,0 0 50px cyan,
    0 0 100px cyan, 0 0 200px cyan;
}
.skill-heading{
    text-align: center;
}
/* Skills Section */
.skills {
    text-align: center;
    height: 100vh;
    padding: 70px;
    margin: 20px;
    /* background: #e9e9e9; */
}

.skills-container {
    display: flex;
    justify-content: center;
    padding: 60px;
    flex-wrap: wrap;
    gap: 75px;
}

.skill-card {
    /* background: rgb(9, 7, 7); */
    padding: 10px;
    border-radius: 8px;
    box-shadow: 2px 4px 6px rgb(23, 199, 230);
    text-align: center;
    width: 120px;
}

.skill-card img {
    width: 60px;
    height: 60px;
}

/* Projects Section */
.projects {
    text-align: center;
    padding: 50px 20px;
}
.projects h1 {
    margin-bottom: 30px;
    margin-top: 30px;
}

.project-gallery {
    display: flex;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
}

.card {
    /* background: white; */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 2px 6px 10px rgb(34, 214, 230);
    width: 100%;
    max-width: 300px;
    text-align: center;
    cursor: pointer;
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}
.card h3 {
    margin-top: 15px;
    padding: 10px;
    font-size: 20px;
    color: #ffffff;
}
.card p {
    font-size: 14px;
    color: #ffffff;
    margin-top: 10px;
}

/* Education Section */
.education {
    text-align: center;
    height: 100vh;
    padding: 70px 20px;
    /* background: #f4f4f4; */
}

/* Timeline Styles */
.timeline {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 150px auto;
    width: 90%;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 5px;
    background: #b4adad;
    z-index: 0;
    animation: fadeInLine 1s ease-out;
}

.timeline-item {
    position: relative;
    text-align: center;
    top: 35%;
    left: 2%;
    margin: 0 20px;
}

.timeline-item:nth-child(odd) .content {
    transform: translateY(-100px);
}

.timeline-item:nth-child(even) .content {
    transform: translateY(100px);
}

.timeline-item .content {
    /* background: white; */
    /* border: 3px solid #ddd; */
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 6px rgb(23, 204, 244);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.timeline-item::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    background: #007bff;
    border: 3px solid white;
    border-radius: 50%;
    z-index: 2;
}

/* Certificate Slider Container */
.certificate-slider {
    background-color: transparent; /* Dark Blue */
    padding: 70px 20px;
    text-align: center;
  }
  
  /* Title Styling */
  .certificate-title {
    font-size: 2rem;
    /* font-weight: bold; */
    margin-bottom: 50px;
    text-transform: uppercase;
    /* letter-spacing: 1.5px; */
  }
  
  /* Slider Container */
  .slider-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
  }
  
  /* Individual Slide */
  .slide {
    padding: 15px;
  }
  /* Certificate Card */
  .certificate-card {
    /* background-color: #0e0e0e; Dark Gray */
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 4px 15px rgb(37, 202, 227); /* Gold Glow */
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  /* Certificate Image */
  .certificate-img {
    width: 100%;
    height: 230px;
    object-fit: auto;
    border-radius: 8px;
    border: 3px solid rgb(197, 195, 195); /* Gold Border */
  }
  


/* Content Styling */
.content h2 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #ffffff;
}
.left-contact{
    display: flex;
    align-items: center;
    padding-left: 100px;
    flex-direction: column;
    gap: 150px;
}
.content h4 {
    margin: 5px 0;
    font-size: 18px;
    color: #ffffff;
}

.content h5 {
    margin: 5px 0;
    font-size: 14px;
    color: #ffffff;
}

.content p {
    margin: 10px 0;
    font-size: 14px;
    color: #ffffff;
}

.first-cicle-box{
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 10px;
}

.icon-box .bx{
    border-radius: 50%;
    border: 2.5px solid skyblue;
    padding: 5px;
}

.icon-box .bx:hover{
    background-color: #0ef;
    color: #081b29;
    border: 2.5px solid black;
    box-shadow: 0 0 20px #0ef;
}
.icon-box1 .bx{
    border-radius: 50%;
    border: 2.5px solid skyblue;
    padding: 5px;
}

.icon-box1 .bx:hover{
    background-color: #0ef;
    color: #081b29;
    border: 2.5px solid black;
    box-shadow: 0 0 20px #0ef;
}

.logo{
    font-size: 20px;
    font-weight: 600;
    animation: slideRight 1s ease forwards;
}

.text{
    color: #0ef;
}

.contact{
    height: 90vh;
    margin-top: 100px;
}

.contact-details{
    display: flex;
    padding-top: 50px;
    gap: 100px;
}

.right-contact,.left-contact{
    width: 50%;
}

.left-contact{
    display: flex;
    padding-left: 100px;
    flex-direction: column;
    gap: 150px;
}

.cnt-para{
    margin: 10px 20px;
}

.contact-heading{
    text-align: center;
}
/* Contact Section */
.contact-container {
    background-color: rgb(20, 20, 61); /* Dark background */
    color: white;
    padding: 50px 20px;
    text-align: center;
}

.contact-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    color: cyan;
}

.contact-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: lightgray;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: -40px;
    gap: 15px;
    background-color: rgb(30, 30, 80); /* Slightly lighter background */
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 255, 255, 0.3);
}

.contact-item img.icon {
    width: 30px;
    height: 30px;
    filter: invert(1); /* Makes the icon white */
}

.contact-link {
    text-decoration: none;
    font-size: 1rem;
    color: white;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: cyan;
    text-decoration: underline;
}

.ip{
    width: 500px;
    height: 30px;
    background-color: rgb(84, 84, 84);
    color: black;
    padding-left: 10px;
    border-radius: 4px;
    border: 1px solid black;
}
.sb-btn{
    background-color: skyblue;
    border-radius: 50px;
    border: 2px solid black;
    font-weight: bold;

}

.sb-btn:hover{
    box-shadow: 0 0 5px cyan,
    0 0 25px cyan,0 0 50px cyan,
    0 0 100px cyan, 0 0 200px cyan;
}

.ft{
    display: flex;
    background-color: rgb(20, 20, 61);
    height: 35px;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
}

.contact{
    display: flex;
    margin-right: 0px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 50px;
}
.contact-src{
    display: flex;
    flex-direction: column;
    padding : 20px;
    gap: 20px;
}

.contact-src a{
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-src1 i{
    border: 2.5px solid skyblue;
    border-radius: 50%;
    padding: 5px;
}

.contact-src1 i:hover{
    background-color: #0ef;
    color: #081b29;
    box-shadow: 0 0 20px #0ef;
    border: 2.5px solid black;
}
.contact-src1{
    display: contents;
    flex-direction: column;
    gap: 10px;
}

.contact-src1 a{
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-src1 i{
    border: 2.5px solid skyblue;
    border-radius: 50%;
    padding: 5px;
}

.contact-src1 i:hover{
    background-color: #0ef;
    color: #081b29;
    box-shadow: 0 0 20px #0ef;
    border: 2.5px solid black;
}
@media screen and (max-width: 768px) {
    .header {
        height: 60px;
        padding: 0 20px;
    }

    .header span {
        padding-left: 20px;
        font-size: 18px;
    }

    .navbar {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: -190px;
        width: 100%;
        background: rgba(20, 20, 61);
        text-align: left;
        padding: 20px 0;
    }
    nav ul.active {
        display: flex;
    }

    .navbar a {
        display: block;
        padding: 10px;
    }

    .header .bx {
        display: block;
        font-size: 25px;
        cursor: pointer;
    }

    #check:checked ~ .navbar {
        display: flex;
    }

    .home {
            flex-direction: column; /* Puts .right (image) above .left (text) */
            padding: 50px 20px;
            text-align: center;
            min-height: auto;
        }
    
        .home .left, .home .right {
            width: 100%;
            padding: 15px;        }
    
        .home .right {
            order: -1; /* Moves the image section to the top */
            margin-top: 60px; /* Adds space between image and text */
        }
    
        .home .right img {
            height: 250px;
            width: 250px;
        }
    
        .home .left {
            order: 1; /* Moves the text section below */
            margin-top: 60px;
        }
    
        .home h1 {
            font-size: 35px;
        }
    
        .home p {
            font-size: 16px;
        }
        
        .icon-box1{
            margin-top: 15px;
            margin-left: 90px;
            align-items: center;
            display: inline-flex;
            gap: 20px;
        }
        .icon-box{
            margin-top: 40px;
            margin-left: 85px;
            display: flex;
            gap: 10px;
        }
    
    .about {
        flex-direction: column;
        text-align: center;
        padding: 50px 20px;
    }

    .about .about-details {
        width: 100%;
    }
    .h1-heading{
        font-size: 30px;
    }
    .p1{
        font-size: 20px;
        margin-top: 25px;
        margin-left: -40px;
        margin-right: -40px;
        font-weight: 400;
        text-align: justify;
    }
    .skills {
        padding: 50px 20px;
        height: auto;
    }
    .skills h2 {
        margin-bottom: 30px;
        margin-top: 30px;
    }

    .skills-container {
        flex-wrap: wrap;
        gap: 30px;
        padding: 0%;
    }

    .skill-card {
        width: 100px;
    }

    .projects {
        padding: 30px 10px;
    }

    .project-gallery {
        flex-direction: column;
        align-items: center;
    }

    .education {
        padding: 50px 10px;
        height: auto;
    }
    .education h1 {
        margin-bottom: 30px;
        margin-top: 30px;
    }

    .timeline {
        flex-direction: column;
        align-items: center;
    }

    .timeline-item {
        margin-bottom: 50px;
    }
    .timeline-item:nth-child(odd) .content {
        transform: translateY(-0px);
    }
    
    .timeline-item:nth-child(even) .content {
        transform: translateY(0px);
    }
    .timeline-item::before {
        display: none;
    }
    .timeline::before{
        display: none;
    }
    
    .contact {
        margin-top: 65px;
    }

    .contact-details {
        flex-direction: column;
        gap: 50px;
        text-align: center;
    }
    .contact-src{
        display: flex;
        flex-direction: column;
        padding-left: 35px;
        padding-top: 25px;
        gap: 10px;
    }
    

    .left-contact, .right-contact {
        width: 100%;
        padding-left: 0;
    }

    .contact-list {
        width: 100%;
        max-width: 100%;
    }

    .certificate-slider {
        padding: 50px 10px;
    }

    .certificate-img {
        height: 180px;
    }
}
