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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

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

/* 네비게이션 섹션 */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease-out;
    /*background: rgba(0, 0, 0, 0.2);*/
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1001;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1002;
}

.nav-brand a {
    text-decoration: none;
    height:40px;
}

.nav-logo {
    height: 40px;
    width: auto;
    transition: opacity 0.3s ease;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding:3rem 0;
}

.nav-menu.active {
    transform: translateY(0);
}

.nav-toggle {
    display: block;
    background: linear-gradient(135deg, #342dba, #0ef0ef);
    border: none;
    width: 50px;
    height: 50px;
    padding: 0;
    position: relative;
    cursor: pointer;
    z-index: 1002;
    transition: all 0.3s ease;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 2px 10px rgba(52, 45, 186, 0.3);
}

.nav-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(52, 45, 186, 0.5);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: white;
    margin: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-toggle:hover span {
    background-color: white;
}

.nav-toggle.active {
    transform: rotate(180deg);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-link {
    font-size: clamp(1rem, 8vh, 3rem); /* 반응형 폰트 사이즈 */
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
}

.nav-link:hover {
    color:#6366f1;
    
    transform: scale(1.1);
}

.nav-menu.active .nav-link {
    opacity: 1;
    transform: translateY(0);
}

/* 각 링크 애니메이션 딜레이 수정 */
.nav-menu .nav-link:nth-child(1) { transition-delay: 0.2s; }
.nav-menu .nav-link:nth-child(2) { transition-delay: 0.3s; }
.nav-menu .nav-link:nth-child(3) { transition-delay: 0.4s; }
.nav-menu .nav-link:nth-child(4) { transition-delay: 0.5s; }
.nav-menu .nav-link:nth-child(5) { transition-delay: 0.6s; }



/* 버튼 스타일 */
.btn {
    padding: 12px 32px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 200px;
}

.btn-primary {
    background: rgba(104, 96, 226, 0.9);
    color: white;
}

.btn-primary:hover {
    background: rgba(104, 96, 226, 1);
    transform: scale(1.05)
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}


/* 푸터 섹션 */
.footer {
    background: #1f2937;
    color: white;
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-left {
    min-width: auto;
    max-width: 100%;
}

.footer-brand h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-brand h3 span {
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: #9ca3af;
    margin-bottom: 2rem;
    line-height: 1.8;
    word-break: keep-all;
    word-wrap: break-word;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #6366f1;
    transform: translateY(-3px);
}

.footer-right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-services h4,
.footer-contact h4 {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 1.5rem;
}

.footer-services ul,
.footer-contact ul {
    list-style: none;
}

.footer-services ul li,
.footer-contact ul li {
    margin-bottom: 0.5rem;
}

.footer-services ul li a,
.footer-contact ul li a,
.footer-contact ul li {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-services ul li a:hover,
.footer-contact ul li a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom p {
    color: #6b7280;
    font-size: 0.9rem;
}


/* 스크롤 애니메이션 */
@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* 상단 배너 나중에 class name 변경 */
/* 서비스 배너 스타일 */
.service-banner {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.service-banner .banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 20px;
    max-width: 800px;
}

.service-banner .banner-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #6366f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-banner .banner-content p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.service-banner .banner-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    border: none;
    pointer-events: none;
}

.service-banner .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.section-header {
    margin-bottom:1rem;
}


/* 기타 */
.br-mobile {
    display: none;
}

#next-trigger, 
#prev-trigger {
    display:block; position:relative; width:100%; clear:both;
}
#next-trigger .ctt, 
#prev-trigger .ctt {
    display:none;
    text-align:center;
    padding:1rem;
    width:100%;
    animation: bgChange 2s infinite alternate;
    transition: background-color 0.5s ease; /* 부드러운 전환 */
}
@keyframes bgChange {
    0% { background-color: rgba(0,0,0,0.05); }
    50% { background-color: rgba(0,0,0,0.1); }
    100% { background-color: rgba(0,0,0,0.15); }
}


/* 반응형 */

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-left {
        padding: 0 1rem;
    }

    .footer-brand p br {
        display: none;
    }

    .footer-right {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .br-mobile {
        display: inline;
    }
}

.invalid {display:block; color:#dc3545; margin-top:0.5rem; margin-bottom:0.5rem; border:1px solid rgba(0,0,0,0.1); background:rgba(0,0,0,0.05); padding: 0.25rem; border-radius:0.25rem; font-size:0.9rem;}
.invalid-border {
    border: 1px solid red!important;
}


