/* Header Styles */
:root {
    --header-bg-color: #1e3a8a;
    --header-text-color: #fff;
    --header-logo-color: #fff;
    --header-nav-hover-bg: rgba(255, 255, 255, 0.1);
    --header-nav-hover-color: #fff;
    --header-bg-image-opacity: 0.3;
}

.header {
    background: 
        linear-gradient(rgba(30, 58, 138, calc(1 - var(--header-bg-image-opacity))), rgba(30, 58, 138, calc(1 - var(--header-bg-image-opacity)))),
        url('../image/header-background.png') center/cover;
    background-attachment: fixed;
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    
    .headerContainer {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 50px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 80px;
        
        .logo {
            a {
                color: var(--header-logo-color);
                
                &:hover {
                    color: var(--header-logo-color);
                    opacity: 0.8;
                }
            }
            
            h1 {
                font-size: 1.8rem;
                font-weight: 700;
                font-family: 'Comfortaa', cursive;
            }
        }

        
        .nav {
            .navList {
                display: flex;
                gap: 40px;
                
                li {
                    a {
                        color: var(--header-text-color);
                        font-weight: 500;
                        padding: 8px 16px;
                        clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
                        transition: all 0.3s ease;
                        
                        &:hover {
                            background: var(--header-nav-hover-bg);
                            color: var(--header-nav-hover-color);
                        }
                    }
                }
            }
        }
        
        .mobileMenuToggle {
            display: none;
            flex-direction: column;
            gap: 4px;
            cursor: pointer;
            
            span {
                width: 25px;
                height: 3px;
                background-color: var(--header-text-color);
                transition: all 0.3s ease;
            }
            
            &.active {
                span:nth-child(1) {
                    transform: rotate(45deg) translate(5px, 5px);
                }
                
                span:nth-child(2) {
                    opacity: 0;
                }
                
                span:nth-child(3) {
                    transform: rotate(-45deg) translate(7px, -6px);
                }
            }
        }
    }
}

/* Mobile Header */
@media (max-width: 768px) {
    .header {
        .headerContainer {
            padding: 0 16px;
            
            .logo h1 {
                font-size: 1.5rem;
            }
            
            .nav {
                position: fixed;
                top: 80px;
                left: 0;
                right: 0;
                background: 
                    linear-gradient(rgba(30, 58, 138, 0.9), rgba(30, 58, 138, 0.9)),
                    url('../image/oyster7.png') center/cover;
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
                transform: translateY(-100%);
                opacity: 0;
                visibility: hidden;
                transition: all 0.3s ease;
                
                &.active {
                    transform: translateY(0);
                    opacity: 1;
                    visibility: visible;
                }
                
                .navList {
                    flex-direction: column;
                    gap: 0;
                    padding: 20px;
                    text-align: center;
                    
                    li {
                        a {
                            display: block;
                            padding: 12px 0;
                            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
                            color: var(--header-text-color);
                            text-align: center;
                            
                            &:hover {
                                background-color: transparent;
                                color: var(--header-nav-hover-color);
                                opacity: 0.8;
                            }
                        }
                    }
                }
            }
            
            .mobileMenuToggle {
                display: flex;
            }
        }
    }
}