/* ========================================
   가람이엔지 Web5 - Multi-Page Style
   Theme: Emerald Green & Modern
   ======================================== */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    /* Colors - Emerald Green Theme */
    --primary: #059669;
    --primary-light: #10b981;
    --primary-dark: #047857;
    --secondary: #0d9488;
    --accent: #f59e0b;
    --accent-light: #fbbf24;

    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f0fdf4;
    --bg-gray: #ecfdf5;
    --bg-dark: #064e3b;

    /* Text Colors */
    --text-dark: #1f2937;
    --text-body: #4b5563;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --text-white: #ffffff;

    /* Borders */
    --border-light: #d1fae5;
    --border-medium: #a7f3d0;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(5, 150, 105, 0.05);
    --shadow-md: 0 4px 6px rgba(5, 150, 105, 0.08);
    --shadow-lg: 0 10px 25px rgba(5, 150, 105, 0.12);
    --shadow-xl: 0 20px 40px rgba(5, 150, 105, 0.15);

    /* Typography */
    --font-primary: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Poppins', 'Noto Sans KR', sans-serif;

    /* Spacing */
    --container-max: 1280px;
    --header-height: 72px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-body);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ========================================
   Utility Classes
   ======================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--bg-gray);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 640px;
    word-break: keep-all;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-header.centered {
    text-align: center;
}

.section-header.centered .section-desc {
    margin: 0 auto;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--text-white);
}

.btn-secondary:hover {
    background: var(--primary);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-white);
}

.btn-white {
    background: var(--bg-white);
    color: var(--primary);
}

.btn-white:hover {
    background: var(--bg-light);
}

.btn-text {
    color: var(--primary);
    padding: 0;
    font-weight: 600;
}

.btn-text:hover {
    color: var(--primary-dark);
}

.btn-sm {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* ========================================
   Header
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
}

.header-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    height: 40px;
    width: auto;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-icon img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-main {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo-sub {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--primary);
    letter-spacing: 0.05em;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-body);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--bg-light);
}

.nav-item.active .nav-link {
    color: var(--primary);
    background: var(--bg-light);
}

/* Dropdown */
.nav-item.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
    padding: 0.75rem;
    margin-top: 0.5rem;
}

.dropdown li a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--text-body);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.dropdown li a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 32px;
    height: 32px;
    padding: 4px;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: var(--bg-white);
    z-index: 1001;
    transition: right var(--transition-base);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.mobile-close {
    font-size: 2rem;
    color: var(--text-muted);
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.mobile-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.mobile-nav {
    flex: 1;
    padding: 1rem;
}

.mobile-nav-list > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.mobile-nav-list > li > a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.mobile-nav-list .has-submenu > a::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 300;
}

.mobile-nav-list .has-submenu.open > a::after {
    content: '−';
}

.submenu {
    display: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
}

.has-submenu.open .submenu {
    display: block;
}

.submenu li a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    color: var(--text-body);
    border-radius: var(--radius-md);
}

.submenu li a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.mobile-contact {
    padding: 1.5rem;
    background: var(--bg-light);
    border-top: 1px solid var(--border-light);
}

.mobile-contact p {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: var(--text-body);
}

.mobile-contact strong {
    color: var(--text-dark);
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    margin-top: var(--header-height);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 50%, var(--bg-gray) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(5, 150, 105, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    padding-top: 3rem;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--bg-white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.hero-tag::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-image-wrapper img {
    width: 100%;
    height: auto;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: block;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.1) 0%, transparent 100%);
    z-index: 1;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    height: 100px;
}

.stat-card {
    background: var(--bg-white);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    white-space: nowrap;
    height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    display: inline-block;
    min-width: 90px;
    text-align: center;
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    white-space: nowrap;
}

/* ========================================
   Section Styles
   ======================================== */
.section {
    padding: 6rem 0;
}

.section-light {
    background: var(--bg-light);
}

.section-gray {
    background: var(--bg-gray);
}

.section-dark {
    background: var(--bg-dark);
    color: var(--text-white);
}

.section-dark .section-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
}

.section-dark .section-title {
    color: var(--text-white);
}

.section-dark .section-desc {
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   Intro Section
   ======================================== */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.intro-content {
    padding-right: 2rem;
}

.intro-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 1.5rem;
}

.intro-image {
    position: relative;
}

.intro-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

