/**
 * Portfolio Section - Glassmorphism Design
 * Date: 2025-11-08
 * Moderne Glassmorphism-Optik für Portfolio Cards
 */

/* ================================================================
   PORTFOLIO SECTION - Glassmorphism Background
   ================================================================ */

.portfolio {
    position: relative;
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(80px);
}

/* Glassmorphism-Overlay - WEIẞ statt lila */
.portfolio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.portfolio > .container {
    position: relative;
    z-index: 1;
}

/* Section Header - Bessere Lesbarkeit */
.portfolio .section-header h2 {
    color: #1f2937 !important;
}

.portfolio .section-subtitle {
    color: #374151 !important; /* Deutlich dunkler für bessere Lesbarkeit */
    font-weight: 500 !important;
}

/* ================================================================
   PORTFOLIO CARDS - Glassmorphism Design (KOMPAKT)
   ================================================================ */

.portfolio-card-white {
    /* Layout */
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden;
    min-height: auto !important; /* Keine feste Mindesthöhe */

    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;

    /* Border & Radius */
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 20px !important; /* Reduziert von 24px */

    /* Shadow - Multi-layered für Tiefe */
    box-shadow:
        0 8px 32px rgba(31, 38, 135, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;

    /* Transitions */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.portfolio-card-white:hover {
    transform: translateY(-12px) !important;
    background: rgba(255, 255, 255, 0.85) !important;
    box-shadow:
        0 20px 60px rgba(128, 0, 255, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
    border-color: rgba(128, 0, 255, 0.3) !important;
}

/* ================================================================
   CARD HEADER - Glassmorphism statt festem Lila (KOMPAKT)
   ================================================================ */

.portfolio-card-header {
    /* Professioneller, subtiler Gradient - Grau/Blau statt Lila */
    background: linear-gradient(135deg,
        rgba(100, 116, 139, 0.08) 0%,
        rgba(71, 85, 105, 0.08) 50%,
        rgba(51, 65, 85, 0.08) 100%
    ) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;

    /* Border nur unten - neutrales Grau */
    border-bottom: 1px solid rgba(100, 116, 139, 0.15) !important;

    /* Padding - sehr kompakt */
    padding: 1rem 1.25rem !important; /* Reduziert von 1.5rem */

    /* Flexbox für Icon + Text */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem !important; /* Reduziert von 0.75rem */

    /* Subtle shadow */
    box-shadow: 0 2px 8px rgba(128, 0, 255, 0.05) !important;

    transition: all 0.3s ease !important;
}

.portfolio-card-white:hover .portfolio-card-header {
    background: linear-gradient(135deg,
        rgba(100, 116, 139, 0.12) 0%,
        rgba(71, 85, 105, 0.12) 50%,
        rgba(51, 65, 85, 0.12) 100%
    ) !important;
    border-bottom-color: rgba(100, 116, 139, 0.2) !important;
}

/* ================================================================
   GRADIENT VARIATIONS - Für verschiedene Cards
   ================================================================ */

/* Primary Gradient (Card 1) - Dezentes Blaugrau */
.portfolio-card-header.gradient-primary {
    background: linear-gradient(135deg,
        rgba(71, 85, 105, 0.08) 0%,
        rgba(100, 116, 139, 0.08) 100%
    ) !important;
}

.portfolio-card-white:hover .portfolio-card-header.gradient-primary {
    background: linear-gradient(135deg,
        rgba(71, 85, 105, 0.12) 0%,
        rgba(100, 116, 139, 0.12) 100%
    ) !important;
}

/* Reverse Gradient (Card 2) - Dezentes Grau */
.portfolio-card-header.gradient-reverse {
    background: linear-gradient(135deg,
        rgba(100, 116, 139, 0.08) 0%,
        rgba(71, 85, 105, 0.08) 100%
    ) !important;
}

.portfolio-card-white:hover .portfolio-card-header.gradient-reverse {
    background: linear-gradient(135deg,
        rgba(100, 116, 139, 0.12) 0%,
        rgba(71, 85, 105, 0.12) 100%
    ) !important;
}

/* Success Gradient (Card 3) - Dezentes Blaugrau (statt Grün) */
.portfolio-card-header.gradient-success {
    background: linear-gradient(135deg,
        rgba(51, 65, 85, 0.08) 0%,
        rgba(71, 85, 105, 0.08) 100%
    ) !important;
}

.portfolio-card-white:hover .portfolio-card-header.gradient-success {
    background: linear-gradient(135deg,
        rgba(51, 65, 85, 0.12) 0%,
        rgba(71, 85, 105, 0.12) 100%
    ) !important;
}

/* ================================================================
   BADGE ICON - Kompakter und animiert
   ================================================================ */

.badge-icon-xl {
    width: 60px !important; /* Reduziert von 72px */
    height: 60px !important; /* Reduziert von 72px */
    font-size: 2rem !important; /* Reduziert von 2.5rem */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 16px !important; /* Reduziert von 18px */

    /* Glassmorphism für Icon */
    background: rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow:
        0 4px 16px rgba(128, 0, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;

    transition: all 0.3s ease !important;
}

.portfolio-card-white:hover .badge-icon-xl {
    transform: scale(1.1) rotate(5deg) !important;
    background: rgba(255, 255, 255, 0.4) !important;
    box-shadow:
        0 8px 24px rgba(128, 0, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

/* ================================================================
   CARD TITLE im Header - Styling (KOMPAKT)
   ================================================================ */

.portfolio-card-title {
    font-size: 1.15rem !important; /* Reduziert von 1.35rem */
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin: 0 !important;
    line-height: 1.2 !important; /* Reduziert von 1.3 */
    text-align: center !important;
}

/* ================================================================
   CARD CONTENT - Glassmorphism-optimiert (KOMPAKT)
   ================================================================ */

.portfolio-card-content {
    padding: 1.25rem !important; /* Reduziert von 1.75rem */
    background: transparent !important;
}

/* Subtitle */
.portfolio-card-subtitle {
    font-size: 1.15rem !important; /* Reduziert von 1.35rem */
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 0.35rem !important; /* Reduziert von 0.5rem */
    line-height: 1.2 !important; /* Reduziert von 1.3 */
}

/* Subtitle Success (Grüner Text unter Subtitle) */
.portfolio-card-subtitle-success {
    font-size: 0.9rem !important; /* Reduziert von 1rem */
    font-weight: 600 !important;
    color: #059669 !important;
    margin-bottom: 0.75rem !important; /* Reduziert von 1rem */
    line-height: 1.3 !important; /* Reduziert von 1.4 */
}

/* Description */
.portfolio-card-description {
    font-size: 0.9rem !important; /* Reduziert von 0.95rem */
    color: #6b7280 !important;
    line-height: 1.45 !important; /* Reduziert von 1.5 */
    margin-bottom: 0.75rem !important; /* Reduziert von 1rem */
}

/* ================================================================
   PORTFOLIO LIST - Checkmarks (KEINE Leerzeilen)
   ================================================================ */

.portfolio-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0.75rem 0 !important;
}

.portfolio-list-item {
    display: flex !important;
    flex-direction: row !important; /* Horizontal: Checkmark + Text */
    align-items: flex-start !important;
    gap: 0.5rem !important;
    margin-bottom: 0 !important; /* Keine Leerzeile zwischen Punkten */
    padding: 0.15rem 0 !important; /* Nur minimales Padding für Lesbarkeit */
    font-size: 0.85rem !important;
    color: #4b5563 !important;
    line-height: 1.4 !important;
}

.checkmark-icon {
    display: inline-block !important; /* WICHTIG: inline-block statt block */
    color: #8000ff !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    flex-shrink: 0 !important;
    line-height: 1.4 !important; /* Gleiche line-height wie Text */
}

/* Grüne Checkmarks für Success-Card */
.portfolio-card-header.gradient-success ~ .portfolio-card-content .checkmark-icon {
    color: #059669 !important;
}

/* ================================================================
   BUTTONS - Glassmorphism CTA
   ================================================================ */

.btn-glass {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(128, 0, 255, 0.3) !important;
    color: #8000ff !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(128, 0, 255, 0.1) !important;
}

.btn-glass:hover {
    background: rgba(128, 0, 255, 0.1) !important;
    border-color: rgba(128, 0, 255, 0.5) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(128, 0, 255, 0.2) !important;
}

.btn-full {
    width: 100% !important;
    margin-top: auto !important;
}

/* ================================================================
   PORTFOLIO CTA BOX - Glassmorphism
   ================================================================ */

.portfolio-cta-box {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(128, 0, 255, 0.2) !important;
    border-radius: 24px !important;
    padding: 2rem !important;
    margin-top: 2rem !important;
    box-shadow:
        0 8px 32px rgba(128, 0, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    text-align: center !important;
}

.portfolio-cta-title {
    font-size: 1.85rem !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 1rem !important;
    line-height: 1.3 !important;
}

.portfolio-cta-description {
    font-size: 1.05rem !important;
    color: #4b5563 !important;
    line-height: 1.6 !important;
    margin-bottom: 1.5rem !important;
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.portfolio-cta-buttons {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

/* CTA Button - Gradient */
.portfolio-cta-button.btn-gradient {
    background: linear-gradient(135deg, #8000ff 0%, #6366f1 100%) !important;
    border: none !important;
    color: white !important;
    font-weight: 700 !important;
    padding: 1rem 2rem !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    box-shadow: 0 4px 16px rgba(128, 0, 255, 0.3) !important;
    transition: all 0.3s ease !important;
}

.portfolio-cta-button.btn-gradient:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 24px rgba(128, 0, 255, 0.4) !important;
}

/* CTA Button - Glass */
.portfolio-cta-button.btn-glass {
    background: rgba(255, 255, 255, 0.3) !important;
    border: 1px solid rgba(128, 0, 255, 0.3) !important;
    color: #8000ff !important;
    padding: 1rem 2rem !important;
}

/* ================================================================
   RESPONSIVE - Desktop & Tablet (über 768px)
   ================================================================ */

@media (min-width: 769px) {
    .portfolio-cta-buttons {
        flex-direction: row !important;
    }
}

/* ================================================================
   RESPONSIVE - Mobile Optimierung
   ================================================================ */

@media (max-width: 768px) {
    .portfolio-card-header {
        padding: 1.25rem !important;
    }

    .badge-icon-xl {
        width: 60px !important;
        height: 60px !important;
        font-size: 2rem !important;
    }

    .portfolio-card-title {
        font-size: 1.15rem !important;
    }

    .portfolio-card-content {
        padding: 1.5rem !important;
    }

    .portfolio-cta-box {
        padding: 1.5rem !important;
    }

    .portfolio-cta-title {
        font-size: 1.5rem !important;
    }

    .portfolio-cta-description {
        font-size: 0.95rem !important;
    }

    .portfolio-cta-buttons {
        flex-direction: column !important;
    }

    .portfolio-cta-button {
        width: 100% !important;
    }
}

/* ================================================================
   ANIMATION - Subtle Pulse für Icons
   ================================================================ */

@keyframes pulse-glow {
    0%, 100% {
        box-shadow:
            0 4px 16px rgba(128, 0, 255, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }
    50% {
        box-shadow:
            0 4px 20px rgba(128, 0, 255, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }
}

.badge-icon-xl {
    animation: pulse-glow 3s ease-in-out infinite !important;
}

.portfolio-card-white:hover .badge-icon-xl {
    animation: none !important;
}
