body{
    margin: 0%;
    padding: 0%;
    height: 100vh;
    background-color: #0a0a0a;
    background: 
        radial-gradient(circle at 1px 1px, #1f1f1f 1px, transparent 0),
        #0a0a0a;
    background-size: 20px 20px;
    width: auto;
}
section{
    scroll-snap-align: start;
}
header{
    background-color: #111111;
    width: 100%;
    height: auto;
}
.logo{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bolder;
    margin-left: 10px;

}
nav ul{
    list-style:none;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1em;   
    /* border: yellow 2px solid;  */
}
nav ul li{
    margin: 5px;
}
a{
    text-decoration: none;
    color: rgb(69, 135, 69);
    transition: 0.3s;
    display: inline-block;
}
a:hover{
    text-decoration: underline;
    color: rgb(81, 228, 81);
    text-shadow: 0 0 8px rgb(81,228,81);
    transform: scale(1.1);
    border: 1px dashed wheat;
    border-radius: 20px;
    padding: 5px;
}

nav .active{
    color: rgb(187, 21, 33);
    text-decoration:underline rgb(69, 135, 69);
    text-underline-offset: 4px;

}
nav .active:hover{
    text-decoration: underline rgb(187, 21, 33);
    color: rgb(81, 228, 81);
    text-shadow: 0 0 8px rgb(81,228,81);
}

p{
    /* color: rgb(216, 172, 88); */
    color: rgb(200, 255, 200);
    font-size: 1em;
}
.left{
    padding-left: 50px;
    border: 1px solid white;
}
h2{
    color: white;
    text-shadow: cadetblue 0 0 8px;
    border: solid 2px wheat;
    width: fit-content;
    padding: 5px;
    margin-left: 45%;
    border-radius: 20px;
    animation: slide 2s ease-in-out forwards;
}
@keyframes slide{
    0%{
        transform: translateX(-45vw);
    }
    90%{
        transform: translateX(10vw);
    }
    100%{
        transform: translateX(0);
        text-shadow: 0 0 25px rgb(52, 187, 245);
    }
}
h3{
    color: wheat;
    text-align: center;
}
.copyright{
    color: white;
    text-align: end;
    justify-self: end;
    width: fit-content;
    border: white 1px solid;
    font-size: 0.8em;
}

.education {
    border: rgb(0, 255, 0) solid 2px;
    border-radius: 15px; ;
    display: flex;
    gap : 40px;
    justify-content: center;
    align-items: center;
    padding: 40px;
    max-width: 80vw;
    margin: auto;
    padding: 30px 20px;
}

.edu-item {
   display: flex;
    flex-direction: column;
    gap: 1px;
    background: #111;
    border-left: 4px solid rgb(81, 228, 81);
    border-radius: 20px;
    padding: 15px;
    max-height: fit-content;
    max-width: 800px;
    width: 50vw;
    margin: 20px 0;
    box-shadow: 0 0 10px rgba(81, 228, 81, 0.1);
    transition: 0.3s; 
}

.edu-item:hover {
    transform: translateX(10px);
    box-shadow: inset 0 0 20px rgba(81, 228, 81, 0.3);
}
.education h3,.left h2,.skills h3{
    text-decoration: underline;
}
.edu-item p{
    transition: 0.3s;
}
.edu-item p:hover{
    transform: translateX(5px);
    color: rgb(81, 228, 81);
}
.skills{
    border: rgb(0, 255, 0) solid 2px;
    border-radius: 15px; ;
    display: flex;
    gap : 40px;
    justify-content: center;
    padding: 40px;
    max-width: 800px;
    margin: auto;
    padding: 30px 20px;
}
.skill-item{
    background: #111;
    border-left: 4px solid rgb(81, 228, 81);
    border-radius: 20px;
    max-height: max-content;
    width: auto;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 0 10px rgba(81, 228, 81, 0.1);
    transition: 0.3s;
}
.skill-item:hover{
    transform: translateX(10px);
    box-shadow: inset 0 0 20px rgba(81, 228, 81, 0.3);
}
 .skill-item ul {
    list-style:circle;
    padding-left: 10px;
    margin: 10px 0;
}

.skill-item ul li {
    color: rgb(200, 255, 200);
    padding: 6px 0;
    transition: 0.3s;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(81, 228, 81, 0.2);
}
.skill-item ul li:hover {
    transform: translateX(5px);
    color: rgb(81, 228, 81);
}

/* It is for the Certificates. */
.carousel-container {
    text-align: center;
    padding: 40px 0;
}

.carousel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.card {
    min-width: 250px;
    height: 160px;
    background: #111;
    border-radius: 15px;
    opacity: 0.5;
    transform: scale(0.8);
    transition: 0.5s;
}

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

.card.active {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 20px rgba(81, 228, 81, 0.4);
}

#cert-desc {
    margin-top: 15px;
    color: rgb(200,255,200);
}

.controls button {
    margin: 10px;
    padding: 8px 15px;
    background: #111;
    border: 1px solid rgb(81,228,81);
    color: rgb(81,228,81);
    cursor: pointer;
}