/* General Styles */
body {
    background-color: #121212;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* Coffee-info Section */
#coffee-info {
    position: relative;
    overflow: hidden; /* Hide anything outside the container */
    height: 0; /* Initially hidden */
    background-color: #121212; /* Background color for visibility */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Start hidden */
    transition: opacity 1s ease-in-out, height 1s ease-in-out;
    color: rgb(180, 180, 180);
}

#coffee-info p {
    margin: 0;
    opacity: 0; /* Start hidden */
    transition: opacity 1s ease-in-out;
    font-size: 16px; /* Adjust font size as needed */
}

/* Coffee Trigger Container */
.coffee-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    text-decoration: underline;
}

/* Coffee Image Styling */
#coffee-image {
    position: relative;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    background-image: url('../images/coffee-cup.png'); 
    background-size: cover;
    transform: translateX(-100%);
    transition: transform 1s ease-in-out;
    z-index: 10;
}

/* The Text that the Coffee Image Slides Across */
#coffee-trigger {
    position: relative;
    z-index: 5;
}

/* Projects Section */
#projects {
    position: relative;
    margin-bottom: 40px;
}

#projects h2 {
    font-size: 2rem;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.projects-wrapper {
    position: relative;
    overflow: hidden;
}

.projects-container {
    display: block;
    overflow: hidden;
    scroll-behavior: smooth; /* Smooth scrolling */
}

.projects-carousel {
    display: flex;
    flex-wrap: nowrap;
    /* height: 50px; */
    gap: 20px;
}

.project {
    flex: 0 0 auto;
    width: calc(100% / 3 - 20px); /* Adjust based on the number of items to show */
    box-sizing: border-box;
    padding: 15px;
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.project img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.project h3 {
    margin-top: 10px;
    font-size: 1.5rem;
}

.project p {
    margin: 10px 0;
}

.project a {
    color: #00aaff;
    text-decoration: none;
}

.project a:hover {
    text-decoration: underline;
}

.arrow {
    position: absolute;
    top: 50%;
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
}

.left-arrow {
    left: -50px;
}

.right-arrow {
    right: -50px;
}

/* Certificates Section */
#certificates {
    margin-bottom: 40px;
}

#certificates h2 {
    font-size: 2rem;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#certificates ul {
    list-style-type: none;
    padding: 0;
}

#certificates li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

#certificates img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

/* Languages Section */
#languages {
    margin-bottom: 40px;
}

#languages h2 {
    font-size: 2rem;
    border-bottom: 2px solid #444;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#languages ul {
    list-style-type: none;
    padding: 0;
}

#languages li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

#languages img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

/* Media Queries */
@media (max-width: 768px) {
    .projects-container {
        max-height: 300px;
    }

    header h1 {
        font-size: 2rem;
    }

    #projects h2, #certificates h2, #languages h2 {
        font-size: 1.75rem;
    }

    .project {
        width: calc(100% / 2 - 20px); /* Adjust for smaller screens */
    }

    .project h3 {
        font-size: 1.25rem;
    }
}
