/* 기본 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* 헤더 스타일 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo img {
    height: 40px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-list a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-list a:hover {
    color: #007bff;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.login-btn, .register-btn {
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.login-btn {
    color: #333;
    border: 1px solid #ddd;
}

.register-btn {
    background: #007bff;
    color: white;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
}

.phone {
    font-weight: bold;
    color: #007bff;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: 0.3s;
}

/* 메인 비주얼 */
.main-visual {
    margin-top: 80px;
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* 폴백 배경 (비디오가 로드되지 않을 경우) */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 히어로 비디오 */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 비디오 오버레이 */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
    pointer-events: none;
}

/* 히어로 콘텐츠 */
.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    color: white;
    text-align: center;
}

.hero-text {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1.5s ease-out 0.5s both;
}

/* 비디오는 항상 표시 */
.hero-video {
    opacity: 1;
}

/* 비디오 로드 실패 시 폴백 */
.main-visual.video-fallback {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.main-visual.video-fallback .video-overlay {
    background: rgba(0, 0, 0, 0.2);
}

/* 최근 작업 섹션 */
.recent-works {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.work-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-item a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

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

.work-image {
    height: 200px;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.work-item:hover .work-image img {
    transform: scale(1.05);
}

.work-info {
    padding: 20px;
}

.work-info h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.work-info p {
    color: #666;
    margin-bottom: 10px;
}

.work-type {
    font-size: 12px;
    color: #999;
    display: block;
    margin-bottom: 15px;
}

.read-more {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #0056b3;
}

.portfolio-notice {
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.portfolio-notice h3 {
    font-size: 24px;
    color: #007bff;
    margin-bottom: 20px;
}

/* 포트폴리오 섹션 */
.portfolio-section {
    padding: 80px 0;
    background: white;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-size: 16px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.portfolio-item {
    position: relative;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,123,255,0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

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

.portfolio-more {
    text-align: center;
}

.btn-more {
    display: inline-block;
    padding: 15px 30px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.btn-more:hover {
    background: #0056b3;
}

/* 회사 소개 섹션 */
.about-section {
    padding: 80px 0;
    background: #f8f9fa;
    position: relative;
}

.about-section .container {
    position: relative;
    z-index: 2;
}

.about-content h2 {
    text-align: center;
    margin-bottom: 50px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.stat-item-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 200px;
}

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

.stat-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.stat-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stat-info {
    text-align: center;
    margin-top: 15px;
    padding: 0 10px;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

.stat-title {
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

/* 서비스 섹션 */
.service-section {
    padding: 80px 0;
    background: white;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.service-item {
    text-align: center;
    padding: 40px 20px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-icon {
    margin-bottom: 20px;
}

.service-icon img {
    width: 80px;
    height: 80px;
}

.service-item h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.service-item p {
    color: #666;
    line-height: 1.6;
}

/* 실시간 현황 섹션 */
.realtime-status {
    padding: 80px 0;
    background: #f8f9fa;
}

.realtime-status .section-title {
    text-align: left;
    margin-bottom: 40px;
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.status-item:hover {
    transform: translateX(5px);
}

.status-type {
    background: #28a745;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    min-width: 80px;
    text-align: center;
}

.project-name {
    flex: 1;
    font-weight: 500;
}

.date {
    color: #666;
    font-size: 14px;
}

/* 연락처 섹션 */
.contact-section {
    padding: 80px 0;
    background: url('./assets/images/뒷배경.png') no-repeat center center;
    background-size: cover;
    position: relative;
    min-height: 600px;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1;
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 24px;
    margin-bottom: 30px;
    line-height: 1.4;
}

.contact-form {
    display: grid;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.email-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.email-input input {
    flex: 1;
}

.email-input select {
    flex: 1;
}

.file-info,
.file-types {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.submit-btn {
    background: #007bff;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #0056b3;
}

/* 푸터 */
.footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer h3,
.footer h4 {
    margin-bottom: 20px;
    color: #3498db;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.5px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #007bff;
    color: white;
    padding: 15px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background: #0056b3;
}

.contact-methods {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

.contact-methods h4 {
    font-size: 16px;
    font-weight: 600;
    color: #3498db;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-methods p {
    font-size: 15px;
    line-height: 1.6;
    color: #ecf0f1;
    margin-bottom: 8px;
}

.contact-methods a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-methods a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* CALL과 E-MAIL 섹션 폭 동일하게 설정 */
.call-section,
.email-section {
    min-width: 200px;
    flex: 1;
}

.quick-section {
    flex: 1;
}

.quick-section p {
    white-space: nowrap;
    word-break: keep-all;
}

.cs-center {
    text-align: center;
}

.cs-phone {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    margin: 10px 0;
}

.cs-email {
    margin-bottom: 15px;
}

.cs-hours {
    font-size: 14px;
    color: #ccc;
}

.domain-search {
    text-align: center;
}

.domain-input {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 5px;
    padding: 10px;
    margin: 15px 0;
}

.domain-input input {
    flex: 1;
    border: none;
    outline: none;
    color: #333;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 25px;
    text-align: center;
}

.company-info {
    font-size: 13px;
    color: #bdc3c7;
    margin-bottom: 15px;
    line-height: 1.5;
}

.copyright {
    font-size: 14px;
    color: #95a5a6;
    font-weight: 500;
}

/* 하단 고정 메뉴 */
.bottom-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.bottom-menu {
    display: flex;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
}

.menu-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
}

.menu-item:hover {
    background: rgba(255,255,255,0.1);
}

.menu-item .icon {
    font-size: 20px;
    margin-bottom: 5px;
}

.menu-item span:last-child {
    font-size: 12px;
}

.top-btn {
    background: #007bff;
}

/* 반응형 디자인 */
/* 태블릿 사이즈 */
@media (max-width: 992px) and (min-width: 769px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .header-right {
        flex-direction: column;
        gap: 5px;
    }
    
    .main-visual {
        height: 80vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 15px;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .main-visual {
        height: 70vh;
        min-height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-text {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .seo-grid {
        grid-template-columns: 1fr;
    }
}

/* 웹사이트 상위노출 섹션 스타일 */
.seo-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.seo-section .section-title {
    color: white;
    text-align: center;
    margin-bottom: 20px;
}

.seo-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 60px;
    font-size: 18px;
    line-height: 1.6;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    margin-left: -1cm;
    padding: 0 60px;
    box-sizing: border-box;
}

.seo-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 0;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 420px;
    overflow: hidden;
}

.seo-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.seo-image {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.seo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    display: block;
}

.seo-item h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.seo-item p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* 반응형 디자인 - SEO 섹션 */
@media (max-width: 768px) {
    .seo-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 0 30px;
        margin-left: 0;
    }
    
    .seo-item {
        padding: 0;
        min-height: 280px;
    }
    
    .seo-item h3 {
        font-size: 20px;
    }
    
    .seo-item p {
        font-size: 14px;
    }
}

/* 상위노출 완료 섹션 */
.completion-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.completion-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.completion-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    z-index: 2;
}

.completion-content {
    text-align: center;
    position: relative;
    z-index: 3;
}

.completion-section .section-title {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.completion-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.completion-item {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    aspect-ratio: 1;
    position: relative;
}

.completion-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.completion-background {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.completion-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.completion-item:hover .completion-background img {
    transform: scale(1.05);
}

.completion-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.completion-item:hover .completion-text {
    background: rgba(0, 0, 0, 0.8);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .completion-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(6, 1fr);
        gap: 15px;
        margin-top: 30px;
    }
    
    .completion-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .completion-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(12, 1fr);
        gap: 10px;
    }
    
    .completion-section {
        padding: 40px 0;
    }
} 