@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
    /* Colors - Logico Rounded Inspired */
    --color-primary: #0d6f9c;
    /* Keep Brand Blue */
    --color-primary-dark: #004a94;
    --color-accent: #FFD045;
    /* Soft Yellow/Gold from Logico */
    --color-accent-hover: #ffdb72;
    --color-dark: #1A1A1A;
    /* Softer Dark */
    --color-gray: #666666;
    --color-light-gray: #f7f8fa;
    /* Premium Light Gray */
    --color-border: #eeeeee;
    --color-white: #ffffff;

    /* Layout */
    --header-height: 100px;
    /* Taller header */
    --container-width: 1440px;

    /* Rounded UI */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 30px;
    --radius-xl: 50px;
    /* For hero slides */
    --radius-pill: 100px;
    /* For buttons */

    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: var(--color-white);
    color: var(--color-dark);
    line-height: 1.7;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
    width: 100%;
    -webkit-font-smoothing: antialiased;
    /* Crisp text */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

/* Utilities */
.container-custom {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

.text-primary {
    color: var(--color-primary);
}

.text-accent {
    color: var(--color-accent);
}

.text-white {
    color: var(--color-white);
}

/* Header & GNB */
/* Header & GNB */
#hd {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: linear-gradient(177deg, #ffffff, transparent);
    z-index: 1000;
    transition: all 0.4s ease;
    border-bottom: 1px solid #fff;
}

#hd.scrolled,
#hd:hover {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    /* Glassmorphism */
    box-shadow: var(--shadow-sm);
    height: var(--header-height);
    /* Keep consistent height based on device */
}

#hd.scrolled .gnb-list>li>a {
    color: var(--color-dark);
}

#hd:hover .gnb-list>li>a {
    color: var(--color-dark);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

#logo a {
    display: block;
    height: 60px;
    /* Refined size */
}

#logo img {
    height: 100%;
    width: auto;
}

#hd.scrolled #logo img.sc,
#hd:hover #logo img.sc {
    display: none
}

#hd.scrolled #logo img.scv,
#hd:hover #logo img.scv {
    display: block
}

#logo img.scv {
    display: none
}

/* GNB - Clean Style */
.gnb-list {
    display: flex;
    gap: 40px;
    height: 100%;
    align-items: center;
}

.gnb-list>li {
    height: 100%;
    display: flex;
    align-items: center;
}

.gnb-list>li>a {
    color: #0a0a0a;
    /* Default dark for better visibility unless hero overrides */
    font-size: 20px;
    font-weight: 700;
    padding: 10px 15px;
    position: relative;
    /* border-radius: 20px; */
    transition: all 0.3s;
}

/* If hero is dark, we might need a specific class for white text initially, 
   but for now assuming dark text or handling via scroll */
#hd:not(.scrolled) .gnb-list>li>a {
    /* color: var(--color-white); */
    /* Keep it readable or make white if background is dark */
}

/* Force white on transparent header if hero is dark */
.hero-active #hd:not(.scrolled) .gnb-list>li>a {
    color: var(--color-white);
}


.gnb-list>li:hover>a {
    color: var(--color-primary);
    border-bottom: 2px solid #0d6f9c;
    /* Soft background on hover */
}

.gnb-list>li>a::after {
    display: none;
    /* Remove underline */
}

.gnb-dropdown-wrapper {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 40px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

#hd:hover .gnb-dropdown-wrapper {
    opacity: 1;
    visibility: visible;
}

.gnb-dropdown-inner {
    display: flex;
    justify-content: center;
    /* Center the dropdown content */
    gap: 80px;
    /* Match GNB gap roughly */
}

.gnb-col {
    width: 180px;
    /* Fixed width for columns */
}

.gnb-col h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-dark);
}

.gnb-col ul li {
    margin-bottom: 12px;
}

.gnb-col ul li a {
    font-size: 15px;
    color: var(--color-gray);
    transition: color 0.2s;
}

.gnb-col ul li:hover {
    color: var(--color-primary);
    font-weight: 500;
}