/* ========================================
   Services Grid
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--transition-base);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-gray) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.service-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--primary);
    transition: stroke var(--transition-base);
}

.service-card:hover .service-icon svg {
    stroke: var(--text-white);
}

.service-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

.service-card p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    word-break: keep-all;
    line-height: 1.5;
}

.service-arrow {
    font-size: 1.25rem;
    color: var(--primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-base);
}

.service-card:hover .service-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================
   Special Services
   ======================================== */
.special-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.special-card {
    position: relative;
    height: 380px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    transition: all var(--transition-base);
}

.special-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.special-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    transition: all var(--transition-slow);
}

.special-card:hover .special-bg {
    transform: scale(1.1);
    opacity: 0.3;
}

.special-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--text-white);
}

.special-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    opacity: 0.2;
    position: absolute;
    top: 1.5rem;
    right: 2rem;
}

.special-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    word-break: keep-all;
}

.special-content p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    max-width: 280px;
    word-break: keep-all;
    line-height: 1.6;
}

.special-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--accent-light);
    transition: gap var(--transition-base);
}

.special-card:hover .special-link {
    gap: 0.75rem;
}

/* ========================================
   Achievements
   ======================================== */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.achievement-box {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--transition-base);
    border: 1px solid var(--border-light);
}

.achievement-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.achievement-box h3 {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    word-break: keep-all;
}

.achievement-box p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    word-break: keep-all;
    line-height: 1.6;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-white);
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    background: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    width: auto;
    height: 45px;
}

.footer-logo .logo-icon img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.footer-logo .logo-main {
    color: var(--text-white);
}

.footer-desc {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.footer-contact p {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-contact strong {
    color: var(--text-white);
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 1.25rem;
}

.footer-links ul li {
    margin-bottom: 0.625rem;
}

.footer-links ul li a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-links ul li a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.footer-bottom p {
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-legal a:hover {
    color: var(--primary-light);
}

/* ========================================
   Legal Pages (Privacy, Terms)
   ======================================== */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.legal-intro {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--primary);
}

.legal-section p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-section ul li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-color);
    line-height: 1.6;
    border-bottom: 1px solid #f0f0f0;
}

.legal-section ul li:last-child {
    border-bottom: none;
}

.legal-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.1rem;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.legal-section ul li strong {
    color: var(--text-dark);
    font-weight: 600;
}

.legal-section .info-box {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.legal-section .info-box ul li {
    border-bottom: none;
    padding: 0.5rem 0;
    padding-left: 0;
}

.legal-section .info-box ul li::before {
    display: none;
}

.legal-date {
    text-align: right;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

/* ========================================
   Page Header
   ======================================== */
.page-header {
    margin-top: var(--header-height);
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-gray) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(5, 150, 105, 0.05) 0%, transparent 70%);
}

