/* App Container */
#app {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xl);
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: var(--spacing-xl);
}

/* Header */
.app-header {
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing-xl);
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.app-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.05"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.05"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.app-header h1 {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.app-description {
    font-size: var(--font-size-lg);
    opacity: 0.95;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
}

/* Sections */
section {
    background: var(--bg-secondary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--medium-gray);
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

section:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

section h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: var(--spacing-sm);
    position: relative;
    font-weight: 600;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: var(--radius-sm);
}

/* Page Load Animations */
.app-header {
    animation: fadeInUp 0.8s ease-out;
}

.main-content section:nth-child(1) {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.main-content section:nth-child(2) {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Enhanced Section Interactions */
section {
    transform-origin: center top;
}

section:hover h2::after {
    width: 100px;
    transition: width var(--transition-normal);
}

.app-header:hover {
    transform: scale(1.01);
}

/* Footer */
.app-footer {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-xl);
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    margin-top: var(--spacing-xl);
}

.app-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.05"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.05"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.app-footer p {
    margin: 0;
    font-size: var(--font-size-base);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.footer-info {
    font-size: var(--font-size-sm) !important;
    opacity: 0.85;
    margin-top: var(--spacing-xs) !important;
    font-weight: 400 !important;
}

.app-footer:hover {
    transform: scale(1.01);
}

/* Page Load Animations - Footer */
.app-footer {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}
