body {
    margin: 0;
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

/* Navigation link underline animation */
.nav-link {
    position: relative;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: white;
    transition: width 0.3s ease-in-out;
}

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

/* Animated chip container */
.animated-chip-container {
    position: relative;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 300px;
}

.animated-chip {
    position: absolute;
    font-size: 1.25rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    animation: chipCycle 8s infinite;
}

.animated-chip:nth-child(1) {
    animation-delay: 0s;
}

.animated-chip:nth-child(2) {
    animation-delay: 2s;
}

.animated-chip:nth-child(3) {
    animation-delay: 4s;
}

.animated-chip:nth-child(4) {
    animation-delay: 6s;
}

@keyframes chipCycle {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    12.5% {
        opacity: 1;
        transform: translateY(0);
    }
    25% {
        opacity: 1;
        transform: translateY(0);
    }
    37.5% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@media (min-width: 768px) {
    .animated-chip {
        font-size: 1.875rem;
    }
    
    .animated-chip-container {
        min-width: 500px;
    }
}

.header-fade { 
   background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0)); 
} 

.footer-fade {
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    margin-top: 6px;
    position: absolute;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    margin-top: 6px;
    position: absolute;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 50;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: #ccc;
}

/* Mobile menu header - matches the main header */
.mobile-menu-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 51;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0));
}

.mobile-menu-header .header-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.mobile-menu-header .logo {
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
}

/* Show hamburger on mobile, hide desktop nav */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .desktop-nav {
        display: none;
    }
}

/* Hide hamburger on desktop */
@media (min-width: 769px) {
    .hamburger {
        display: none;
    }
    
    .mobile-menu {
        display: none;
    }
}

/* Custom Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1a1a1a;
    color: white;
    padding: 20px;
    border-radius: 12px;
    max-width: 420px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid #333;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.cookie-banner.hidden {
    display: none;
}

.cookie-banner h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.cookie-banner p {
    margin: 0 0 15px 0;
    color: #cccccc;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    background: white;
    color: black;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.2s;
    flex: 1;
    min-width: 80px;
}

.cookie-btn:hover {
    background: #f0f0f0;
}

.cookie-btn.deny {
    background: #666666;
    color: white;
}

.cookie-btn.deny:hover {
    background: #555555;
}

.cookie-btn.settings {
    background: #e0e0e0;
    color: black;
    flex: none;
    min-width: auto;
    padding: 10px 16px;
}

.cookie-btn.settings:hover {
    background: #d0d0d0;
}

.cookie-link {
    color: #3498db;
    text-decoration: underline;
    font-size: 13px;
    margin-top: 8px;
    display: inline-block;
}

.cookie-link:hover {
    color: #5dade2;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .cookie-banner {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        flex: none;
    }
}

/* Settings modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-settings-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.cookie-settings-content h2 {
    margin: 0 0 16px 0;
    color: #1a1a1a;
}

.cookie-category {
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.cookie-category h4 {
    margin: 0 0 8px 0;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 26px;
    border: 1px solid #999;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    top: 2px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ALL enabled toggles have the same dark background */
input:checked + .cookie-slider,
input:disabled + .cookie-slider {
    background-color: #4a4a4a !important;
    border-color: #333 !important;
}

input:checked + .cookie-slider:before,
input:disabled + .cookie-slider:before {
    transform: translateX(24px);
    background-color: white !important;
    border-color: #bbb !important;
}

/* Disabled state styling */
input:disabled + .cookie-slider {
    cursor: not-allowed;
    opacity: 0.8;
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
