@font-face {
    font-family: 'Atop';
    src: url('Atop-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

::selection {
    background: #574AE2;
    color: white;
    -webkit-text-fill-color: white;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background: #161618;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
    display: none;
}

/* Navbar */

.navbar {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #161618;
    border-bottom: 1px solid #2E2E32;
    z-index: 100;
    position: relative;
    padding: 30px 0;
    /* Mehr Platz nach oben/unten */
}

.logo-container {
    position: absolute;
    left: 50px;
}

#logo {
    text-decoration: none;
    color: white;
    font-size: 24px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.nav-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 60px;
}

.nav-item a {
    text-decoration: none;
    color: white;
    font-size: 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.nav-item a:hover {
    opacity: 1;
}

#works {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Language Switch */
.language-switch {
    position: absolute;
    right: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-btn {
    background: none;
    border: none;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    opacity: 0.5;
    padding: 0;
    transition: all 0.3s ease;
}

.lang-btn.active {
    opacity: 1;
    font-weight: 700;
    color: #574AE2;
}

.lang-btn:hover {
    opacity: 1;
}

.separator {
    color: white;
    opacity: 0.3;
    font-size: 14px;
}

/* Hamburger Menu - hidden on desktop */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 101;
}

.hamburger-line {
    width: 25px;
    height: 2px;
    background: #F7F8F8;
    transition: all 0.3s ease;
    display: block;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

#arrow {
    width: 16px;
}

/* Hero */

#hero {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-direction: column;
    padding-top: 80px;
}

#hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 0;
    pointer-events: none;
}

#portfolio {
    font-family: Atop;
    background: radial-gradient(circle, #FFFFFF 0%, #E2ADF2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 4px;
    font-weight: 400;
    font-style: Regular;
    font-size: 120px;
    vertical-align: middle;
    margin: 70px 0 0 0;
    position: relative;
    pointer-events: auto;
}

#portfolio::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    text-shadow: 0px 0px 100px rgba(217, 0, 255, 0.5);
}

#name,
#motion-design {
    font-size: 36px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    background: linear-gradient(180deg, #574AE2 0%, #AB81CD 100%);
    -webkit-background-clip: text;
    background-clip: text;
    letter-spacing: 2px;
    color: transparent;
    margin: 0;
}

#motion-design {
    font-size: 20px;
    margin-top: 10px;
}

/* Erstes Bild - Links */
.hero-img {
    position: absolute;
    top: 400px;
    left: 5%;
    transform: translateY(-50%);
    z-index: 1;
    transition: transform 0.3s ease-in-out;
}

.hero-img img {
    height: 1000px;
    width: auto;
}

.hero-img:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Zweites Bild - Rechts */
.hero-img2 {
    position: absolute;
    top: 400px;
    right: 5%;
    transform: translateY(-50%);
    z-index: 1;
    transition: transform 0.3s ease-in-out;
}

.hero-img2 img {
    height: 1000px;
    width: auto;
}

.hero-img2:hover {
    transform: translateY(-50%) scale(1.1);
}

#quote {
    font-size: 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-style: italic;
    background: #D0D6E0;
    -webkit-background-clip: text;
    background-clip: text;
    letter-spacing: 1px;
    color: transparent;
    margin: 260px 0 0 0;
}

#info {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 300px 300px 0 300px;
    gap: 100px;
    align-items: start;
}

#info-about h2,
#info-experience h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 40px;
    color: #F7F8F8;
    margin: 0;
    text-align: center;
}

#info-about p,
#info-experience p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #D0D6E0;
    margin: 0;
    justify-self: center;
    text-align: center;
    margin-top: 20px;
}

#info-about,
#info-experience {
    flex: 1;
}

#pictures {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 150px;
    gap: 20px;
    z-index: 10;
}

#pictures img {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 20px;
}

#tools {
    margin-top: 100px;
}

#tools-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 40px;
    color: #F7F8F8;
    margin: 0;
    text-align: center;
}

#tools-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    gap: 20px;
    z-index: 10;
    flex-wrap: wrap;
}

