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

:root {
    /* Color Palette */
    --primary-blue: #0066FF;
    --light-blue: #E6F2FF;
    --sky-blue: #4DA6FF;
    --pale-blue: #F0F7FF;
    --white: #FFFFFF;
    --off-white: #FAFBFC;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --gray-600: #6C757D;
    --gray-700: #495057;
    --gray-800: #343A40;
    --gray-900: #212529;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 5rem;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-primary);
    color: var(--gray-800);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    backdrop-filter: none;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 102, 255, 0.1);
    border-bottom: 1px solid rgba(0, 102, 255, 0.1);
}

.navbar.scrolled .nav-menu a {
    color: var(--gray-900);
    text-shadow: none;
}

.navbar.scrolled .logo img {
    filter: none;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-block;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--sky-blue);
    transition: var(--transition);
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--sky-blue);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--sky-blue);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Mega Menu Overlay Design */
.mega-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mega-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mega-menu-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1200px;
    max-height: 80vh;
    background: var(--white);
    border-radius: 16px;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.mega-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.mega-close:hover {
    background: var(--gray-200);
    transform: rotate(90deg);
}

.mega-section {
    display: none;
    padding: 60px;
}

.mega-section.active {
    display: block;
}

/* Company Section */
.company-section .mega-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.mega-column h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--primary-blue);
}

.mega-column ul {
    list-style: none;
}

.mega-column li {
    margin-bottom: 0.75rem;
}

.mega-column a {
    color: var(--gray-700);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.mega-column a:hover {
    color: var(--primary-blue);
    transform: translateX(8px);
}

.mega-column a.active {
    color: #FF6B6B;
    font-weight: 600;
}

/* Product Section */
.mega-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.mega-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
}

.product-filter {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--gray-300);
    background: var(--white);
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.filter-btn.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

.product-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.product-card:hover {
    background: var(--pale-blue);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.1);
}

.product-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-card h4 i {
    font-size: 1.25rem;
}

.product-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-links a {
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.product-links a:hover {
    background: var(--white);
    color: var(--primary-blue);
    padding-left: 1rem;
}

/* Service Section */
.simple-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: var(--gray-50);
    transition: all 0.3s ease;
}

.service-card:hover {
    background: var(--pale-blue);
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 102, 255, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--light-blue);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary-blue);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.service-link:hover {
    transform: translateX(4px);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.contact-info h3,
.quick-links h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.contact-item p {
    font-size: 1.125rem;
    color: var(--gray-900);
    font-weight: 500;
}

.quick-links ul {
    list-style: none;
}

.quick-links li {
    margin-bottom: 1rem;
}

.quick-links a {
    color: var(--gray-700);
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.quick-links a:hover {
    color: var(--primary-blue);
    transform: translateX(8px);
}

/* Keep hover effect on nav items */
.has-dropdown > a {
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .mega-menu-container {
        width: 95%;
        max-height: 90vh;
    }
    
    .mega-section {
        padding: 40px 20px;
    }
    
    .company-section .mega-content,
    .simple-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-compact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .dropdown-content-wrapper,
    .unified-mega .dropdown-content-wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

.mega-dropdown {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-lg) 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.dropdown-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-lg);
    width: 100%;
}

/* Remove specific dropdown layouts */
.company-mega .dropdown-content-wrapper,
.product-mega .dropdown-content-wrapper {
    display: none;
}

/* Unified dropdown layout */
.unified-mega .dropdown-content-wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-lg);
    padding: 0 var(--spacing-md);
}

/* Always use white background for mega dropdown */
.mega-dropdown,
.navbar .mega-dropdown,
.navbar.scrolled .mega-dropdown {
    background: var(--white);
}

/* Ensure dropdown text is always dark */
.mega-dropdown .dropdown-section h3 {
    color: var(--gray-900) !important;
}

.mega-dropdown .dropdown-section a {
    color: var(--gray-700) !important;
}

.has-dropdown:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
}

/* Show unified mega dropdown when hovering any dropdown menu */
.navbar:has(.company-dropdown:hover) .unified-mega,
.navbar:has(.product-dropdown:hover) .unified-mega,
.navbar:has(.service-dropdown:hover) .unified-mega,
.navbar:has(.contact-dropdown:hover) .unified-mega,
.unified-mega:hover {
    opacity: 1;
    visibility: visible;
}

/* Dropdown groups and divider */
.dropdown-group {
    display: contents;
}

.vertical-group {
    flex-direction: column;
    gap: var(--spacing-lg);
}

