@font-face {
    font-family: Fontello;
    src: url(fonts/fontello.woff2) format("woff");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #555555;
    background-color: #f7f7f7;
    min-height: 50vh;
    transition: all 0.3s ease;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    transition: background-color 0.3s ease;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.header {
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    transition: background-color 0.3s ease;
    color: var(--header-text);
    padding: 40px;
    padding-top: 0px;
    text-align: center;
    position: relative;
    transition: background 0.3s ease;
}

.hero-section {
    display: flex;
    justify-content: end;
    background-image: url(pp.jpg);
    background-size: contain;
    background-position: right;
    background-repeat: no-repeat;
    flex-direction: column;
    align-items: start;
    max-width: 1200px;
    height: 70vh;
    margin: 0 auto;
    transition: background 0.3s ease;
    margin-bottom: 40px;
    opacity: 0;
    animation: slideIn 1.6s ease-out forwards;
}

.language-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.lang-btn {
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: white;
    color: #2c3e50;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.justify {
    text-justify: auto;
}

.quote {
    font-style: italic;
    font-size: medium;
    color: #5b6773;
    font-weight: 700;
    align-self: center;

    /* margin-bottom: 40px; */
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.6s ease-out forwards;
    animation-delay: 0.1s;
}

.name {
    font-size: 3rem;
    text-align: left;

    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 0.6;
    color: #2c3e50;
    transition: all 0.3s ease;
    padding-top: 50px;
    text-transform: uppercase;

    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3);

    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.6s ease-out forwards;
}

.last-name-style {
    color: #3498db !important;
    font-size: 4.5rem;
}

.in-touch-style {
    color: #3498db !important;
    font-size: 4rem;
}
.desktop-only-split {
    display: inline;
}
.slogan {
    text-align: right !important;
    align-self: center;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.6s ease-out forwards;
}

.title {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 400;
}

.separator {
    border: none;
    border-top: 1px solid #ccc;
    width: 50%;
    margin: 20px auto;
}

.main-content {
    padding: 40px;
}

.section {
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.6s ease-out forwards;
}

.section:nth-child(1) {
    animation-delay: 0.2s;
}

.section:nth-child(2) {
    animation-delay: 0.4s;
}

.section:nth-child(3) {
    animation-delay: 0.6s;
}

.section:nth-child(4) {
    animation-delay: 0.8s;
}

.section:nth-child(5) {
    animation-delay: 1s;
}

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

.section-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2c3e50);
    border-radius: 2px;
}

.contact-icon {
    font-family: Fontello;
    font-size: 30px;
    line-height: 2;
}

.contact-button-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 1em;
    margin-top: 2em;
}

.contact-button-container a {
    text-decoration: none;
    color: inherit !important;
}

.contact-button {
    height: 3.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 12px; */
    flex: 1;
    border-left: 1px solid #3498db;
    text-decoration: none;
    background-color: #fff;
    transition:
        background-color 0.3s,
        transform 0.2s;
}

.contact-button:hover {
    transform: scale(1.02);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.email-link {
    flex: 1.3;
}

.experience-item,
.education-item {
    margin-bottom: 25px;
    padding: 20px;
    background: #fff;
    /* border-radius: 10px; */
    border-left: 1px solid #3498db;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.experience-item:hover,
.education-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.job-title,
.degree {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.company,
.school {
    font-weight: 500;
    color: #3498db;
    margin-bottom: 5px;
    text-decoration: none;
}

.date {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.lang-content {
    transition: all 0.3s ease;
}

.fade-transition {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fade-transition.show {
    opacity: 1;
}

@media (max-width: 768px) {
    .header {
        padding: 30px 0px;
    }

    .name {
        font-size: 2rem;
    }

    .main-content {
        padding: 30px 20px;
    }

    .contact-button-container {
        flex-direction: column;
    }

    .in-touch-style {
        color: #3498db !important;
        font-size: 3rem;
    }

    .last-name-style {
        color: #3498db !important;
        font-size: 2.8rem;
    }

    .hero-section {
        height: 80vh;
        background-size: cover;
        background-position: center;
        padding: 0% 5%;
        text-align: left;
    }

    .desktop-only-split {
        display: none;
    }
}

.footer_links {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-icons-footer-container {
    font-family: Fontello;
    font-size: 1.7rem;
    display: flex;

    text-decoration: none;
    color: inherit !important;
}

.contact-icons-footer {
    display: flex;
    justify-content: center;
    margin: 1rem;
}

.copyright-text-footer {
    font-size: 0.7rem;
    color: #a2a2a2;
    text-align: center;
    margin-bottom: 3em;
}

.icon-font {
    font-family: Fontello;
}

.contact-icons-mail-footer-container {
    margin: 0 auto;
    margin-top: 1.3rem;
    font-size: 1.3rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 0px 10px;
    text-decoration: none;
    color: inherit !important;
    width: max-content;
    background-color: #f7f7f7;
}

.contact-icons-mail-footer-container a {
    text-decoration: none;
    color: inherit !important;
}

.visitor-counter-box {
    margin-bottom: 3em;
    display: inline-flex;
    align-items: center;
    background: #2c3e50;
    color: #fff;
    border-radius: 0.3em;
    padding: 0.5em;
    font-size: 0.7em;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.2);
    margin-top: 16px;
}

.visitor-counter-label {
    margin-right: 0.3em;
    letter-spacing: 0.5px;
}

.visitor-counter-value {
    background: #3498db;
    /* color: #3498db; */
    border-radius: 0.2em;
    padding: 0.2em 0.6em;
    font-weight: bold;
    font-size: 1em;
    box-shadow: 0 2px 2px rgba(36, 36, 36, 0.7);
}

/* Floating Menu Styles */
#hamburger-menu {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    padding: 12px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.2);
    transition: background 0.3s;
}

#floating-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(44, 62, 80, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

#floating-menu.open {
    opacity: 1;
    pointer-events: auto;
}

#floating-menu ul {
    list-style: none;
    padding: 0;
}

#floating-menu li {
    margin: 2em 0;
}

#floating-menu a {
    font-size: 2.2em;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

#floating-menu a:hover {
    color: #3498db;
}