.tool-item {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tool-item img {
    width: 120px;
    height: 120px;
    transition: transform 0.3s ease-in-out;
}

.tool-item:hover img {
    transform: scale(1.1);
    cursor: default;
}

/* Tooltip styling */
.tool-item::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(87, 74, 226, 0.95);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    z-index: 100;
}

.tool-item:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

#tools-other {
    margin-top: 50px;
    text-align: center;
}

#tools-other h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #D0D6E0;
    margin: 0;
    text-align: center;
    margin-top: 20px;
}

#samples {
    margin-top: 150px;
}

#samples-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 40px;
    color: #F7F8F8;
    margin: 0;
    text-align: center;
}

#motion-design-works {
    margin-top: 150px;
    width: 80%;
}

#motion-design-works-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 40px;
    color: #F7F8F8;
    margin: 0;
    text-align: center;
}

#motion-design-works-wrapper {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    z-index: 10;
    flex-wrap: nowrap;
    padding: 0 100px;
}

#motion-design-work-video-wrapper {
    width: 60%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background: rgba(46, 46, 50, 0.3);
    border-radius: 12px;
}

/* Main Video Player */
.main-video-player {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

.main-video-player.visible {
    opacity: 1;
    transform: translateY(0);
}

.main-video-player .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.main-video-player .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.main-video-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #F7F8F8;
    margin: 15px 0 0 0;
}

/* Thumbnails Carousel */
.thumbnails-carousel {
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Carousel Navigation Arrows */
.carousel-nav {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(87, 74, 226, 0.4);
    background: rgba(46, 46, 50, 0.6);
    color: #F7F8F8;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-nav:hover {
    background: rgba(87, 74, 226, 0.4);
    border-color: #574AE2;
}

.carousel-nav:active {
    transform: scale(0.95);
}

.thumbnails-wrapper {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #574AE2 rgba(46, 46, 50, 0.5);
}

.thumbnails-wrapper::-webkit-scrollbar {
    height: 8px;
}

.thumbnails-wrapper::-webkit-scrollbar-track {
    background: rgba(46, 46, 50, 0.5);
    border-radius: 4px;
}

.thumbnails-wrapper::-webkit-scrollbar-thumb {
    background: #574AE2;
    border-radius: 4px;
}

.thumbnails-wrapper::-webkit-scrollbar-thumb:hover {
    background: #6B5EE8;
}

/* Thumbnail Items */
.thumbnail-item {
    flex-shrink: 0;
    width: 200px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease-out;
}

.thumbnail-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.thumbnail-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
    border: 3px solid transparent;
    transition: all 0.3s ease-in-out;
}

.thumbnail-item:hover .thumbnail-wrapper {
    border-color: rgba(87, 74, 226, 0.5);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(87, 74, 226, 0.3);
}

.thumbnail-item.active .thumbnail-wrapper {
    border-color: #574AE2;
    box-shadow: 0 4px 16px rgba(87, 74, 226, 0.5);
}

.thumbnail-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    color: white;
    opacity: 0.8;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease-in-out;
    pointer-events: none;
}

.thumbnail-item:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

.thumbnail-item.active .play-icon {
    opacity: 0;
}

.thumbnail-title {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #D0D6E0;
    margin-top: 8px;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thumbnail-item.active .thumbnail-title {
    color: #F7F8F8;
    font-weight: 600;
}

#motion-design-folders-wrapper {
    width: 40%;
    padding: 20px;
    background: linear-gradient(135deg, rgba(87, 74, 226, 0.1) 0%, rgba(171, 129, 205, 0.1) 100%);
    border-radius: 12px;
    border: 1px solid rgba(87, 74, 226, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.folders-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: #F7F8F8;
    margin: 0 0 15px 0;
    text-align: left;
}

.folder-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
    scrollbar-color: #574AE2 rgba(46, 46, 50, 0.5);
}

.folder-list::-webkit-scrollbar {
    width: 6px;
}

.folder-list::-webkit-scrollbar-track {
    background: rgba(46, 46, 50, 0.5);
    border-radius: 3px;
}

