/* ===================================
   Header Styles - Complete Fixed Version
   =================================== */

/* Header Container */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    pointer-events: none; /* Allow clicks to pass through except on interactive elements */
}

/* ===================================
   Logo Styles
   =================================== */
.header-logo-link {
    position: fixed; /* Changed to fixed for better positioning */
    top: 40px; /* Match padding */
    left: 40px; /* Match padding */
    pointer-events: auto; /* Make clickable */
}

.header-logo {
    height: 50px;
    width: auto; /* Ensure width adjusts to maintain aspect ratio */
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    display: block; /* Ensure logos are visible */
    object-fit: contain; /* Ensure image fits properly */
}

/* Large logo (default state) */
.header-logo[data-asset-key="logo.studioNoodel.large"] {
    opacity: 1;
    transform: scale(1.2);
    position: relative;
}

/* Ensure SVG logos are visible */
.header-logo svg {
    fill: white;
    width: 100%;
    height: 100%;
}

/* Small logo (hidden by default) */
.header-logo[data-asset-key="logo.studioNoodel.small"] {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.2);
    position: absolute;
    top: 0;
    left: 0;
}

/* Scrolled state - swap logos */
body.scrolled .header-logo[data-asset-key="logo.studioNoodel.large"] {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.2);
}

body.scrolled .header-logo[data-asset-key="logo.studioNoodel.small"] {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

/* ===================================
   Social Links - ORIGINAL ANIMATION
   =================================== */
.header-social-links {
    position: fixed;
    top: 46px;
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    align-items: center;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    opacity: 1;
    pointer-events: auto; /* Make clickable */
}

.header-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px; /* Increased from 22px */
    width: 32px; /* Increased from 22px */
    padding: 5px;
    border-radius: 8px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    transform-origin: top center;
    background: none;
}

/* Header social icons specifically */
.header-social-links .social-icon {
    height: 22px; /* Set specific size */
    width: 22px; /* Set specific size */
    opacity: 0.5;
    transition: opacity 0.2s ease-in-out, fill 0.2s ease-in-out;
    fill: white; /* Ensure icons are white */
}

/* ORIGINAL HOVER ANIMATION */
.header-social-links a:hover {
    transform: translateY(-25%) scale(1.5);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

.header-social-links a:hover .social-icon {
    opacity: 1;
    fill: white;
}

/* ORIGINAL SCROLLED ANIMATION */
body.scrolled .header-social-links {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

/* ===================================
   Info Button
   =================================== */
.header-info-button {
    position: fixed;
    top: 40px;
    right: 40px;
    pointer-events: auto;
}

.info-button {
    background: none;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    padding: 0;
    border-radius: 0;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 40px;
    width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Bottom border animation */
.info-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
    transform-origin: center;
}

.info-button:hover {
    color: var(--primary-color);
}

.info-button:hover::after {
    transform: scaleX(1);
}

/* Info text */
.info-text {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* Info icons */
.info-icon {
    position: absolute;
    height: 24px;
    width: 24px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.info-icon svg {
    height: 100%;
    width: 100%;
    fill: var(--primary-color);
}

/* Scrolled state */
body.scrolled .info-button {
    width: 50px;
}

body.scrolled .info-text {
    opacity: 0;
}

body.scrolled .info-icon.info {
    opacity: 1;
}

/* Overlay state */
body.overlay-visible .info-icon.info {
    opacity: 0;
}

body.overlay-visible .info-icon.close {
    opacity: 1;
}

/* ===================================
   Responsive Styles
   =================================== */
@media screen and (max-width: 1024px) {
    .header-logo-link {
        top: 30px;
        left: 30px;
    }
    
    .header-logo {
        height: 45px;
    }

    .header-social-links {
        top: 35px;
        gap: 12px;
    }

    .header-social-links a {
        height: 28px;
        width: 28px;
    }
    
    .header-social-links .social-icon {
        height: 20px;
        width: 20px;
    }

    .header-info-button {
        top: 30px;
        right: 30px;
    }

    .info-button {
        height: 45px;
        width: 110px;
        font-size: 14px;
    }
}

@media screen and (max-width: 768px) {
    .header-logo-link {
        top: 25px;
        left: 25px;
    }
    
    .header-logo {
        height: 40px;
    }

    .header-social-links {
        top: 30px;
        gap: 10px;
        opacity: 0;
        pointer-events: none;
        transform: translateX(100%);
    }

    .header-social-links a {
        height: 26px;
        width: 26px;
        padding: 4px;
    }
    
    .header-social-links .social-icon {
        height: 18px;
        width: 18px;
    }

    .header-social-links a:hover {
        transform: translateY(-15%) scale(1.3);
    }

    .header-info-button {
        top: 25px;
        right: 25px;
    }

    .info-button {
        height: 40px;
        width: 100px;
        font-size: 13px;
    }

    .header-logo[data-asset-key="logo.studioNoodel.large"] {
        transform: scale(1);
    }
}

@media screen and (max-width: 480px) {
    .header-logo-link {
        top: 20px;
        left: 20px;
    }
    
    .header-logo {
        height: 35px;
    }

    .header-social-links {
        top: 25px;
        gap: 8px;
    }

    .header-social-links a {
        height: 24px;
        width: 24px;
        padding: 4px;
    }
    
    .header-social-links .social-icon {
        height: 16px;
        width: 16px;
    }

    .header-info-button {
        top: 20px;
        right: 20px;
    }

    .info-button {
        height: 35px;
        width: 90px;
        font-size: 12px;
        border-width: 1px;
    }

    .info-button::after {
        height: 2px;
    }
}

/* Moved overlay styles to info-overlay.css */