/* ===== BASIC RESET & GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* ===== NAVIGATION BAR ===== */
.navbar {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: #666;
    font-size: 1rem;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #333;
}

/* ===== HOME PAGE - IMAGE GRID ===== */
.home-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    grid-auto-flow: dense;
}

.grid-item {
    overflow: hidden;
    background-color: #f5f5f5;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.grid-item:hover img {
    transform: scale(1.05);
}

/* Grid size variations */
.grid-small {
    grid-column: span 1;
    height: 250px;
}

.grid-medium {
    grid-column: span 1;
    height: 350px;
}

.grid-large {
    grid-column: span 2;
    height: 400px;
}

.grid-wide {
    grid-column: span 2;
    height: 300px;
}

/* ===== PROJECTS PAGE ===== */
.projects-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.projects-container h1 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
}

.project-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: #f5f5f5;
    margin-bottom: 1rem;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-info h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #333;
}

.project-details p {
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.95rem;
}

.project-details strong {
    color: #333;
}

/* ===== PROJECT DETAIL PAGE ===== */
.project-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.back-link {
    margin-bottom: 2rem;
}

.back-link a {
    text-decoration: none;
    color: #666;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.back-link a:hover {
    color: #333;
}

.project-detail-container h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.project-meta {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.meta-item {
    font-size: 1rem;
    color: #666;
}

.meta-item strong {
    color: #333;
    margin-right: 0.5rem;
}

.project-description {
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.project-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.project-images img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== ABOUT PAGE ===== */
.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.about-container h1 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.timeline-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.timeline-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}

.timeline-table thead {
    background-color: #f5f5f5;
}

.timeline-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

.timeline-table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    color: #555;
}

.timeline-table tbody tr:hover {
    background-color: #fafafa;
}

.timeline-table tbody tr:last-child td {
    border-bottom: none;
}

/* Year column styling */
.timeline-table td:first-child {
    font-weight: 600;
    color: #333;
}

/* ===== CONTACT PAGE ===== */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.contact-container h1 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 1px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-item h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #333;
}

.contact-item p {
    font-size: 1.1rem;
}

.contact-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #333;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-small,
    .grid-medium,
    .grid-large,
    .grid-wide {
        grid-column: span 1;
        height: 300px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .timeline-table {
        font-size: 0.9rem;
    }
    
    .timeline-table th,
    .timeline-table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        font-size: 0.9rem;
        gap: 1rem;
    }
    
    .projects-container h1,
    .about-container h1,
    .contact-container h1,
    .project-detail-container h1 {
        font-size: 2rem;
    }
    
    .timeline-table {
        font-size: 0.8rem;
    }
    
    .timeline-table th,
    .timeline-table td {
        padding: 0.5rem 0.25rem;
    }
}
