@font-face {
    font-family: 'Outfit';
    src: url('../assets/fonts/Outfit-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

:root {
    --bg-color: #0a0f14;
    --text-color: #e0e0e0;
    --accent-primary: #00f3ff;
    /* Electric Blue */
    --accent-secondary: #bd00ff;
    /* Neon Violet */
    --card-bg: #161b22;
    --font-main: 'Outfit', sans-serif;
    --spacing-unit: 1rem;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

html {
    scroll-padding-top: 120px;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    z-index: 1;
}

.section-title span {
    color: var(--accent-primary);
}

.section-title::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -20px;
    right: -20px;
    bottom: -10px;
    background: rgba(10, 15, 20, 0.5);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: -1;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(10, 15, 20, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    font-family: var(--font-main);
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: var(--accent-primary);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(10, 15, 20, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    margin-right: 10px;
}

.logo .highlight {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--accent-primary);
}

.btn-nav {
    border: 1px solid var(--accent-primary);
    padding: 0.5rem 1rem;
    color: var(--accent-primary) !important;
}

.btn-nav:hover {
    background: var(--accent-primary);
    color: #000 !important;
}

/* Hero Wrapper */
.hero-wrapper {
    margin-top: 110px;
    background-image: url('../assets/hero-bg.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10% 0;
    position: relative;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.glitch {
    position: relative;
    color: var(--accent-primary);
}

.dynamic-text-container {
    display: inline-flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    vertical-align: bottom;
    height: 1.2em;
    /* Adjust based on line height */
}

.dynamic-text {
    display: block;
    transition: margin-top 0.5s ease-in-out;
    white-space: nowrap;
    line-height: 1.2em;
    /* Match container height */
}


.subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Services */
.services {
    padding: 5rem 10%;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--accent-primary);
    min-height: 3rem;
    /* Reserve space for 2 lines of text to align descriptions */
}

/* Legal Engineer */
.legal-engineer {
    padding: 5rem 10%;
    background: linear-gradient(180deg, var(--bg-color) 0%, #0f151c 100%);
}

.tech-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.tech-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-secondary);
    font-family: var(--font-main);
}

/* About */
.about {
    padding: 5rem 10%;
}

/* Contact */
.contact {
    padding: 5rem 10%;
}

.contact-form {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Footer */
footer {
    padding: 2rem 10%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    background-color: var(--bg-color);
}

.footer-links a {
    margin-left: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 5%;
    }

    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: var(--text-color);
        transition: all 0.3s ease-in-out;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        /* Slightly wider for better touch targets */
        flex-direction: column;
        background: rgba(10, 15, 20, 0.98);
        backdrop-filter: blur(10px);
        padding-top: 7rem;
        /* More space for top bar */
        transition: right 0.3s ease-in-out;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        align-items: center;
        /* Center links */
    }

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

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

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

    .hero-wrapper {
        margin-top: 90px;
        background-image: url('../assets/hero-bg-mobil.jpg');
        background-size: cover;
        background-position: top center;
        background-repeat: no-repeat;
    }

    .hero {
        padding: 0;
        justify-content: center;
        text-align: center;
        height: auto;
    }

    .hero-content {
        padding: 2rem 5%;
        width: 100%;
        max-width: 100%;
    }

    .hero-visual {
        padding: 0 5%;
    }

    .services,
    .legal-engineer,
    .about,
    .contact {
        padding: 3rem 5%;
    }

    .section-title {
        font-size: 1.8rem;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    footer {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links a {
        margin: 0 0.75rem;
        /* Adjust spacing */
        display: inline-block;
    }
}

/* Tech Background Pattern */
/* Tech Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    pointer-events: none;
}

.services,
.about,
.contact,
footer {
    position: relative;
    z-index: 2;
}

/* Content Typography (Datenschutz & Impressum) */
.content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--accent-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: var(--text-color);
}

.content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.content p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

.content ul {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.content li {
    margin-bottom: 0.5rem;
}

.content a {
    color: var(--accent-primary);
    text-decoration: underline;
}

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

.hero-visual {
    position: relative;
    z-index: 2;
    margin-right: 8rem;
}

.hero-profile-img {
    max-height: 600px;
    width: auto;
    display: block;
    /*filter: drop-shadow(0 0 20px rgba(0, 243, 255, 0.2));*/
    /* Optional: adds a bit of the theme glow */
}

@media (max-width: 768px) {
    .hero-visual {
        margin-right: 0;
    }

    .hero-profile-img {
        max-height: 400px;
        /* Smaller on mobile */
        margin-top: 2rem;
    }

    .hero {
        flex-direction: column;
    }
}