.folder-list::-webkit-scrollbar-thumb {
    background: #574AE2;
    border-radius: 3px;
}

.folder-list::-webkit-scrollbar-thumb:hover {
    background: #6B5EE8;
}

.folder-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(46, 46, 50, 0.4);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    border: 2px solid transparent;
}

.folder-item:hover {
    background: rgba(87, 74, 226, 0.2);
    transform: translateX(5px);
    border-color: rgba(87, 74, 226, 0.3);
}

.folder-item.active {
    background: linear-gradient(135deg, rgba(87, 74, 226, 0.3) 0%, rgba(171, 129, 205, 0.3) 100%);
    border-color: #574AE2;
    box-shadow: 0 4px 12px rgba(87, 74, 226, 0.3);
}

.folder-icon {
    font-size: 18px;
    transition: transform 0.3s ease-in-out;
}

.folder-item:hover .folder-icon {
    transform: scale(1.1);
}

.folder-item.active .folder-icon {
    transform: scale(1.15);
}

.folder-name {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #D0D6E0;
    transition: color 0.3s ease-in-out;
}

.folder-item.active .folder-name {
    color: #F7F8F8;
    font-weight: 600;
}

/* Contact Section */
#contact {
    margin-top: 150px;
    padding: 80px 100px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

#contact-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 48px;
    background: linear-gradient(180deg, #574AE2 0%, #AB81CD 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
}

#contact-description {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #D0D6E0;
    margin: 0;
    max-width: 600px;
}

.email-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #574AE2 0%, #6B5EE8 100%);
    color: white;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 16px rgba(87, 74, 226, 0.3);
    margin-top: 10px;
}

.email-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(87, 74, 226, 0.5);
    background: linear-gradient(135deg, #6B5EE8 0%, #7D6FF0 100%);
}

.email-button:active {
    transform: translateY(-1px);
}

.email-button svg {
    width: 24px;
    height: 24px;
}

.email-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #D0D6E0;
    margin-top: 10px;
    opacity: 0.8;
}

/* Footer Section */
footer {
    width: 100%;
    margin-top: 100px;
    padding: 40px 0;
    border-top: 1px solid rgba(87, 74, 226, 0.2);
    background: linear-gradient(180deg, rgba(22, 22, 24, 0) 0%, rgba(87, 74, 226, 0.05) 100%);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer-content p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #D0D6E0;
    opacity: 0.6;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #D0D6E0;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: #F7F8F8;
}

@media (max-width: 1750px) {
    #portfolio {
        font-size: 100px;
    }

    .hero-img {
        left: -5%;
        transform: translateY(-50%) scale(0.8);
    }

    .hero-img:hover {
        transform: translateY(-50%) scale(0.9);
    }

    .hero-img2 {
        right: -5%;
        transform: translateY(-50%) scale(0.8);
    }

    .hero-img2:hover {
        transform: translateY(-50%) scale(0.9);
    }

    .nav-list {
        padding-left: 50px;
        gap: 30px;
    }

    #pictures img {
        max-width: 300px;
    }
}

@media (max-width: 1220px) {
    #portfolio {
        font-size: 80px;
        margin-top: 100px;
    }

    .nav-list {
        padding-left: 20px;
        gap: 20px;
    }

    .nav-item a {
        font-size: 16px;
    }

    #logo {
        padding-right: 20px;
    }

    #article {
        max-width: 900px;
        width: 90%;
    }

    #article img {
        width: 100%;
        height: auto;
    }

    #pictures {
        gap: 15px;
    }

    #pictures img {
        max-width: 250px;
    }

    #info {
        margin: 200px 100px 0 100px;
        gap: 60px;
    }
}

