@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');

* {
    font-family: "Oswald", sans-serif;
    color: rgb(102, 102, 102);
}

body {
    background: radial-gradient(circle at 0% 0.5%, rgb(241, 241, 242) 0.1%, rgb(224, 226, 228) 100.2%);
}

.nav {
    display: flex;
    justify-content: center;
    width: 100%;
}

.nav a {
    text-decoration: none;
    color: rgb(102, 102, 102);
    font-weight: 500;
    font-size: 23px;
    margin-right: 2%;
}

.lang-select {
    display: flex;
    justify-content: end;
}

.lang-select a {
    text-decoration: none;
    color: rgb(102, 102, 102);
    font-weight: 500;
    font-size: 23px;
    margin-right: 10px;
}

.navigation {
    margin: 0px 8px 5px 0px;
    padding-top: 8px;
    padding-bottom: 5px;
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: radial-gradient(circle at 0% 0.5%, rgb(241, 241, 242) 0.1%, rgb(224, 226, 228) 100.2%);
    z-index: 9999; /* Make sure it's above other content */
}

.main {
    padding-top: 50px; /* Adjust according to the height of the navigation bar */
}

#active-lang {
    color: rgb(234, 14, 14);
}

#active {
    color: rgb(234, 14, 14);
}

#red {
    color: rgb(234, 14, 14);
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.me {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right: 5%; /* Adjust as needed */
    margin-left: 5%;
}

img {
    max-width: 100%;
}

hr {
    border: 0;
    height: 1px;
    background: rgb(102, 102, 102);
    margin: 20px 0;
    margin-top: 0;
}

h1 {
    text-align: center;
    margin-top: 4%;
}

.timeline {
    position: relative;
    margin: 20px 0;
}

.timeline-item {
    padding: 20px;
    border-left: 2px solid #007bff; /* Change color as desired */
    margin-bottom: 20px;
}

.timeline-content {
    background-color: #f5f5f5; /* Change color as desired */
    padding: 10px;
    border-radius: 5px;
}

.timeline-content h3 {
    margin-top: 0;
}

/* Alternate timeline item layout for aesthetic variation */
.timeline-item:nth-child(even) {
    margin-left: auto;
    border-left: 2px solid #28a745; /* Change color as desired */
}

.timeline-item:nth-child(even) .timeline-content {
    background-color: #fff; /* Change color as desired */
}

#projects {
    text-align: center;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.project {
    margin: 20px;
    max-width: 500px; /* Adjusted width */
    width: 100%;
    transition: box-shadow 0.3s ease; /* Add transition for smooth effect */
}

.project img {
    width: 100%;
    border-radius: 5px;
}

.project-info {
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
}

.project-info h3 {
    margin-top: 0;
    text-align: center;
}

.project-info p {
    margin-bottom: 10px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgb(234, 14, 14); /* Change color as desired */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: rgb(193, 11, 11); /* Change color as desired */
}

#competitions {
    text-align: center;
}

.competitions-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.competition-card {
    margin: 20px;
    max-width: 350px; /* Adjusted width */
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.competition-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.competition-info {
    padding: 20px;
    background-color: #fff;
}

.competition-info h3 {
    margin-top: 0;
    text-align: center;
}

.competition-info p {
    margin-bottom: 10px;
    text-align: center;
}

ul {
    margin-left: 0;
}

.contact-form {
    max-width: 650px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex; /* Add flexbox display */
    flex-direction: column; /* Arrange items in a column */
    align-items: center; /* Center items horizontally */
}

.contact-form form{
    width: 93%;
}

.form-group {
    margin-bottom: 20px;
    width: 100%; /* Ensure form inputs take full width */
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    width: 100%; /* Ensure labels take full width */
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

textarea {
    resize: vertical;
}

.btnn {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: rgb(234, 14, 14);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btnn:hover {
    background-color: rgb(193, 11, 11);
}

.social-links {
    margin-top: 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.social-links a {
    margin: 0 10px;
}

.social-links img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.social-links img:hover {
    transform: scale(1.1);
}
.lang-select {
    display: flex;
    align-items: center; /* Center items vertically */
    margin-right: 15px; /* Add margin-right */
}

.lang-select a {
    text-decoration: none;
    color: rgb(102, 102, 102);
    font-weight: 500;
    font-size: 23px;
    margin-top: 5px; /* Add margin between the buttons */
}

@media only screen and (max-width: 768px) {
    .lang-select {
        flex-direction: column; /* Arrange items in a column on smaller screens */
        align-items: center; /* Center items horizontally */
    }

    .lang-select a {
        margin-top: 0; /* Reset margin for smaller screens */
        margin-bottom: 5px; /* Add margin between the buttons */
    }
    #photo{
        margin-top: 9% !important;
    }
    
}
/* Media Queries for responsiveness */
@media only screen and (max-width: 768px) {
    .nav a {
        font-size: 20px;
    }

    .lang-select a {
        font-size: 23px;
        margin-right: 5px;
    }

    .me {
        margin-right: 10px;
    }

    .timeline-item {
        padding: 10px;
    }

    .project {
        margin: 10px;
        max-width: 300px;
    }

    .competition-card {
        margin: 10px;
        max-width: 250px;
    }

    .btn,
    .btnn {
        padding: 8px 12px;
        font-size: 14px;
    }

    .social-links img {
        width: 30px;
        height: 30px;
    }
    #photo{
        margin-top: 9% !important;
    }
    
}

@media only screen and (max-width: 768px) {
    #home {
        display: flex;
        flex-direction: column-reverse; /* Reverse the order for smaller screens */
        align-items: center;
        text-align: center;
    }

    .me {
        display: flex;
        flex-direction: column;
        align-items: center; /* Center horizontally */
        margin-right: 20px; /* Add margin-right */
    }
    
    .me h1 {
        text-align: center; /* Center the text */
        margin-top: 0; /* Remove top margin for the heading */
    }

    img {
        max-width: 100%; /* Ensure the image is responsive */
    }
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav a {
        margin: 5px; /* Add some spacing between links */
    }
    #photo{
        margin-top: 9% !important;
    }
    
}