.dropdown-divider {
    display: none;
}

.dropdown-section {
    padding: 0 var(--spacing-xs);
    display: flex;
    flex-direction: column;
}

.dropdown-section h3 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gray-900);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--light-blue);
    height: 32px;
    display: flex;
    align-items: center;
}

.dropdown-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-section li {
    margin-bottom: var(--spacing-sm);
}

/* Horizontal list style */
.horizontal-list {
    display: flex;
    gap: 0.375rem;
    flex-direction: row;
    flex-wrap: wrap;
}

.horizontal-list li {
    margin-bottom: 0.25rem;
    flex: 0 0 auto;
}

.product-group .horizontal-list {
    gap: 0.25rem;
}

.product-group .horizontal-list li {
    margin-bottom: 0.125rem;
}

/* Product Tab Layout */
.product-wrapper {
    width: 100%;
    max-width: 800px;
}

.product-tabs {
    display: flex;
    gap: 0;
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--gray-200);
}

.tab-button {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: var(--primary-blue);
}

.tab-button.active {
    color: var(--primary-blue);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 3px 3px 0 0;
}

.product-content {
    position: relative;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Product categories layout */
.product-wrapper .product-categories {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-lg);
}

.product-wrapper .product-category {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.product-wrapper .product-category h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-blue);
}

.vertical-product-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.vertical-product-list li {
    margin: 0;
}

.vertical-product-list a {
    display: block;
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.vertical-product-list a:hover {
    background: var(--pale-blue);
    color: var(--primary-blue);
    transform: translateX(4px);
}

.product-group .dropdown-section h3 {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--light-blue);
}

.dropdown-section a {
    color: var(--gray-700) !important;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 400;
    display: inline-block;
    padding: 0.25rem 0.5rem;
    transition: all 0.2s ease;
    position: relative;
    text-shadow: none !important;
    border-radius: 4px;
    white-space: nowrap;
}

.product-group .dropdown-section a {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
}

.dropdown-section a::after {
    display: none !important;
}

.dropdown-section a::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    background: var(--sky-blue);
    transition: height 0.2s ease;
}

.dropdown-section a:hover {
    color: var(--primary-blue) !important;
    background: var(--pale-blue);
    transform: translateX(2px);
}

.dropdown-section a:hover::before {
    height: 60%;
}

/* Dropdown underline indicator */
.has-dropdown > a {
    position: relative;
}

.has-dropdown > a::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--sky-blue);
    transition: width 0.3s ease;
}

.has-dropdown:hover > a::before {
    width: 100%;
}

/* Active state for main navigation */
.has-dropdown.active > a {
    color: #0066FF !important;  /* 파란색으로 변경 */
    font-weight: 600;
}

.navbar.scrolled .has-dropdown.active > a {
    color: #0066FF !important;
    position: relative;
}

.has-dropdown.active > a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0066FF, #4DA6FF);
    border-radius: 2px;
}

/* Active state for dropdown items */
.dropdown-section a.active {
    color: #0066FF !important;
    font-weight: 600;
    background: #E6F2FF;
    padding-left: 15px;
    border-radius: 8px;
    margin: 2px -5px;
    padding: 8px 15px;
    box-shadow: 0 2px 8px rgba(0, 102, 255, 0.15);
}

.dropdown-section a.active::before {
    height: 100% !important;
    left: 0;
    width: 4px;
    background: linear-gradient(180deg, #0066FF, #4DA6FF);
    border-radius: 2px;
}

/* Remove dropdown arrow */
.has-dropdown > a::after {
    display: none;
}

/* Mobile dropdown adjustments */
@media (max-width: 768px) {
    .mega-dropdown {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 0;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.9);
        border-radius: 0;
        padding: var(--spacing-md);
        display: none;
        min-width: auto;
    }
    
    .has-dropdown.active .mega-dropdown {
        display: flex;
        flex-direction: column;
        opacity: 1;
        visibility: visible;
    }
    
    .dropdown-section h3 {
        color: var(--white);
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .dropdown-section a {
        color: rgba(255, 255, 255, 0.8);
    }
    
    .dropdown-section a:hover {
        color: var(--sky-blue);
    }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 10001;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
    background: var(--gray-900);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0; /* 네비게이션 바와 겹치지 않도록 */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

/* Mobile specific video styles */
@media (max-width: 768px) {
    .hero-video {
        /* Ensure video covers the viewport on mobile */
        min-width: 100vw;
        min-height: 100vh;
        width: auto;
        height: auto;
        /* Samsung browser optimization */
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 1;
    transition: opacity 0.3s ease;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    position: relative;
}

.hero-title {
    margin-bottom: var(--spacing-lg);
    color: var(--white);
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-badge {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    opacity: 0;
    animation: fadeInDown 0.8s ease-out forwards;
    position: relative;
    overflow: hidden;
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent 30%, var(--sky-blue) 50%, transparent 70%);
    border-radius: 50px;
    opacity: 0;
    z-index: -1;
    animation: borderGlow 3s linear infinite;
}

.hero-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50px;
    z-index: -1;
}

@keyframes borderGlow {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Hero main text gradient effect */
.hero-main {
    display: block;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-300) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero-main::after {
    content: '리원에이스';
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--sky-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}



.highlight-text {
    color: var(--sky-blue);
    font-weight: 500;
}

/* Animated text styles */
.animated-text {
    position: relative;
    display: inline-block;
    font-weight: 600;
    color: var(--white);
}

.animated-text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sky-blue), var(--primary-blue));
    animation: underlineExpand 1s ease-out forwards;
    border-radius: 2px;
}

