/*
 * smartPPA Website Styles
 * Primary color: Green (#18e64d)
 * Background: Dark blue to black (#050a14 to #000000)
 * Text: White (#ffffff)
 */

/* Global Styles */
:root {
    --primary-color: #18e64d;
    --primary-dark: #15c042;
    --primary-light: #4deb74;
    --dark-bg: #0A0C14;
    --darker-bg: #000000;
    --text-color: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
}

body {
    font-family: 'Montserrat', 'Arial', sans-serif;
    color: var(--text-color);
    background-color: var(--dark-bg);
    overflow-x: hidden;
}

/* Logo styling */
.logo-color {
    color: var(--primary-color) !important;
    color: var(--text-color);
    background-color: var(--dark-bg);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.section-heading {
    position: relative;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    opacity: 0.8;
    box-shadow: 0 0 5px rgba(24, 230, 77, 0.3);
}

.bg-gradient {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #0a1a2e 100%);
}

/* Navbar Styles */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
    background-color: rgba(5, 10, 20, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 0 0 15px 15px;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(0, 0, 0, 0.95);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    color: var(--text-color) !important;
    margin: 0 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

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

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

.btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-success:hover, .btn-success.active {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(24, 230, 77, 0.3);
}

/* Removed pulse animation as requested */

.btn-outline-success {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-outline-success:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(24, 230, 77, 0.2);
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: var(--text-color);
    transform: translateZ(0); /* Optimiert für mobile Geräte */
    will-change: transform; /* Verbessert die Scrolling-Performance */
}

/* Placeholder background for lazy loading */
.lazy-background {
    background-color: var(--dark-bg);
    transition: background-image 0.5s ease-in-out;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-section p {
    font-size: 1.25rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Solutions Section */
#solutions-preview {
    background-color: var(--dark-bg);
}

.solution-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(24, 230, 77, 0.1);
    border-color: var(--primary-color);
}

.solution-card .icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--dark-bg);
    transition: all 0.3s ease;
}

.solution-card:hover .icon-wrapper {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(24, 230, 77, 0.3);
}

.solution-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-align: center;
}

.solution-card ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.solution-card li {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

/* About Section */
#about-preview {
    position: relative;
    perspective: 1000px; /* Fügt 3D-Tiefe hinzu */
    overflow: hidden;
}

#about-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(24, 230, 77, 0.1) 0%, rgba(5, 10, 20, 0) 70%);
    pointer-events: none;
    transform: translateZ(-10px) scale(1.1); /* Parallax-Effekt */
    will-change: transform;
}

/* About items - new design without cards */
.about-item {
    padding: 1.5rem;
    height: 100%;
}

.about-item .icon-wrapper {
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.about-item h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-item p {
    color: var(--text-muted);
}

/* Keep the original about-card styles for backward compatibility */
.about-card {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.about-card .icon-wrapper {
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.about-card:hover .icon-wrapper {
    color: var(--primary-color);
}

.about-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.about-card p {
    color: var(--text-muted);
}

/* CTA Section */
#cta-section {
    position: relative;
    background: linear-gradient(to right, var(--dark-bg), #0a1a2e);
    overflow: hidden;
    perspective: 1000px;
}

#cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(24, 230, 77, 0.1) 0%, rgba(5, 10, 20, 0) 60%);
    animation: pulse 15s infinite;
    pointer-events: none;
    transform: translateZ(-5px) scale(1.05); /* Parallax-Effekt */
    will-change: transform;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

/* Footer */
footer {
    background-color: var(--darker-bg);
    border-radius: 15px 15px 0 0;
    position: relative;
    z-index: 1;
}

footer h5 {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

footer h5::after {
    display: none; /* Hide the green bar */
}

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

footer a:hover {
    color: var(--primary-color) !important;
    text-shadow: none;
    text-decoration: none;
}

footer .list-inline-item {
    margin-right: 1rem;
}

footer .list-inline-item a {
    font-size: 1.2rem;
}

/* Upload Areas */
.upload-area {
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 10px rgba(24, 230, 77, 0.2);
}

.bg-darker {
    background-color: rgba(5, 10, 15, 0.5);
}

/* Button Check Styling */
.btn-check:checked + .btn-outline-success {
    background-color: var(--primary-color);
    color: white;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .navbar-collapse {
        background-color: rgba(0, 0, 0, 0.95);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        height: auto;
        padding: 120px 0 80px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .section-heading {
        font-size: 1.8rem;
    }
}

@media (max-width: 575.98px) {
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
}