/* Explain: Base reset, global styles, typography, and 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-color: var(--background-color);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
    color: var(--text-color);
    font-family: var(--font-body);
    text-rendering: optimizeLegibility;
}

button,
a,
select {
    cursor: pointer;
}

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

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

/* Animations and Elegant Elements */
.animate-on-scroll {
    opacity: 1;
    transform: none;
}

.elegant-card {
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.elegant-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px -15px rgba(181, 127, 115, 0.25);
}

.elegant-image {
    border-radius: 1.5rem;
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.12);
    border: 6px solid #ffffff;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.elegant-image:hover {
    transform: scale(1.03);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}