/* CSS for 지오공감테크 홈페이지 */

body {
    font-family: 'Pretendard', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #fff;
}

.logo a {
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    color: #004A99; /* 신뢰감을 주는 파란색 */
}

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

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

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 18px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #004A99;
}

#hero {
    position: relative;
    height: 600px;
    background-image: url('docs/company_brochure/brochure_picture/39 지구변화.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
}

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

.hero-content p {
    font-size: 22px;
    font-weight: 300;
}

#about {
    padding: 80px 0;
    text-align: center;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

#about p {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
}

#services {
    background-color: #f9f9f9;
    padding: 80px 0;
    text-align: center;
}

.service-items {
    display: flex;
    justify-content: space-around;
    margin-top: 50px;
}

.service-item {
    width: 30%;
}

.service-item img {
    width: 100%;
    height: 200px; /* 이미지 높이 통일 */
    object-fit: cover; /* 이미지 비율 유지 */
    border-radius: 8px;
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.service-item p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

#portfolio {
    padding: 80px 0;
    text-align: center;
}

.portfolio-items {
    display: flex;
    justify-content: space-around;
    margin-top: 50px;
    flex-wrap: wrap; /* 화면 크기에 따라 줄바꿈 */
}

.portfolio-item {
    width: 30%;
    position: relative;
    margin-bottom: 30px;
    overflow: hidden; /* 둥근 모서리 적용을 위해 */
    border-radius: 8px;
}

.portfolio-item img {
    width: 100%;
    display: block;
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 74, 153, 0.85);
    color: #fff;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-info h3 {
    font-size: 20px;
    margin: 0 0 10px;
}

.portfolio-info p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

#history {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.history-list {
    list-style: none;
    padding: 0;
    margin: 50px 0 0;
    position: relative;
}

.history-list::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #004A99;
    transform: translateX(-50%);
}

.history-list li {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
}

.history-list li:nth-child(odd) {
    flex-direction: row-reverse;
}

.history-year {
    width: 50%;
    font-size: 28px;
    font-weight: bold;
    color: #004A99;
    padding: 0 40px;
    text-align: right;
}

.history-list li:nth-child(odd) .history-year {
    text-align: left;
}

.history-content {
    width: 50%;
    padding: 0 40px;
    border-left: 4px solid transparent;
}

.history-list li:nth-child(odd) .history-content {
    border-left: none;
    border-right: 4px solid transparent;
}

.history-content p {
    margin: 0 0 10px;
    font-size: 16px;
}

.history-content p:last-child {
    margin-bottom: 0;
}

#contact {
    padding: 80px 0;
    text-align: center;
}

.contact-info p {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin: 10px 0;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}