.animated-text.delay-1::after {
    animation-delay: 0.3s;
}

.animated-text.delay-2::after {
    animation-delay: 0.6s;
}

.animated-text.highlight-text {
    color: var(--sky-blue);
    text-shadow: 0 0 20px rgba(77, 166, 255, 0.5);
}

@keyframes underlineExpand {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100%;
        opacity: 1;
    }
}

/* Hero philosophy text animation */
.hero-philosophy {
    display: block;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 300;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
    line-height: 1.4;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.highlight {
    color: var(--sky-blue);
    position: relative;
    text-shadow: 0 0 20px rgba(77, 166, 255, 0.5);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--gray-300);
    margin-bottom: var(--spacing-xl);
    font-weight: 400;
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.7s forwards;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.subtitle-line {
    display: block;
}

.hero-subtitle strong {
    color: var(--sky-blue);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(77, 166, 255, 0.3);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.9s forwards;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 1rem;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--sky-blue);
    color: var(--white);
    border: 2px solid var(--sky-blue);
}

.btn-primary:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(77, 166, 255, 0.3);
}

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

.btn-secondary:hover {
    background: var(--light-blue);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xxl);
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.2s forwards;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    font-weight: 700;
    color: var(--sky-blue);
    margin-bottom: 0.5em;
    letter-spacing: -0.02em;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 2;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-blue);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--primary-blue);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* About Section */
.about {
    padding: var(--spacing-xxl) 0;
    background: var(--white);
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.value-card {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--pale-blue) 0%, var(--light-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--sky-blue) 0%, var(--primary-blue) 100%);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.2);
}

.value-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.value-card:hover .value-icon svg {
    color: var(--white);
    transform: scale(1.1);
}

.value-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
}

.value-card p {
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 1rem;
    word-break: keep-all;
}

.about-statement {
    text-align: center;
    margin-top: var(--spacing-xxl);
    padding: var(--spacing-xl);
    background: var(--off-white);
    border-radius: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-statement p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin: 0;
    max-width: 900px;
    margin: 0 auto;
    word-break: keep-all;
}

/* ACS Intro Section */
.acs-intro {
    text-align: center;
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-xl);
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 102, 255, 0.05);
}

.acs-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: var(--spacing-lg);
}

.acs-values {
    max-width: 800px;
    margin: 0 auto;
}

.acs-tagline {
    font-size: 1.25rem;
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.acs-value-list {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.acs-value-list span {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--pale-blue);
    color: var(--primary-blue);
    border-radius: 20px;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .acs-intro {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .acs-logo {
        max-width: 150px;
    }
    
    .acs-tagline {
        font-size: 1.1rem;
    }
    
    .acs-value-list {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .acs-value-list span {
        width: fit-content;
        margin: 0 auto;
    }
}

/* Features Section */
.features {
    padding: var(--spacing-xxl) 0;
    background: var(--off-white);
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    font-size: 1.25rem;
    color: var(--gray-600);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.feature-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 102, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 380px;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sky-blue) 0%, var(--primary-blue) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.15);
    border-color: var(--light-blue);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--light-blue);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.icon-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--sky-blue) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover .icon-bg {
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.1; }
    100% { transform: scale(0.8); opacity: 0.3; }
}

.feature-icon svg {
    width: 35px;
    height: 35px;
    color: var(--primary-blue);
    z-index: 1;
    position: relative;
}

