*{
    margin: 0;
    padding: 0;
}
body{
    background-color: rgb(0, 0, 5);
    font-family: "Ubuntu", sans-serif;
    color: #fff;
}
nav{
    display: flex;
    background-color: rgb(6, 6, 31);
    box-shadow: 10px 10px 54px rgba(41, 40, 58, 0.6);
    justify-content:space-around;
    align-items: center;
    height:9vh;
    text-decoration: none;
    z-index: 999;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
}
nav ul{
    display: flex;
    justify-content: center;
    text-decoration: none;

}
nav ul li{
    list-style:none;
    color: #fff;
    margin: 0 23px;
}
nav ul li a{
    color: #fff;
    text-decoration: none;
    font-family: "Ubuntu", sans-serif;;
}
nav ul li a:hover{
    color: lavender;
} 
 
.left{
    font-size:32px;
}

.main{
    display:flex;
    margin-top: 60px;
}
.leftabt img{
    width:50%;
    border-radius:30% 70% 70% 30% / 30% 30% 70% 70%;
    margin-top: 30px;
    margin-left: 35px;

   
}

.leftabt{
    margin-top: 30px;
    
}

.rightabt{
    margin-top: 38px;
    margin-left:180px;

}
.rightabt p{
    margin-top: 20px;
    color: #b0b0b0;
    line-height:1.5rem;
    word-spacing:3px;
}
.rightabt #btn{
    margin-top: 15px;
    border: 0;
    background: none;
    color: #1a1a1a;
    background-color:  rgb(187, 182, 17);
    height:7vh;
    width: 24%;
    border-radius:5px;
    font-size: 16px;
    font-family: "ubuntu","sans-sarif";
    cursor: pointer;
    word-spacing:5px;
}
.rightabt #btn:hover{
    background-color:rgb(230, 225, 100) ;
}

.rightfooter #btn{
    margin-top:20px;
    border: 0;
    background: none;
    color: #1a1a1a;
    background-color:  rgb(187, 182, 17);
    height:6vh;
    width:40%;
    border-radius:5px;
    font-size: 16px;
    font-family: "ubuntu","sans-sarif";
    cursor: pointer;
    word-spacing:5px;
}
.rightfooter #btn:hover{
    background-color:rgb(230, 225, 100) ;
    
}


/* Main container */
#education {
    padding: 50px 20px;
    background-color: rgb(3, 3, 17);
    color: white;
    text-align: center;
    margin-top: 35px;
}

/* Heading style */
#education h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    color: rgb(187, 182, 17); /* Matches accent color for zigzag */
}

/* Timeline container */
.education-timeline {
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0 auto;
    max-width: 800px;
}
.education-item:hover{
    box-shadow: 10px 10px 54px rgba(41, 40, 58, 0.6);

}

/* Vertical line in the center */
.education-timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background: rgb(187, 182, 17); /* Accent color */
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

/* Individual education card */
.education-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgb(6, 6, 27); /* Dark background for cards */
    color: #b0b0b0; /* Light gray text */
    border-radius: 10px;
    padding: 20px 30px;
    margin: 20px 0;
    width: 300px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 2;
    border: 1px solid rgb(46, 46, 65); /* Subtle border */
}

/* Dots for connection points */
.education-item::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgb(187, 182, 17); /* Accent color */
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

/* Left-aligned cards (even) */
.education-item:nth-child(even) {
    align-self: flex-start;
    margin-left: 0;
}

.education-item:nth-child(even)::before {
    right: -26px;
}

/* Right-aligned cards (odd) */
.education-item:nth-child(odd) {
    align-self: flex-end;
    margin-right:0;
    
}

.education-item:nth-child(odd)::before {
    left: -26px;
    
    
}



/* Zigzag path between cards */
.zigzag {
    width: 20px;
    height: 50px;
    background-color: rgb(187, 182, 17); /* Accent color */
    clip-path: polygon(0 50%, 50% 0, 100% 50%, 50% 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .education-item {
        width: 90%;
        align-self: center !important;
    }

    .education-item::before {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%);
    }

    .education-timeline::before {
        left: 50%;
    }

    .zigzag {
        height: 30px;
    }
}


.footer{
    background-color:rgb(3, 3, 17);
    width: 100%; 
    height:150%;
    margin-top: 35px;
    margin-bottom: 25px;
}
.centerfooter{
    background-color:rgb(3, 3, 17);
    text-align: center;
    justify-content: center;
}

.containerfooter{
    display: flex;
    justify-content: space-around;
    margin-top: 45px;
    
}
.centerfooter h1{
    padding-top: 38px;
}
.centerfooter p{
    color: #b0b0b0;
    line-height:1.5rem;
    word-spacing:3px;
    margin-top: 10px;
    
    
}

.leftfooter p{  
    color: #b0b0b0;
    margin-bottom: 25px;

}
.rightfooter{
    display:inline;
    width:30%;
    text-align: start;
    padding: 25px 15px;
    box-shadow: 20px 20px 34px rgba(0, 0, 0, 0.03);
    border-radius:10px;
    margin-bottom: 35px;
    background-color: rgb(6, 6, 27);

}
.rightfooter:hover{
    box-shadow: 10px 10px 54px rgba(41, 40, 58, 0.6);

}
.rightfooter #namein,#textin{
    display:flex;
    height: 40px;
    width:30vh;
    border-radius: 10px;
    margin-top: 20px;
    margin-right: 15%;
    justify-content: space-between;
    text-align: center;
    background-color: #b0b0b0;
    color: #000;
    font-size: 18px;
    font-weight: 700;
    border:0;
}
.rightfooter #textcm{
    margin-top: 10px;
}
.rightfooter #btn{
    margin-top:20px;
    border: 0;
    background: none;
    color: #1a1a1a;
    background-color:  rgb(187, 182, 17);
    height:6vh;
    width:40%;
    border-radius:5px;
    font-size: 16px;
    font-family: "ubuntu","sans-sarif";
    cursor: pointer;
    word-spacing:5px;
}
.rightfooter #btn:hover{
    background-color:rgb(230, 225, 100) ;
    
}