:root {
    --primary-color: #ff8800;
    --secondary-color: #1a1a1a;
    --dark-color: #0a0a0a;
    --text-color: #e0e0e0;
    --button-hover: #212121;
    --shadow-color: rgba(0, 0, 0, 0.7);
}

/* Navigation Bar Styles */
.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(10, 10, 10, 0.9);
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    left: 0;
    right: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.nav-logo a:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(255, 136, 0, 0.5);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

.nav-links a.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Enhanced Footer Styles */
.enhanced-footer {
    width: 100%;
    background-color: var(--secondary-color);
    padding: 0.75rem 0;
    color: var(--text-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 5;
    left: 0;
    right: 0;
    flex-shrink: 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1400px;
    padding: 0 1.5rem;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #aaa;
}

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

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

.footer-section ul li a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background-color: rgba(26, 26, 26, 0.7);
    border-radius: 50%;
    color: var(--text-color);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 136, 0, 0.3);
}

.social-icons a {
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #666;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Responsive adjustments for navigation and footer */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--secondary-color);
        flex-direction: column;
        align-items: center;
        padding: 1.5rem;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
        gap: 1.2rem;
        transform: translateY(-150%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        pointer-events: none;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
    font-family: 'Roboto', Arial, sans-serif;
    background-color: var(--dark-color);
    color: var(--text-color);
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    font-size: 16px;
}

/* Page container */
.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0 auto;
    position: relative;
    width: 100%;
}

.page-container::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0);
    z-index: 0;
    pointer-events: none;
    transition: background-color 0.3s ease;
}

body:has(.logo:hover) .page-container::after {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Main content wrapper to push footer down */
.main-content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Desktop Layout */
.desktop-layout {
    display: grid;
    grid-template-columns: minmax(auto, 165px) auto minmax(auto, 165px);
    grid-template-rows: 1fr;
    width: 100%;
    flex: 1;
    max-width: 1000px;
    margin: 0 auto;
}

.desktop-layout .left-column {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 0;
    padding-left: 5px;
    margin-right: -30px;
}

.desktop-layout .center-column {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    z-index: 5;
    align-self: center;
}

.desktop-layout .right-column {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 0;
    padding-right: 5px;
    margin-left: -30px;
}

/* Mobile layout */
.mobile-layout {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
}

/* Common styles */
.title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: left;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    letter-spacing: 2px;
    transition: filter 0.3s ease, opacity 0.3s ease;
    white-space: nowrap;
    position: relative;
    z-index: 5;
}

.logo-container, .mobile-logo-container {
    width: 100%;
    max-width: 350px;
    position: relative;
    z-index: 15;
}

.logo {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 1);
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    position: relative;
    z-index: 1;
}

.right-column .link-group {
    margin-top: 4.5rem;
}

.link {
    background-color: var(--secondary-color);
    padding: 0.7rem 0.8rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 136, 0, 0.1);
    box-shadow: 0 4px 10px var(--shadow-color);
    letter-spacing: 0.5px;
    font-weight: 500;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.link:hover {
    background-color: var(--button-hover);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px var(--shadow-color);
}

/* Mobile Links */
.mobile-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    gap: 0.6rem;
}

.mobile-link {
    background-color: var(--secondary-color);
    padding: 0.7rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.95rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 136, 0, 0.1);
    box-shadow: 0 4px 10px var(--shadow-color);
    letter-spacing: 0.5px;
    font-weight: 500;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-link:hover {
    background-color: var(--button-hover);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px var(--shadow-color);
}

/* Footer */
footer {
    width: 100%;
    background-color: rgba(10, 10, 10, 0.8);
    padding: 0.5rem;
    text-align: center;
    transition: filter 0.3s ease, opacity 0.3s ease;
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer p {
    font-size: 0.8rem;
    opacity: 0.6;
    color: #666;
}

/* Modified blur effect with darkening on hover */
body:has(.logo:hover) .left-column,
body:has(.logo:hover) .right-column,
body:has(.logo:hover) footer {
    filter: blur(4px) brightness(0.4);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo:hover ~ .left-column,
.logo:hover ~ .right-column,
.logo:hover ~ footer {
    filter: blur(4px) brightness(0.4);
    opacity: 0.7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-container {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }
    
    .desktop-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    
    .desktop-layout .center-column {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        padding: 1rem;
    }
    
    .desktop-layout .left-column {
        grid-column: 1;
        grid-row: 2;
        padding: 1rem;
        text-align: center;
        margin-right: 0;
    }
    
    .desktop-layout .right-column {
        grid-column: 1;
        grid-row: 3;
        padding: 1rem;
        margin-left: 0;
    }
    
    .title {
        text-align: center;
        font-size: 2rem;
        margin-top: 1rem;
    }
    
    .link-group {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .link {
        flex: 1 0 45%;
        padding: 0.8rem;
    }
    
    .logo-container {
        max-width: 85%;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 15px;
    }
    
    html, body {
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    /* Hide desktop layout and show mobile layout on small screens */
    .desktop-layout {
        display: none;
    }
    
    .mobile-layout {
        display: flex;
        padding: 1rem;
        box-sizing: border-box;
        flex: 1;
    }
    
    .mobile-layout .title {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .mobile-logo-container {
        width: 100%;
        max-width: 300px;
        margin: 0 auto 1.5rem;
        text-align: center;
    }
    
    /* Adjust blur effect for mobile to improve performance */
    body:has(.logo:hover) .left-column,
    body:has(.logo:hover) .right-column,
    body:has(.logo:hover) footer {
        filter: brightness(0.4);
        opacity: 0.7;
    }
}

@media (max-width: 360px) {
    /* Further adjustments for very small screens */
    .mobile-links {
        max-width: 260px;
        gap: 0.5rem;
    }
    
    .mobile-link {
        font-size: 0.9rem;
        min-height: 40px;
        padding: 0.6rem 0.8rem;
    }
    
    .mobile-layout .title {
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
    }
    
    .logo {
        border-radius: 15px;
    }
}

/* Support for high pixel density screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
    }
}

/* Cookie Consent Banner */
#cookie-consent-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    border-top: 2px solid var(--primary-color);
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

#cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text p {
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.cookie-consent-text a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.cookie-consent-text a:hover {
    border-bottom-color: var(--primary-color);
}

.cookie-consent-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background-color: var(--primary-color);
    color: #000;
}

.cookie-btn-accept:hover {
    background-color: #ff9920;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 136, 0, 0.3);
}

.cookie-btn-reject {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid #555;
}

.cookie-btn-reject:hover {
    border-color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Mobile responsiveness for cookie banner */
@media (max-width: 768px) {
    #cookie-consent-banner {
        padding: 1.25rem;
    }

    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }

    .cookie-consent-text {
        min-width: 100%;
        text-align: center;
    }

    .cookie-consent-text p {
        font-size: 0.9rem;
    }

    .cookie-consent-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
        padding: 0.875rem 1rem;
    }
}