/* As of March 13th */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    transition: all 0.3s ease;
    color: rgb(31, 64, 104);
}

section {
    min-height: 40vh;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.navbar-brand-logo {
    height: 1.5rem;
    width: auto;
    margin-right: 5px;
}

.blue-section {
    background: linear-gradient(135deg, rgb(31, 64, 104), rgb(22, 30, 56));
    color: white;
}

.greyish-section {
    background: linear-gradient(to bottom, rgba(227, 230, 234, 1) 0%, rgba(255, 255, 255, 0) 50%, rgba(227, 230, 234, 1) 100%);
    color: rgb(31, 64, 104);
}

#mainNav {
    margin: 10px 15px;
    left: 0;
    right: 0;
    width: auto;
    border-radius: 15px !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
}

nav#mainNav .navbar-nav .nav-link:hover {
    color: #c0c0c0 !important;
}

.side-picker-container {
    position: relative;
    display: flex;
    align-items: center;
}

.language-links-side {
    margin-left: 10px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.language-links-side .navbar-nav .nav-item {
    padding: 0 5px;
}

.language-links-side.hidden {
    width: 0;
    opacity: 0;
    pointer-events: none;
    margin-left: 0;
}

.language-links-side .nav-link {
    padding: 0.5rem 0.5rem;
    font-size: 0.9rem;
    color: rgb(31, 64, 104) !important;
}

.language-links-side .nav-link:hover {
    color: #c0c0c0 !important;
}

.navbar-toggler {
    border: none !important;
    background: transparent !important;
    padding: 0.25rem 0.5rem;
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.navbar-toggler:hover {
    transform: scale(1.2);
}

.navbar-toggler .navbar-toggler-icon {
    transition: transform 260ms ease, filter 260ms ease;
    transform-origin: center;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    transform: rotate(90deg);
}

.navbar-toggler[aria-expanded="true"] #languageButton {
    display: none !important;
}

.tilt-button {
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.2);
    color: rgb(31, 64, 104);
    font-weight: 500;
    text-decoration: none !important;
    font-size: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(31, 64, 104, 0.2);
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
    transform-style: preserve-3d;
}

/* .tilt-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.1s ease-out;
} */

/* updated to ensure the white layer follows the cursor */
.tilt-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    /* Use the JS variables here. 
       Defaulting to 50% 50% so it's centered if JS hasn't run yet */
    background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%),
            rgba(255, 255, 255, 0.4) 0%,
            transparent 70%);
    opacity: 0;
    transition: opacity 0.2s ease-out;
    /* Slightly smoother fade in */
    pointer-events: none;
    /* Crucial: clicks go through to the button */
}

.tilt-button:hover::before {
    opacity: 1;
}

.tilt-link-wrapper {
    text-decoration: none;
    padding: 5px;
    display: inline-block;
}

.media-article-card {
    position: relative;
    overflow: hidden;
    padding: 0;
    border-radius: 15px;
    background-color: #fff;
}

.media-article-card .image-container {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    overflow: hidden;
}

.media-article-card .image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-article-card .gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.5) 75%,
            rgba(255, 255, 255, 1) 100%);
}

.media-article-card .card-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.profile-picture-container {
    aspect-ratio: 1 / 1;
    width: 50%;
    max-width: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.profile-picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}





/* Force backgrounds to show up */
* {
    -webkit-print-color-adjust: exact !important;
    /* Chrome, Safari, Edge */
    print-color-adjust: exact !important;
    /* Firefox */
}





/* -- CV-related stuff -- */