@font-face {
    font-family: 'Anta';
    src: url('./Font/Anta-Regular.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
    max-width: 1440px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0px;
    background-color: #262e34;
    font-family: 'Anta', sans-serif;
}
/* Hamburger Button — standardmäßig versteckt */
.hamburger {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1000;
    flex-direction: column;
    gap: 5px;
    background: #a8bfce;
    border: none;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #1a2530;
    border-radius: 2px;
}

/* Mobile Drawer */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100vh;
    background-color: #a8bfce;
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 60px 30px 30px;
    gap: 30px;
    transition: left 0.3s ease;
}

.mobile-menu.open {
    left: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #1a2530;
    cursor: pointer;
}

.mobile-nav-link {
    color: #1a2530;
    text-decoration: none;
    font-size: 1.3rem;
    font-family: 'Anta', sans-serif;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
}

.mobile-menu-overlay.open {
    display: block;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    height: 100vh;
    color: white;
}

.hero-header {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 30px;
    overflow: hidden;
}

.portrait-photo {
    padding-top: 120px;
    height: 700px;
    border-radius: 50%;
    object-fit: cover;
    -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.770) 60%, transparent 100%);
    mask-image: radial-gradient(circle, rgba(0, 0, 0, 0.770) 60%, transparent 100%);
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    gap: 10px;
}

.hero-text h2 {
    margin: 0;
    font-size: 2.5rem;
}

.hero-text h1 {
    text-align: center;
    margin: 0;
    font-size: 1.8rem;
    letter-spacing: 0.05em;
}

.logo {
    width: 450px;
    object-fit: contain;
}

.hero-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    flex-shrink: 0;
}

.hero-links img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.hero-links img:hover {
    cursor: pointer;
    background-color: #1a2530;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0,255,255,0.5);
    border-radius: 20px;
}

.scroll-btn:hover{
    background-color: #1a2530;
    transform: scale(1.02);
    box-shadow: 0 0 10px rgba(0,255,255,0.5);
    border-radius: 20px;
}


/* Nav */
nav {
    position: relative;
    z-index: 100;
    background-color: #a8bfce;
    display: flex;
    align-items: center;
    padding: 16px 40px;
    flex-shrink: 0;
    justify-content: space-evenly;
}

.nav-trigger {
    height: 0;
}

.main-nav.is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
}

.nav-spacer {
    height: 0;
    flex-shrink: 0;
}

.nav-logo {
    width: 120px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: #1a2530;
    text-decoration: none;
    font-size: 1rem;
    font-family: 'Anta', sans-serif;
}

.nav-links a:hover {
    text-decoration: underline;
    cursor: pointer;
}

.lang-switcher {
    display: flex;
    gap: 8px;
    color: #1a2530;
    font-size: 1rem;
}
.lang-switcher :hover {
    text-decoration: underline;
    cursor: pointer;
}

.lang-switcher .active {
    font-weight: bold;
    text-decoration: underline;
}

/* Why Me Section */
.why-me {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 80px;
    gap: 60px;
}

.section-title {
    font-size: 3rem;
    color: #a8bfce;
    margin: 0;
    text-align: center;
}

.why-me-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    width: 100%;
    max-width: 1100px;
}

.why-me-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.location-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    opacity: 0.8;
}

.typewriter-text {
    font-size: 1.5rem;
    margin: 0;
    white-space: nowrap;
}

.typewriter-static {
    font-weight: bold;
    color: #a8bfce;
}

.typewriter {
    color: white;
}

.typewriter::after {
    content: '|';
    animation: blink 0.7s step-end infinite;
    color: #a8bfce;
}

@keyframes blink {
    50% { opacity: 0; }
}

.why-me article {
    font-size: 1rem;
    line-height: 1.8;
    color: #ccd6dd;
    max-width: 500px;
}

/* Skills Section */
.skills {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 80px;
    gap: 60px;  
}

.skills-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
    max-width: 1100px;
}

.skill-item{
    gap: 1rem;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
    flex-shrink: 0;
}

.skill-item.skill-new-row {
    grid-column: 1;
}

.skill-item img {
    width: 5rem;
    height: 5rem;
    object-fit: contain;
}

.skill-item img:hover {
    box-shadow: 0 0 30px rgba(0,255,255,0.5);
}

.skills-circle {
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background-color: #1e272e;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    flex-shrink: 0;
}

.skills-circle:hover {  
    transform: scale(1.1);
    background-color: rgba(13, 176, 176, 0.5)
}

.skills-circle p {
    font-size: 1rem;
    line-height: 1.8;
    color: #ccd6dd;
    text-align: center;
    margin: 0;
}

/* Projects Section */
.projects {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 80px;
    gap: 60px;
}

.project-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #3a4a56;
    width: 100%;
    max-width: 1100px;
}

.project-tab {
    background: none;
    border: none;
    color: #a8bfce;
    font-family: 'Anta', sans-serif;
    font-size: 1.1rem;
    padding: 14px 30px;
    cursor: pointer;
    opacity: 0.5;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: opacity 0.2s;
}

.project-tab.active {
    opacity: 1;
    border-bottom: 3px solid #a8bfce;
}

.project-panels {
    width: 100%;
    max-width: 1100px;
}

.project-panel {
    display: none;
    gap: 60px;
    align-items: flex-start;
}

.project-panel.active {
    display: flex;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    flex: 1;
}

.project-point {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.project-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #a8bfce;
    flex-shrink: 0;
    margin-top: 4px;
}

