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

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header / Navigation */
header {
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    font-size: 15px;
    letter-spacing: 0.3px;
}

/* Intro Section */
.intro {
    padding: 80px 0 60px;
}

.intro h1 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.intro p {
    font-size: 16px;
    line-height: 1.8;
    max-width: 600px;
    color: #666;
}

/* Projects Grid */
.projects {
    padding: 40px 0 100px;
}

.projects .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px 40px;
}

.project-item {
    position: relative;
}

.project-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    margin-bottom: 20px;
    background: #f5f5f5;
}

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

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

.project-item h2 {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.project-description {
    font-size: 14px;
    color: #888;
    letter-spacing: 0.3px;
}

/* Footer */
footer {
    padding: 60px 0 40px;
    border-top: 1px solid #eee;
    text-align: center;
}

footer p {
    font-size: 13px;
    color: #999;
    letter-spacing: 0.5px;
}

/* More Page Styles */
.more-page {
    padding: 60px 0 80px;
}

.more-intro {
    margin-bottom: 80px;
}

.more-intro h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.more-intro p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    max-width: 700px;
}

.gallery-section {
    margin-bottom: 100px;
}

.gallery-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: 0.3px;
}

.gallery-description {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 40px;
    max-width: 700px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.gallery-grid img:hover {
    opacity: 0.85;
}

/* About Page Styles */
.about-page {
    padding: 60px 0 80px;
}

.about-hero {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 60px;
}

.about-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.about-intro {
    max-width: 700px;
    margin: 0 auto 60px;
}

.about-intro h1 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 30px;
    letter-spacing: 0.3px;
}

.about-intro p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.about-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 60px 0;
}

.about-photos img {
    width: 100%;
    height: auto;
    display: block;
}

.about-section {
    max-width: 700px;
    margin: 80px auto 0;
}

.about-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 40px;
    letter-spacing: 0.3px;
}

.about-section p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

.about-section a {
    color: #333;
    text-decoration: none;
}

.about-section a:hover {
    opacity: 0.6;
}

/* Timeline Items (Experience & Education) */
.timeline-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.timeline-date {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
}

.timeline-content {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

.timeline-content strong {
    color: #333;
    font-weight: 500;
}

.timeline-description {
    display: block;
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.7;
}

/* Skills Section */
.skills-section .skill-item {
    margin-bottom: 35px;
}

.skills-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.skills-section p {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
}

/* Software, Interests, Learning Sections */
.software-section p,
.interests-section p,
.learning-section p {
    font-size: 15px;
    line-height: 2;
    color: #666;
}

/* Awards Section */
.awards-section .award-item {
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.8;
    color: #666;
}

.awards-section .award-item strong {
    color: #333;
    font-weight: 500;
}

/* Contact Section */
.contact-section h2 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
}

.contact-section a {
    font-size: 16px;
    color: #333;
    text-decoration: none;
}

.contact-section a:hover {
    opacity: 0.6;
}

/* Page Content (More pages) */
.page-content {
    padding: 60px 0 80px;
}

.page-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 50px;
    letter-spacing: 0.5px;
}

.page-content .about-section {
    margin-bottom: 50px;
}

.page-content ul {
    margin-left: 20px;
    margin-top: 15px;
}

.page-content li {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 10px;
}

/* Project Detail Pages */
.project-detail {
    padding: 60px 0 80px;
}

.project-header {
    text-align: center;
    margin-bottom: 60px;
}

.project-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.project-subtitle {
    font-size: 18px;
    color: #888;
    margin-bottom: 30px;
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 14px;
    color: #999;
}

.project-hero {
    width: 100%;
    margin-bottom: 60px;
}

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

.project-content {
    max-width: 800px;
    margin: 0 auto;
}

.project-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 500;
    margin-top: 50px;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.project-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.project-image-full {
    width: 100%;
    margin: 50px 0;
}

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

.image-caption {
    font-size: 14px;
    color: #999;
    text-align: center;
    margin-top: 15px;
    font-style: italic;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 50px 0;
}

.image-grid img {
    width: 100%;
    height: auto;
    display: block;
}

.project-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.project-nav a {
    font-size: 15px;
    letter-spacing: 0.3px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    header .container {
        flex-direction: column;
        gap: 20px;
    }

    .projects .container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .intro {
        padding: 50px 0 40px;
    }

    .project-header h1 {
        font-family: 'Playfair Display', serif;
        font-size: 28px;
    }

    .project-meta {
        flex-direction: column;
        gap: 10px;
    }

    .image-grid {
        grid-template-columns: 1fr;
    }

    .project-nav {
        flex-direction: column;
        gap: 20px;
    }

    .about-photos {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .timeline-date {
        font-weight: 500;
        color: #333;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
