/* 기본 리셋 및 공통 스타일 */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* 전체 레이아웃 */
.wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
}

/* 헤더 스타일 */
header {
    background: url('coding_img.jpg') no-repeat center center/cover;
    height: 100vh;
    color: white;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

header nav {
    position: absolute;
    top: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    z-index: 2;
}

header nav .logo {
    font-size: 1.8rem;
    font-weight: bold;
}

header nav ul {
    display: flex;
    gap: 30px;
}

header nav ul li {
    list-style: none;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
}

header nav ul li a:hover {
    text-decoration: underline;
}

.header-content {
    z-index: 2;
    max-width: 700px;
    translate: t;

    opacity: 0;
    transform: translateY(150px);
    transition: opacity 2s ease, transform 2s ease;
}

.header-content.visible {
    opacity: 1;
    transform: translateY(0px);
}

.header-content h1 {
    font-size: 3.5rem;
    margin: 0;
}

.header-content p {
    font-size: 1.2rem;
    margin: 20px 0;
}

.cta-button {
    padding: 10px 30px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
}

.cta-button:hover {
    background-color: #218838;
}

/* 섹션 스타일 */
section {
    padding: 50px 20px;
    text-align: center;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

section ul {
    list-style-type: none;
    padding: 0;
    font-size: 1.2rem;
    line-height: 1.8;
}

section ul li {
    margin-bottom: 15px;
    text-align: left;
}


/* 타이틀과 설명 컨테이너 */
.title-and-list-container {
    display: flex;
    align-items: flex-start; /* 상단 정렬 */
    gap: 30px; /* 제목과 내용 간격 */
    padding: 50px 20px;
    max-width: 1200px; /* 최대 너비 설정 */
    margin: 0 auto; /* 중앙 정렬 */
    
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.title-and-list-container.visible {
    opacity: 1;
    transform: translateX(0px);
}


.title-and-list-title1 h2 {
    font-size: 2.5rem;
    margin: 0;
    color: #333;
    border-left: 5px solid #007bff; /* 강조를 위한 왼쪽 선 */
    padding-left: 15px;
}


/* 제목 스타일 */
.title-and-list-title {
    flex: 1; /* 제목 영역 비율 */
    text-align: left; /* 왼쪽 정렬 */
}

.title-and-list-title h2 {
    font-size: 2.5rem;
    margin: 0;
    color: #333;
    border-left: 5px solid #007bff; /* 강조를 위한 왼쪽 선 */
    padding-left: 15px;
}

/* 내용 스타일 */
.title-and-list-content {
    flex: 2; /* 내용 영역 비율 */
    text-align: left; /* 왼쪽 정렬 */
    line-height: 1.8;
    font-size: 1.2rem;
    color: #555;
}

.title-and-list-content ul {
    list-style-type: none; /* 기본 리스트 스타일 제거 */
    padding: 0;
}

.title-and-list-content ul li {
    margin-bottom: 15px; /* 항목 간격 */
}

.title-and-list-content ul li strong {
    color: #333; /* 강조 색상 */
    font-weight: bold;
}

.title-and-list-content td {
    padding: 10px;
}

.cards-title {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    position: relative;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.cards-title::after {
    content: '';
    display: block;
    width: 80%;
    height: 2px;
    background-color: #64afff; /* 밑줄 색상 */
    margin: 0.5rem auto 0; /* 가운데 정렬 */
}

.cards-title.visible {
    opacity: 1;
    transform: translateY(0px);
}

/*세부적인 세션*/
#tech-stack {
    background-color: #f0f0f0;
}

#dev-areas {
    background-color: #ffffff;
}

#contact {
    background-color: #ffffff;
}

/*카드 css*/
.card-grid {
    display: flex;
    justify-content: center;
    gap: 120px;
    flex-wrap: wrap;
}

.card {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 40px;
    width: 80%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.0s ease, transform 1.0s ease;
}

.card.visible {
    transform: translateY(0px);
    opacity: 1;
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.card p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #666;
}

.card table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
  }
  
.card table th,
.card table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    font-size: 1.1rem;
}

.card blockquote {
    font-style: italic;
    color: #555;
    padding: 8px 16px;
    border-left: 4px solid #007BFF;
    background: #f2f2f2;
    margin: 0;
  }

