/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: sans-serif;
    background-color: rgb(73, 59, 59);
}

main {
    width: 100vw;
    height: 100vh;
}

header {
    height: 10vh;
    width: 100%;
    background-color: rgb(218, 40, 40);
}

a {
    color: white;
}

nav ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 2rem;
    padding-top: 1.5rem;
}

ul li {
    list-style: none;
}

ul li a {
    padding: 0rem 2rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

ul li a:hover {
    color: rgb(255, 200, 200);
}

/* About Section */
.info {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: 70vh;
    margin-top: 10vh;
}

.box {
    width: 50%;
    background-color: rgb(73, 59, 59);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 3rem;

}

#role {
    font-size: 1.5rem;
    font-weight: bold;
    display: inline;
    border-right: 2px solid;
    /* Cursor effect */
    animation: blink 0.7s infinite step-end;
}

.left {
    display: flex;
    flex-direction: column;
}

.right {}

.right img {
    height: auto;
    width: 50%;
    border-radius: 10%;
    border: 2px solid;
}

/* Projects Section */
.proj {
    width: 100%;
    background-color: rgba(66, 66, 245, 0.877);
}

hr {
    width: 44%;
    margin: auto;
}

.proj h1 {
    padding-top: 2rem;
    text-align: center;
    font-size: 3rem;
}

.projects {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-around;
    padding: 2rem 0;
}

.project {
    padding: 2rem;
    width: 30%;
    text-align: center;
}

.project h2::before {
    content: "<";
}

.project h2::after {
    content: " />";
}

.project img {
    width: 100%;
    object-fit: cover;
    border: 2px solid green;
    transition: transform 0.3s ease;
}

.project img:hover {
    transform: scale(1.05);
}

/* certificate section  */
.certificates {
    padding: 40px 20px;
    background-color: #f9f9f9;
}

.certificates h1 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
}

.year-section {
    margin-bottom: 40px;
}

.year-section h2 {
    font-size: 24px;
    color: #555;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
}

/* Row for certificates */
.certificates-row {
    display: flex;
    /* Continuous scrolling */
    gap: 20px;
    overflow: hidden;
    /* Hide overflow to enable clean scrolling */
    position: relative;
}

.certificates-row .certificate-block {
    min-width: 200px;
    flex-shrink: 0;
    /* Prevent shrinking of elements */
    text-align: center;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.certificates-row .certificate-block:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2);
}

.certificates-row .certificate-block img {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 2px solid #ddd;
}

.certificates-row .certificate-block h3 {
    font-size: 16px;
    margin: 0;
    color: #333;
}

/* Scrolling Animation */
@keyframes scroll {
    0% {
        transform: translateX(10%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.certificates-row {
    display: flex;
    gap: 20px;
    overflow: hidden;
    position: relative;
    animation: scroll 15s linear infinite;
    /* Infinite scrolling animation */
}

/* Duplicate row to create seamless scrolling effect */
.certificates-row::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    background: inherit;
}


/* Contact Section */

.contact {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100vh;
    background-color: #333;
    color: white;
}

.wheel {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 2px solid #fff;
    animation: rotateWheel 10s linear infinite;
}

.skillheader {
    position: absolute;
    z-index: 1;
    text-align: center;
    top: 130px;
    left: 125px;
    font-size: 1.5rem;
}



#skills {
    /* position: relative; */
    width: 300px;
    height: 300px;
    border: 2px solid #fff;
    border-radius: 50%;
    animation: spin 10s infinite linear;
}

.line {
    position: absolute;
    width: 2px;
    height: 50%;
    background-color: white;
    top: 0;
    left: 50%;
    transform-origin: 50% 100%;
}

/* Positioning lines */
.line:nth-of-type(1) {
    transform: rotate(0deg);
}

.line:nth-of-type(2) {
    transform: rotate(60deg);
}

.line:nth-of-type(3) {
    transform: rotate(120deg);
}

.line:nth-of-type(4) {
    transform: rotate(180deg);
}

.line:nth-of-type(5) {
    transform: rotate(240deg);
}

.line:nth-of-type(6) {
    transform: rotate(300deg);
}

.cabins {
    position: absolute;
    width: 80px;
    height: 80px;
    background-color: brown;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: .5rem;
    border-radius: 90%;
    border: 2px solid #000;
    transform-origin: 50% 50%;
    animation: spinReverse 10s infinite linear;
}

.cabins:nth-of-type(1) {
    top: -8%;
    left: 45%;
}

.cabins:nth-of-type(2) {
    top: 7%;
    left: 85%;
}

.cabins:nth-of-type(3) {
    top: 50%;
    left: 86%;
}

.cabins:nth-of-type(4) {
    top: 88%;
    left: 47%;
}

.cabins:nth-of-type(5) {
    top: 65%;
    left: 05%;
}

.cabins:nth-of-type(6) {
    top: 20%;
    left: 0;
}

/* Media Section */
.media {
    width: 50%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.media p {
    background-color: brown;
    color: yellow;
    padding: 1rem;
    margin-bottom: 1rem;
}

.media ul {
    list-style: none;
}

.media ul li {
    text-align: center;
    margin: 1rem;
}

.media ul li a {
    padding: 0rem;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
    /* border: 2px solid; */
}

.media ul li a:hover {
    color: yellow;
}

/* Footer */
footer {
    color: white;
    font-size: 1.5rem;
    padding: 2rem 0;
    width: 100%;
    background-color: rgb(73, 59, 59);
    text-align: center;
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

/* Keyframes */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spinReverse {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {

    .info,
    .contact,
    .projects {
        flex-direction: column;
        align-items: center;
    }

    .box,
    .proj,
    .media {
        width: 100%;
    }

    .project {
        width: 90%;
    }

    header nav ul {
        font-size: 1.5rem;
    }

    .proj h1 {
        font-size: 2.5rem;
    }
}