/* 3rd Level Menu */
.gnb-col ul li {
    position: relative;
    /* For absolute positioning of depth3 */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.has-depth3>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.has-depth3>a i {
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s;
}

.has-depth3:hover>a i {
    transform: rotate(90deg);
}

.gnb-depth3 {
    display: none;
    position: absolute;
    left: 90%;
    /* To the right */
    top: -10px;
    width: 280px;
    /* Wider for long titles in image */
    background: var(--color-white);
    padding: 15px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 1010;
    margin-left: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.gnb-col ul li:hover .gnb-depth3 {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.gnb-depth3 li {
    margin-bottom: 8px;
}

.gnb-depth3 li:last-child {
    margin-bottom: 0;
}

.gnb-depth3 li a {
    font-size: 14px;
    color: var(--color-gray);
    display: block;
    padding: 2px 0;
}

.gnb-depth3 li a:hover {
    color: var(--color-primary);
    transform: translateX(3px);
    transition: transform 0.2s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Util (Lang & Mobile) */
.header-util {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Member Links */
.member-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.member-links a {
    font-size: 20px;
    /* Larger icons */
    color: #1b1b1b;
    /* Default white */
    transition: color 0.3s;
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
}

.lang-btn {
    background: none;
    border: 1px solid rgba(18, 18, 18, 0.2);
    color: var(--color-dark);
    padding: 3px 10px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang-list {
    position: absolute;
    top: 100%;
    right: 0;
    width: 63px;
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    margin-top: 0px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 1001;
    /* Above everything */
}

.lang-dropdown:hover .lang-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-list li a {
    display: block;
    padding: 4px 10px;
    color: var(--color-dark);
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

.lang-list li a:hover {
    background: var(--color-light-gray);
    color: var(--color-primary);
}

/* Header Scrolled / Hover States - Color Sync */
#hd.scrolled .member-links a,
#hd:hover .member-links a {
    color: var(--color-dark);
}

#hd.scrolled .lang-btn,
#hd:hover .lang-btn {
    color: var(--color-dark);
    border-color: rgba(0, 0, 0, 0.1);
}

#hd.scrolled .lang-btn:hover,
#hd:hover .lang-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-dark);
    /* Default white */
    transition: color 0.3s;
}

#hd.scrolled .mobile-menu-btn,
#hd:hover .mobile-menu-btn {
    color: var(--color-dark);
}

/* Hero Slider - Cammsys Style */
/* Hero Slider - Logico Floating Style */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 800px;
    width: 100%;
    /* Floating effect margin */
    background: var(--color-white);
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
    /* Big rounded corners */
    overflow: hidden;
    /* optional shadow for the slider itself */
    box-shadow: var(--shadow-sm);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 8s ease;
    /* Slower, subtle zoom */
}

.hero-slide.active .hero-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Modern Gradient: clearer at bottom/top */
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 10%;
    /* Left aligned like Cammsys */
    transform: translateY(-50%);
    z-index: 3;
    max-width: 800px;
    text-align: left;
    color: var(--color-white);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.3s;
    /* Delay for slide transition */
    color: var(--color-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-desc {
    font-size: 1.5rem;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.5s;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.hero-slide.active .hero-title,
.hero-slide.active .hero-desc {
    opacity: 1;
    transform: translateY(0);
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: transparent;
    color: var(--color-white);
    /* Black text on Yellow */
    font-size: 16px;
    font-weight: 700;
    border: 2px solid #fafafa;
    border-radius: var(--radius-pill);
    /* Pill shape */
    box-shadow: 0 10px 20px rgba(255, 208, 69, 0.3);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease 0.7s;
}

.hero-slide.active .btn-hero {
    opacity: 1;
    transform: translateY(0);
}

.btn-hero:hover {
    background: transparent;
    color: var(--color-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 208, 69, 0.4);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 100px;
    left: 10%;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 30px;
    color: var(--color-white);
}

.slider-nav {
    display: flex;
    gap: 10px;
}

.prev-btn,
.next-btn {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: transparent;
    color: var(--color-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.prev-btn:hover,
.next-btn:hover {
    background: var(--color-white);
    color: var(--color-dark);
    border-color: var(--color-white);
}

.slide-counter {
    font-size: 18px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.current-slide {
    font-size: 24px;
    font-weight: 700;
}

.total-slides {
    opacity: 0.6;
}

.progress-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--color-white);
    width: 0;
    transition: width 0.3s linear;
}

/* Quick Inquiry Main Styles */
.quick-inquiry-section {
    position: relative;
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
}

.qi-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.qi-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Left Slogan */
.qi-left {
    width: 50%;
    padding-right: 50px;
    box-sizing: border-box;
}

.qi-slogan-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.qi-slogan-desc {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.9;
    font-weight: 300;
}

/* Right Form */
.qi-right {
    width: 45%;
}

.qi-form-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #333;
}

.qi-form-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 2px solid #005eb7;
    padding-bottom: 10px;
    display: inline-block;
    color: #005eb7;
}

.qi-form-row {
    margin-bottom: 15px;
}

.type-row {
    margin-bottom: 20px;
}

.split-row {
    display: flex;
    gap: 10px;
}

.split-row .qi-input {
    width: 50%;
}

.qi-input,
.qi-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.qi-input:focus,
.qi-textarea:focus {
    border-color: #005eb7;
    outline: none;
}

.qi-textarea {
    height: 100px;
    resize: none;
}

.radio-label {
    margin-right: 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
}

.radio-label input {
    margin-right: 5px;
    accent-color: #005eb7;
}

.privacy-row {
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #666;
}

.privacy-check {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.privacy-check input {
    margin-right: 5px;
    accent-color: #005eb7;
}

.privacy-link {
    color: #888;
    text-decoration: underline;
    margin-left: 5px;
}

.btn-qi-submit {
    width: 100%;
    background: #005eb7;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn-qi-submit:hover {
    background: #004a93;
}

/* Common Section Styles */
.section {
    padding: 120px 0;
}

.bg-gray {
    background-color: var(--color-light-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--color-gray);
}

/* Product Grid - Clean Cards */
/* Product Grid - 3x3 Clean bordered layout */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.product-card {
    background: var(--color-white);
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    text-align: center;
}

.product-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-card a {
    display: block;
    height: 100%;
}

.product-img {
    height: 250px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

.product-img img {
    transition: transform 0.5s ease;
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: auto;
    object-fit: cover;
    /* Ensure full image visibility */
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px 15px;
    background: #fdfdfd;
    border-top: 1px solid #eee;
}

.product-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: #333;
}

/* Removed old descriptions and link arrows */
.product-info p,
.link-arrow {
    display: none;
}

/* Mobile Grid */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on tablet */
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
        /* 1 column on mobile */
    }
}

/* Philosophy Section */
.philosophy-section {
    position: relative;
    height: 600px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
}

.philosophy-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Dark overlay for text readability */
}

.philosophy-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.philosophy-text {
    font-size: 2.2rem;
    font-weight: 300;
    line-height: 1.5;
}

/* Footer - Cammsys Style */
#ft {
    background: #333333;
    color: #cccccc;
    padding: 80px 0 40px;
    font-size: 14px;
}

.ft-top {
    border-bottom: 1px solid #444;
    padding-bottom: 40px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ft-links a {
    color: #ffffff;
    margin-right: 30px;
    font-weight: 500;
}

.ft-info {
    line-height: 1.8;
}

.ft-info.mb {
    display: none
}

.ft-info strong {
    color: #fff;
    font-weight: 500;
    margin-right: 5px;
}

.copyright {
    margin-top: 20px;
    color: #888;
    letter-spacing: -.5px;
}

/* Quick Menu & Top Btn */
.quick-menu {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 990;
    display: flex;
    flex-direction: column;
}

.quick-btn {
    width: 60px;
    height: 60px;
    background: var(--color-dark);
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s;
}

.quick-btn i {
    font-size: 20px;
    margin-bottom: 5px;
}

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

#top_btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    color: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 990;
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
}

#top_btn.show {
    opacity: 1;
    visibility: visible;
}

#top_btn:hover {
    background: var(--color-dark);
    color: var(--color-white);
    border-color: var(--color-dark);
}

/* Responsive styles moved to responsive.css */