/* Error Page */
.error-page {
    background: var(--background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.error-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.error-content {
    text-align: center;
    max-width: 600px;
    padding: 3rem;
    background: #212121;
    border-radius: 20px;
    position: relative;
    box-shadow: 15px 15px 30px rgb(25, 25, 25),
                -15px -15px 30px rgb(60, 60, 60);
}

.error-content::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(0, 183, 255, 0.2) 0%, 
        rgba(0, 183, 255, 0.3) 50%, 
        transparent 100%);
    top: 0;
    left: 0;
    z-index: 1;
    transform: translateX(-100%);
    animation: errorGlow 3s infinite;
    border-radius: 20px;
}

@keyframes errorGlow {
    100% {
        transform: translateX(100%);
    }
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--accent), #003057);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.error-message {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.error-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.error-button {
    position: relative;
    padding: 1em 2em;
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
    font-size: 18px;
    margin: 1em 0.8em;
    color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    z-index: 2;
}

.error-button::after,
.error-button::before {
    content: "";
    display: block;
    position: absolute;
    width: 20%;
    height: 20%;
    border: 2px solid;
    transition: all 0.6s ease;
    border-radius: 2px;
}

.error-button::after {
    bottom: 0;
    right: 0;
    border-top-color: transparent;
    border-left-color: transparent;
    border-bottom-color: var(--accent);
    border-right-color: var(--accent);
}

.error-button::before {
    top: 0;
    left: 0;
    border-bottom-color: transparent;
    border-right-color: transparent;
    border-top-color: var(--accent);
    border-left-color: var(--accent);
}

.error-button:hover::after,
.error-button:hover::before {
    width: 100%;
    height: 100%;
}

:root {
    --primary: #003057;
    --secondary: #1c1c1c;
    --accent: #00b7ff;
    --text: #ffffff;
    --text-secondary: #a8a8a8;
    --background: #000000;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: var(--text);
    background-color: var(--background);
}

/* Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-logo {
    color: var(--text);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 800px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

/* Buttons */
.button {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin: 0.5rem;
}

.button.primary {
    background-color: var(--accent);
    color: var(--text);
}

.button.primary:hover {
    background-color: #0095cc;
}

.button.secondary {
    border: 2px solid var(--text);
    color: var(--text);
}

.button.secondary:hover {
    background-color: var(--text);
    color: var(--background);
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background-color: var(--secondary);
}

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

.feature-item {
    position: relative;
    overflow: hidden;
    background: var(--background);
}

.feature-item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.feature-item:hover img {
    transform: scale(1.05);
}

.feature-content {
    padding: 1.5rem;
}

.feature-content h2 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.learn-more {
    color: var(--accent);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.learn-more:hover {
    color: #0095cc;
}

/* Weather Section */
.weather-section {
    position: relative;
    background: #212121;
    padding: 2rem 0;
    color: white;
    text-align: center;
    overflow: hidden;
}

.weather-container {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
    padding: 1.5rem;
    background: #212121;
    border-radius: 10px;
    z-index: 1;
    box-shadow: 15px 15px 30px rgb(25, 25, 25),
                -15px -15px 30px rgb(60, 60, 60);
}

.weather-container::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(0, 183, 255, 0.2) 0%, 
        rgba(0, 183, 255, 0.3) 50%, 
        transparent 100%);
    transform: translateX(-100%);
    transition: 0.6s;
    animation: lightEffect 3s infinite;
}

@keyframes lightEffect {
    100% {
        transform: translateX(100%);
    }
}

.weather-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.weather-icon {
    font-size: 3rem;
    color: #00b7ff;
    margin-bottom: 0.5rem;
}

.weather-temp {
    font-size: 2.5rem;
    font-weight: 300;
    color: #fff;
    margin-bottom: 0.5rem;
}

.weather-description {
    font-size: 1.2rem;
    color: #00b7ff;
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.weather-location {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Footer */
footer {
    background-color: var(--secondary);
    padding: 4rem 2rem;
}

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

.footer-section h3 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.footer-section a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--text);
}

