:root {
    --bg-color: #fcfaf7;
    --text-main: #2d2d2d;
    --text-light: #757575;
    --accent: #d4a373;
}
::selection {
    background-color: var(--accent);
    color: white;
}


html{
    scroll-behavior: smooth;
    scroll-padding-top: 83px;
}
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--accent), transparent 50%);
    border-radius: 10px;
    border: 2px solid var(--bg-color);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

*{
    caret-color: transparent;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-color);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

body {
    margin: 0;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: clip;
    min-height: 100vh;
}

header {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    position: sticky;
    top: 0;
    z-index: 100;
}


.nav-link, .lang {
    color: var(--text-light);
    font-size: 0.9rem;
    transition: 0.3s;

    --shadow-color: color-mix(in srgb, var(--bg-color), transparent 60%);
    text-shadow:
            -1px -1px 0 var(--shadow-color),
            1px -1px 0 var(--shadow-color),
            -1px  1px 0 var(--shadow-color),
            1px  1px 0 var(--shadow-color);
}

.nav-link:hover { color: var(--text-main); }

.custom-dropdown-btn {
    color: var(--text-main);
    border: 1px solid var(--accent);
    background-color: transparent;
    transition: all 0.3s ease;
}

.custom-dropdown-btn:hover,
.custom-dropdown-btn:focus,
.show > .custom-dropdown-btn {
    background-color: var(--accent);
    color: white;
    border-color: var(--accent);
}

.dropdown-menu-custom {
    background-color: var(--bg-color);
    padding: 0.5rem;
    margin-top: 10px !important;
}

.dropdown-menu-custom .dropdown-item {
    color: var(--text-main);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: background 0.2s ease;
}

.dropdown-menu-custom .dropdown-item:hover {
    background-color: rgba(212, 163, 115, 0.15);
    color: var(--text-main);
}

.dropdown-menu-custom .dropdown-item.active {
    background-color: var(--accent) !important;
    color: white !important;
}


section {
    background-color: var(--bg-color);
}

h1 {
    color: var(--text-main);
}

hr.soft-divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), var(--accent), rgba(0, 0, 0, 0));
    opacity: 0.3;
    margin: 3rem 0;
}

.section-title {
    color: var(--text-main);
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent);
}

.timeline-container {
    background-color: var(--bg-color);
    padding: 2rem;
}

.timeline-item {
    border-left: 1px solid #e0e0e0;
    position: relative;
}

.timeline-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--accent);
    border-radius: 50%;
    left: -6.5px;
    top: 5px;
}

.timeline-date {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
}

.timeline-title {
    color: var(--text-main);
    font-weight: 700;
    margin-top: 0.25rem;
}

.timeline-inst {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-desc {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.6;
}

.timeline-item:last-child {
    border-left: 1px solid transparent;
}

.timeline-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    position: relative;
    transition: color 0.3s ease;
    display: inline-block;
}

.timeline-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.timeline-link:hover {
    color: var(--accent);
}

.timeline-link:hover::after {
    width: 100%;
}

.timeline-inst .timeline-link {
    font-weight: 400;
    color: var(--text-light);
    font-size: 0.95rem;
}


.contact-link {
    text-decoration: none;
    color: var(--text-light);
    position: relative;
    transition: color 0.3s ease;
    display: inline-block;
}

.contact-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.contact-link:hover {
    color: var(--text-main);
}

.contact-link:hover::after {
    width: 100%;
}


textarea::-webkit-scrollbar {
    width: 8px;
}

textarea::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

textarea::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

textarea::-webkit-scrollbar-thumb:hover {
    background: var(--text-main);
}

textarea {
    resize: none;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) #f1f1f1;
    scroll-behavior: smooth;
    padding-right: 15px;
}

.visually-hidden-pot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: -1;
    opacity: 0;
}


.copyright {
    color: var(--text-light);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.copyright strong {
    color: var(--text-main);
    font-weight: 600;
}

.footer-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateY(-2px);
    display: inline-block;
}

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background-color: var(--accent);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(20px);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    background-color: var(--text-main);
    transform: translateY(-5px);
}

#backToTop svg {
    margin-bottom: 2px;
}