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

:root {
    --primary-color: #1a365d;
    --secondary-color: #2d5aa0;
    --accent-color: #e53e3e;
    --gold-color: #d4af37;
    --text-dark: #2d3748;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --white: #ffffff;
    --black: #000000;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* 좌우 스크롤 방지 */
    width: 100vw; /* 뷰포트 너비 고정 */
}

body {
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden; /* 좌우 스크롤 방지 */
    width: 100vw; /* 뷰포트 너비 고정 */
    position: relative;
    min-height: 100vh;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Navigation - PERFECT VERTICAL CENTER ALIGNMENT */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0;
    transition: all 0.3s ease;
    height: 75px; /* Optic Sky Productions 스타일 - 슬림한 헤더 */
    display: flex;
    align-items: center;
    justify-content: center; /* 수평 중앙 정렬 */
}

.navbar.scrolled {
    background: rgba(26, 54, 93, 0.85); /* Optic Sky 스타일 - 더 투명하게 */
    backdrop-filter: blur(20px); /* 더 강한 블러 */
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1); /* 부드러운 그림자 */
}

.nav-container {
    max-width: none; /* 최대 너비 제한 제거 - 전체 폭 사용 */
    margin: 0;
    padding: 0 40px; /* 왼쪽 정렬을 위한 패딩 */
    display: flex;
    justify-content: flex-start; /* 왼쪽 정렬 */
    align-items: center; /* 수직 중앙 정렬 */
    width: 100%;
    height: 100%; /* 네비게이션 바 높이에 맞춤 */
    position: relative; /* 자식 요소의 절대 위치를 위한 설정 */
}

.nav-logo {
    display: flex;
    align-items: center; /* 수직 중앙 정렬 */
    height: 100%; /* 컨테이너 높이에 맞춤 */
    margin-left: 0; /* 왼쪽 마진 제거 */
    padding-left: 0; /* 왼쪽 패딩 제거 */
    flex-shrink: 0; /* 로고가 줄어들지 않도록 설정 */
    position: relative; /* 상대 위치 */
    left: 0; /* 왼쪽 끝에 위치 */
    margin-right: auto; /* 오른쪽 마진 자동 - 메뉴 버튼을 오른쪽으로 밀어냄 */
}

.logo-image {
    height: 45px; /* Optic Sky Productions 스타일 - 적당한 크기의 로고 */
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3)); /* Optic Sky 스타일 - 부드러운 그림자 */
    display: block; /* 블록 요소로 설정 */
    margin-left: 0 !important; /* 왼쪽 마진 제거 */
    padding-left: 0 !important; /* 왼쪽 패딩 제거 */
    position: relative; /* 상대 위치 */
    left: 0; /* 왼쪽 끝에 위치 */
}



.nav-logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}



/* MENU Button - 벤치마킹 사이트 스타일 */
.menu-button {
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(26, 54, 93, 0.1);
    color: var(--primary-color);
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 80px;
    text-align: center;
}

.menu-button:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    color: var(--secondary);
}

.menu-button:active {
    transform: translateY(-50%) scale(0.98);
}

/* Slide Menu Panel - 벤치마킹 사이트 스타일 */
.slide-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Initially hidden - 화면 밖으로 */
    width: 400px; /* 고정 너비 */
    height: 100vh;
    background: rgba(26, 54, 93, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1002;
    transition: right 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.slide-menu.active {
    right: 0; /* Slide in from right */
}

.slide-menu-content {
    position: relative;
    height: 100%;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
}

.close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1003;
    opacity: 0;
    transform: translateX(20px);
}

.slide-menu.active .close-menu {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.3s ease 0.6s;
}
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-menu:hover {
    color: var(--gold-color);
}

.slide-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 5rem;
}

.slide-nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 300;
    padding: 1.2rem 1.5rem;
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
    position: relative;
    border-left: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    opacity: 0;
    transform: translateX(30px);
}

/* 메뉴가 활성화될 때 링크들이 나타남 */
.slide-menu.active .slide-nav-link {
    opacity: 1;
    transform: translateX(0);
}

.slide-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--secondary);
    padding-left: 2rem;
}

.slide-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

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

.slide-nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--secondary);
    border-left-color: var(--secondary);
}


    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.3s;
}

