/* General styling */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden; /* Prevents horizontal scrolling */
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    background-image: url('../img/main.jpg'); /* Replace with your hero image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; /* Prevent image repetition */
}

/* a {
    color: white;
    text-decoration: none;
} */

/* Hero Section */
.hero {
    margin-top: 100px;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
    width: 100%; /* Ensure the section spans the full width */
    box-sizing: border-box; /* Prevents overflow caused by padding */
}

.hero::before {
    margin-top: -100px;
    content: "";
    opacity: 0.4;
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    background-color: #000;
}

.hero-content {
    z-index: 0; /* Ensures the hero content stays behind the header */
}

.hero-content h1 {
    font-size: 48px;
    margin: 0;
}

.hero-content p {
    font-size: 24px;
}

.hero-content button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #e74c3c;
    border: none;
    color: white;
    border-radius: 5px;
}

.hero-content button:hover {
    background-color: #c0392b;
}

/* Features Section */
.features {
    display: flex;
    justify-content: space-around;
    padding: 50px 0;
    background-color: #6a452c;
    box-sizing: border-box; /* Prevents padding from causing overflow */
    width: 100%; /* Ensure it spans the full container width */
}

.feature {
    text-align: center;
    width: 20%;
}

.feature img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.feature h2 {
    margin: 15px 0 10px;
}

/* 
footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: white;
    width: 100%; 
    box-sizing: border-box; 
} */

/* Card Section */
/* 카드 배경 스타일 */
.card-background {
    background: rgba(255, 255, 255, 0.8); /* 배경을 반투명 흰색으로 */
    padding: 1px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    width: fit-content;
}

/* 프로젝트 카드 스타일 */
.project-card {
    width: 100px; /* 카드 너비 */
    height: 150px; /* 카드 높이 */
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* 썸네일 이미지 스타일 */
.project-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 이미지가 카드 크기에 맞게 조절됨 */
    border-radius: 10px;
}
