﻿body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #fff;
    color: #000;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 16px 32px;
    border-bottom: 1px solid #ccc;
}

.logo-title {
    display: flex;
    align-items: center;
}

.logo-title img {
    height: 40px;
    margin-right: 12px;
}

.logo-title h1 {
    color: #d60000;
    font-size: 24px;
    margin: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
}

nav a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
}

.hero {
    background-color: #d60000;
    color: #fff;
    text-align: center;
    padding: 80px 24px;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 16px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 24px;
}

.cta-button {
    background-color: #fff;
    color: #d60000;
    padding: 12px 24px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: bold;
}

footer {
    background-color: #d60000;
    color: #fff;
    text-align: center;
    padding: 5px;
}

.about-section {
    padding: 80px 0;
    background-color: #f9f9f9;
    color: #333;
    text-align: center;
}

    .about-section .container {
        max-width: 1000px;
        margin: 0 auto;
        padding: 0 20px;
    }

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.section-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.about-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.about-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 30px;
    flex: 1 1 400px;
    transition: transform 0.3s ease;
}

    .about-card:hover {
        transform: translateY(-5px);
    }

    .about-card h3 {
        font-size: 24px;
        margin-bottom: 15px;
        color: #444;
    }

    .about-card p {
        font-size: 16px;
        line-height: 1.5;
        color: #666;
    }

.about-banner {
    background: linear-gradient(135deg, #d60000, #ff6f61);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 80px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

    .about-banner .banner-text h1 {
        font-size: 32px;
        font-weight: 700;
        margin-bottom: 20px;
    }

    .about-banner .banner-text p {
        font-size: 18px;
        line-height: 1.6;
        margin: 0 auto;
        max-width: 600px;
    }

.cta {
    margin-top: 20px;
}

.btn-primary {
    background-color: #e63946;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

    .btn-primary:hover {
        background-color: #d62839;
    }

.portfolio-item {
    background-color: #f9f9f9;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.thumbnail img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.portfolio {
    padding: 48px 24px;
    text-align: center;
    max-width: 960px;
    margin: 0 auto;
    font-family: 'Segoe UI', sans-serif;
}

.portfolio h2 {
    font-size: 36px;
    color: #d60000;
    margin-bottom: 16px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    justify-content: center; /* 🔥 가운데 정렬 포인트 */
    margin-top: 32px;
}

.portfolio-item {
    display: flex;
    flex-direction: column;
    align-items: center; /* 내부 콘텐츠 가운데 정렬 */
    background-color: #f9f9f9;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 320px;
}

.portfolio-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.thumbnail img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.03);
}

.portfolio-content {
    padding: 20px;
    text-align: center;
    background-color: #fff;
}

.portfolio-content h3 {
    font-size: 1.3em;
    color: #d60000;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.portfolio-item:hover h3 {
    color: #b30000;
}

.portfolio-content p {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
}

.service-banner {
    background: linear-gradient(to right, #ff6f61, #d60000);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 5px;
}

    .service-banner .banner-content h1 {
        font-size: 32px;
        font-weight: 700;
        margin-bottom: 20px;
    }

    .service-banner .banner-content p {
        font-size: 18px;
        line-height: 1.6;
        max-width: 600px;
        margin: 0 auto;
    }

.service {
    padding: 48px 24px;
    text-align: center;
    max-width: 960px;
    margin: 0 auto;
    margin-bottom: 50px; /* 기본값보다 여유 있게 */
}

.service h2 {
    font-size: 36px;
    color: #d60000;
    margin-bottom: 16px;
}

.intro {
    font-size: 1.2em;
    color: #555;
    max-width: 600px;
    margin: 0 auto 32px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
    justify-content: center;
}

.service-item {
    border: 1px solid #ccc;
    padding: 24px;
    border-radius: 12px;
    background-color: #f9f9f9;
    transition: box-shadow 0.3s ease;
}

.service-item:hover {
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.service-item h3 {
    font-size: 1.4em;
    color: #d60000;
    margin-bottom: 12px;
}

.service-item p {
    font-size: 1em;
    color: #333;
    line-height: 1.6;
}

/* Contact 배너 */
.contact-banner {
    background: linear-gradient(135deg, #ff6f61, #d60000);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    border-radius: 12px;
    margin-bottom: 75px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

    .contact-banner .banner-content h1 {
        font-size: 32px;
        font-weight: 700;
        margin-bottom: 14px;
    }

    .contact-banner .banner-content p {
        font-size: 18px;
        line-height: 1.6;
        max-width: 640px;
        margin: 0 auto;
    }

/* 본문과 footer 간격 (원하신 대로 넉넉하게) */
.contact {
    margin-bottom: 80px; /* 60~100px 사이에서 조정 추천 */
}

    /* 콘텐츠 카드 */
    .contact .intro {
        margin-bottom: 24px;
        color: #555;
    }

.contact-card {
    display: inline-block;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    text-align: center; /* 내부 정돈 */
}

.mail-link {
    font-weight: 600;
    font-size: 20px;
    color: #d60000;
    text-decoration: none;
}

    .mail-link:hover {
        text-decoration: underline;
    }

.contact .container {
    text-align: center;
}