.feature-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
}

.feature-content {
    margin-bottom: var(--spacing-lg);
    flex: 1;
}

.feature-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--spacing-sm);
}

.feature-desc {
    color: var(--gray-600);
    line-height: 1.8;
}

.feature-benefits {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--spacing-xs);
    justify-content: center;
    margin-top: auto;
}



.benefit-tag {
    background: var(--pale-blue);
    color: var(--primary-blue);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.813rem;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Products Section */
.products {
    padding: var(--spacing-xxl) 0;
    background: var(--white);
    overflow: hidden;
}

.product-slider-wrapper {
    margin: var(--spacing-lg) 0;
    position: relative;
    overflow: hidden;
}

/* 오픈소스 슬라이더 스타일 */
.opensource-slider {
    margin-bottom: var(--spacing-lg);
}

/* 양쪽 블러 그라데이션 효과 */
.product-slider-wrapper::before,
.product-slider-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.product-slider-wrapper::before {
    left: 0;
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.8) 30%,
        rgba(255, 255, 255, 0.5) 60%,
        rgba(255, 255, 255, 0) 100%);
}

.product-slider-wrapper::after {
    right: 0;
    background: linear-gradient(to left, 
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.8) 30%,
        rgba(255, 255, 255, 0.5) 60%,
        rgba(255, 255, 255, 0) 100%);
}

.product-slider {
    padding: var(--spacing-lg) 0;
}

.product-track {
    display: flex;
    width: fit-content;
}

/* 오른쪽에서 왼쪽으로 슬라이드 (오픈소스) */
.product-track.slide-right {
    animation: slideRight 40s linear infinite;
}

/* 왼쪽에서 오른쪽으로 슬라이드 (솔루션) */
.product-track.slide-left {
    animation: slideLeft 40s linear infinite;
}