.project-point h3 {
    margin: 0 0 6px 0;
    font-size: 1.2rem;
    color: #a8bfce;
}

.project-duration {
    font-size: 0.9rem;
    color: #ccd6dd;
    font-weight: normal;
    margin-left: 12px;
}

.project-point p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #ccd6dd;
}

.project-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    width: 340px;
}

.project-tech p {
    margin: 0 0 10px 0;
    color: #a8bfce;
    text-align: center;
    font-size: 0.95rem;
}

.project-tech-icons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.project-tech-icons img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.project-screenshot {
    width: 100%;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #1e272e;
}

.project-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-screenshot.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3a4a56;
    font-size: 0.9rem;
}

.project-btns {
    display: flex;
    gap: 16px;
}

.btn-primary {
    padding: 12px 28px;
    background-color: #a8bfce;
    color: #1a2530;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Anta', sans-serif;
    font-size: 0.95rem;
}

.btn-secondary {
    padding: 12px 28px;
    border: 2px solid #a8bfce;
    color: #a8bfce;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Anta', sans-serif;
    font-size: 0.95rem;
}


/* Contact Section */
.contact {
    min-height: 100vh;
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 80px;
    gap: 60px;
}

.scroll-top-btn {
    position: absolute;
    top: 15%;
    right: 32px;
    transform: translateY(-50%);
    width: 48px;
    height: 72px;
    border: 2px solid white;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    text-decoration: none;
    opacity: 0.8;
}

.contact-content {
    display: flex;
    gap: 80px;
    width: 100%;
    max-width: 1100px;
    align-items: flex-start;
}

.contact-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-left p {
    font-size: 1rem;
    line-height: 1.8;
    color: #ccd6dd;
    text-align: justify;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1rem;
    color: #ccd6dd;
}

.contact-detail-item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.contact-form {
    flex: 1.4;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form-row {
    display: flex;
    gap: 20px;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.contact-field .field-error {
    font-size: 0.78rem;
    color: #e07070;
    min-height: 1.1rem;
    margin: 0;
}

.contact-field label {
    font-size: 0.85rem;
    color: #a8bfce;
}

.contact-field input,
.contact-field textarea {
    background: transparent;
    border: 1.5px solid #a8bfce;
    border-radius: 30px;
    padding: 14px 20px;
    color: white;
    font-family: 'Anta', sans-serif;
    font-size: 0.95rem;
    outline: none;
    resize: none;
}

.contact-field textarea {
    border-radius: 20px;
}

.contact-privacy {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: #ccd6dd;
}

.contact-privacy input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    accent-color: #a8bfce;
    flex-shrink: 0;
}

.contact-privacy a {
    color: #a8bfce;
}

.contact-submit {
    display: flex;
    justify-content: flex-end;
}

.contact-submit button {
    padding: 12px 36px;
    background: transparent;
    border: 1.5px solid #a8bfce;
    border-radius: 30px;
    color: #a8bfce;
    font-family: 'Anta', sans-serif;
    font-size: 1rem;
    cursor: pointer;
}

.contact-submit button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Footer */
footer {
    background-color: #a8bfce;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 16px 60px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #1a2530;
    font-size: 0.9rem;
}

.footer-left a {
    color: #1a2530;
    text-decoration: none;
}

.footer-center img {
    object-fit: contain;
    opacity: 0.7;
}

.footer-right {
    display: flex;
    gap: 16px;
    align-items: center;
    
}

.footer-right img {
    background-color: transparent;
    color: #1a2530;
    width: 30px;
    height: 30px;
    object-fit: contain;
    opacity: 0.7;
}

/* Success Dialog */
.dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background-color: rgba(26, 37, 48, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.dialog-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.dialog-box {
    background-color: #1e272e;
    border: 1px solid #3a4a56;
    border-radius: 12px;
    padding: 40px 36px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
}

.dialog-overlay.open .dialog-box {
    transform: translateY(0) scale(1);
}

.dialog-icon {
    margin-bottom: 20px;
}

.dialog-icon svg {
    width: 56px;
    height: 56px;
}

.dialog-box h3 {
    color: #ccd6dd;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.dialog-box p {
    color: #a8bfce;
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.dialog-close-btn {
    background-color: #a8bfce;
    color: #1a2530;
    border: none;
    border-radius: 6px;
    padding: 10px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dialog-close-btn:hover {
    background-color: #ccd6dd;
}

/* Impressum Overlay */
.impressum-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background-color: #262e34;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.impressum-overlay.open {
    transform: translateY(0);
}

.impressum-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.impressum-page footer {
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
}

.impressum-nav {
    background-color: #a8bfce;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.impressum-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: #1a2530;
    cursor: pointer;
}

.impressum-content {
    flex: 1;
    padding: 60px 80px;
    color: white;
}

.impressum-content h1 {
    font-size: 3rem;
    color: #a8bfce;
    margin: 0 0 40px 0;
}

.impressum-content h2 {
    font-size: 1.4rem;
    color: #a8bfce;
    margin: 0 0 6px 0;
}

.impressum-content h3 {
    font-size: 1.1rem;
    color: #a8bfce;
    margin: 24px 0 6px 0;
}

.impressum-content p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #ccd6dd;
    margin: 0 0 10px 0;
}

.impressum-content a {
    color: #a8bfce;
}

.impressum-back {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.4rem;
    padding: 16px 20px 0;
    cursor: pointer;
    text-align: left;
}

.impressum-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
}

.impressum-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #1a2530;
    border-radius: 2px;
}
