/* ===== VARIABLEN ===== */
:root {
    --primary: #7B68EE;       /* Leichtes Violett */
    --secondary: #5D4FBF;     /* Dunkleres Violett */
    --accent: #61DAFB;        /* Helles Cyan */
    --background: #0F1319;    /* Fast schwarz */
    --surface: #1A202C;       /* Dunkles Grau für Karten */
    --surface-variant: #252D3C; /* Leicht helleres Grau für Hover */
    --on-background: #E2E8F0;  /* Hellgrau für Text */
    --on-surface: #CBD5E0;     /* Mittleres Grau für Sekundärtext */
    --on-primary: #FFFFFF;     /* Weiß auf Primary */
    --muted: #718096;          /* Gedämpftes Grau für weniger wichtigen Text */
    --border: #2D3748;         /* Dunkles Grau für Ränder */
    --transition: all 0.3s ease;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 15px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.4);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --border-radius-round: 100px;
}

/* ===== RESET & BASIS STYLES ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--on-background);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 300;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: var(--accent);
    transition: var(--transition);
}

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--on-background);
}

p {
    margin-bottom: 1rem;
    color: var(--on-surface);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: var(--on-primary);
    border-radius: var(--border-radius-round);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(123, 104, 238, 0.3);
}

.btn:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(123, 104, 238, 0.4);
    color: var(--on-primary);
}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 19, 25, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 15px 0;
    background-color: rgba(15, 19, 25, 0.98);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--on-background);
    display: flex;
    align-items: center;
    letter-spacing: 1px;
}

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

nav ul {
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 2.5rem;
}

nav ul li:first-child {
    margin-left: 0;
}

nav ul li a {
    color: var(--on-surface);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--on-background);
}

nav ul li a:hover::after, 
nav ul li a.active::after {
    width: 100%;
}

nav ul li a.active {
    color: var(--on-background);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--on-background);
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--background) 0%, var(--surface) 100%);
}

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

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.2s;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.4s;
    color: var(--muted);
}

.hero .btn {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.6s;
}

.hero-image {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    opacity: 0;
    animation: fadeIn 1s forwards 0.8s;
    z-index: 4;
    filter: drop-shadow(0 10px 20px rgba(97, 218, 251, 0.2));
}

.shape {
    position: absolute;
    z-index: 2;
    opacity: 0.2;
}

.shape-1 {
    top: 20%;
    left: 10%;
    width: 60px;
    height: 60px;
    background-color: var(--accent);
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
}

.shape-2 {
    bottom: 20%;
    right: 10%;
    width: 80px;
    height: 80px;
    background-color: var(--primary);
    border-radius: 50%;
    animation: float 8s infinite ease-in-out;
}

/* ===== SERVICES SECTION ===== */
.services {
    background-color: var(--background);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--surface);
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    border: 1px solid var(--border);
}

.service-card.show {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    background-color: var(--surface-variant);
    border-color: var(--primary);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(123, 104, 238, 0.1);
    color: var(--primary);
    font-size: 28px;
    border-radius: 50%;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.375rem;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
    background-color: var(--surface-variant);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    height: 300px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: scale(0.95);
    transition: var(--transition);
}

.portfolio-item.show {
    opacity: 1;
    transform: scale(1);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(123, 104, 238, 0.95), rgba(97, 218, 251, 0.8));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    padding: 20px;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.1);
}

.portfolio-overlay h3 {
    color: white;
    margin-bottom: 10px;
    transform: translateY(-20px);
    transition: all 0.3s ease 0.1s;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    transform: translateY(-20px);
    transition: all 0.3s ease 0.2s;
    text-align: center;
}

.portfolio-overlay .btn {
    transform: translateY(20px);
    transition: all 0.3s ease 0.3s;
    background-color: white;
    color: var(--primary);
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p,
.portfolio-item:hover .portfolio-overlay .btn {
    transform: translateY(0);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background-color: var(--background);
}

.testimonial-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-item {
    min-width: 100%;
    padding: 0 20px;
    text-align: center;
}

.testimonial-content {
    background-color: var(--surface);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    position: relative;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

.testimonial-content::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border: 10px solid transparent;
    border-top-color: var(--surface);
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid var(--surface);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.testimonial-name {
    font-weight: 600;
    color: var(--on-background);
    margin-bottom: 5px;
    font-size: 1.125rem;
}

.testimonial-position {
    color: var(--primary);
    font-size: 0.875rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border);
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: var(--on-primary);
}

.contact .section-header h2 {
    color: var(--on-primary);
}

.contact .section-header h2::after {
    background-color: var(--on-primary);
}

.contact .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info {
    margin-bottom: 40px;
}

.contact-info p {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    color: var(--on-primary);
}

.contact-info i {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 18px;
}

.contact-form {
    background-color: var(--surface);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.contact-form.show {
    opacity: 1;
    transform: translateY(0);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
    color: var(--on-background);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(123, 104, 238, 0.1);
}

.form-control::placeholder {
    color: var(--muted);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--surface);
    color: var(--on-surface);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--on-background);
    margin-bottom: 20px;
    display: inline-block;
    letter-spacing: 1px;
}

.footer-logo span {
    color: var(--primary);
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--accent);
}

.footer-links h4 {
    margin-bottom: 25px;
    font-size: 1.25rem;
    color: var(--on-background);
    font-weight: 600;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--muted);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--on-background);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    margin-top: 20px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(123, 104, 238, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: var(--on-background);
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
    color: var(--on-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: 2.75rem;
    }
    
    .hero-image {
        width: 45%;
    }
}

@media (max-width: 991px) {
    .hero-image {
        width: 40%;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }
    
    .hero {
        height: auto;
        padding: 150px 0 80px;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        position: relative;
        width: 80%;
        margin: 50px auto 0;
        transform: none;
        top: auto;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--surface);
        box-shadow: var(--shadow-md);
        clip-path: circle(0px at top right);
        transition: all 0.5s ease-in-out;
        z-index: 100;
    }
    
    nav.active {
        clip-path: circle(1500px at top right);
    }
    
    nav ul {
        display: block;
        padding: 40px 20px;
    }
    
    nav ul li {
        margin: 15px 0;
        text-align: center;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-item {
        height: 250px;
    }
    
    .testimonial-content {
        padding: 30px 20px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.success-message {
    text-align: center;
    padding: 30px;
    color: var(--on-background);
}

.success-message i {
    font-size: 48px;
    color: var(--success);
    margin-bottom: 20px;
}