/*
    A clean, modern, and responsive style sheet for a professional portfolio.
    This replaces the basic styles to give your site a more polished look and feel.
*/

/* Basic Setup & Typography */
:root {
    --primary-color: #0d1117;
    --secondary-color: #f1f1f1;
    --accent-color: #007bff;
    --text-color: #c9d1d9;
    --light-text-color: #e4e6f0;
    --font-family-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-family-heading: 'Georgia', serif;
}

body {
    background-color: var(--primary-color);
    color: var(--text-color);
    font-family: var(--font-family-body);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    color: var(--light-text-color);
    margin-top: 0;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
}

/* Header & Footer */
.header {
    text-align: center;
    padding: 80px 20px;
    background-color: #161b22;
    border-bottom: 2px solid #2e3a4e;
}

.header h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.header p {
    font-size: 1.25rem;
    color: var(--text-color);
}

.footer {
    text-align: center;
    padding: 30px;
    margin-top: auto;
    background-color: #161b22;
    border-top: 2px solid #2e3a4e;
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Navigation Bar */
.navbar {
    background-color: #161b22;
    padding: 1rem 0;
    border-bottom: 2px solid #2e3a4e;
}

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0 1.5rem;
}

.nav-item a {
    color: var(--light-text-color);
    font-family: var(--font-family-body);
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-item a:hover {
    color: var(--accent-color);
}

/* Portfolio Grid & Items */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 40px;
    max-width: 1400px;
    margin: 40px auto;
}

.project-item {
    background-color: #161b22;
    border-radius: 12px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensures uniform height */
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.project-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.project-caption {
    padding: 25px;
    flex-grow: 1; /* Makes caption fill available space */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-caption h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

/* Video & Text Item Styling */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.content-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.about-item {
    background-color: #161b22;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-text {
    text-align: left;
    margin-top: 20px;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0;
    border: 3px solid #2e3a4e;
    object-fit: cover;
}

/* Responsive Design for smaller screens */
@media (max-width: 768px) {
    .header {
        padding: 60px 20px;
    }
    .header h1 {
        font-size: 2.5rem;
    }
    .header p {
        font-size: 1rem;
    }
    .portfolio-grid {
        padding: 20px;
        gap: 20px;
    }
    .project-caption {
        padding: 20px;
    }
    .about-item {
        padding: 20px;
    }
}
