/* Global Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #121212;
    color: #ffffff;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

/* Navbar Styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #121212;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #cccccc;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

.lets-talk-btn a {
    background-color: #ffffff;
    color: #000000;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Projects Section Header */
.main-content {
    padding: 20px 40px 60px 40px;
}

.section-title-container {
    text-align: center;
    margin: 30px 0 40px 0;
}

.section-title {
    font-size: 2.2rem;
    color: #d946ef;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(217, 70, 239, 0.5);
    margin-bottom: 10px;
}

.title-underline {
    width: 60px;
    height: 3px;
    background-color: #d946ef;
    margin: 0 auto;
    box-shadow: 0 0 8px rgba(217, 70, 239, 0.8);
}

/* Projects Grid Layout (Responsive) */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    justify-items: center;
}

/* Individual Project Card */
.project-card {
    background-color: #1a1a1a;
    border: 2px solid #a855f7;
    border-radius: 12px;
    width: 100%;
    max-width: 320px;
    padding: 15px;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.4);
}

/* Image Fit Container */
.card-image-wrapper {
    width: 100%;
    height: 200px;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures images scale and fit perfectly without distortion */
    object-position: top center;
}

/* Card Title */
.project-card h3 {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    margin-top: 5px;
}

/* Media Queries for Extra Responsiveness */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }
    
    .nav-links {
        display: none; /* Can be expanded into a mobile menu toggle if preferred */
    }

    .main-content {
        padding: 10px 15px 40px 15px;
    }

    .section-title {
        font-size: 1.6rem;
    }
}