/* 
   NeuraTech.io - Custom CSS mit Bootstrap Erweiterungen
   Moderne, dynamische Website für Digitalisierung & KI-Beratung
*/

/* ===== VARIABLES ===== */
:root {
    /* Farben */
    --primary-color: #1e3a8a;    /* Tiefes Blau */
    --secondary-color: #38bdf8;  /* Helles Cyan */
    --accent-color: #8b5cf6;     /* Violet/Magenta */
    --dark-color: #1e293b;       /* Dunkles Slate */
    --light-color: #f8fafc;      /* Helles Grau */
    --text-color: #334155;       /* Dunkles Slate-Grau */
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    
    /* Typografie */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
}

/* ===== GRUNDLEGENDE ÜBERSCHREIBUNGEN ===== */
body {
    font-family: var(--font-secondary);
    color: var(--text-color);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
}

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

/* ===== BOOTSTRAP ÜBERSCHREIBUNGEN ===== */
.navbar {
    padding-top: 15px;
    padding-bottom: 15px;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding-top: 10px;
    padding-bottom: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.8rem;
}

.nav-link {
    font-family: var(--font-primary);
    font-weight: 600;
    padding: 0.5rem 1rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after, 
.nav-link.active::after {
    width: 60%;
}

/* Button Stile überschreiben */
.btn {
    font-family: var(--font-primary);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Form Controls */
.form-control {
    padding: 0.8rem 1rem;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--secondary-color);
}

/* ===== CUSTOM KLASSEN ===== */
.logo-text {
    color: var(--primary-color);
}

.accent-color {
    color: var(--accent-color);
}

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

/* Hero Section */
.hero {
    padding-top: 80px;
    background-color: var(--light-color);
    overflow: hidden;
}

.neural-animation {
    height: 400px;
    background-color: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    cursor: pointer; /* Zeigt an, dass hier interagiert werden kann */
    border-radius: 12px;
}

/* Section Stile */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-line {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Über mich Section */
.image-frame {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    background: var(--gradient-primary);
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-placeholder {
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.8);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    object-position: center 20%; /* Verschiebt das Bild innerhalb des Rahmens nach unten */
}

.expertise-item {
    background-color: var(--light-color);
    transition: all 0.3s ease;
}

.expertise-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.expertise-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

/* Service Cards */
.service-card {
    transition: all 0.3s ease;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1) !important;
}

.service-left-panel {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-left-panel::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    top: -50%;
    left: -50%;
    transform: rotate(30deg);
    transition: transform 0.6s ease-in-out;
}

.service-card:hover .service-left-panel::before {
    transform: rotate(30deg) translateX(10%) translateY(-10%);
}

/* Service Particles - Netzwerk-Animation */
.service-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.service-particles canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-particles canvas {
    opacity: 1;
}

.service-icon-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.service-card:hover .service-icon-large {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.service-icon-large i {
    font-size: 3.5rem;
    color: var(--white);
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon-large i {
    transform: scale(1.1);
}

.shadow-hover:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.service-link {
    color: var(--accent-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-bottom: 5px;
}

.service-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.service-link:hover {
    color: var(--primary-color);
}

.service-link:hover::after {
    width: 100%;
}

.service-link:hover i {
    transform: translateX(5px);
    transition: transform 0.3s ease;
}

/* Kontakt Section */
.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

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

/* Erfolgsmeldung für Formular */
.form-success {
    padding: 1rem;
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #065f46;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.form-error {
    padding: 1rem;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #b91c1c;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.form-alert i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* ===== RESPONSIVE ANPASSUNGEN ===== */
@media (max-width: 992px) {
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        border-radius: 0.5rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        margin-top: 0.5rem;
    }
    
    .nav-link::after {
        left: 0;
        transform: none;
    }
    
    .nav-link:hover::after, 
    .nav-link.active::after {
        width: 30px;
    }
    
    /* Service Cards responsive */
    .service-left-panel {
        min-height: 180px;
    }
    
    .service-icon-large {
        width: 90px;
        height: 90px;
    }
    
    .service-icon-large i {
        font-size: 2.8rem;
    }
}

@media (max-width: 767px) {
    .service-left-panel {
        min-height: 120px;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .service-icon-large {
        width: 80px;
        height: 80px;
    }
    
    .service-icon-large i {
        font-size: 2.2rem;
    }
}

/* Animierte Elemente beim Scrollen */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Service Panel Animationen */
.service-left-panel {
    opacity: 0.8;
    transition: opacity 0.5s ease;
}

.service-left-panel.panel-visible {
    opacity: 1;
}

.service-icon-large {
    transform: scale(0.8);
    transition: transform 0.5s ease;
}

.service-icon-large.icon-visible {
    transform: scale(1);
}