/* 닫힐 때의 부드러운 애니메이션 */
.dropdown-menu:not(.show) .dropdown-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(-15px);
    height: 0;
    visibility: hidden;
}

/* 하위 메뉴가 열릴 때 링크들이 순차적으로 나타남 */
.dropdown-menu.show .dropdown-link {
    opacity: 1;
    transform: translateY(0);
}

.dropdown-menu.show .dropdown-link:nth-child(1) {
    transition-delay: 0.1s;
}

.dropdown-menu.show .dropdown-link:nth-child(2) {
    transition-delay: 0.2s;
}

.dropdown-menu.show .dropdown-link:nth-child(3) {
    transition-delay: 0.3s;
}

.dropdown-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: width 0.6s ease;
}

.dropdown-link:hover::before {
    width: 100%;
}

.dropdown-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--secondary);
    border-left-color: var(--gold-color);
    padding-left: 2.5rem;
}

.slide-nav-dropdown {
    position: relative;
    margin: 0;
}

.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-toggle::after {
    content: '▶';
    font-size: 0.7rem;
    margin-left: 10px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255, 255, 255, 0.6);
}

.dropdown-toggle:hover::after {
    color: var(--secondary);
}

.dropdown-toggle.active::after {
    transform: rotate(90deg);
    color: var(--secondary);
}

.dropdown-toggle.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary);
}

.dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-top: 0;
    margin-left: 0;
    opacity: 0;
    border-left: 3px solid transparent;
}

.dropdown-menu.show {
    max-height: none; /* JavaScript에서 동적으로 설정 */
    opacity: 1;
    border-left-color: var(--secondary);
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 부드러운 등장 애니메이션 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.dropdown-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: width 0.6s ease;
}

.dropdown-link:hover::before {
    width: 100%;
}

.dropdown-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--secondary);
    padding-left: 2rem;
    transform: translateX(5px);
}

.dropdown-link.active {
    color: var(--secondary);
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--secondary);
}

/* Hide the old navigation elements */
.nav-menu,
.nav-toggle {
    display: none !important;
}

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

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-title .subtitle {
    display: block;
    font-size: 1.75rem;
    font-weight: 400;
    margin-top: 0.5rem;
    opacity: 0.9;
}

.highlight {
    color: var(--gold-color);
    font-size: 2.8rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

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

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

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

/* About Section */
.about {
    padding: 100px 0;
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-item i {
    font-size: 2rem;
    color: var(--secondary-color);
    min-width: 50px;
}

.feature-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-item p {
    margin: 0;
    color: var(--text-light);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    text-align: center;
    padding: 2.5rem;
    background: var(--bg-light);
    border-radius: 15px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

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

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Languages Section */
.languages {
    padding: 100px 0;
    background: var(--bg-light);
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    text-align: center;
}

.language-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

.language-item:hover {
    transform: scale(1.05);
}

.language-item img {
    width: 50px;
    height: 30px;
    object-fit: cover;
    border-radius: 3px;
}

.language-item span {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-top: 0.2rem;
}

.contact-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
}

.contact-hours {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 10px;
}

.contact-hours h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-hours p {
    color: var(--text-light);
    margin: 0.3rem 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--gold-color);
}

.footer-logo span {
    font-size: 0.9rem;
    color: #a0aec0;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-languages {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-languages span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #a0aec0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0aec0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-image {
        height: 60px;
    }
    
    /* 모바일 메뉴 버튼 - Optic Sky Productions 스타일 */
    .menu-button {
        top: 50% !important;
        right: 20px !important; /* Optic Sky 스타일 */
        transform: translateY(-50%) !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
        background: rgba(255, 255, 255, 0.9) !important;
        color: #1a365d !important;
        border: 1px solid rgba(255, 255, 255, 0.5) !important;
        border-radius: 4px !important; /* Optic Sky 스타일 - 각진 모서리 */
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
        z-index: 9999 !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
    }
    
    /* 슬라이드 메뉴 모바일 최적화 */
    .slide-menu {
        width: 85%; /* 모바일에서는 85%로 증가 */
        right: -85%;
    }
    
    .slide-menu.active {
        right: 0;
    }
    
    /* 슬라이드 메뉴 링크 크기 조정 */
    .slide-nav-link {
        font-size: 1.2rem;
        padding: 1rem 0;
    }
    
    /* 드롭다운 메뉴 모바일 스타일 */
    .dropdown-link {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
    }
    
    .dropdown-menu {
        margin-left: 0.8rem;
    }
    
    /* 히어로 타이틀 크기 조정 */
    .hero-title {
        font-size: 2.2rem;
        padding: 0 15px;
    }
    
    .hero-title .subtitle {
        font-size: 1.3rem;
    }
    
    .highlight {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        padding: 12px 25px;
        font-size: 16px;
        min-width: 200px;
        text-align: center;
    }
}

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-title .subtitle {
        font-size: 1.25rem;
    }

    .highlight {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .languages-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* 초소형 화면 메뉴 버튼 - Optic Sky Productions 스타일 */
    .menu-button {
        top: 50% !important;
        right: 15px !important;
        transform: translateY(-50%) !important;
        padding: 6px 10px !important;
        font-size: 0.7rem !important;
        background: rgba(255, 255, 255, 0.9) !important;
        color: #1a365d !important;
        border: 1px solid rgba(255, 255, 255, 0.5) !important;
        border-radius: 3px !important; /* Optic Sky 스타일 */
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3) !important;
        z-index: 9999 !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        min-width: 50px !important;
    }
}
    
    /* 초소형 화면 슬라이드 메뉴 */
    .slide-menu {
        width: 90%; /* 더 좁은 화면에서는 90%로 */
        right: -90%;
    }
    
    /* 로고 크기 조정 */
    .logo-image {
        height: 50px; /* 작은 화면에서는 작은 크기로 */
    }
    
    /* 네비게이션 바 높이 조정 */
    .navbar {
        height: 80px; /* 작은 화면에서는 낮은 높이로 */
    }
}

