/* CSS Variables */
:root {
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --accent: #00d4ff;
    --accent-hover: #00a8cc;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 5px;
}

/* Navbar */
.navbar {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent) !important;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--accent-hover) !important;
    transform: scale(1.05);
}

.nav-link {
    color: var(--text-primary) !important;
    margin: 0 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.btn-outline-custom {
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 0.5rem 1.5rem;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: var(--accent);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

/* Home Section */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.particle {
    position: absolute;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 20s infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(100px, -100px) scale(1.2);
    }

    50% {
        transform: translate(-100px, 100px) scale(0.8);
    }

    75% {
        transform: translate(150px, 50px) scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent), #00a8cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.typed-text {
    color: var(--accent);
    border-right: 2px solid var(--accent);
    animation: blink 0.7s infinite;
    line-height: 1.3;
}

@keyframes blink {

    0%,
    50% {
        border-color: var(--accent);
    }

    51%,
    100% {
        border-color: transparent;
    }
}

/* Portfolio Section */
#portfolio {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0f0f0f 100%);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--accent);
}

.project-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 212, 255, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
    border-color: var(--accent);
}

.project-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: all 0.4s ease;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

.project-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.project-desc {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.project-btn {
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.project-btn:hover {
    background: var(--accent-hover);
    transform: translateX(5px);
}

/* About Section */
#about {
    padding: 100px 0;
    background: var(--bg-dark);
}

.about-img {
    border-radius: 50%;
    width: 300px;
    height: 300px;
    object-fit: cover;
    border: 5px solid var(--accent);
    box-shadow: 0 0 30px rgba(219, 219, 219, 0.5);
    transition: all 0.3s ease;
}

.about-img:hover {
    transform: scale(1.05) rotate(5deg);
}

.skill-badge {
    background: var(--bg-card);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    margin: 0.5rem;
    display: inline-block;
    border: 1px solid var(--accent);
    transition: all 0.3s ease;
}

.skill-badge:hover {
    background: var(--accent);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

/* Footer */
footer {
    background: var(--bg-card);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 991px) {

    /* Navbar Buttons auf Mobile */
    .btn-outline-custom {
        margin-left: 0;
        margin-top: 1rem;
        display: block;
        width: 100%;
    }

    .navbar-nav {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-img {
        width: 200px;
        height: 200px;
    }
}