/* Projects Section */
#projects {
    height: fit-content; /* Full viewport height */
    padding: 60px 20px;
    background-color: #204242; /* Dark background for contrast */
    color: #F5F5F5; /* Light text for readability */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Projects Header */
.projects-header {
    text-align: center;
    margin-bottom: 40px;
}

.projects-header h2 {
    font-family: 'Roboto Mono', monospace;
    font-size: 2rem;
    color: #D6BD98; /* Accent color */
    margin-bottom: 10px;
}

.projects-header p {
    font-size: 1.2rem;
    color: #CCCCCC; /* Subtle text color for description */
}

/* Projects Grid */
.projects-grid {
    display: flex;
    flex-direction: column; /* Stack cards vertically */
    gap: 40px; /* Space between cards */
    align-items: center; /* Center align cards horizontally */
}

/* Project Card Styling */
.project-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #40534C; /* Slightly lighter background for cards */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 20px;
    width: 75%; /* Make the card take up half the page width */
    max-width: 1300px; /* Limit the maximum width for aesthetics */
}

/* Alternating Layout for Cards */
.project-card:nth-child(odd) {
    flex-direction: row; /* Image on the left */
}

.project-card:nth-child(even) {
    flex-direction: row-reverse; /* Image on the right */
}

/* Project Card Image */
.project-card img {
    width: 50%; /* Image takes half of the card width */
    height: auto; /* Maintain aspect ratio */
    border-radius: 10px;
    object-fit: cover;
}

/* Project Info */
.project-info {
    width: 50%; /* Info takes the other half of the card */
    padding: 20px;
    color: #F5F5F5;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #D6BD98; /* Accent color */
}

.project-info p {
    font-size: 1rem;
    margin-bottom: 10px;
}

.project-links {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.project-links a {
    text-decoration: none;
    color: #D6BD98; /* Accent color */
    border: 1px solid #D6BD98; /* Outline button */
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.project-links a:hover {
    background-color: #D6BD98; /* Invert colors on hover */
    color: #1A1A1A;
}

/* Hover Effect for Project Cards */
.project-card:hover {
    transform: translateY(-10px); /* Lift card on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4); /* Stronger shadow on hover */
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-card {
        flex-direction: column; /* Stack image and info vertically */
        width: 90%; /* Full width on smaller screens */
    }

    .project-card img,
    .project-info {
        width: 100%; /* Full width for mobile */
    }
}
