/* Header Component Styles */
:root {
    --header-height: 70px;
    --header-height-mobile: 60px;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    opacity: 0;
    background: rgba(255, 255, 255, 0.0);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 1);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* 헤더로 인한 여백 문제 해결 - body padding 제거 */
/* body {
    padding-top: var(--header-height);
} */

.main-header.scrolled {
    opacity: 1;
    background: rgba(0, 0, 0, 0.0);
}

.navbar {
    padding: 0;
}

.nav-container {
    max-width: calc(100% - 4rem);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #667eea;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

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

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-toggle.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-header {
        height: var(--header-height-mobile);
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height-mobile); /* 모바일 헤더 높이에 맞춤 */
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height-mobile));
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem;
    }
}

/* Dark theme for sections with dark backgrounds */
.section1 .main-header,
.section2 .main-header,
.section3 .main-header {
    background: rgba(0, 0, 0, 0.8);
}

.section1 .nav-link,
.section2 .nav-link,
.section3 .nav-link,
.section1 .nav-toggle .bar,
.section2 .nav-toggle .bar,
.section3 .nav-toggle .bar {
    color: white;
    background: white;
}

.section1 .nav-logo a,
.section2 .nav-logo a,
.section3 .nav-logo a {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
} 

@media (max-width: 768px) {
    .nav-container{
        max-width: 100%;
    }
}