/* 제품 슬라이드 공통 스타일 */
.product-slide {
    flex: 0 0 auto;
    width: 180px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.product-slide:hover {
    transform: translateY(-2px);
}

.product-slide img {
    max-width: 140px;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

/* NDR-MDX, Net-insider 로고용 특별 스타일 (배경이 필요한 경우) */
.product-slide img[alt="NDR_MDX"],
.product-slide img[alt="Net-insider"] {
    filter: grayscale(100%) invert(1);
    background: rgba(0, 0, 0, 0.8);
    padding: 8px;
    border-radius: 4px;
}

.product-slide:hover img[alt="NDR_MDX"],
.product-slide:hover img[alt="Net-insider"] {
    filter: grayscale(0%) invert(0);
    background: rgba(0, 0, 0, 0.9);
}

/* SUSE 로고 크기 조정 (좀 더 크게) */
.product-slide img[alt="SUSE"] {
    max-width: 160px;
    max-height: 60px;
    filter: grayscale(100%) invert(1);
    background: rgba(0, 0, 0, 0.8);
    padding: 12px;
    border-radius: 4px;
}

.product-slide:hover img[alt="SUSE"] {
    filter: grayscale(0%) invert(0);
    background: rgba(0, 0, 0, 0.9);
}

/* 호버 효과 */
.product-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* 큰 로고들을 위한 추가 조정 */
.product-slide img[alt="AWS"],
.product-slide img[alt="Docker"] {
    max-width: 120px;
    max-height: 40px;
}

/* NAVER Cloud 로고 크기 조정 */
.product-slide img[alt="NAVER Cloud"] {
    max-width: 140px;
    max-height: 45px;
}

/* 세로형 로고들을 위한 조정 */
.product-slide img[alt="MariaDB"],
.product-slide img[alt="MySQL"] {
    max-width: 110px;
    max-height: 55px;
}

/* 작은 로고들 크기 조정 */
.product-slide img[alt="Rocky Linux"],
.product-slide img[alt="Kubernetes"],
.product-slide img[alt="WhaTap"],
.product-slide img[alt="A10 Networks"] {
    max-width: 150px;
    max-height: 55px;
}

/* 오른쪽에서 왼쪽으로 애니메이션 */
@keyframes slideRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 왼쪽에서 오른쪽으로 애니메이션 */
@keyframes slideLeft {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.product-info {
    text-align: center;
    max-width: 800px;
    margin: var(--spacing-xl) auto 0;
}

.product-info h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
}

.product-info > p {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.product-item {
    background: var(--pale-blue);
    padding: var(--spacing-md);
    border-radius: 12px;
    text-align: left;
    transition: var(--transition);
}

.product-item:hover {
    background: var(--light-blue);
    transform: translateY(-2px);
}

.product-name {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.product-desc {
    display: block;
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* Code Showcase Section (이제 사용 안함) */
.code-showcase {
    padding: var(--spacing-xxl) 0;
    background: var(--white);
}

.showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.showcase-text h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
}

.showcase-text p {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

.stats {
    display: flex;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.stat h4 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-xs);
}

.stat p {
    color: var(--gray-600);
    font-weight: 500;
}

.showcase-code {
    background: var(--gray-900);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.code-header {
    background: var(--gray-800);
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.code-dots {
    display: flex;
    gap: 8px;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-600);
}

.code-dots span:nth-child(1) { background: #FF5F56; }
.code-dots span:nth-child(2) { background: #FFBD2E; }
.code-dots span:nth-child(3) { background: #27C93F; }

.code-title {
    color: var(--gray-400);
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

pre {
    padding: var(--spacing-md);
    overflow-x: auto;
}

code {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gray-300);
}

.code-comment { color: #6A9955; }
.code-key { color: #9CDCFE; }
.code-string { color: #CE9178; }
.code-boolean { color: #569CD6; }

/* Projects Section */
.projects {
    padding: var(--spacing-xxl) 0;
    background: var(--pale-blue);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.project-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.1);
    border-color: var(--light-blue);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.project-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
}

.project-badge {
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.project-card p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.project-tech {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

.project-tech span {
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: var(--font-mono);
}

.project-links {
    display: flex;
    gap: var(--spacing-md);
}

.project-links a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.project-links a:hover {
    text-decoration: underline;
}

/* CTA Section */
.cta {
    padding: var(--spacing-xxl) 0;
    background: url('../assets/cta.jpg') center/cover no-repeat;
    text-align: center;
    position: relative;
}

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

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-md);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cta-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-lg);
}

.cta .btn-primary {
    font-size: 1.125rem;
    padding: 16px 40px;
    background: var(--white);
    color: var(--primary-blue);
    border-color: var(--white);
}

.cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}



/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: var(--spacing-sm);
    filter: brightness(0) invert(1);
}

.footer-desc {
    margin-top: var(--spacing-sm);
    line-height: 1.8;
}

.footer-section h4 {
    color: var(--white);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: var(--spacing-sm);
}

.footer-section a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
}

/* More Button Styles */
.about-cta,
.products-cta {
    text-align: center;
    margin-top: var(--spacing-xl);
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 12px 24px;
    background: transparent;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--primary-blue);
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-more:hover {
    color: var(--white);
    border-color: var(--sky-blue);
    background: var(--sky-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(77, 166, 255, 0.3);
}

.arrow-icon {
    width: 20px;
    height: 20px;
    animation: arrowMove 1.5s ease-in-out infinite;
}

@keyframes arrowMove {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--gray-800);
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    z-index: 100;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.4);
    background: var(--sky-blue);
}

.floating-btn svg {
    width: 24px;
    height: 24px;
}

.chatbot-btn {
    background: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.chatbot-btn:hover {
    background: var(--sky-blue);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.4);
}

.scroll-top-btn {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    .floating-btn {
        width: 45px;
        height: 45px;
    }
    
    .floating-btn svg {
        width: 20px;
        height: 20px;
    }
}

/* Products Showcase */
.products-showcase {
    margin-top: var(--spacing-xl);
}

.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    align-items: center;
}

.product-info h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
}

.product-desc {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

.product-features {
    list-style: none;
    margin-bottom: var(--spacing-lg);
}

.product-features li {
    padding: var(--spacing-sm) 0;
    padding-left: var(--spacing-lg);
    position: relative;
    color: var(--gray-700);
    line-height: 1.6;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

.product-actions {
    display: flex;
    gap: var(--spacing-md);
}

.product-preview {
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-window {
    background: var(--gray-900);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.product-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.1);
    border-color: var(--light-blue);
}

.product-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-blue);
    border-radius: 16px;
}

.product-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.product-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
}

.product-card p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.product-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.product-link:hover {
    text-decoration: underline;
}

/* Product slider responsive blur */
@media (max-width: 768px) {
    .product-slider-wrapper::before,
    .product-slider-wrapper::after {
        width: 80px;
    }
}

/* Prevent scrolling when mobile menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

@media (max-width: 480px) {
    .product-slider-wrapper::before,
    .product-slider-wrapper::after {
        width: 50px;
    }
}

/* Tech Stack Section - 제거됨 */

/* Mobile only line break */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: inline;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation Mobile */
    .navbar {
        padding: 15px 0;
        background: transparent;
        backdrop-filter: none;
    }
    
    .navbar.scrolled {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
    }
    
    .navbar .logo img {
        height: 35px;
        filter: brightness(0) invert(1);
    }
    
    .navbar.scrolled .logo img {
        filter: none;
    }
    
    .nav-menu {
        display: none !important;
    }
    
    /* PC 메가드롭다운도 모바일에서 숨기기 */
    .unified-mega {
        display: none !important;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-menu a {
        color: var(--gray-900);
        text-shadow: none;
        font-size: 1.125rem;
        padding: 15px 0;
        display: block;
        width: 100%;
    }
    
    .nav-toggle {
        display: flex !important;
        z-index: 10000;
    }
    
    .navbar .nav-toggle span {
        background: var(--white);
    }
    
    .navbar.scrolled .nav-toggle span {
        background: var(--gray-900);
    }
    
    /* Mobile Menu Animation */
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero Mobile */
    .hero {
        padding: 0 15px;
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height */
    }
    
    .hero-content {
        padding: 0 10px;
        text-align: center;
    }
    
    .hero-title {
        margin-bottom: 20px;
        text-align: center;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 16px;
        margin-bottom: 15px;
    }
    
    .hero-main {
        font-size: clamp(2.5rem, 8vw, 3rem);
        margin-bottom: 10px;
        letter-spacing: -0.03em;
    }
    
    .hero-philosophy {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
        line-height: 1.4;
        margin-bottom: 20px;
        font-weight: 300;
    }
    
    .animated-text {
        font-weight: 500;
    }
    
    .animated-text::after {
        height: 2px;
        bottom: -2px;
    }
    
    .hero-philosophy .highlight-text {
        font-weight: 400;
    }
    
    /* Mobile line break */
    .hero-philosophy .mobile-break::before {
        content: "\A";
        white-space: pre;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .subtitle-line {
        display: block;
        margin-bottom: 5px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 16px 24px;
        font-size: 1rem;
        text-align: center;
    }
    
    .hero-stats {
        margin-top: 50px;
        gap: 30px;
        justify-content: center;
        flex-direction: row;
    }
    
    .stat-item {
        text-align: center;
    }
    
    .stat-number {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
    
    .stat-label {
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    /* About Mobile */
    .about {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .about-values-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
    }
    
    .value-card {
        padding: 30px 20px;
    }
    
    .value-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .value-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .value-card h3 {
        font-size: 1.25rem;
        margin-bottom: 10px;
    }
    
    .value-card p {
        font-size: 0.9rem;
    }
    
    .about-statement {
        padding: 30px 20px;
        margin-top: 40px;
    }
    
    .about-statement p {
        font-size: 1rem;
        line-height: 1.7;
        word-break: keep-all;
    }
    
    .about-cta {
        margin-top: 30px;
    }
    
    /* Features Mobile */
    .features {
        padding: 60px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }
    
    .feature-card {
        padding: 30px 20px;
        text-align: center;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 20px;
    }
    
    .feature-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .feature-card h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .feature-content {
        text-align: center;
    }
    
    .feature-subtitle {
        font-size: 0.9rem;
        margin-bottom: 8px;
        text-align: center;
    }
    
    .feature-desc {
        font-size: 0.9rem;
        line-height: 1.6;
        text-align: center;
    }
    
    .feature-benefits {
        margin-top: 20px;
        justify-content: center;
        gap: 6px;
    }
    
    .benefit-tag {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    
    /* Products Mobile */
    .products {
        padding: 60px 0;
    }
    
    .product-slider-wrapper {
        margin: 20px 0;
    }
    
    .product-slide {
        width: 100px;
        height: 50px;
        margin: 0 5px;
        padding: 5px;
    }
    
    .product-slide img {
        max-width: 80px;
        max-height: 35px;
    }
    
    /* 특정 로고 크기 조정 */
    .product-slide img[alt="SUSE"] {
        max-width: 70px;
        max-height: 30px;
    }
    
    .product-slide img[alt="AWS"],
    .product-slide img[alt="Docker"] {
        max-width: 60px;
        max-height: 25px;
    }
    
    .product-slide img[alt="NAVER Cloud"] {
        max-width: 75px;
        max-height: 30px;
    }
    
    .product-slide img[alt="MariaDB"],
    .product-slide img[alt="MySQL"] {
        max-width: 60px;
        max-height: 35px;
    }
    
    .product-slide img[alt="Rocky Linux"],
    .product-slide img[alt="Kubernetes"],
    .product-slide img[alt="WhaTap"],
    .product-slide img[alt="A10 Networks"] {
        max-width: 70px;
        max-height: 30px;
    }
    
    /* 모바일에서 흐백 필터 로고 패딩 조정 */
    .product-slide img[alt="NDR_MDX"],
    .product-slide img[alt="Net-insider"] {
        padding: 5px;
    }
    
    .product-slide img[alt="SUSE"] {
        padding: 8px;
    }
    
    /* CTA Mobile */
    .cta {
        padding: 60px 20px;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
        white-space: normal;
        margin-bottom: 15px;
    }
    
    .cta-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .cta .btn-primary {
        font-size: 1rem;
        padding: 14px 30px;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .footer-section ul {
        margin-bottom: 0;
    }
    
    .footer-section li {
        margin-bottom: 10px;
    }
    
    .footer-section a {
        font-size: 0.9rem;
    }
    
    .footer-desc {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .footer-bottom {
        padding-top: 20px;
        font-size: 0.85rem;
    }
    
    /* Container adjustments */
    .container {
        padding: 0 20px;
    }
    
    /* Dropdown for mobile */
    .mega-dropdown {
        display: none !important;
    }
    
    /* Mobile dropdown styles */
    .nav-menu > li {
        position: relative;
    }
    
    .has-dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .has-dropdown > a::after {
        content: ' ▼';
        font-size: 0.7rem;
        margin-left: auto;
        opacity: 0.5;
        transition: transform 0.3s ease;
    }
    
    .has-dropdown.active > a::after {
        transform: rotate(180deg);
    }
    
    /* Mobile submenu */
    .mobile-dropdown {
        display: none;
        padding: 10px 0;
        background: rgba(0, 0, 0, 0.02);
        margin: 0 -20px;
        padding-left: 40px;
        padding-right: 20px;
    }
    
    .has-dropdown.active .mobile-dropdown {
        display: block;
    }
    
    .mobile-dropdown a {
        font-size: 0.95rem;
        padding: 10px 0;
        color: var(--gray-600) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .mobile-dropdown a:last-child {
        border-bottom: none;
    }
    
    /* Animations for mobile */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 480px) {
    /* Extra small devices */
    .hero-badge {
        font-size: 0.625rem;
        padding: 5px 12px;
        letter-spacing: 0.05em;
    }
    
    .hero-main {
        font-size: 2.25rem;
        line-height: 1.1;
    }
    
    .hero-philosophy {
        font-size: 1.125rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }
    
    .hero-buttons .btn {
        font-size: 0.875rem;
        padding: 12px 20px;
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: space-around;
        gap: 10px;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .stat-label {
        font-size: 0.625rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .about-values-grid,
    .features-grid {
        gap: 20px;
    }
    
    .value-card,
    .feature-card {
        padding: 20px 15px;
    }
    
    .product-slide {
        width: 80px;
        height: 45px;
        margin: 0 3px;
        padding: 3px;
    }
    
    .product-slide img {
        max-width: 60px;
        max-height: 30px;
    }
    
    /* 특정 로고 크기 추가 조정 */
    .product-slide img[alt="SUSE"] {
        max-width: 55px;
        max-height: 25px;
    }
    
    .product-slide img[alt="AWS"],
    .product-slide img[alt="Docker"] {
        max-width: 50px;
        max-height: 20px;
    }
    
    .product-slide img[alt="NAVER Cloud"] {
        max-width: 60px;
        max-height: 25px;
    }
    
    .product-slide img[alt="MariaDB"],
    .product-slide img[alt="MySQL"] {
        max-width: 45px;
        max-height: 28px;
    }
    
    .product-slide img[alt="Rocky Linux"],
    .product-slide img[alt="Kubernetes"],
    .product-slide img[alt="WhaTap"],
    .product-slide img[alt="A10 Networks"] {
        max-width: 55px;
        max-height: 25px;
    }
    
    /* 480px 이하에서 흐백 필터 로고 패딩 추가 조정 */
    .product-slide img[alt="NDR_MDX"],
    .product-slide img[alt="Net-insider"] {
        padding: 4px;
    }
    
    .product-slide img[alt="SUSE"] {
        padding: 6px;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Floating buttons smaller on mobile */
    .floating-buttons {
        bottom: 15px;
        right: 15px;
        gap: 8px;
    }
    
    .floating-btn {
        width: 40px;
        height: 40px;
    }
    
    .floating-btn svg {
        width: 18px;
        height: 18px;
    }
}

/* Product Menu Styles - New Layout */

.vertical-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.vertical-list li {
    margin: 0;
}

.vertical-list a {
    display: block;
    padding: 0.25rem 0.375rem;
    font-size: 0.813rem;
    color: var(--gray-700) !important;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-shadow: none !important;
}

.vertical-list a:hover {
    background: var(--pale-blue);
    color: var(--primary-blue) !important;
    transform: translateX(2px);
}

/* Remove any conflicting styles */
.product-group .dropdown-section a::before,
.product-group .dropdown-section a::after {
    display: none !important;
}

/* ========== Product Submenu Styles ========== */

/* 제품 메인 메뉴 */
.product-main-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-main-menu > li {
    position: relative;
    margin-bottom: 8px;
}

.has-submenu {
    position: relative;
}

.submenu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.375rem 0.75rem;
    color: var(--gray-700);
    text-decoration: none;
    background: transparent;
    border: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 400;
    font-size: 0.875rem;
    position: relative;
    white-space: pre;
}

.submenu-trigger:hover {
    color: var(--primary-blue);
    background: var(--pale-blue);
    transform: translateX(2px);
}

.submenu-trigger .arrow {
    font-size: 10px;
    margin-left: 6px;
    transition: transform 0.3s ease;
    display: inline-block;
    opacity: 0.5;
}

.submenu-trigger:hover .arrow {
    opacity: 1;
    transform: translateX(2px);
}

/* 서브메뉴 드롭다운 */
.submenu {
    position: absolute;
    left: calc(100% - 80px);
    top: 0;
    margin-left: 0;
    min-width: 600px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 102, 255, 0.08);
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

.submenu.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* 서브메뉴 카테고리 */
.submenu-category {
    padding: 0;
}

.submenu-category h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--light-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.submenu-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.submenu-category ul li {
    margin-bottom: 4px;
}

.submenu-category ul li a {
    display: block;
    padding: 6px 8px;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 0.813rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
}

.submenu-category ul li a:hover {
    background: var(--pale-blue);
    color: var(--primary-blue);
    padding-left: 12px;
}

/* 반응형 조정 */
@media (max-width: 1200px) {
    .submenu {
        position: fixed;
        left: auto;
        right: 20px;
        top: auto;
        margin-left: 0;
        max-width: calc(100vw - 40px);
    }
}

@media (max-width: 768px) {
    .submenu {
        position: static;
        margin: 10px 0;
        width: 100%;
        min-width: auto;
        box-shadow: none;
        border: none;
        background: #f8f8f8;
        grid-template-columns: 1fr;
    }
    
    .submenu-trigger .arrow {
        display: none;
    }
    
    .has-submenu:hover .submenu {
        display: block;
    }
}

/* 기존 product-group 스타일 조정 */
.product-group {
    min-width: 250px;
}

.product-group .dropdown-section {
    padding: 20px;
}

.product-group .dropdown-section h3 {
    margin-bottom: 15px;
}

/* ========== Performance Optimization Classes ========== */

/* Optimized Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.animate-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* GPU acceleration for specific elements */
.hero-video,
.hero-overlay {
    will-change: transform, opacity;
}

/* Reduce animation complexity on mobile */
@media (max-width: 768px) {
    .animate-on-scroll {
        transform: translateY(10px);
        transition-duration: 0.4s;
    }
    
    /* Disable complex animations on mobile */
    .hero-video {
        transform: translate(-50%, -50%) !important;
    }
    
    .hero-overlay {
        opacity: 0.8 !important;
    }
    
    /* Simplify hover effects */
    .feature-card:hover,
    .product-card:hover,
    .value-card:hover {
        transform: translateY(-5px);
    }
}

/* Optimize scrollbar for smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* Lazy loading images */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
    /* Disable expensive filters on mobile */
    .hero-video {
        filter: none !important;
    }
    
    /* Simplify box shadows */
    .feature-card,
    .product-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    /* Reduce transition durations */
    * {
        transition-duration: 0.2s !important;
    }
    
    /* Disable hover effects on touch devices */
    @media (hover: none) {
        .feature-card:hover,
        .product-card:hover,
        .value-card:hover {
            transform: none !important;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        }
    }
}

/* Hardware acceleration for critical animations */
.nav-menu,
.mega-dropdown,
.floating-btn,
.product-track {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}