@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

.montserrat-100 {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 100;
    font-style: normal;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    background-color: #080808;
    font-family: "Montserrat", sans-serif;
}

h1 {
    color: white;
    font-size: 2.5em;
    text-align: center;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 50px; /* Space between presentation and projects */
    margin-top: 100px; /* Space below the fixed header */
    width: 100%;
    max-width: 1200px;
}

.presentation {
    margin-top: 50px; 
    flex: 1;
    text-align: center;
    color: white;
}

.project-section {
    flex: 1;
    display: grid;
    justify-items: center;
}

h2 {
    color: white;
    font-size: 24px;
    text-align: center;
}

.center-button {
    padding: 10px 20px;
    font-size: 16px;
    text-decoration: none;
    color: white;
    background-color: rgb(25, 25, 25);
    border: none;
    border-radius: 5px;
}

.center-button:hover {
    background-color: rgba(25, 25, 25, 0.5);
}

header {
    width: 100%;
    background-color: #1a1a1a;
    padding: 20px 0;    
    position: fixed;
    top: 0;
    z-index: 1000;
    margin-bottom: 50px;
}

header nav {
    display: flex;
    justify-content: center;
    gap: 20px;
}

header nav a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s;
    background-color: #2b2b2b;
    border-radius: 5px;
    padding: 10px 10px;
}

header nav a:hover {
    color: #ff9800;
}

.separator {
    border: #e2e2e2 solid 1px;
}

.presentation {
    text-align: center;
    color: white;
}

.presentation .profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 20px;
}

.presentation h2 {
    font-size: 28px;
    margin: 10px 0;
}

.presentation h3 {
    font-size: 20px;
    margin: 5px 0;
    color: #ff9800;
}

.presentation p {
    font-size: 16px;
    margin-top: 10px;
}

#yearselector {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin: 20px 0;
    overflow-x: auto;
    padding: 10px;
    scrollbar-width: none; /* For Firefox */
    max-width: min(500px, 95%);
    margin-left: auto;
    margin-right: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 0;
}

#yearselector::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Edge */
}

#yearselector a {
    padding: 10px 15px;
    font-size: 16px;
    color: white;
    background-color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    scroll-snap-align: start;
    text-decoration: none;
}

#yearselector a:hover {
    background-color: #ff9800;
}

.project {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two projects per row */
    gap: 20px; /* Space between project cards */
    margin: 20px 0;
    text-align: center;
}

.project-card {
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    color: white;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.project-img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.project-img-box {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
}

.project-title {
    font-size: 20px;
    color: #ff9800;
    text-decoration: none;
    font-weight: bold;
}

.project-title:hover {
    text-decoration: underline;
}

.project-desc, .project-lang, .project-date {
    font-size: 14px;
    margin: 5px 0;
}

.project-lang {
    color: #03a9f4;
    font-weight: bold;
}

#socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #e2e2e2;
    border-radius: 50%;
    transition: transform 0.3s, box-shadow 0.3s;
}

social-link:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.3);
}

.social-pic {
    width: 24px;
    height: 24px;
}

/* Styles for logprocess pages */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    margin: 50px auto;
    color: white;
}

form label {
    font-size: 16px;
    font-weight: bold;
    color: #ff9800;
}

form input {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #2b2b2b;
    color: white;
}

form input:focus {
    outline: none;
    border-color: #ff9800;
}

form button {
    padding: 10px 20px;
    font-size: 16px;
    color: white;
    background-color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #ff9800;
}

form a {
    color: #ff9800;
    text-decoration: none;
    font-size: 14px;
}

form a:hover {
    text-decoration: underline;
}

h2 {
    text-align: center;
    color: white;
    margin-bottom: 20px;
}

.error-message {
    color: red;
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
    background-color: rgba(255, 0, 0, 0.10);
    padding: 25px 10px;
    border-left: red solid 5px;
}

#buttons {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s;
    background-color: #2b2b2b;
    border-radius: 5px;
    padding: 10px 10px;
}
#buttons:hover {
    color: #ff9800;
}
#buttons:focus {
    outline: none;
}

#username {
    color : #03a9f4;
    font-weight: bold;
}

#email {
    color: #03a9f4; 
    font-weight: bold;
    text-decoration: none;
    font-size: 16px;
    margin-top: 10px;
    transition: color 0.3s, text-decoration 0.3s;
}

#email:hover {
    color: #27bbff; 
    text-decoration: underline; 
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        align-items: center;
    }

    .presentation {
        margin-top: 20px;
    }

    .project-section {
        margin-top: 20px;
        max-width: 90%;
    }

}
