/* Header Styles */
header {
    background-color: #333;
    color: white;
    padding: 1rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #4CAF50;
}

/* Main Content Styles */
main {
    margin-top: 80px;
    padding: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.profile-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
}

.profile-image {
    width: 100%;
    border-radius: 50%;
    max-width: 200px;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    padding: 1.5rem;
    background-color: #f5f5f5;
    border-radius: 8px;
    text-align: center;
}

.skill-card i {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 1rem;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-section {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Social Media Section */
.social-section {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem 0;
    background-color: #f9f9f9;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.social-icon {
    font-size: 2.5rem;
    color: #333;
    transition: transform 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-5px);
    color: #4CAF50;
}

/* Responsive Social Icons */
@media (max-width: 480px) {
    .social-links {
        gap: 1.5rem;
    }
    
    .social-icon {
        font-size: 2rem;
    }
}
/* Projects Section */
.projects-section {
    padding: 2rem 0;
    margin: 3rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 1rem; /* Added lateral spacing */
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: contain; /* Changed from cover to contain */
    border-bottom: 3px solid #4CAF50;
    background-color: #f8f8f8; /* Added background for contained images */
    padding: 0.5rem; /* Added padding around image */
}

/* New image container to maintain aspect ratio */
.project-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f8f8;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.project-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-tech span {
    background-color: #f0f0f0;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #444;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    main {
        padding: 2rem 1rem; /* Increased lateral padding on mobile */
    }
    
    .project-card {
        margin: 0 0.5rem; /* Adjusted mobile spacing */
    }
    
    .project-image {
        height: auto;
        max-height: 200px;
    }
}

@media (min-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}