:root {
    --primary: #747106;
    --secondary: #D9C69E;
    --dark: #0F0F0F;
    --light: #F0F0F0;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(-45deg, #0052A4, #A5A5A5, #67823A, #BFBFBF);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--light);
    overflow-x: hidden;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(10deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    30%,
    45%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40%,
    55% {
        transform: translateY(-10px);
    }
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--light);
    }
}

.lang-selector {
    display: flex;
    gap: 5px;
    margin-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 15px;
    align-items: center;
}

.lang-selector button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--light);
    border-radius: 15px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.lang-selector button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lang-selector button.active {
    background: var(--secondary);
    color: var(--dark);
    border-color: var(--secondary);
}

.shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: #A05EB5;
    top: 10%;
    left: 5%;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: #67823A;
    bottom: 20%;
    right: 10%;
    animation-delay: 2s;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.typing-text {
    font-size: 5rem;
    overflow: hidden;
    white-space: nowrap;
    border-right: .15em solid var(--light);
    margin: 0 auto;
    animation:
        typing 1.5s steps(30, end),
        blink-caret .75s step-end infinite;
}

.highlight {
    color: var(--secondary);
    text-shadow: 0 0 15px #D9C69E;
}

.fade-in-up {
    font-size: 1.5rem;
    margin-top: 15px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 2.5s forwards;
}

.btn {
    display: inline-block;
    margin-top: 40px;
    padding: 12px 30px;
    background: var(--light);
    color: var(--dark);
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 3s forwards, bounce 2s infinite 4s;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    animation: none;
}

.section {
    min-height: 100vh;
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    background: rgba(47, 53, 66, 0.8);
    backdrop-filter: blur(10px);
}

.container {
    max-width: 1000px;
    text-align: center;
}

.container h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

/* --- Navigation Bar --- */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    padding: 12px 25px;
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(15px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    animation: slideDown 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideDown {
    from {
        top: -100px;
        opacity: 0;
    }

    to {
        top: 20px;
        opacity: 1;
    }
}

.navbar a {
    text-decoration: none;
    color: var(--light);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 22px;
    border-radius: 25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.navbar a:hover {
    background: var(--secondary);
    color: var(--dark);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px #D9C69E;
}

.navbar a:active {
    transform: translateY(0) scale(0.95);
    transition: 0.1s;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--dark);
    transition: 0.3s;
    transform: translateX(-50%);
}

.navbar a:hover::after {
    width: 30%;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: 15px;
    flex: 1;
    min-width: 250px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 20px;
    border-radius: 15px;
    background-color: #444;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}

.card:hover {
    transform: translateY(-15px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: var(--secondary);
}

#contact .card a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s ease;
}

#contact .card a:hover {
    color: var(--secondary);
}

.card:hover::before {
    left: 200%;
}

.scroll-trigger {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.scroll-trigger.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

@media (max-width: 768px) {
    .typing-text {
        font-size: 2.5rem;
        white-space: normal;
        border-right: none;
        animation: fadeInUp 1s ease-out forwards; 
    }

    .navbar {
        width: 90%;
        padding: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .lang-selector {
        margin-right: 0;
        border-right: none;
        margin-bottom: 10px;
        width: 100%;
        justify-content: center;
    }

    .hero-content h1 {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .card-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
}