/* 초고해상도 모니터 대응 - 3440x1440 등 */
@media (min-width: 2560px) {
    .nav-container {
        max-width: none; /* 최대 너비 제한 완전 제거 */
        padding: 0 60px; /* 좌우 여백 증가 */
    }
    
    .logo-image {
        height: 55px; /* 고해상도에서는 약간 큰 로고 */
        margin-left: 0 !important;
        padding-left: 0 !important;
        position: relative;
        left: 0 !important;
    }
    
    .menu-button {
        right: 60px !important; /* 오른쪽 여백 증가 */
    }
}

/* 3440px 이상 초고해상도 특별 대응 */
@media (min-width: 3440px) {
    .nav-container {
        padding: 0 80px; /* 3440px용 여백 */
    }
    
    .logo-image {
        height: 60px; /* 3440px용 큰 로고 */
        margin-left: 0 !important;
        padding-left: 0 !important;
        left: 0 !important;
    }
    
    .menu-button {
        right: 80px !important; /* 3440px용 오른쪽 여백 */
    }
}

@media (max-width: 768px) {
    .logo-image {
        height: 50px;
    }
    
    /* 히어로 타이틀 크기 조정 */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-title .subtitle {
        font-size: 1rem;
    }
    
    .highlight {
        font-size: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
/* 갤럭시 폴드 특별 대응 */
@media (max-width: 375px) and (min-height: 800px) {
    /* 접힌 상태의 갤럭시 폴드 - 세로가 긴 화면 */
    body {
        overflow-x: hidden !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }
    
    .menu-button {
        position: fixed !important;
        top: 25px !important;
        right: 25px !important;
        padding: 15px 20px !important;
        font-size: 16px !important;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
        color: #1a365d !important;
        border: 1.5px solid #ffffff !important;
        border-radius: 35px !important;
        box-shadow: 
            0 10px 30px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
        z-index: 999999 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-width: 90px !important;
        font-weight: 900 !important;
        letter-spacing: 1px !important;
        backdrop-filter: blur(10px) !important;
        transform: none !important;
    }
    
    /* 히어로 섹션 최적화 */
    .hero-title {
        font-size: 2.2rem !important;
        padding: 0 20px !important;
    }
    
    .hero-title .subtitle {
        font-size: 1.4rem !important;
    }
    
    .hero-buttons {
        flex-direction: column !important;
        gap: 20px !important;
        align-items: center !important;
    }
    
    .hero-buttons .btn {
        min-width: 220px !important;
        padding: 18px 30px !important;
        font-size: 18px !important;
        border-radius: 30px !important;
    }
    
    /* 슬라이드 메뉴 특별 최적화 */
    .slide-menu {
        width: 100% !important; /* 갤럭시 폴드는 전체 화면으로 */
        right: -100% !important;
        background: linear-gradient(135deg, rgba(26, 54, 93, 0.98) 0%, rgba(45, 90, 160, 0.98) 100%) !important;
    }
    
    .slide-nav-link {
        font-size: 1.4rem !important;
        padding: 1.5rem 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    /* 컨테이너 너비 제한 */
    .container {
        padding: 0 15px !important;
        max-width: 100% !important;
    }
    
    /* 네비게이션 바 최적화 */
    .navbar {
        padding: 1rem 0 !important;
    }
    
    .nav-container {
        padding: 0 15px !important;
    }
}

/* 갤럭시 폴드 가로모드 (펼쳐진 상태) */
@media (min-width: 1024px) and (max-height: 768px) {
    .menu-button {
        top: 20px !important;
        right: 30px !important;
        padding: 12px 18px !important;
        font-size: 14px !important;
        min-width: 75px !important;
    }
    
    .hero-title {
        font-size: 2.8rem !important;
    }
    
    .hero-title .subtitle {
        font-size: 1.6rem !important;
    }
    
    .hero-buttons {
        flex-direction: row !important;
        gap: 15px !important;
    }
    
    .hero-buttons .btn {
        min-width: 180px !important;
        padding: 14px 24px !important;
        font-size: 16px !important;
    }
}
@media (max-width: 375px) and (min-height: 800px) {
    .menu-button {
        top: 20px !important;
        right: 20px !important;
        padding: 12px 18px !important;
        font-size: 14px !important;
        background: rgba(255, 255, 255, 0.98) !important;
        border: 3px solid #fff !important;
        border-radius: 30px !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5) !important;
        z-index: 999999 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        min-width: 80px !important;
        font-weight: 900 !important;
        transform: none !important;
        position: fixed !important;
    }
}

/* 갤럭시 폴드 가로모드 대응 */
@media (max-height: 375px) and (min-width: 800px) {
    .menu-button {
        top: 50% !important;
    right: 15px !important;
    transform: translateY(-50%) !important;
        right: 25px !important;
        padding: 8px 14px !important;
        font-size: 12px !important;
        min-width: 70px !important;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-title .subtitle {
        font-size: 1rem !important;
    }
    
    .hero-buttons {
        flex-direction: row !important;
        gap: 10px !important;
    }
    
    .hero-buttons .btn {
        min-width: 140px !important;
        padding: 8px 16px !important;
        font-size: 12px !important;
    }
}

/* 아이폰 SE, 갤럭시 폴드처럼 아주 작은 화면용 */
@media (max-width: 375px) {
    .menu-button {
        top: 10px !important;
        right: 10px !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
        min-width: 60px !important;
    }
    
    .logo-image {
        height: 45px !important;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
        padding: 0 10px !important;
    }
    
    .hero-title .subtitle {
        font-size: 1.1rem !important;
    }
    
    .highlight {
        font-size: 1.6rem !important;
    }
    
    .hero-buttons .btn {
        min-width: 160px !important;
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
}

/* 최소 크기 화면 */
@media (max-width: 320px) {
    .menu-button {
        top: 8px !important;
        right: 8px !important;
        padding: 6px 10px !important;
        font-size: 11px !important;
        min-width: 55px !important;
    }
}

/* 아주 작은 화면 (iPhone SE, Galaxy Fold 등) */
@media (max-width: 375px) {
    .menu-button {
        top: 0.8rem;
        right: 0.3rem;
        padding: 0.15rem 0.3rem;
        font-size: 0.6rem;
    }
    
    .logo-image {
        height: 45px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-title .subtitle {
        font-size: 0.9rem;
    }
    
    .highlight {
        font-size: 1.6rem;
    }
}

/* 초소형 화면 (Apple Watch, IoT 디바이스 등) */
@media (max-width: 320px) {
    .menu-button {
        top: 0.5rem;
        right: 0.2rem;
        padding: 0.1rem 0.2rem;
        font-size: 0.55rem;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-title .subtitle {
        font-size: 0.8rem;
    }
}

/* Smooth animations */
* {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}