/* Welcome Page Styles */
.welcome-container {
    padding-top: 40px;
    min-height: calc(100vh - 40px);
    position: relative;
    overflow: hidden;
}

.hero-section {
    padding: 2rem 0 3rem 0;
    position: relative;
    z-index: 1;
}

/* Welcome Page Button Styles */
.welcome-container .hero-section .d-grid .btn-outline-primary {
    color: white !important;
    border-color: var(--button-gradient-start);
    background: transparent;
}

.welcome-container .hero-section .d-grid .btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--button-gradient-start), var(--button-gradient-end));
    border-color: transparent;
    color: white !important;
}

/* Flashy Free Mock Test Button Styles */
.free-test-promo {
    position: relative;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.05);
}

.free-test-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #ff3e3e;
    color: white;
    font-weight: bold;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    box-shadow: 0 3px 10px rgba(255, 62, 62, 0.4);
    transform: rotate(5deg);
    animation: bounce 2s infinite;
}

.btn-free-test {
    background: linear-gradient(135deg, #ff9500, #ff3e3e);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 62, 62, 0.4);
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1rem;
}

.btn-free-test:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 62, 62, 0.5);
    color: white;
}

.btn-free-test .shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 3s infinite;
}

.free-test-caption {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    text-align: center;
    margin-top: 0.75rem;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 62, 62, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 62, 62, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 62, 62, 0); }
}

@keyframes bounce {
    0%, 100% { transform: rotate(5deg); }
    50% { transform: rotate(5deg) translateY(-5px); }
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

.display-4 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease;
    font-weight: 700;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.lead {
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
    font-size: 1.25rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.german-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.4rem;
    font-weight: 500;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 2rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    background: #ffffff;
    padding: 1.75rem 1.25rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #f0f2f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9ff;
    border-radius: 50%;
    margin-bottom: 1.25rem;
}

.feature-card:nth-child(1) .feature-icon { color: #4f46e5; background: rgba(79, 70, 229, 0.1); }
.feature-card:nth-child(2) .feature-icon { color: #10b981; background: rgba(16, 185, 129, 0.1); }
.feature-card:nth-child(3) .feature-icon { color: #f59e0b; background: rgba(245, 158, 11, 0.1); }

.feature-icon i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

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

.feature-card h3 {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.feature-card p {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    max-width: 90%;
    font-weight: 400;
}

.feature-card:hover h3 {
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animation delays for feature cards */
.feature-card {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.5s ease-out forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

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

/* Responsive adjustments */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: 1fr 1fr;
        max-width: 600px;
    }
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    .feature-icon i {
        font-size: 1.25rem;
    }
}

/* Ensure column alignment */
.row.align-items-center {
    align-items: center !important;
}

.col-lg-6:last-child {
    margin-top: 0;
}

/* Add subtle hover effect */
.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.02) 0%, rgba(124, 58, 237, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card > * {
    position: relative;
    z-index: 1;
}


.feature-card p {
    color: #666;
    margin-bottom: 0;
    font-size: 1rem;
}

/* Welcome Page Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 1rem 0;
    }
    
    .features-grid {
        margin-top: 2rem;
        padding: 1rem;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .lead {
        font-size: 1.1rem;
    }

    .german-text {
        font-size: 1.2rem;
    }
} 