/* General Styles */
body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
}

.main-container {
    max-width: 1200px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    flex: 1;
}

header {
    background: url('images/header-background.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 100px 0;
}

header h1 {
    font-size: 48px;
    margin: 0;
}

header h3 {
    font-size: 20px;
    margin-top: 10px;
}

#about {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
    background: #f9f9f9;
}

.about-container {
    display: flex;
    flex-wrap: wrap; /* Ensures responsiveness */
    max-width: 1200px;
    gap: 20px;
    align-items: center;
}

.about-text {
    flex: 1;
    min-width: 300px; /* Prevents text from squishing */
    padding: 20px;
    text-align: left;
}

.about-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.5;
}

.about-text .btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.about-image {
    flex: 1;
    min-width: 300px; /* Prevents image from getting too small */
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    max-height: 400px; /* Controls image height */
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #0078D4; /* Optional border */
}

#skills {
    text-align: center;
    padding: 50px;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.skill-item {
    flex: 1 1 calc(33.333% - 40px); /* 3 items per row with some gap */
    max-width: calc(33.333% - 40px);
    text-align: center;
}

.skill-item img {
    max-width: 100px; /* Restricts logo width to 100px */
    height: auto;
}

footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: #fff;
    width: 100%;
}

/* Project Section Styles */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.project-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.project-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.project-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.project-link:hover {
    background-color: #0056b3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .projects-container {
        grid-template-columns: 1fr;
    }
}