@media (max-width: 1024px) {
    .hero-img,
    .hero-img2 {
        display: none;
    }

    #quote {
        margin-top: 80px;
    }

    #portfolio {
        font-size: 70px;
    }

    #info {
        margin: 150px 60px 0 60px;
        gap: 50px;
    }

    #info-about h2,
    #info-experience h2 {
        font-size: 32px;
    }

    #info-about p,
    #info-experience p {
        font-size: 18px;
    }

    #pictures {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 80px;
    }

    #pictures img {
        max-width: 45%;
    }

    .tool-item img {
        width: 90px;
        height: 90px;
    }

    #motion-design-works-wrapper {
        padding: 0 30px;
    }

    .thumbnail-item {
        width: 160px;
    }

    #contact {
        padding: 60px 40px;
    }

    #contact-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    /* Hamburger navbar */
    .navbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        height: auto;
        position: sticky;
        top: 0;
        flex-wrap: wrap;
    }

    .logo-container {
        position: static;
        margin-bottom: 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 15px;
        padding: 20px 0;
        margin: 0;
        order: 3;
        text-align: center;
    }

    .nav-list.open {
        display: flex;
    }

    #works {
        justify-content: center;
    }

    .language-switch {
        display: none;
        position: static;
        width: 100%;
        justify-content: center;
        padding: 10px 0;
        margin-top: 0;
        order: 4;
    }

    .language-switch.open {
        display: flex;
    }

    #logo {
        padding: 0;
        font-size: 28px;
    }

    /* Hero section */
    .hero-img,
    .hero-img2 {
        display: none;
    }

    #hero {
        height: auto;
        padding-top: 30px;
        padding-bottom: 100px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    #portfolio {
        font-size: 60px;
        margin-top: 50px;
        letter-spacing: 2px;
    }

    #name,
    #motion-design {
        font-size: 24px;
    }

    #motion-design {
        font-size: 16px;
    }

    #quote {
        margin-top: 40px;
    }

    /* Info section */
    #info {
        flex-direction: column;
        margin: 80px 20px 0 20px;
        gap: 40px;
    }

    #info-about h2,
    #info-experience h2 {
        font-size: 28px;
    }

    #info-about p,
    #info-experience p {
        font-size: 16px;
    }

    #article img {
        width: 90%;
        height: auto;
    }

    /* Pictures */
    #pictures {
        flex-direction: column;
        gap: 20px;
        margin-top: 50px;
    }

    #pictures img {
        max-width: 90%;
        width: 100%;
    }

    /* Tool icons */
    .tool-item img {
        width: 60px;
        height: 60px;
    }

    #tools-wrapper {
        gap: 15px;
        padding: 0 20px;
    }

    #tools-title {
        font-size: 28px;
        padding: 0 20px;
    }

    #tools-other h2 {
        font-size: 16px;
        padding: 0 20px;
    }

    /* Show tooltips on tap instead of hover on mobile */
    .tool-item:hover::after {
        opacity: 0;
    }

    .tool-item.tapped::after {
        opacity: 1;
        transform: translateX(-50%) translateY(-5px);
    }

    /* Video section */
    #motion-design-works {
        width: 100%;
        overflow: hidden;
    }

    #motion-design-works-title {
        font-size: 28px;
        padding: 0 20px;
    }

    #motion-design-works-wrapper {
        flex-direction: column;
        padding: 0 10px;
        gap: 15px;
    }

    #motion-design-work-video-wrapper,
    #motion-design-folders-wrapper {
        width: 100%;
    }

    #motion-design-work-video-wrapper {
        max-height: none;
        overflow: visible;
    }

    .thumbnail-item {
        width: 140px;
    }

    .main-video-title {
        font-size: 16px;
    }

    /* Folders: horizontal scrollable strip on mobile */
    #motion-design-folders-wrapper {
        padding: 15px;
    }

    .folders-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .folder-list {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .folder-item {
        flex-shrink: 0;
        padding: 8px 14px;
        white-space: nowrap;
    }

    .folder-item:hover {
        transform: none;
    }

    /* Contact */
    #contact {
        padding: 60px 20px;
        margin-top: 80px;
    }

    #contact-title {
        font-size: 36px;
    }

    #contact-description {
        font-size: 16px;
    }

    .email-button {
        font-size: 16px;
        padding: 14px 28px;
    }
}