.text-white {
    --tw-text-opacity: 0.88;
    color: rgba(255, 255, 255, 0.88);
}

.footer-logo {
    filter: grayscale(100%) brightness(0.55);
    transition: filter 0.45s ease;
}

footer a:hover .footer-logo,
footer a:focus-visible .footer-logo {
    filter: grayscale(0%) brightness(1);
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* Smooth scroll across sections */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Main Navigation Links styling */
.nav-link {
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    color: rgba(231, 189, 184, 0.85);
    /* text-on-surface-variant style with high visibility */
    border: 1px solid transparent;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 13px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: #ffffff;
    background-color: rgba(227, 30, 36, 0.15);
    /* bg-primary-container/15 */
    border-color: rgba(227, 30, 36, 0.35);
    /* border-primary-container/35 */
}

/* Language switcher custom styles */
.lang-btn {
    width: 100%;
    padding: 0.625rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Inter', sans-serif;
    text-align: left;
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.lang-btn:last-child {
    border-bottom: none;
}

.lang-btn .lang-name {
    font-size: 14px;
    font-weight: 500;
    color: #e5e2e1;
    transition: color 0.2s;
}

.lang-btn .lang-code {
    font-size: 10px;
    font-weight: 700;
    color: #8E8E93;
    margin-left: auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    transition: all 0.2s;
}

.lang-btn:hover {
    background-color: rgba(227, 30, 36, 0.1);
}

.lang-btn:hover .lang-name {
    color: #ffffff;
}

.lang-btn:hover .lang-code {
    color: #ffb4ab;
    background: rgba(227, 30, 36, 0.15);
}

.lang-btn.active {
    background-color: rgba(227, 30, 36, 0.15);
}

.lang-btn.active .lang-name {
    color: #ffffff;
    font-weight: 600;
}

.lang-btn.active .lang-code {
    color: #ffffff;
    background: #e31e24;
    /* primary-container */
}

.lang-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Custom scrollbar for premium feel */
.scrollbar-thin {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.scrollbar-thin::-webkit-scrollbar {
    width: 5px;
}

.scrollbar-thin::-webkit-scrollbar-track {
    background: transparent;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: rgba(227, 30, 36, 0.6);
}

.mobile-nav-link {
    display: block;
    padding: 0.875rem 1rem;
    font-size: 15px;
}

.mobile-lang-pill {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    opacity: 0.6;
}

.mobile-lang-pill svg {
    border-radius: 50%;
    width: 28px;
    height: 28px;
}

.mobile-lang-pill:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-lang-pill.active {
    opacity: 1;
    border-color: rgba(227, 30, 36, 0.75);
    background: rgba(227, 30, 36, 0.12);
}

/* When drawer is open, lock body scroll */
body.drawer-open {
    overflow: hidden;
}

/* Ken Burns Slider Styling */
.about-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.about-slide.active {
    opacity: 1;
    z-index: 2;
}

.about-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    filter: grayscale(100%);
    transition: opacity 0.5s ease, filter 0.5s ease;
    transform: scale(1) translate(0, 0);
}

/* Hover transitions (grayscale-to-color and opacity increase) */
.group:hover .about-slide img {
    opacity: 1;
    filter: grayscale(0%);
}

/* Ken Burns effect keyframes and classes */
@keyframes kb-zoom-in-left {
    0% {
        transform: scale(1.0) translate(0, 0) rotate(0deg);
    }
    100% {
        transform: scale(1.22) translate(-3.0%, 1.5%) rotate(0.8deg);
    }
}

@keyframes kb-zoom-out-right {
    0% {
        transform: scale(1.22) translate(3.0%, -1.5%) rotate(-0.8deg);
    }
    100% {
        transform: scale(1.0) translate(0, 0) rotate(0deg);
    }
}

@keyframes kb-zoom-in-right-up {
    0% {
        transform: scale(1.0) translate(0, 0) rotate(0deg);
    }
    100% {
        transform: scale(1.22) translate(3.0%, -2.5%) rotate(-0.7deg);
    }
}

@keyframes kb-zoom-out-left-down {
    0% {
        transform: scale(1.22) translate(-3.0%, 2.5%) rotate(0.7deg);
    }
    100% {
        transform: scale(1.0) translate(0, 0) rotate(0deg);
    }
}

/* Apply animations dynamically via classes */
.about-slide.kb-effect-0 img {
    animation: kb-zoom-in-left 5.5s ease-out forwards;
}

.about-slide.kb-effect-1 img {
    animation: kb-zoom-out-right 5.5s ease-out forwards;
}

.about-slide.kb-effect-2 img {
    animation: kb-zoom-in-right-up 5.5s ease-out forwards;
}

.about-slide.kb-effect-3 img {
    animation: kb-zoom-out-left-down 5.5s ease-out forwards;
}

/* AJAX forms, CAPTCHA and submission feedback */
.form-captcha {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.form-captcha-image {
    display: block;
    width: 180px;
    height: 50px;
    border-radius: 0.375rem;
    background: #1c1b1b;
    object-fit: cover;
}

.form-captcha-refresh {
    display: inline-flex;
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    background: #201f1f;
    color: #8e8e93;
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.form-captcha-refresh:hover {
    border-color: rgba(227, 30, 36, 0.45);
    background: rgba(255, 255, 255, 0.05);
    color: #e31e24;
}

.form-captcha-refresh.is-rotating .material-symbols-outlined {
    animation: captcha-refresh-spin 0.45s ease;
}

[aria-invalid="true"]:not([type="checkbox"]):not([type="radio"]) {
    border-color: #e31e24 !important;
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.18), 0 0 20px rgba(227, 30, 36, 0.1) !important;
}

label:has(> [aria-invalid="true"]),
.choice-card:has([aria-invalid="true"]),
.check-card:has([aria-invalid="true"]) {
    border-color: #e31e24 !important;
    background-color: rgba(227, 30, 36, 0.1) !important;
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.12) !important;
}

.form-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.form-feedback {
    display: none;
    align-items: center;
    gap: 0.875rem;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid transparent;
    border-radius: 0.625rem;
    font-family: "Inter", sans-serif;
    opacity: 0;
    transform: translateY(8px);
}

.form-feedback.is-visible {
    display: flex;
    animation: form-feedback-in 0.4s ease forwards;
}

.form-feedback.is-success {
    border-color: rgba(52, 211, 153, 0.3);
    background: rgba(52, 211, 153, 0.08);
    color: #d1fae5;
}

.form-feedback.is-error {
    border-color: rgba(227, 30, 36, 0.35);
    background: rgba(227, 30, 36, 0.1);
    color: #ffe4e6;
}

.form-feedback-icon {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.25rem;
}

.is-success .form-feedback-icon {
    background: rgba(52, 211, 153, 0.18);
    color: #6ee7b7;
    animation: form-success-pop 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.is-error .form-feedback-icon {
    background: rgba(227, 30, 36, 0.18);
    color: #ff8a90;
}

.form-feedback strong,
.form-feedback small {
    display: block;
}

.form-feedback strong {
    margin-bottom: 0.15rem;
    color: #fff;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 0.875rem;
}

.form-feedback small {
    font-size: 0.8125rem;
    line-height: 1.35rem;
}

button.is-submitting {
    cursor: wait;
    opacity: 0.88;
}

.form-submit-spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.32);
    border-top-color: #fff;
    border-radius: 50%;
    animation: form-submit-spin 0.75s linear infinite;
}

@keyframes captcha-refresh-spin {
    to { transform: rotate(360deg); }
}

@keyframes form-submit-spin {
    to { transform: rotate(360deg); }
}

@keyframes form-feedback-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes form-success-pop {
    0% {
        opacity: 0;
        transform: scale(0.45) rotate(-20deg);
    }
    70% {
        transform: scale(1.12) rotate(4deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .form-captcha-refresh.is-rotating .material-symbols-outlined,
    .form-submit-spinner,
    .form-feedback.is-visible,
    .is-success .form-feedback-icon {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
    }
}
