/* Global Styles */
:root {
    --primary-color: #ff9500;
    --secondary-color: #ffb84d;
    --dark-color: #2c3e50;
    --light-color: #fff8f0;
    --text-color: #333;
    --text-light: #7f8c8d;
    --accent-orange: #ffa726;
    --deep-orange: #f57c00;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Navigation */
header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 248, 240, 0.98) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(255, 149, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(255, 149, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--deep-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    position: relative;
    transition: all 0.3s ease;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--deep-orange));
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-links li {
    margin-left: 0;
}

.nav-links a {
    color: var(--dark-color);
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--deep-orange));
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
    background-color: rgba(255, 149, 0, 0.05);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 80%;
}

.nav-links a.active {
    color: var(--primary-color);
    background-color: rgba(255, 149, 0, 0.1);
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.3rem;
    margin-left: 1rem;
}

.lang-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

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

.lang-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--deep-orange) 100%);
    color: white;
    border-color: var(--deep-orange);
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
}

.hamburger {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background-color: rgba(255, 149, 0, 0.1);
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--deep-orange));
    margin: 5px;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 149, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 184, 77, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, #fff8f0 0%, #ffe8cc 50%, #ffd9a8 100%);
    padding: 0 1rem;
    position: relative;
    overflow: hidden;
}

/* Animated background shapes */
.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 149, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -250px;
    right: -150px;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 184, 77, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -200px;
    left: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

/* Hero Decorations */
.hero-decorations {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.code-symbol {
    position: absolute;
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
    opacity: 0.15;
    font-family: 'Courier New', monospace;
    animation: float 8s ease-in-out infinite;
}

.icon-decoration {
    position: absolute;
    font-size: 2.5rem;
    color: var(--accent-orange);
    opacity: 0.2;
    animation: float 10s ease-in-out infinite;
}

.floating-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.6;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.greeting {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0.3;
    z-index: -1;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.hero-tags {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-tags span {
    background: rgba(255, 149, 0, 0.1);
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    font-size: 0.95rem;
    color: var(--dark-color);
    border: 2px solid rgba(255, 149, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-tags span:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--deep-orange);
    transform: translateY(-2px);
}

.hero-tags i {
    font-size: 1rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    color: white;
}

/* Sections */
section {
    padding: 5rem 1rem;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

/* About Section */
.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.profile-section {
    flex: 0 0 250px;
    display: flex;
    justify-content: center;
}

.profile-image {
    position: relative;
    width: 250px;
    height: 250px;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 149, 0, 0.3);
    transition: all 0.3s ease;
}

.profile-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 149, 0, 0.4);
}

.profile-placeholder {
    display: none;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--light-color), var(--primary-color));
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
    border: 5px solid var(--primary-color);
}

.about-text {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.skills {
    margin-top: 2rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.skill-tags span {
    background-color: var(--light-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--dark-color);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.skill-tags span:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--deep-orange);
    transform: translateY(-2px);
}

/* Projects Section */
.projects {
    background-color: #f9f9f9;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 149, 0, 0.3);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-color), #ffe8cc);
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    flex-wrap: wrap;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.project-link:hover {
    background-color: var(--light-color);
}

.project-link.video-link {
    color: #ff0000;
}

.project-link.video-link:hover {
    background-color: rgba(255, 0, 0, 0.1);
}

/* Video Overlay on Project Image */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    color: white;
}

.project-card:hover .video-overlay {
    opacity: 1;
}

.video-overlay i {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.video-overlay span {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16/9;
}

.video-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.video-close:hover {
    color: var(--primary-color);
}

.video-modal iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 1.5rem;
}

/* Impressum Section */
.impressum {
    padding: 5rem 1rem;
    background-color: #f9f9f9;
}

.impressum-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.impressum h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-size: 1.3rem;
}

.impressum h3:first-child {
    margin-top: 0;
}

.impressum p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.impressum a {
    color: var(--primary-color);
    word-break: break-all;
}

.impressum a:hover {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.5s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .language-switcher {
        position: fixed;
        top: 15px;
        right: 70px;
        z-index: 1001;
    }

    .lang-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    .hamburger {
        display: block;
    }

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

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

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

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .code-symbol {
        font-size: 2rem;
    }

    .icon-decoration {
        font-size: 1.8rem;
    }

    .hero-tags {
        gap: 0.5rem;
    }

    .hero-tags span {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }

    .greeting {
        font-size: 1.2rem;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-section {
        flex: 0 0 auto;
    }

    .profile-image {
        width: 200px;
        height: 200px;
    }

    .about-text {
        text-align: center;
    }

    .skill-tags {
        justify-content: center;
    }

    .project-image {
        height: 180px;
    }
}
