* {
    box-sizing: border-box;
}

:root {
    --primary-color: #003366;
    --secondary-color: #005f5f;
    --accent-color: #0073e6;
    --text-light: #ffffff;
    --text-dark: #121212;
    --box-background: #002244;
    --box-hover-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    --footer-bg: #000000;
    --footer-text: #ffffff;
    --btn-purple: #6f42c1;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("images/bg1.jpg");
    background-size: cover;
    background-position: center;
    z-index: -1;
    animation: rotateZoom 20s linear infinite;
    transform-origin: center;
    transform: scale(6);
}

@keyframes rotateZoom {
    0% {
        transform: rotate(0deg) scale(6);
    }
    100% {
        transform: rotate(360deg) scale(5);
    }
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    max-width: 100%;
}

.logo img.logo-image {
    height: 60px;
    width: auto;
    margin-right: 10px;
    transition: height 0.3s ease;
}

.logo:hover img.logo-image {
    height: 65px;
}

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

.nav-menu ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

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

.navbar-brand {
    font-size: 2.5rem;
    color: #d3d3d3;
    display: flex;
    align-items: center;
}

.navbar-brand:hover {
    color: #dedede;
}

.navbar-nav .nav-link {
    position: relative;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--text-light);
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    opacity: 1;
}

.navbar {
    background: linear-gradient(135deg, #0056b3, #007bff);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-toggler {
    border-color: #ffffff;
}

.navbar-toggler-icon {
    background-image: none;
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    left: 0;
}

.navbar-toggler-icon::before {
    top: -8px;
}

.navbar-toggler-icon::after {
    top: 8px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

#domain-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.domain-item {
    flex: 0 0 calc((100% - 40px) / 3);
    max-width: calc((100% - 40px) / 3);
    background-color: var(--box-background);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    text-align: center;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    height: 300px;
}

.domain-item:hover {
    transform: scale(1.05);
    box-shadow: var(--box-hover-shadow);
}

.domain-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    transition: none;
    pointer-events: none;
}

.domain-item:hover::before {
    animation: shine 0.7s ease-in-out forwards;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

.domain-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-25deg);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.domain-item:hover::after {
    animation: glass-swipe 0.7s forwards;
}

@keyframes glass-swipe {
    0% {
        left: -150%;
        opacity: 1;
    }
    100% {
        left: 150%;
        opacity: 0;
    }
}

.domain-link {
    color: var(--text-light);
    font-size: 2.2rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    width: 100%;
    height: auto;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    letter-spacing: 1px;
    transition: color 0.3s ease, font-size 0.3s ease;
}

.domain-link:hover {
    color: var(--accent-color);
}

.domain-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    z-index: 1;
    position: relative;
    transition: opacity 0.3s ease;
}

.domain-item:hover .domain-image {
    opacity: 0.8;
}

.category-bubble {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    text-transform: uppercase;
    z-index: 2;
    pointer-events: none;
    white-space: nowrap;
}

.category-technology {
    background-color: #17a2b8;
}

.category-finance-crypto {
    background-color: #28a745;
}

.category-insurance {
    background-color: #006d35;
}

.category-healthcare {
    background-color: #027384;
}

.category-ai,
.category-travel {
    background-color: #6f42c1;
}

.category-other {
    background-color: #6c757d;
}

.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}

footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 2rem 40px;
    margin-top: auto;
    text-align: center;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.2);
}

footer a {
    color: var(--footer-text);
    text-decoration: none;
    font-weight: 600;
    margin: 0 10px;
    transition: color 0.3s ease;
}

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

.filter-btn {
    width: auto;
    margin: 0 5px;
    padding: 10px 20px;
    background-color: #0056b3;
    border: 1px solid #0056b3;
    border-radius: 6px;
    font-size: 1.4rem;
    color: var(--text-light);
    text-align: center;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.filter-btn:hover,
.filter-btn:focus {
    background-color: #004080;
    border-color: #004080;
}

.filter-btn:hover,
.filter-btn:focus,
.filter-btn.active {
    color: #ffffff;
}

.filter-btn.active {
    background-color: #003366;
    border-color: #003366;
}

.filter-buttons-container {
    margin-bottom: 10px;
}

.cookie-consent {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: rgba(52, 58, 64, 0.95);
    color: white;
    padding: 20px;
    text-align: center;
    display: none;
    z-index: 1000;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.3);
}

.cookie-consent p {
    margin-bottom: 15px;
    font-size: 16px;
}

.cookie-consent .btn {
    margin: 0 10px;
}

