/* Modern UI Styles for Lebenslauf Helfer */

/* Base Styles */
:root {
    --gradient-primary: linear-gradient(135deg, #4158D0, #C850C0);
    --gradient-secondary: linear-gradient(135deg, #0061ff, #60efff);
    --gradient-success: linear-gradient(135deg, #0ba360, #3cba92);
    --gradient-info: linear-gradient(135deg, #2193b0, #6dd5ed);
    --gradient-warning: linear-gradient(135deg, #f46b45, #eea849);
    --gradient-danger: linear-gradient(135deg, #f00060, #ff758c);
    --glass-bg: rgba(17, 25, 40, 0.75);
    --glass-border: 1px solid rgba(255, 255, 255, 0.125);
    --blur-effect: blur(16px);
    --transition-fast: all 0.3s ease;
    --transition-medium: all 0.5s ease;
    --transition-slow: all 0.8s ease;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
    --purple: #8B5CF6;
}

/* Apply Inter font to all elements */
body {
    font-family: 'Inter', sans-serif;
    background-color: #0d1117;
    position: relative;
    overflow-x: hidden;
}

.modern-ui {
    color: #e6edf3;
}

.page-wrapper {
    position: relative;
    min-height: 100vh;
    z-index: 1;
}

/* Animated Gradient Background */
.gradient-bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.gradient-1, .gradient-2, .gradient-3 {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: float 10s ease-in-out infinite;
}

.gradient-1 {
    width: 600px;
    height: 600px;
    background: #4158D0;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.gradient-2 {
    width: 500px;
    height: 500px;
    background: #C850C0;
    bottom: -100px;
    right: -100px;
    animation-delay: 3s;
}

.gradient-3 {
    width: 400px;
    height: 400px;
    background: #38b2ac;
    bottom: 100px;
    left: 30%;
    animation-delay: 6s;
}

@keyframes float {
    0% {
        transform: translatey(0) scale(1);
    }
    50% {
        transform: translatey(-20px) scale(1.1);
    }
    100% {
        transform: translatey(0) scale(1);
    }
}

/* Glassmorphism for navbar and cards */
.navbar-blur {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    border-bottom: var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
    margin-bottom: 20px;
}

.footer-blur {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    border-top: var(--glass-border);
}

.card-blur {
    background: var(--glass-bg);
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    border: var(--glass-border);
    transition: var(--transition-fast);
}

.card-blur:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

/* Modern Buttons and Navigation */
.brand-icon {
    color: #C850C0;
    font-size: 1.3rem;
}

.brand-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.nav-btn {
    padding: 8px 16px;
    border-radius: 50px;
    transition: var(--transition-fast);
    margin: 0 5px;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.nav-btn-primary {
    background: var(--gradient-primary);
    color: white !important;
}

.nav-btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

/* Modern Form Elements */
.form-control, .form-select {
    background-color: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e6edf3;
    border-radius: 8px;
    padding: 12px;
    transition: var(--transition-fast);
}

.form-control:focus, .form-select:focus {
    background-color: rgba(30, 41, 59, 0.9);
    border-color: rgba(200, 80, 192, 0.5);
    box-shadow: 0 0 0 4px rgba(200, 80, 192, 0.1);
}

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

.form-label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #c9d1d9;
}

/* Fancy Button Styles */
.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: var(--transition-fast);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
}

.btn-success {
    background: var(--gradient-success);
}

.btn-info {
    background: var(--gradient-info);
}

.btn-warning {
    background: var(--gradient-warning);
}

.btn-danger {
    background: var(--gradient-danger);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(-1px);
}

.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
    transition: var(--transition-fast);
    opacity: 0;
}

.btn:hover::after {
    opacity: 1;
}

/* Fancy Rounded Pill Buttons */
.btn.rounded-pill {
    border-radius: 50px;
    padding: 12px 24px;
}

/* Animated Card Styles */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-medium);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    border-bottom: none;
    padding: 18px 24px;
}

.card-body {
    padding: 24px;
}

/* Gradient Cards and Backgrounds */
.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

.bg-gradient-success {
    background: var(--gradient-success);
}

.bg-gradient-info {
    background: var(--gradient-info);
    color: white;
}

.bg-gradient-warning {
    background: var(--gradient-warning);
}

.bg-gradient-danger {
    background: var(--gradient-danger);
}

/* Text Colors */
.text-purple {
    color: var(--purple);
}

/* Progress Indicators */
.progress {
    height: 10px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.progress-bar {
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: progress-shine 2s infinite;
}

@keyframes progress-shine {
    100% {
        left: 100%;
    }
}

/* Animated Alert Messages */
.flash-messages-container {
    position: relative;
    z-index: 1000;
}

.animate-slide-down {
    animation: slide-down 0.5s forwards;
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Table Styling */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background-color: rgba(30, 41, 59, 0.4);
    border-bottom: none;
    padding: 16px;
    font-weight: 600;
    color: #e6edf3;
}

.table tbody tr {
    transition: var(--transition-fast);
}

.table tbody tr:hover {
    background-color: rgba(30, 41, 59, 0.5);
}

.table td {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Badge Styling */
.badge {
    padding: 6px 12px;
    font-weight: 500;
    border-radius: 50px;
}

/* Content Spacing */
.content-wrapper {
    padding: 20px 0;
}

main.container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Hero Section Styling */
.hero-section {
    position: relative;
    padding: 3rem 0;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Upload Area Styling */
.upload-area {
    background: rgba(30, 41, 59, 0.3);
    transition: var(--transition-medium);
    border-style: dashed !important;
}

.upload-area:hover {
    background: rgba(30, 41, 59, 0.5);
    transform: translateY(-2px);
}

/* Icon Wrappers for Feature Cards */
.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 41, 59, 0.3);
    position: relative;
    overflow: hidden;
}

.icon-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(200, 80, 192, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 80, 192, 0.7);
}

/* Loading Animation Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 500px;
    padding: 2rem;
}

.loading-message {
    margin-top: 2rem;
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
}

.loading-stage {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.loading-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin: 1.5rem 0;
    overflow: hidden;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4158D0, #C850C0);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* Resume Animation Container */
.resume-animation {
    position: relative;
    width: 180px;
    height: 240px;
    margin-bottom: 1rem;
}

/* Paper Animation */
.paper {
    position: absolute;
    width: 160px;
    height: 220px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform-origin: center center;
    animation: paperFloat 3s ease-in-out infinite;
}

@keyframes paperFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

/* Resume Content Lines */
.resume-line {
    position: absolute;
    height: 4px;
    border-radius: 2px;
    background: #e0e0e0;
}

.line-header {
    top: 20px;
    left: 20px;
    width: 60px;
    height: 8px;
    background: #4158D0;
}

.line-subheader {
    top: 40px;
    left: 20px;
    width: 100px;
    height: 5px;
}

.line-1 { top: 60px; left: 20px; width: 120px; }
.line-2 { top: 75px; left: 20px; width: 80px; }
.line-3 { top: 90px; left: 20px; width: 110px; }
.line-4 { top: 115px; left: 20px; width: 65px; height: 6px; background: #C850C0; }
.line-5 { top: 135px; left: 20px; width: 100px; }
.line-6 { top: 150px; left: 20px; width: 90px; }
.line-7 { top: 175px; left: 20px; width: 55px; height: 6px; background: #C850C0; }
.line-8 { top: 195px; left: 20px; width: 120px; }

/* Magic Sparkles Animation */
.sparkles {
    position: absolute;
    width: 200px;
    height: 260px;
    top: -20px;
    left: -20px;
}

.sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
    opacity: 0;
}

.sparkle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation: sparkle 2s ease infinite;
    animation-delay: 0.2s;
}

.sparkle:nth-child(2) {
    top: 60%;
    left: 80%;
    animation: sparkle 2s ease infinite;
    animation-delay: 0.5s;
}

.sparkle:nth-child(3) {
    top: 30%;
    left: 90%;
    animation: sparkle 2s ease infinite;
    animation-delay: 0.7s;
}

.sparkle:nth-child(4) {
    top: 80%;
    left: 20%;
    animation: sparkle 2s ease infinite;
    animation-delay: 1s;
}

.sparkle:nth-child(5) {
    top: 10%;
    left: 50%;
    animation: sparkle 2s ease infinite;
    animation-delay: 1.2s;
}

@keyframes sparkle {
    0% { transform: scale(0); opacity: 0; }
    20% { transform: scale(1.2); opacity: 1; }
    80% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(0); opacity: 0; }
}

/* AI Scanning Effect */
.scan-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 160px;
    height: 10px;
    background: linear-gradient(to right, transparent, rgba(65, 88, 208, 0.5), transparent);
    animation: scanEffect 2s linear infinite;
    opacity: 0.7;
    z-index: 2;
}

