/* Applications Page Styles */

/* Page Header */
.page-header {
    position: relative;
    padding: 4rem 0;
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #065f46 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

/* Introduction Section */
.intro-section {
    position: relative;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #059669, #065f46);
}

.intro-section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Applications Grid */
.applications-grid {
    margin: 4rem 0;
}

.applications-section h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 2rem;
    position: relative;
}

.applications-section h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #059669, #065f46);
    border-radius: 2px;
}

.application-item {
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.application-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(5, 150, 105, 0.1), transparent);
    transition: left 0.5s ease;
}

.application-item:hover::before {
    left: 100%;
}

.application-item:hover {
    transform: translateY(-8px);
    border-color: #059669;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.application-image {
    position: relative;
    overflow: hidden;
}

.application-image img {
    transition: transform 0.3s ease;
}

.application-item:hover .application-image img {
    transform: scale(1.1);
}

.application-header {
    background: linear-gradient(135deg, #059669, #065f46);
}

.application-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #065f46;
    margin-bottom: 1rem;
}

.application-description {
    line-height: 1.6;
    color: #6b7280;
}

/* Application Scenarios Section */
.scenarios-section {
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    position: relative;
}

.scenarios-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #059669, #065f46);
    border-radius: 1rem 1rem 0 0;
}

.scenarios-section h2 {
    font-size: 3rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 2rem;
}

.scenario-group {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.scenario-group:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.scenario-group h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #065f46;
    margin-bottom: 1rem;
    border-bottom: 2px solid #059669;
    padding-bottom: 0.5rem;
}

.scenario-group ul {
    list-style: none;
    padding: 0;
}

.scenario-group li {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    border-left: 4px solid #059669;
    transition: all 0.3s ease;
}

.scenario-group li:hover {
    background: #f0f9ff;
    transform: translateX(4px);
}

.scenario-group li svg {
    flex-shrink: 0;
}

.scenario-group li span {
    color: #374151;
    line-height: 1.5;
}

/* No Applications Message */
.no-applications {
    background: #f9fafb;
    border-radius: 0.5rem;
    border: 2px dashed #d1d5db;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .applications-section h2,
    .scenarios-section h2 {
        font-size: 2rem;
    }
    
    .application-item {
        margin-bottom: 1.5rem;
    }
    
    .scenario-group {
        padding: 1.5rem;
    }
    
    .scenario-group li {
        padding: 0.5rem;
    }
}

@media (max-width: 640px) {
    .page-header {
        padding: 2rem 0;
    }
    
    .intro-section,
    .scenarios-section {
        padding: 1.5rem;
    }
    
    .applications-grid {
        margin: 2rem 0;
    }
    
    .scenario-group {
        margin-bottom: 1rem;
    }
}

/* Loading Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.application-item {
    animation: slideInUp 0.8s ease forwards;
}

.application-item:nth-child(1) { animation-delay: 0.1s; }
.application-item:nth-child(2) { animation-delay: 0.2s; }
.application-item:nth-child(3) { animation-delay: 0.3s; }
.application-item:nth-child(4) { animation-delay: 0.4s; }

/* Pulse Animation for Scenarios */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.scenario-group:hover {
    animation: pulse 0.6s ease;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
.application-item:focus {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

.scenario-group:focus {
    outline: 2px solid #059669;
    outline-offset: 4px;
    border-radius: 0.5rem;
}

/* Gradient Background Effect */
.scenarios-section {
    position: relative;
    overflow: hidden;
}

.scenarios-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.1) 0%, transparent 70%);
    animation: rotate 15s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}