/* 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
}

/* 색상 팔레트 */
:root {
    --primary-color: #ff6347;
    --secondary-color: #222;
    --text-color: #333;
    --light-color: #f4f4f4;
    --dark-color: #000;
}

/* 헤더 스타일 */
header {
    background: transparent;
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.3s;
}

header.scrolled {
    background: var(--secondary-color);
}

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

header .logo img {
    width: 150px;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 4px 0;
    transition: transform 0.3s, opacity 0.3s;
}

/* 히어로 섹션 스타일 */
#hero {
    background: url('hero-bg.jpg') no-repeat center center/cover;
    height: 100vh;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

#hero .hero-content {
    z-index: 1;
    animation: slideIn 1.5s ease-out;
}

#hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeIn 2s ease-in-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeIn 3s ease-in-out;
}

.hero-btn {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s, transform 0.3s;
    animation: fadeIn 4s ease-in-out;
}

.hero-btn:hover {
    background: #e5533d;
    transform: scale(1.05);
}

.scroll-indicator {
    position: absolute;
    bottom: 20px;
    width: 30px;
    height: 30px;
    border: 2px solid #fff;
    border-radius: 50%;
    animation: bounce 2s infinite;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 콘텐츠 섹션 스타일 */
.content-section {
    padding: 4rem 0;
    position: relative;
    z-index: 1;
}

.content-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.content-section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 5px;
    background: var(--primary-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.content-section p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-color);
}

#about .about-content {
    display: flex;
    align-items: center;
    justify-content: center; /* 가운데 정렬 */
    flex-wrap: wrap;
    gap: 20px;
    text-align: center; /* 텍스트 가운데 정렬 */
}

.about-text {
    flex: 1;
    max-width: 600px;
    min-width: 300px;
}

.about-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    max-width: 600px;
    min-width: 300px;
}

.about-images img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.services-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.service {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1;
    min-width: 250px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-images {
    margin-bottom: 1rem;
}

.service-images img {
    width: 100%;
    height: auto;
    max-height: 300px; /* 이미지 최대 높이 설정 */
    object-fit: cover; /* 이미지가 컨테이너에 맞게 조정됨 */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.service:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.team-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.team-member {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1;
    min-width: 250px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-member img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

form input, form textarea {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 1rem;
}

form button {
    padding: 10px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

form button:hover {
    background: #e5533d;
}

/* 푸터 스타일 */
footer {
    background: var(--secondary-color);
    color: #fff;
    text-align: center;
    padding: 1rem 0;
}

/* Swiper 네비게이션 버튼 스타일 */
.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #333;
        position: absolute;
        top: 60px;
        left: 0;
    }

    nav ul li {
        margin: 0;
    }

    nav ul li a {
        padding: 1rem;
        display: block;
        text-align: center;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    nav ul.active {
        display: flex;
    }

    #hero h1 {
        font-size: 2.5rem;
    }

    #hero p {
        font-size: 1.2rem;
    }

    #about .about-content img {
        width: 100%;
    }

    .swiper-container {
        width: 100%;
        overflow: hidden;
    }

    .swiper-slide {
        width: auto !important;
    }

    .service-images img {
        width: 100%;
        height: auto;
        max-height: 300px; /* 이미지 최대 높이 설정 */
    }
}

/* 추가된 스타일 */
#contact img {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 2rem;
    display: block;
    border-radius: 10px;
}