@keyframes scanEffect {
    0% { top: 0; }
    100% { top: 220px; }
}

/* Cover letter animations */
.cover-letter {
    position: absolute;
    width: 140px;
    height: 180px;
    background: #f8f9fa;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    top: 30px;
    right: -20px;
    transform: rotate(8deg);
    z-index: -1;
    animation: letterFloat 3.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

@keyframes letterFloat {
    0%, 100% { transform: rotate(8deg) translateY(0); }
    50% { transform: rotate(12deg) translateY(-8px); }
}

.letter-line-1 { top: 25px; left: 15px; width: 110px; }
.letter-line-2 { top: 45px; left: 15px; width: 90px; }
.letter-line-3 { top: 65px; left: 15px; width: 100px; }
.letter-line-4 { top: 85px; left: 15px; width: 70px; }
.letter-line-5 { top: 115px; left: 15px; width: 90px; }
.letter-line-6 { top: 135px; left: 15px; width: 60px; }
.letter-line-7 { top: 155px; left: 70px; width: 50px; }

/* Loading Icons Animation */
.loading-icons {
    display: flex;
    margin-top: 2rem;
    gap: 1.5rem;
}

.loading-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.loading-icon::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, #4158D0, transparent);
    transition: height 0.5s ease;
}

.loading-icon.completed::after {
    height: 100%;
}

.loading-icon i {
    position: relative;
    z-index: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .gradient-1, .gradient-2, .gradient-3 {
        filter: blur(40px);
        opacity: 0.3;
    }
    
    .card-body {
        padding: 16px;
    }
    
    .nav-btn {
        padding: 6px 12px;
    }
    
    .loading-container {
        padding: 1rem;
    }
    
    .resume-animation {
        transform: scale(0.8);
    }
}

/* Other Services Section */
.other-services-section {
    position: relative;
    z-index: 10;
}

.other-services-section h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-bottom: 2rem;
    position: relative;
}

.other-services-section h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.other-services-section .icon-wrapper {
    height: 80px;
    width: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: var(--transition-medium);
}

.other-services-section .card:hover .icon-wrapper {
    transform: translateY(-10px) scale(1.1);
}

.other-services-section .btn {
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.other-services-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.other-services-section .btn-primary {
    background: var(--gradient-primary);
    border: none;
}

.other-services-section .btn-success {
    background: var(--gradient-success);
    border: none;
}
