/* Footer Styles */

.footer {
    background-color: #090909;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.footer .container {
    max-width: 80vw;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.footer-logo img {
    width: 100px;
    height: auto;
}

.footer-text p {
    color: var(--gray-light);
    font-size: 14px;
}

.footer-gradient {
    background: #090909;
    color: var(--white);
    position: relative;
    padding: var(--spacing-lg) 0 0 0;
}

.footer-main {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 0;
    width: 100%;
}

.footer-brand {
    flex: 1;
    max-width: 400px;
    text-align: left;
}

.footer-brand h3 {
    font-size: 2rem;
    margin: var(--spacing-md) 0;
    color: var(--white);
}

.footer-brand p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    text-align: left;
}

.footer-logo {
    width: 120px;
    height: auto;
    filter: brightness(0) invert(1);
    margin-bottom: var(--spacing-md);
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.footer-social a:hover {
    background: var(--accent-teal);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 65%;
}

.footer-column h4 {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-md);
    color: var(--white);
    text-align: left;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.footer-column li {
    margin-bottom: var(--spacing-sm);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.footer-column a:hover {
    color: var(--accent-teal);
    padding-left: 5px;
}

.footer-newsletter {
    margin-top: var(--spacing-lg);
}

.footer-newsletter h5 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    color: var(--white);
    text-align: left;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.newsletter-form input {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 14px;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--accent-teal);
    color: var(--white);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: flex-start;
    width: auto;
}

.newsletter-form button:hover {
    background: #1DA69A;
    transform: translateY(-2px);
}

/* Large AEB Digital Text */
.footer-large-text {
    text-align: center;
    margin: var(--spacing-xl) 0 0 0;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.footer-large-text img {
    width: 100vw;
    height: auto;
    display: block;
    margin: 0 auto;
    user-select: none;
    pointer-events: none;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.footer-legal {
    display: flex;
    gap: var(--spacing-md);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--accent-teal);
}

.cookie-settings-icon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cookie-settings-icon i {
    font-size: 0.9rem;
}

/* Floating particles effect */
.footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(29, 166, 154, 0.3);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: 1s;
}

.particle:nth-child(3) {
    left: 30%;
    animation-delay: 2s;
}

.particle:nth-child(4) {
    left: 80%;
    animation-delay: 3s;
}

.particle:nth-child(5) {
    left: 90%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
        transform: translateY(50vh) scale(1);
    }
}

/* Floating Bottom Navbar */
.floating-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 10px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: none;
}

.floating-nav.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.floating-nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.floating-nav-menu li {
    margin: 0;
}

.floating-nav-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--black);
    transition: all 0.3s ease;
    font-size: 16px;
    position: relative;
}

.floating-nav-menu a::after {
    content: attr(title);
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--white);
    color: var(--black);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.floating-nav-menu a:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.floating-nav-menu a:hover {
    background: var(--accent-teal);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(29, 166, 154, 0.3);
}

.floating-nav-menu a.active {
    background: var(--accent-teal);
    color: var(--white);
}

/* Mobile Footer Responsive */
@media (max-width: 767px) {
    .footer-main {
        flex-direction: column;
        gap: var(--spacing-lg);
        text-align: left;
    }
    
    .footer-brand {
        order: 1;
        margin-bottom: var(--spacing-md);
    }
    
    .footer-links {
        order: 2;
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: left;
        margin-top: 0;
    }
    
    .floating-nav {
        display: none;
    }
    
    .footer-large-text span {
        font-size: 10vw;
        transform: scaleX(1.0);
        letter-spacing: 0.02em;
    }
    
}

/* Privacy Policy Popup */
.privacy-popup {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.privacy-popup.active {
    display: block;
}

.privacy-popup-content {
    background-color: var(--white);
    margin: 2% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.privacy-popup-close {
    color: #999;
    float: right;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.privacy-popup-close:hover {
    color: var(--black);
}

.privacy-content {
    color: var(--black);
    line-height: 1.6;
    font-size: 14px;
}

.privacy-content h2 {
    color: var(--black);
    margin-bottom: 20px;
    font-size: 1.8rem;
    padding-right: 40px;
}

.privacy-content h3 {
    color: var(--black);
    margin: 20px 0 10px 0;
    font-size: 1.2rem;
}

.privacy-content p {
    margin-bottom: 15px;
}

.privacy-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.privacy-content li {
    margin-bottom: 5px;
}

.privacy-content hr {
    border: none;
    height: 1px;
    background-color: #ddd;
    margin: 25px 0;
}

.privacy-content a {
    color: var(--accent-teal);
    text-decoration: none;
}

.privacy-content a:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .privacy-popup-content {
        margin: 5% auto;
        width: 95%;
        padding: 20px;
        max-height: 85vh;
    }
    
    .privacy-popup-close {
        font-size: 24px;
        right: 15px;
        top: 10px;
    }
    
    .privacy-content h2 {
        font-size: 1.5rem;
        padding-right: 35px;
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    color: var(--white);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    
    /* Mobile browser compatibility fixes */
    bottom: env(safe-area-inset-bottom, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Mobile-specific positioning fixes */
@media screen and (max-width: 768px) {
    .cookie-banner {
        /* Use visual viewport height instead of viewport height */
        bottom: max(env(safe-area-inset-bottom, 0), 0px);
        /* Ensure it's always visible above mobile browser UI */
        position: fixed;
        z-index: 99999;
        
        /* Fallback for browsers without env() support */
        bottom: 0;
        bottom: max(env(safe-area-inset-bottom, 0), 0px);
        
        /* Additional mobile chrome fix */
        margin-bottom: env(safe-area-inset-bottom, 0);
    }
    
    /* iOS Safari specific fix */
    @supports (-webkit-touch-callout: none) {
        .cookie-banner {
            bottom: max(env(safe-area-inset-bottom, 0), 10px);
        }
    }
    
    /* Chrome mobile specific fix */
    @supports (not (-webkit-touch-callout: none)) and (max-width: 768px) {
        .cookie-banner {
            /* Force banner to be visible above Chrome's bottom UI */
            bottom: 0;
            margin-bottom: 0;
            padding-bottom: 10px;
        }
    }
}

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

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

.cookie-text h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: var(--white);
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

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

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--accent-teal);
    color: var(--white);
}

.cookie-btn-accept:hover {
    background: #1DA69A;
    transform: translateY(-2px);
}

.cookie-btn-decline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cookie-btn-settings {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.cookie-btn-settings:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.cookie-settings-modal.show {
    display: block;
}

.cookie-settings-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.cookie-settings-close {
    color: #999;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cookie-settings-close:hover {
    color: var(--black);
}

.cookie-settings-content h3 {
    color: var(--black);
    margin-bottom: 20px;
    font-size: 1.5rem;
    padding-right: 40px;
}

.cookie-category {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cookie-category:last-of-type {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-category p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Cookie Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-right: 15px;
}

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

.cookie-slider {
    position: relative;
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 24px;
    transition: 0.3s;
    margin-right: 10px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.cookie-switch input:checked + .cookie-slider {
    background-color: var(--accent-teal);
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(26px);
}

.cookie-switch input:disabled + .cookie-slider {
    background-color: var(--accent-teal);
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-settings-buttons {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    justify-content: flex-end;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .cookie-content {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 12px;
    }
    
    .cookie-settings-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
    
    .cookie-settings-buttons {
        flex-direction: column;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-switch {
        margin-bottom: 10px;
    }
}