/* ==== Allgemeine Stile ==== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #000000;
    color: white;
    text-align: center;
}

/* ==== Navigation ==== */
header {
    background: rgba(0, 0, 0, 0.9);
    padding: 15px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    position: relative;
}

nav h1 a {
    color: #00ffff;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links li a {
    text-decoration: none;
    color: #00ffff;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #00cccc;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #00ffff;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        position: absolute;
        top: 15px;
        right: 15px;
        z-index: 110;
    }

    nav {
        padding-top: 60px; /* add padding to avoid overlap with fixed menu toggle */
    }

    /* Add top margin to page titles and main content to avoid overlap with fixed header */
    .page-title,
    .content,
    .section-content,
    .new-hero {
        margin-top: 100px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        padding: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links li a {
        font-size: 1.2rem;
    }

    .menu-toggle.active span:first-child {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:last-child {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* ==== Social Icons ==== */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo h1 {
    margin-right: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.social-icons a img {
    width: 28px;
    height: 28px;
    transition: transform 0.3s, opacity 0.3s;
}

.social-icons a img:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

/* ==== Page Titles and Sections ==== */
.page-title {
    font-size: 2.5em;
    margin-bottom: 50px;
    color: #00ffff;
}

.section-content {
    margin-bottom: 60px;
}

.section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    color: #ffffff;
}

/* ==== Hero Section ==== */
.new-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
    padding: 0 20px;
}

.new-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-text {
    text-align: center;
    z-index: 1;
    max-width: 800px;
}

.hero-text h1 {
    font-size: 4.5em;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #00ffff, #00cccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease-out;
}

.hero-text h2 {
    font-size: 1.8em;
    color: #ffffff;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1.2em;
    color: #000000;
    background: #00ffff;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease, transform 0.3s ease;
    border: 2px solid #00ffff;
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 255, 255, 0.5);
}

.btn-outline {
    background: #00ffff;
    color: #000000;
    transition: all 0.3s ease, transform 0.3s ease;
    border: 2px solid #00ffff;
    border-radius: 30px;
    padding: 15px 40px;
    font-size: 1.2em;
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover {
    background: #00cccc;
    color: #000000;
    transform: scale(1.05);
}

.hero-social-icons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.hero-social-icons img {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.hero-social-icons a:hover img {
    transform: translateY(-5px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive design for hero section */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3.5em;
    }
    
    .hero-text h2 {
        font-size: 1.5em;
    }
    
    .hero-image img {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .new-hero {
        flex-direction: column-reverse;
        text-align: center;
        padding: 20px;
    }
    
    .hero-text {
        padding-right: 0;
        margin-top: 30px;
    }
    
    .hero-text h1 {
        font-size: 2.8em;
    }
    
    .hero-text h2 {
        font-size: 1.3em;
    }
    
    .hero-image img {
        max-width: 250px;
    }
    
    .hero-social-icons {
        justify-content: center;
    }
}


/* ==== Fade-In Animation ==== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2.fade-in { animation-delay: 0.2s; }
p.fade-in { animation-delay: 0.4s; }
.btn.fade-in { animation-delay: 0.6s; }

/* ==== Fade-In Content ==== */
.fade-in-content {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInPage 1.5s ease-out forwards;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==== Inhaltsbereiche ==== */
.content {
    padding: 120px 20px;
    max-width: 1000px;
    margin: auto;
    text-align: center;
}

/* ==== Steckbrief ==== */
.content ul.steckbrief {
    list-style: none;
    padding: 20px;
    margin-top: 30px;
    max-width: 600px;
    margin-inline: auto;
    text-align: left;
    background: #111111;
    border: 1px solid #00ffff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.content ul.steckbrief li {
    background: #000000;
    margin: 8px 0;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
}

.content ul.steckbrief li strong {
    color: #00ffff;
    margin-right: 10px;
    min-width: 100px;
}

.content ul.steckbrief li a {
    color: #00ffff;
    text-decoration: none;
    transition: color 0.3s;
}

.content ul.steckbrief li a:hover {
    color: #00cccc;
}

/* ==== Projekte ==== */
.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding-top: 20px;
}

.project {
    background: #000000;
    border-radius: 10px;
    padding: 15px;
    width: 300px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 204, 204, 0.5);
}

.project img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: transform 0.3s;
}

.project:hover img {
    transform: scale(1.03);
}

.project h3 {
    font-size: 1.2em;
    color: #00ffff;
    margin: 10px 0 5px;
}

.project p {
    font-size: 0.95em;
    line-height: 1.4;
    color: #ccffff;
}

.project a {
    text-decoration: none;
    color: inherit;
}

.project a:hover h3 {
    color: #00cccc;
}

/* ==== Kontaktformular ==== */
form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 30px auto;
    background: #000000;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.4);
}

form label {
    font-size: 1.1em;
    margin-top: 15px;
    margin-bottom: 5px;
    text-align: left;
    color: #00ffff;
}

form input,
form textarea {
    padding: 12px;
    border-radius: 5px;
    border: none;
    font-size: 1em;
    background-color: #002222;
    color: #00ffff;
}

form input::placeholder,
form textarea::placeholder {
    color: #00cccc;
}

form textarea {
    height: 140px;
    resize: none;
}

form button {
    margin-top: 20px;
    padding: 14px;
    background: #00ffff;
    border: none;
    color: black;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

form button:hover {
    background: #00cccc;
    transform: scale(1.05);
}

/* ==== Skills Section ==== */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.skill-category {
    background: #111111;
    border: 1px solid #00ffff;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.skill-category h4 {
    color: #00ffff;
    font-size: 1.2em;
    margin-bottom: 15px;
    text-align: center;
}

.skills-list {
    list-style: none;
    padding: 0;
}

.skills-list li {
    background: #000000;
    margin: 8px 0;
    padding: 10px 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-level {
    height: 8px;
    background: #002222;
    border-radius: 4px;
    flex-grow: 1;
    overflow: hidden;
}

.skill-level-fill {
    height: 100%;
    background: #00ffff;
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* ==== Responsives Design ==== */
/* Tablet (768px and below) */
@media (max-width: 768px) {
    /* Navigation */
    nav {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }

    .logo {
        margin-bottom: 15px;
    }

    nav ul {
        margin-top: 10px;
        flex-direction: column;
        width: 100%;
    }

    nav ul li {
        margin: 10px 0;
    }

    /* Hero Section */
    .hero-content {
        padding: 30px 40px;
        margin: 0 20px;
    }

    .hero-content h2 {
        font-size: 2.5em;
    }

    .hero-content p {
        font-size: 1.3em;
    }

    /* Projects */
    .projects-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .project {
        width: 90%;
    }

    /* Content Sections */
    .content {
        padding: 100px 15px;
    }

    /* Form */
    form {
        width: 90%;
        margin: 20px auto;
    }

    /* Steckbrief */
    .content ul.steckbrief {
        width: 90%;
        margin: 20px auto;
    }

    .content ul.steckbrief li {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .content ul.steckbrief li strong {
        margin-bottom: 5px;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    /* Navigation */
    .logo {
        flex-direction: column;
        gap: 12px;
    }

    .logo h1 {
        margin-right: 0;
        margin-bottom: 12px;
    }

    /* Hero Section */
    .hero-content {
        padding: 30px 25px;
    }

    .hero-content h2 {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1.1em;
        margin-bottom: 20px;
    }

    .hero-content .btn {
        font-size: 1.1em;
        padding: 14px 28px;
    }

    /* Projects */
    .project {
        width: 100%;
        margin-bottom: 20px;
    }

    .project img {
        height: 160px;
        margin-bottom: 10px;
    }

    /* Form */
    form {
        padding: 25px 20px;
    }

    form input,
    form textarea {
        padding: 12px;
        margin-bottom: 15px;
    }

    /* General Content */
    h2 {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    p {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 16px;
    }

    /* Add top margin to page titles and main content to avoid overlap with fixed header */
    .page-title,
    .content,
    .section-content,
    .new-hero {
        margin-top: 110px;
        margin-bottom: 30px;
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Small height screens */
@media (max-height: 600px) {
    .hero-content {
        padding: 20px;
    }

    .hero-content h2 {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .hero-content p {
        font-size: 1.1em;
        margin-bottom: 20px;
    }
}