.page-header .section-title {
    font-size: 3rem;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span {
    color: var(--text-light);
}

.breadcrumb .current {
    color: var(--primary);
    font-weight: 500;
}

/* ========================================
   Page Content
   ======================================== */
.page-content {
    padding: 4rem 0;
}

.content-section {
    margin-bottom: 4rem;
}

.content-section:last-child {
    margin-bottom: 0;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.content-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.content-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.content-card-body {
    padding: 1.75rem;
}

.content-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.content-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* Info Box */
.info-box {
    background: var(--bg-light);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-light);
}

.info-box h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.info-box ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.info-box li {
    font-size: 0.9375rem;
    color: var(--text-body);
    padding-left: 1.5rem;
    position: relative;
}

.info-box li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

/* Contact Form */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-group label .required {
    color: #ef4444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Contact Info */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-info-item {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.contact-info-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.contact-info-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-gray) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary);
}

.contact-info-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-info-item p {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

/* Map */
.map-container {
    height: 400px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-top: 3rem;
    box-shadow: var(--shadow-lg);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Notice List */
.notice-list {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.notice-item {
    border-bottom: 1px solid var(--border-light);
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.notice-header:hover {
    background-color: var(--bg-light);
}

.notice-header h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.notice-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.notice-toggle {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.notice-item.active .notice-toggle {
    transform: rotate(180deg);
}

.notice-content {
    display: none;
    padding: 0 1.5rem 1.25rem;
}

.notice-item.active .notice-content {
    display: block;
}

.notice-content p {
    font-size: 0.9375rem;
    color: var(--text-body);
    line-height: 1.8;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-gray);
}

.project-body {
    padding: 1.5rem;
}

.project-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.project-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Certifications Grid */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.cert-item {
    background: var(--bg-white);
    padding: 1.75rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.cert-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.cert-item img {
    max-height: 100px;
    margin: 0 auto 1rem;
}

.cert-item h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Patents List */
.patents-list {
    display: grid;
    gap: 1rem;
}

.patent-item {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.patent-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.patent-number {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 60px;
}

.patent-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.patent-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Awards */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.award-item {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

.award-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.award-icon {
    font-size: 2.5rem;
}

.award-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.award-content p {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.award-year {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 0.5rem;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .cards-grid,
    .projects-grid,
    .special-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cert-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        height: 80px;
    }

    .stat-card {
        padding: 1rem;
        height: 80px;
    }

    .stat-number {
        font-size: 1.75rem;
        min-width: 70px;
    }

    /* Header */
    .main-nav {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    /* Intro */
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .intro-content {
        padding-right: 0;
    }

    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Special Services */
    .special-grid {
        grid-template-columns: 1fr;
    }

    .special-card {
        height: 300px;
    }

    /* Achievements */
    .achievements-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Page Content */
    .cards-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .info-box ul {
        grid-template-columns: 1fr;
    }

    .awards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .cert-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease forwards;
}

/* Intersection Observer Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .header,
    .footer,
    .mobile-menu,
    .cta-section {
        display: none;
    }

    .hero {
        margin-top: 0;
        min-height: auto;
        padding: 2rem 0;
    }

    .page-content {
        padding: 1rem 0;
    }
}

/* Owned Equipment Grid - New 10 items */
.owned-equipment-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.owned-equipment-card {
    background: var(--bg-white);
    border-radius: 8px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: var(--transition-normal);
}

.owned-equipment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary);
}

.owned-equipment-image {
    height: 160px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.owned-equipment-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.owned-equipment-card:hover .owned-equipment-image img {
    transform: scale(1.08);
}

.owned-equipment-card h4 {
    font-size: 0.95rem;
    color: var(--text-dark);
    padding: 12px 12px 4px;
    margin: 0;
    font-weight: 600;
}

.owned-equipment-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0 12px 12px;
    margin: 0;
    line-height: 1.4;
}

.equipment-notice {
    text-align: center;
    margin-top: 25px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 8px;
}

.equipment-notice p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 1200px) {
    .owned-equipment-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .owned-equipment-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .owned-equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .owned-equipment-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   팝업 스타일
   ======================================== */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    padding: 30px;
    align-items: center;
    justify-content: center;
}

.popup-overlay.active {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    overflow-y: auto;
}

.popup-window {
    background: #fff;
    border-radius: 16px;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    max-width: 90vw;
    max-height: 85vh;
    overflow: hidden;
    animation: popupSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 4px solid var(--primary);
    min-width: 350px;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.popup-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.popup-close {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg) scale(1.1);
}

.popup-body {
    padding: 28px;
    max-height: 55vh;
    overflow-y: auto;
    background: #fafbfc;
}

.popup-body img {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.popup-content {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 1rem;
}

/* 팝업 내 HTML 렌더링 스타일 */
.popup-content p {
    margin-bottom: 1em;
}

.popup-content b,
.popup-content strong {
    font-weight: 700;
    color: #1a1a1a;
}

.popup-content i,
.popup-content em {
    font-style: italic;
}

.popup-content u {
    text-decoration: underline;
}

.popup-content ul,
.popup-content ol {
    margin: 0.5em 0 1em 1.5em;
    padding: 0;
}

.popup-content li {
    margin-bottom: 0.3em;
}

.popup-content a {
    color: var(--primary);
    text-decoration: underline;
}

.popup-content a:hover {
    color: var(--primary-dark);
}

.popup-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 10px auto;
}

.popup-link {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.popup-link:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #047857 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
    color: #fff;
}

.popup-footer {
    padding: 16px 24px;
    border-top: 2px solid #e5e7eb;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.popup-today {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #666;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.popup-today input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.popup-today:hover {
    color: var(--primary);
}

.popup-close-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.popup-close-btn:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .popup-overlay.active {
        padding: 15px;
    }

    .popup-window {
        width: 100% !important;
        max-width: 100%;
        min-width: auto;
        border-width: 3px;
    }

    .popup-header {
        padding: 16px 20px;
    }

    .popup-header h3 {
        font-size: 1.05rem;
    }

    .popup-body {
        padding: 20px;
    }

    .popup-content {
        font-size: 0.95rem;
    }

    .popup-footer {
        flex-direction: column;
        gap: 12px;
        padding: 14px 20px;
    }

    .popup-close-btn {
        width: 100%;
        padding: 12px;
    }
}