/* AI Chat Button */
.ai-chat-button {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1000;
    text-decoration: none;
    font-family: inherit;
    font-weight: 500;
    font-size: 17px;
    padding: 1em 2em;
    color: white;
    background: linear-gradient(-45deg, #00b7ff 0%, #003057 100% );
    border: none;
    border-radius: 50px;
    box-shadow: 0 0 10px rgba(0, 183, 255, 0.2);
    transition: all 0.3s ease-in-out 0s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-chat-button::before {
    content: "";
    border-radius: 50px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 4px solid transparent;
    background: linear-gradient(-45deg, #00b7ff 0%, #003057 100%) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    background-size: 300% 300%;
    animation: borderAnimation 8s ease-in-out infinite;
}

.ai-chat-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 183, 255, 0.3);
}

.ai-chat-button:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0, 183, 255, 0.2);
}

.ai-chat-button i {
    font-size: 1.2em;
}

@keyframes borderAnimation {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    padding: 20px;
    color: var(--text);
    z-index: 9999;
    display: none;
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--accent);
}

.cookie-popup.show {
    display: block;
    animation: slideUp 0.5s ease-out;
}

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

.cookie-text {
    flex: 1;
}

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

.cookie-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 14px;
    transition: all 0.3s ease;
}

.accept-cookies {
    background: var(--accent);
    color: var(--text);
}

.accept-cookies:hover {
    background: #0095cc;
}

.ignore-cookies {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--text);
}

.ignore-cookies:hover {
    background: rgba(255, 255, 255, 0.1);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Search Styles */
.search-section {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--background);
    margin-top: 60px; /* Add space below fixed navbar */
}

.input {
    color: #fff;
    font-size: 0.9rem;
    background-color: transparent;
    width: 100%;
    box-sizing: border-box;
    padding-inline: 0.5em;
    padding-block: 0.7em;
    border: none;
    border-bottom: var(--border-height) solid var(--border-before-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.input-border {
    position: absolute;
    background: var(--border-after-color);
    width: 0%;
    height: 2px;
    bottom: 0;
    left: 0;
    transition: width 0.3s cubic-bezier(0.6, -0.28, 0.735, 0.045);
}

.input:focus {
    outline: none;
}

.input:focus + .input-border {
    width: 100%;
}

.form-control {
    position: relative;
    --width-of-input: 300px;
    width: 100%;
    max-width: var(--width-of-input);
    --border-height: 1px;
    --border-before-color: rgb(221, 221, 221);
    --border-after-color: #fff;
    margin: 0 auto;
}

.input-alt {
    font-size: 1.2rem;
    padding-inline: 1em;
    padding-block: 0.8em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.input-border-alt {
    height: 3px;
    background: linear-gradient(90deg, #FF6464 0%, #FFBF59 50%, #47C9FF 100%);
    transition: width 0.4s cubic-bezier(0.42, 0, 0.58, 1.00);
}

.input-alt:focus + .input-border-alt {
    width: 100%;
}

#search-results {
    margin-top: 2rem;
    width: 100%;
    max-width: var(--width-of-input);
}

.search-result-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.search-result-item a {
    color: var(--text);
    text-decoration: none;
}

.search-result-item h3 {
    color: var(--accent);
    margin: 0 0 0.5rem 0;
}

.search-result-item p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

.search-result-path {
    display: block;
    color: var(--accent);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    opacity: 0.7;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    /* Navigatie */
    .nav-container {
        padding: 1rem;
        flex-wrap: wrap; 
    }

    .nav-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        position: absolute;
        right: 1rem;
        z-index: 1001;
        color: var(--text);
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #111;
        padding: 4rem 2rem;
        transition: left 0.3s ease;
        z-index: 999;
        box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        padding: 1rem;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu a:last-child {
        border-bottom: none;
    }

    /* Hero Section */
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }
    
    .button {
        width: 100%;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* AI Chat button */
    .ai-chat-button {
        position: static;
        margin-top: 2rem;
        width: 90%;
    }
}