.more-button {
    padding: 8px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
}

.more-button:hover {
    background-color: #0056b3;
}


/* 기술 스택 스타일 */
.tech-stack-container {
    display: flex;
    align-items: flex-start;
    gap: 30px; /* 제목과 내용 사이 간격 */
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto; /* 전체를 중앙에 배치 */

    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.tech-stack-container.visible {
    transform: translateX(0px);
    opacity: 1;
}

/* 제목 스타일 */
.tech-stack-title {
    flex: 1; /* 제목 공간 비율 */
    text-align: left; /* 제목 왼쪽 정렬 */
}

.tech-stack-title h2 {
    font-size: 2.5rem;
    margin: 0;
    color: #333;
    border-left: 5px solid #007bff; /* 강조를 위한 왼쪽 선 */
    padding-left: 15px;
}

/* 기술 스택 콘텐츠 */
.tech-stack-content {
    flex: 3; /* 내용 공간 비율 */
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 15px; /* 각 기술 스택 간격 */
}

/* 개별 기술 아이템 스타일 */
.tech-item {
    display: flex;
    align-items: center;
    gap: 20px; /* 텍스트와 그래프 간격 */
}

.tech-item p {
    width: 150px; /* 텍스트 공간 고정 */
    font-size: 1.2rem;
    margin: 0;
    font-weight: bold;
    color: #333;
    text-align: right; /* 텍스트 오른쪽 정렬 */
}

/* 기술 바 스타일 */
.tech-bar-container {
    flex-grow: 1; /* 그래프가 남은 공간을 채우도록 */
    height: 20px;
    background-color: #e0e0e0; /* 기본 배경 */
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.tech-bar {
    height: 100%;
    border-radius: 10px;
    width: 0; /* 초기 너비를 0으로 설정 */
    transition: width 1.5s ease-in-out; /* 애니메이션 효과 */
    background-color: #009adc;
}

.tech-bar.visible {
    width: var(--target-width); 
}


/*컨택 컨테이너*/
.contact-container {
    display: flex;
    align-items: flex-start; /* 상단 정렬 */
    gap: 30px; /* 제목과 내용 간격 */
    padding: 50px 20px;
    max-width: 1200px; /* 최대 너비 설정 */
    margin: 0 auto; /* 중앙 정렬 */
    
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

/* 제목 스타일 */
.contact-title {
    flex: 1; /* 제목 영역 비율 */
    text-align: left; /* 왼쪽 정렬 */
}

.contact-title h2 {
    font-size: 2.5rem;
    margin: 0;
    color: #333;
    border-left: 5px solid #007bff; /* 강조를 위한 왼쪽 선 */
    padding-left: 15px;
}


/* 푸터 스타일 */
footer {
    background-color: #343a40;
    color: white;
    padding: 20px;
    text-align: center;
}

footer p {
    margin: 10px 0;
}

footer a {
    color: #28a745;
    text-decoration: none;
}

footer a:hover {
    color: #218838;
}



/* 반응형 디자인 */
@media (max-width: 768px) {
    header {
        height: 70vh;
        padding: 10px;
    }

    header nav {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav ul {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .header-content p {
        font-size: 0.9rem;
    }

    .card {
        width: 100%;
        padding: 15px;
    }

    .title-and-list-container {
        flex-direction: column;
        gap: 20px;
        transform: translateY(50px); /* X축 -> Y축 */
    }

    .title-and-list-container.visible {
        transform: translateY(0px);
    }

    .title-and-list-title, .title-and-list-content {
        width: 100%;
    }

    .tech-stack-container {
        flex-direction: column;
        transform: translateY(50px); /* X축 -> Y축 */
    }

    .tech-stack-container.visible {
        transform: translateY(0px);
    }

    .tech-stack-title, .tech-stack-content {
        width: 100%;
    }
}

@media (max-width: 480px) {
    header nav ul li a {
        font-size: 0.9rem;
    }

    .header-content h1 {
        font-size: 1.8rem;
    }

    .header-content p {
        font-size: 0.8rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 8px 20px;
    }

    .card {
        padding: 10px;
        transform: translateY(50px); /* X축 -> Y축 */
    }

    .card.visible {
        transform: translateY(0px);
    }

    .tech-item p {
        font-size: 0.9rem;
        width: 60px;
    }
}
