﻿/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Century Gothic', Arial, sans-serif;
    line-height: 1.6;
    color: #040000;
    background-color: #222021;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

html {
    scroll-behavior: smooth;
}

/* Projects Sections */
.projects-section {
    width: 100%;
    background-color: #1e0c06;
    padding: 48px 0;
    margin-top: 32px;
}

    .projects-section.first-section {
        margin-top: 0;
        padding-top: 100px;
    }

.projects-contents {
    width: 100%;
}

.section-title {
    font-size: 32px;
    font-family: 'Lato', Arial, sans-serif;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 48px;
    line-height: 1.2;
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 48px;
}

.recentproject-image {
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

    .recentproject-image:hover {
        transform: scale(1.05);
    }

.cta-section {
    margin-top: 33px;
}

/* Responsive media queries - 修正对齐 */



@media (min-width: 640px) {

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .section-title {
        font-size: 42px;
    }
}

@media (min-width: 768px) {

    .section-title {
        font-size: 48px;
    }

    .projects-section {
        padding: 64px 0;
    }
}

@media (min-width: 1024px) {

    .projects-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

    .recentproject-image {
        height: 300px;
    }

    .section-title {
        font-size: 55px;
    }

    .projects-section {
        padding: 96px 0;
    }

        .projects-section.first-section {
            padding-top: 100px;
        }
}

@media (min-width: 1280px) {
    .recentproject-image {
        height: 384px;
    }
}
