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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 헤더 */
header {
    background: #0F1C35;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    min-width: 200px;
}

.logo-img {
    width: 40%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    padding: 0.5rem 1rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: #3498db;
}

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

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* 메인 콘텐츠 */
main {
    margin-top: 80px;
}

/* 히어로 섹션 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('../images/bg-infra.png');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    color: white;
    text-align: center;
    /* padding: 8rem 2rem; */
    padding: 4rem 2rem; /* 줄인 패딩 */
    /* min-height: 80vh; */
    min-height: 50vh; /* 기존 80vh → 절반으로 줄임 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.3s both;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* 페이지 히어로 */
.page-hero {
    /* background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%); */
    background: #0F1C35;
    color: white;
    text-align: center;
    padding: 3rem 2rem;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* 버튼 */
.btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn:hover {
    background: #2980b9;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* 섹션 */
.section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #2c3e50;
}
/* 갤러리 섹션 스타일 - 수정된 버전 */
.gallery-container {
    position: relative;
    margin-top: 40px;
    padding: 40px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-container {
    width: 100%;
    max-width: 600px; /* 기존 1000px에서 400px로 변경 (1/4 크기) */
    margin: 2rem auto;
    padding-bottom: 3rem; /* 점 네비게이션 공간을 위해 증가 */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    height: 200px; /* 기존보다 작은 높이로 설정 */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 30px 15px 15px;
    font-size: 1rem; 
    font-weight: 600;
    text-align: center;
    border-radius: 0 0 12px 12px;
} */

.caption {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 1rem;
    text-align: center;
    font-size: 1rem;
    position: absolute;
    bottom: 0;
    width: 100%;
  }
/* Swiper 네비게이션 스타일 - 점만 유지 */
.swiper-pagination {
    position: relative !important;
    bottom: auto !important;
    margin-top: 20px !important;
    text-align: center;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #667eea;
    opacity: 0.3;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.3);
    background: #764ba2;
}

/* 화살표 버튼 숨기기 */
.swiper-button-next,
.swiper-button-prev {
    display: none !important;
}

/* 로딩 애니메이션 */
.swiper-slide {
    opacity: 0;
    animation: fadeInSlide 0.8s ease forwards;
}

.swiper-slide:nth-child(1) { animation-delay: 0.1s; }
.swiper-slide:nth-child(2) { animation-delay: 0.2s; }
.swiper-slide:nth-child(3) { animation-delay: 0.3s; }
.swiper-slide:nth-child(4) { animation-delay: 0.4s; }

/* 회사소개 */
.about-intro-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
}
/* row-reverse 적용 (이미지 왼쪽, 텍스트 오른쪽) */
.about-intro-container.reverse {
    flex-direction: row-reverse;
}

.about-text {
    flex: 1;
    min-width: 280px;
}

.about-text h2 {
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.about-text ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.about-image {
    flex: 1;
    min-width: 280px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 오른쪽 정렬용 클래스 추가 */
.about-text.right-align,
.about-text.right-align h2,
.about-text.right-align p {
    text-align: right !important;
}


/* 특징/서비스 카드 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #3498db;
}

/* 서비스 페이지 스타일 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #3498db;
}
.service-icon img {
    max-width: 300px;     /* 또는 원하는 너비 */
    max-height: 300px;    /* 또는 원하는 높이 */
    object-fit: contain; /* 비율 유지하면서 잘 맞춤 */
    display: block;
    margin: 0 auto;       /* 가운데 정렬 */
  }
.service-card h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.5rem;
}

.service-card p {
    margin-bottom: 1.5rem;
    color: #666;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
    text-align: left;
}

.service-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li:before {
    content: "✓";
    color: #3498db;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.service-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #3498db;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
}

/* 프로세스 스타일 */
.process-section {
    background: #f8f9fa;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.process-step {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.process-step h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}
/* 서비스 */
.product-intro-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
}

.product-text {
    flex: 1;
    min-width: 280px;
}

.product-text h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.product-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-text ul {
    list-style: disc;
    padding-left: 1.5rem;
}

.product-image {
    flex: 1;
    min-width: 280px;
    text-align: center;
}

.product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* CTA 섹션 */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* 회사소개 페이지 스타일 */
.about-bg {
    background: #f8f9fa;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* 연혁 타임라인 */
.timeline {
    max-width: 600px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    margin-bottom: 2rem;
    align-items: center;
}

.timeline-year {
    background: #3498db;
    color: white;
    padding: 1rem;
    border-radius: 50px;
    font-weight: bold;
    margin-right: 2rem;
    min-width: 80px;
    text-align: center;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

/* 연락처 페이지 */
.contact-container {
    /* display: grid; */
    display: block; /* 2열 grid 제거 */
    padding: 2rem;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    text-align: left;
}
.contact-form-container h2 {
    margin-bottom: 1rem;
    /* color: #2c3e50; */
}

.contact-item {
    display: block; /* flex 제거 */
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    margin-top: 0.2rem;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
    /* color: #2c3e50; */
}

/* 폼 스타일 */
.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group textarea {
    resize: vertical;
}

/* 지도 섹션 */
.map-section {
    background: #f8f9fa;
}

.map-container {
    max-width: 800px;
    margin: 0 auto;
}

.map-placeholder {
    background: #ddd;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    color: #666;
}

.map-placeholder p:first-child {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* 푸터 */
footer {
    /* background: #1a1a1a; */
    background: #0F1C35;
    color: white;
    padding: 3rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

 .footer-logo {
    /*flex: 0 0 200px; */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo-img {
    width: 250px;
    height: 70px;
    margin-bottom: 1rem;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-info {
    flex: 1;
    margin-left: 3rem;
}

.footer-info-item {
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.footer-info-item strong {
    color: #3498db;
    margin-right: 0.5rem;
}

.footer-copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #999;
}

/* 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0F1C35;
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .hero h1 {
        font-size: 1.5rem;
    }
    
  .hero p {
    font-size: 1.0rem; /* 모바일에서 p 폰트 작게 */
  }


    .page-hero h1 {
        font-size: 2rem;
    }

    .section {
        padding: 2rem 1rem;
    }
    .section h2 {

        font-size: 1.5rem;

    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline-item {
        flex-direction: column;
        text-align: center;
    }

    .timeline-year {
        margin-right: 0;
        margin-bottom: 1rem;
    }

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

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

    .process-steps {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start; /* ⬅️ 왼쪽 정렬로 고정 */
        text-align: left;
        
    }

    .footer-info {
        margin-left: 0;
        margin-top: 2rem;
        text-align: left;
    }
    .footer-logo {
        align-items: flex-start; /* ⬅️ center → flex-start */
        min-height: 0;
      }
    .footer-logo-img {
       height: 32px;       
       width: auto;
       /* margin-bottom: 0.5rem; */
       object-fit: contain;
    }
    .gallery-container {
        position: relative;
        margin-top: 20px;
        padding: 20px 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .swiper-container {
        /* max-width: 300px; 
        height: 180px !important;   
        min-height: 180px !important; */
        width: 100%;
        max-width: 100%;
        overflow: hidden; /* 넘치는 영역 숨김 */
        margin: 2rem auto;
        padding-bottom: 3rem; /* 점 네비게이션 공간을 위해 증가 */
    }
    
    .swiper-slide {
        height: 180px !important;
        min-height: 180px !important;
        width: auto;
        max-width: 80%;
    }
    .swiper-slide img {
        height: 100% !important;
        object-fit: cover;
    }

    .caption {
        font-size: 0.9rem;
        padding: 25px 12px 12px;
    }
}
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
