/* Explain: Base styles, typography, and custom 3D text animations. */
* {
    box-sizing: border-box;
}

html {
    background: var(--background-color);
    color: var(--text-color);
    scroll-padding-top: 92px;
}

body {
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(163, 177, 138, 0.25), transparent 26rem),
        radial-gradient(circle at 88% 8%, rgba(88, 129, 87, 0.15), transparent 24rem),
        var(--background-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 600;
    text-rendering: optimizeLegibility;
    text-shadow: 1px 1px 0 #ffffff, 2px 2px 0 #e2e8f0, 3px 3px 4px rgba(0, 0, 0, 0.3);
}

h1, h2, h3, .section-kicker, .nav-close-link span {
    text-shadow: 1px 1px 0 #ffffff, 2px 2px 0 #ffffff, 3px 3px 0 #cbd5e1, 4px 4px 0 #94a3b8, 5px 5px 6px rgba(0, 0, 0, 0.4);
}

.nav-3d-link {
    text-shadow: 1px 1px 0 #ffffff, 2px 2px 0 #cbd5e1, 3px 3px 0 #94a3b8, 4px 4px 5px rgba(0, 0, 0, 0.4);
    display: inline-block;
    transition: transform 0.2s ease, text-shadow 0.2s ease, color 0.3s ease;
}

.nav-3d-link:hover, .nav-close-link:hover {
    transform: translateY(3px);
}

.nav-3d-link:hover {
    text-shadow: 0px 0px 0 #ffffff, 0px 0px 0 #cbd5e1, 0px 0px 0 #94a3b8, 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.nav-close-link {
    transition: transform 0.2s ease, color 0.3s ease;
}

.nav-close-link span {
    transition: text-shadow 0.2s ease;
}

.nav-close-link:hover span {
    text-shadow: 0px 0px 0 #ffffff, 1px 1px 0 #cbd5e1, 2px 2px 3px rgba(0, 0, 0, 0.4);
}

button,
a,
select {
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

::selection {
    background: var(--accent-color);
    color: #ffffff;
}

@keyframes spin-3d {
    0% { transform: perspective(1000px) rotateY(0deg); }
    100% { transform: perspective(1000px) rotateY(360deg); }
}

.animate-spin-3d {
    animation: spin-3d 8s linear infinite;
    display: block;
}

[x-cloak] {
    display: none !important;
}

/* Hide Google Translate UI elements */
.VIpgJd-ZVi9od-ORHb-OEVmcd { display: none !important; }
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }
#goog-gt-tt { display: none !important; }
.goog-te-combo { display: none !important; }