@media (max-width: 768px) {
    .domain-item {
        flex: 0 0 100%;
        max-width: 100%;
        height: 220px;
    }

    .logo img.logo-image {
        height: 50px;
    }

    .logo {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        text-align: center;
        flex-wrap: nowrap;
    }

    .logo img.logo-image {
        margin-right: 10px;
        margin-bottom: 0;
    }

    header {
        flex-direction: column;
        align-items: center;
        padding: 15px 20px;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu ul li a {
        position: relative;
        padding-left: 25px;
        color: var(--text-dark);
        text-decoration: none;
        font-size: 1.6rem;
        font-weight: 700;
        transition: color 0.3s ease, padding-left 0.3s ease;
    }

    .nav-menu ul li a::before {
        content: '•';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-light);
        font-size: 1rem;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-menu ul li a:hover,
    .nav-menu ul li a.active {
        color: var(--text-light);
    }

    .nav-menu ul li a:hover::before,
    .nav-menu ul li a.active::before {
        opacity: 1;
    }

    .filter-buttons-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-bottom: 20px;
    }

    .filter-btn {
        width: 100%;
        max-width: 300px;
        margin-bottom: 10px;
        padding: 12px 0;
        background-color: #0056b3;
        border-color: #0056b3;
        border-radius: 6px;
        font-size: 1.4rem;
        color: var(--text-light);
        text-align: center;
    }

    .filter-btn:last-child {
        margin-bottom: 0;
    }

    .filter-btn:hover,
    .filter-btn:focus {
        background-color: #004080;
        border-color: #004080;
    }

    .filter-btn.active {
        background-color: #003366;
        border-color: #003366;
    }

    .navbar-brand {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .cookie-consent p {
        font-size: 14px;
    }

    .navbar-brand .logo-image {
        max-height: 40px;
    }

    .navbar-brand {
        font-size: 1.8rem;
    }
}

.domain-item.show {
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.5s, opacity 0.5s;
}

.domain-item:not(.show) {
    transform: translateY(20px);
    opacity: 0;
}
/* Clean up video section and fix filter buttons */
.video-section {
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    background-color: #000; /* Fallback color if video doesn't load */
    color: #fff; /* Make text white for better visibility */
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0; /* Ensure this stays below content */
}

.video-background video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 134%; /* Ensure the video is tall enough to hide watermark */
    object-fit: cover;
    opacity: 0.7; /* Make the video slightly transparent */
    transform: translateY(-25%); /* Hide the bottom 25% (watermark) */
    z-index: 0;
}

/* Add a dark overlay to improve text readability */
.video-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay for better text visibility */
    pointer-events: none;
    z-index: 1;
}

/* Container for content - ensure it's above the video */
.video-section .container {
    position: relative;
    z-index: 2; /* Higher than the video and overlay */
}

/* Restore and fix filter buttons styling */
.filter-btn {
    width: auto;
    margin: 0 5px 10px;
    padding: 10px 20px;
    background-color: #0056b3;
    border: 1px solid #0056b3;
    border-radius: 6px;
    font-size: 1.4rem;
    color: #ffffff;
    text-align: center;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.filter-btn:hover,
.filter-btn:focus {
    background-color: #004080;
    border-color: #004080;
    color: #ffffff;
}

.filter-btn.active {
    background-color: #003366;
    border-color: #003366;
    color: #ffffff;
}

/* Override any conflicting styles within video section */
.video-section .filter-btn {
    background-color: #0056b3;
    border: 1px solid #0056b3;
    color: #ffffff;
}

.video-section .filter-btn:hover,
.video-section .filter-btn:focus {
    background-color: #004080;
    border-color: #004080;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.video-section .filter-btn.active {
    background-color: #003366;
    border-color: #003366;
}

/* Add text styles for better visibility on video background */
.video-section h1,
.video-section .lead {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Domain item transition effects */
.domain-item.show {
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.5s, opacity 0.5s;
}

.domain-item:not(.show) {
    transform: translateY(20px);
    opacity: 0;
}

/* Media queries for responsive behavior */
@media (max-width: 768px) {
    .video-section {
        padding: 60px 0;
    }
    
    .video-background video {
        transform: translateY(-20%); /* Slight adjustment for mobile */
    }
    
    .filter-btn {
        width: auto;
        font-size: 1.2rem;
        padding: 8px 16px;
    }
}

@media (max-width: 576px) {
    .cookie-consent p {
        font-size: 14px;
    }

    .navbar-brand .logo-image {
        max-height: 40px;
    }

    .navbar-brand {
        font-size: 1.8rem;
    }
    
    /* Center the accordion menu on small screens */
    .navbar-nav {
        width: 100%;
        text-align: center;
    }

    .navbar-collapse {
        justify-content: center;
    }
}