:root {
    --primary-color: #322153;
    /* Deep Purple */
    --accent-color: #8e66c4;
    /* Lavender */
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Inter', sans-serif;
    /* Radial gradient: White center fading to Soft Purple edges */
    background: radial-gradient(circle at center, #ffffff 0%, #e0d4fc 120%);
    color: var(--primary-color);
    overflow-x: hidden;
    min-height: 100vh;
}

.content-wrapper {
    animation: fadeIn 1.5s ease-out;
    position: relative;
    z-index: 2;
}

/* Language Selector */
.language-selector {
    position: absolute;
    top: 30px;
    right: 30px;
    z-index: 1000;
}

/* Custom Dropdown Styles */
.dropdown-toggle {
    border: 2px solid var(--primary-color);
    background-color: #fff;
    color: var(--primary-color);
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(50, 33, 83, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-toggle:hover,
.dropdown-toggle:focus {
    border-color: var(--accent-color);
    box-shadow: 0 6px 20px rgba(142, 102, 196, 0.3);
    background-color: #fff;
    color: var(--primary-color);
}

.dropdown-menu {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    overflow: hidden;
    min-width: 180px;
    margin-top: 10px;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: rgba(142, 102, 196, 0.1);
    color: var(--primary-color);
}

.flag-icon {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dropdown-toggle::after {
    margin-left: 0.5em;
    vertical-align: 0.255em;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

/* Logo */
.logo {
    max-height: 350px;
    /* User requested 500px */
    width: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
    margin-bottom: 0.5rem;
    /* Reduced from 2rem to 0.5rem */
}

.logo:hover {
    transform: scale(1.02);
}

/* Typography */
h1#mainTitle {
    color: var(--primary-color);
    /* Dark blue text */
    text-shadow: none;
    /* Removed shadow for clean look */
    font-weight: 800;
    letter-spacing: -1px;
    margin-top: 0;
}

.text-muted {
    color: #6c757d !important;
    /* Bootstrap muted gray */
    font-weight: 400;
    font-size: 1.2rem;
}

#subTitle a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s;
    font-weight: 600;
}

#subTitle a:hover {
    color: var(--accent-color);
}

/* Custom Cursor */
.cursor-dot {
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    /* Purple dot */
}

.cursor-outline {
    width: 45px;
    height: 45px;
    border: 2px solid rgba(50, 33, 83, 0.4);
    /* Purple outline */
}

.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    /* Highest priority */
    opacity: 0;
    /* Hidden initially to prevent glitch */
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .logo {
        max-height: 300px;
        /* Responsive adjustment */
    }

    .display-4 {
        font-size: 2.2rem;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
        /* Hide custom cursor on touch devices */
    }

    body {
        cursor: auto;
    }

    .language-selector {
        top: 20px;
        right: 20px;
    }

    .language-selector select {
        padding: 0.5rem 2rem 0.5rem 1rem;
        font-size: 0.9rem;
    }
}