/* 전역 변수 정의 - 색상 및 공통 값 */
:root {
    --main-color: #E0A080;
    /* 메인 컬러 - 브라운 계열 */
    --sub-color: #4A90E2;
    /* 서브 컬러 - 블루 계열 */
    --text-color: #333333;
    /* 텍스트 컬러 - 진한 회색 */
    --bg-color: #FFFFFF;
    /* 배경 컬러 - 흰색 */
}

/* 기본 스타일 리셋 및 전역 스타일 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

/* 섹션 공통 스타일 */
.section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-sizing: border-box;
    position: relative;
}

/* 콘텐츠 컨테이너 스타일 */
.content {
    max-width: 1200px;
    text-align: center;
    width: 100%;
}

/* 글래스모피즘 효과 */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
}

/* 제목 스타일 */
h1 {
    font-size: 3rem;
    color: var(--main-color);
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    color: var(--sub-color);
    margin-bottom: 1rem;
}

h3 {
    font-size: 2rem;
    color: var(--main-color);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* 단락 스타일 */
p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* AI 도구 섹션 스타일 */
.ai-tool {
    padding: 4rem 2rem;
    background-color: var(--bg-color);
}

.ai-tool-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

/* AI 도구 로고 스타일 */
.tool-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
}

.tool-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* AI 도구 텍스트 영역 스타일 */
.tool-text {
    padding: 2rem;
    background: var(--bg-color);
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.tool-text ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.tool-text li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.tool-text li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--main-color);
}

/* AI 도구 이미지 스타일 */
.tool-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tool-image img:hover {
    transform: scale(1.02);
}

/* 포트폴리오 섹션 스타일 */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 포트폴리오 아이템 스타일 */
.portfolio-item {
    background: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* 이미지 컨테이너 */
.portfolio-image-container {
    position: relative;
}

.portfolio-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* 플랫폼 아이콘 스타일 */
.platform-icons {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px;
    border-radius: 5px;
    z-index: 1;
}

.platform-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* 포트폴리오 컨텐츠 영역 */
.portfolio-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* 프로젝트 상세 정보 스타일 */
.project-details {
    flex: 1;
    margin: 1.5rem 0;
}

.detail-item {
    margin-bottom: 1rem;
}

.detail-label {
    color: #666666;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    display: block;
}

.detail-content {
    color: var(--text-color);
    line-height: 1.4;
}

/* 버튼 공통 스타일 */
.btn,
.simulator-guide {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background: var(--sub-color);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    height: 40px;
    /* 모든 버튼 높이 통일 */
}

.btn:hover {
    background: var(--main-color);
    transform: translateY(-2px);
}

/* 시뮬레이터 가이드 스타일 */
.simulator-guide {
    background: var(--main-color);
    gap: 8px;
}

.simulator-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    cursor: pointer;
}

.simulator-badge {
    font-size: 0.875rem;
    line-height: 1;
    color: inherit;
    padding: 0;
    background: none;
}

/* 버튼 컨테이너 스타일 */
.button-container {
    display: flex;
    justify-content: flex-end;
    /* 기본적으로 우측 정렬 */
    padding-top: 1rem;
    margin-top: auto;
    height: 40px;
    align-items: center;
}

/* 후기 섹션 베이스 스타일 */
.section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-sizing: border-box;
    position: relative;
}

/* 후기 섹션 메인 */
#review-main {
    background: var(--bg-color);
}

#review-main h2 {
    font-size: 3rem;
    color: var(--main-color);
    margin-bottom: 1rem;
    text-align: center;
}

/* 후기 섹션 공통 스타일 */
.review-section {
    background: var(--bg-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.review-section .content {
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
}

/* 후기 섹션 타이틀 */
.review-title {
    font-size: 2.5rem;
    color: var(--main-color);
    margin-bottom: 2rem;
    text-align: left;
    position: relative;
    padding-bottom: 1rem;
}

/* 타이틀 밑줄 효과 */
.review-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--sub-color);
}

/* 후기 리스트 스타일 */
.review-list {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.review-list li {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    position: relative;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* 리스트 불릿 스타일 */
.review-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--main-color);
    font-size: 1.5rem;
}

/* 후기 섹션 애니메이션 관련 클래스 */
.review-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.review-fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* 후기 섹션 배경 그라데이션 효과 */
.review-section:nth-child(odd) {
    background: linear-gradient(to bottom, var(--bg-color), #f5f5f7);
}

.review-section:nth-child(even) {
    background: linear-gradient(to bottom, #f5f5f7, var(--bg-color));
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    /* 메인 타이틀 */
    #review-main h2 {
        font-size: 2.5rem;
    }

    /* 서브 타이틀 */
    .review-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    /* 리스트 아이템 */
    .review-list li {
        font-size: 1rem;
        padding-left: 1.5rem;
        margin-bottom: 1.2rem;
        line-height: 1.6;
    }

    /* 패딩 조정 */
    .review-section .content {
        padding: 0 1rem;
    }

    /* 타이틀 밑줄 */
    .review-title::after {
        width: 80px;
        height: 2px;
    }
}

/* 스크롤 가이드 스타일 */
.scroll-guide {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--main-color);
    font-size: 1.2rem;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

/* 스크롤 가이드 애니메이션 */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-20px);
    }

    60% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* 맨 위로 가기 버튼 스타일 */
.top-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--main-color);
    color: var(--bg-color);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0.8;
}

.top-button:hover {
    background-color: var(--sub-color);
    transform: translateY(-3px);
    opacity: 1;
}

/* 반응형 디자인 */

@media (max-width: 480px) {
    #review-main h2 {
        font-size: 2rem;
    }

    .review-title {
        font-size: 1.8rem;
    }

    .review-list li {
        font-size: 0.9rem;
        padding-left: 1.2rem;
    }
}

@media (max-width: 768px) {

    /* 텍스트 크기 조정 */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1rem;
    }

    /* 레이아웃 조정 */
    .ai-tool-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    /* AI 도구 로고 크기 조정 */
    .tool-logo {
        width: 60px;
        height: 60px;
    }

    /* 여백 조정 */
    .section {
        padding: 1rem;
    }

    .ai-tool {
        padding: 2rem 1rem;
    }

    /* 포트폴리오 아이템 조정 */
    .portfolio-image {
        height: 180px;
    }

    .review-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    .review-item {
        padding: 1.5rem;
    }

    .review-title {
        font-size: 1.3rem;
    }

    /* 맨 위로 가기 버튼 크기 조정 */
    .top-button {
        width: 40px;
        height: 40px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }
}

@media print {
    .review-section {
        page-break-inside: avoid;
    }
}