/*
 * 파일명: style.css
 * 역할: site1 웹사이트의 전반적인 스타일을 정의합니다. (블랙&화이트/블루 포인트, Pretendard 폰트)
 */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.8/dist/web/variable/pretendardvariable.css");

:root {
    --primary-color: #0b224f;
    /* 딥 블루 (GlobalHost 느낌) */
    --secondary-color: #2e59a8;
    /* 밝은 블루 */
    --background-color: #ffffff;
    --surface-color: #f7f9fc;
    --border-color: #eaedf2;
    --text-primary: #1a1b1f;
    --text-secondary: #5c6270;
    --text-light: #9499a3;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Pretendard Variable", Pretendard, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed);
}

ul {
    list-style: none;
}

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

/* Animations */
.ani {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.ani.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-speed);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.header .nav-link {
    font-weight: 600;
    color: #fff;
    margin-right: 2rem;
    position: relative;
    padding-bottom: 5px;
}

.header .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s;
}

.header .nav-link:hover::after {
    width: 100%;
}

.header.scrolled .nav-link {
    color: var(--text-primary);
}

.header.scrolled .nav-link::after {
    background: var(--primary-color);
}

.header.scrolled .nav-link:hover {
    color: var(--primary-color);
}

.header .logo img {
    height: 40px;
}

/* 만약 로고가 흰색이면 반전 */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff !important;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-white {
    border: 1px solid #fff;
    color: #fff;
}

.btn-outline-white:hover {
    background-color: #fff;
    color: var(--primary-color);
}

.header .btn-login {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.header .btn-login:hover {
    background: #fff;
    color: var(--primary-color);
}

.header.scrolled .btn-login {
    background: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
}

.header.scrolled .btn-login:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.header .btn-logout {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.header .btn-logout:hover {
    background: #fff;
    color: var(--primary-color);
}

.header.scrolled .btn-logout {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.header.scrolled .btn-logout:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(8, 16, 35, 0.85) 0%, rgba(11, 34, 79, 0.7) 100%);
    z-index: -1;
}

.hero-content {
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content h2 span {
    color: #5ea3ff;
}

.hero-content p {
    font-size: 1.2rem;
    color: #d1d9e6;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Sub Title Box */
.title-box {
    text-align: center;
    margin-bottom: 50px;
}

.title-box h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.title-box dd {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.pt100 {
    padding-top: 100px;
    padding-bottom: 100px;
}

/* Service Box 1 */
.service-box .listbox ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-box .box {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    height: 100%;
}

.service-box .box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border-color: var(--secondary-color);
}

.service-box .icon {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.service-box .circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--surface-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--primary-color);
    font-size: 0.9rem;
    line-height: 1.2;
}

.service-box .box:hover .circle {
    background: var(--primary-color);
    color: #fff;
}

.service-box dl dt {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.service-box dl dd {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Service Box 2 */
.service-box2 {
    padding: 100px 0;
    background-color: var(--surface-color);
}

.service-box2 .listbox2 ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-box2 li {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s;
}

.service-box2 li:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.service-box2 .imgbox {
    height: 180px;
    background: var(--text-light);
    position: relative;
}

.service-box2 .protocol-bg {
    width: 100%;
    height: 100%;
}

.service-box2 .rtmp-bg {
    background: linear-gradient(135deg, #112651, #304e90);
}

.service-box2 .webrtc-bg {
    background: linear-gradient(135deg, #182848, #4b6cb7);
}

.service-box2 .hls-bg {
    background: linear-gradient(135deg, #232526, #414345);
}

.service-box2 .txtbox {
    padding: 30px;
}

.service-box2 .txtbox dt {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.service-box2 .txtbox dd {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* New Box */
.new-box {
    padding: 100px 0;
}

.new-box h3 span {
    color: var(--secondary-color);
}

.newCont {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-box {
    background: var(--primary-color);
    color: #fff;
    border-radius: 12px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-inner dl {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.contact-inner dl span {
    display: block;
    font-size: 1.2rem;
    font-weight: 400;
    margin-top: 5px;
    color: #aec2f0;
}

.contact-inner dt {
    font-size: 1rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

.new-box .listbox {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
}

.nav-tabs {
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}

.nav-tabs ul {
    display: flex;
    gap: 30px;
}

.nav-tabs li {
    padding-bottom: 10px;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    color: var(--text-secondary);
}

.nav-tabs li.active {
    color: var(--primary-color);
}

.nav-tabs li.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.tabCont .tab {
    display: none;
}

.tabCont .tab.active {
    display: block;
}

.tabCont li {
    border-bottom: 1px solid var(--border-color);
}

.tabCont li a {
    display: flex;
    align-items: center;
    padding: 20px 0;
}

.tabCont li a:hover .txt {
    color: var(--secondary-color);
    text-decoration: underline;
}

.tabCont .type {
    font-weight: 800;
    color: var(--secondary-color);
    width: 80px;
}

.tabCont .txtbox {
    display: flex;
    justify-content: space-between;
    flex-grow: 1;
}

.tabCont .date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.all-view {
    margin-top: 20px;
    text-align: right;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Common Banner */
.common-banner {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    background: #fff;
    overflow: hidden;
}

.rolling-wrap {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    position: relative;
}

.rolling {
    display: inline-flex;
    animation: rolling 20s linear infinite;
}

.rolling:hover {
    animation-play-state: paused;
}

.rolling li {
    display: inline-block;
    padding: 0 40px;
}

.partner-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ccc;
    filter: grayscale(1);
    transition: all 0.3s;
}

.rolling li:hover .partner-logo {
    color: var(--primary-color);
    filter: grayscale(0);
}

@keyframes rolling {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Footer */
.footer {
    background: #081123;
    color: #fff;
    padding: 60px 0 30px;
}

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

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo img {
    height: 35px;
    filter: grayscale(1) brightness(200%);
}

.footer-desc {
    color: #8f9db5;
    font-size: 0.95rem;
    line-height: 1.8;
}

.footer-title {
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #8f9db5;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #5c6270;
    font-size: 0.9rem;
}

/* Responsive */
@media(max-width: 992px) {
    .service-box .listbox ul {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-box2 .listbox2 ul {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .hero-content h2 {
        font-size: 2.8rem;
    }
}

@media(max-width: 768px) {
    .service-box .listbox ul {
        grid-template-columns: 1fr;
    }

    .service-box2 .listbox2 ul {
        grid-template-columns: 1fr;
    }

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

    .header .container {
        height: 60px;
    }

    .header .nav {
        display: none;
    }

    .header .logo img {
        height: 30px;
    }

    .header-actions {
        display: flex;
        gap: 5px;
    }

    .header .btn {
        padding: 0.5rem 0.6rem !important;
        font-size: 0.85rem;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .hero-actions {
        flex-direction: column;
    }
}

/* Auth Forms */
.auth-section {
    padding: 150px 0 100px;
    background-color: var(--surface-color);
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    background: #fff;
    width: 100%;
    max-width: 440px;
    padding: 50px 40px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dcdde1;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(46, 89, 168, 0.1);
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
    margin-top: 10px;
}

.auth-footer {
    margin-top: 25px;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--secondary-color);
    font-weight: 600;
    margin-left: 5px;
}

.auth-footer a:hover {
    text-decoration: underline;
}