/* Auxiliary Pages CSS - RunAI */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

a {
    color: #1e40af;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1d4ed8;
}

ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Header */
.header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 40px 0;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
}

.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="50" cy="50" r="1" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.logo {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 4px 8px rgba(30, 64, 175, 0.2));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.brand-name {
    font-size: 2rem;
    font-weight: 800;
    color: #1e40af;
    text-shadow: 0 2px 4px rgba(30, 64, 175, 0.1);
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::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="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Content Sections */
.content-section {
    padding: 80px 0;
    position: relative;
}

.content-section.alt-bg {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
}

.content-section.alt-bg::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="subtle" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23000" opacity="0.01"/></pattern></defs><rect width="100" height="100" fill="url(%23subtle)"/></svg>');
    pointer-events: none;
}

.content-section h2 {
    text-align: center;
    margin-bottom: 48px;
    color: #1f2937;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #1e40af, #f97316);
    border-radius: 2px;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.content-text {
    font-size: 1.125rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.content-image-placeholder {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 20px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.content-image-placeholder:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.content-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.content-image-placeholder:hover img {
    transform: scale(1.05);
}

.placeholder-content {
    text-align: center;
    color: #6b7280;
    padding: 20px;
}

.placeholder-content svg {
    width: 100%;
    height: auto;
    margin-bottom: 16px;
    max-width: 200px;
}

/* Story Content */
.story-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 48px;
}

.value-item {
    text-align: center;
    padding: 40px 32px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.value-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e40af, #f97316);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.value-item:hover::before {
    transform: scaleX(1);
}

.value-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.value-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: block;
    padding: 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.value-item:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
}

.value-item h3 {
    color: #1f2937;
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.value-item p {
    color: #6b7280;
    line-height: 1.6;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 48px;
}

.team-member {
    text-align: center;
    padding: 40px 32px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f97316, #ea580c);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.team-member:hover::before {
    transform: scaleX(1);
}

.team-member:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.member-image-placeholder {
    width: 150px;
    height: 150px;
    margin: 0 auto 24px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 4px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
}

.team-member:hover .member-image-placeholder {
    border-color: #f97316;
    transform: scale(1.05);
}

.member-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.team-member:hover .member-image-placeholder img {
    transform: scale(1.1);
}

.member-image-placeholder .placeholder-content {
    font-size: 0.875rem;
}

.member-image-placeholder svg {
    width: 150px;
    height: 150px;
    margin-bottom: 8px;
}

.team-member h3 {
    color: #1f2937;
    margin-bottom: 8px;
    font-size: 1.25rem;
}

.member-title {
    color: #1e40af;
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 1rem;
}

.team-member p {
    color: #6b7280;
    line-height: 1.6;
}

/* Legal Content */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.legal-content h2 {
    color: #1f2937;
    margin-top: 48px;
    margin-bottom: 24px;
    text-align: left;
    font-size: 1.75rem;
    position: relative;
    padding-left: 24px;
}

.legal-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #1e40af, #f97316);
    border-radius: 2px;
}

.legal-content h2::after {
    display: none;
}

.legal-content h3 {
    color: #374151;
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: 1.25rem;
    padding-left: 16px;
    position: relative;
}

.legal-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-radius: 2px;
}

.legal-content ul {
    margin-bottom: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.legal-content li {
    color: #4b5563;
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.legal-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #1e40af;
    font-weight: 600;
    font-size: 1.2rem;
}

.contact-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 32px;
    border-radius: 16px;
    margin-top: 32px;
    border: 1px solid #bfdbfe;
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e40af, #3b82f6);
}

.contact-info p {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.contact-info strong {
    color: #1f2937;
    font-weight: 600;
}

.contact-info a {
    color: #1e40af;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-info a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Enhanced Visual Elements */
.content-section:nth-child(even) {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.content-section:nth-child(odd) {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

/* Image Enhancements */
.content-image-placeholder,
.member-image-placeholder {
    position: relative;
}

.content-image-placeholder::after,
.member-image-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.content-image-placeholder:hover::after,
.member-image-placeholder:hover::after {
    transform: translateX(100%);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: 48px 0 24px;
    position: relative;
    overflow: hidden;
}

.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="footer-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-pattern)"/></svg>');
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand .logo-section {
    margin-bottom: 24px;
}

.footer-brand .brand-name {
    color: white;
    background: linear-gradient(135deg, #ffffff 0%, #e5e7eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: #9ca3af;
    line-height: 1.6;
    font-size: 1.1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.footer-column h4 {
    color: white;
    margin-bottom: 16px;
    font-size: 1.125rem;
    position: relative;
    padding-bottom: 8px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #1e40af, #f97316);
    border-radius: 1px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
    padding-left: 16px;
}

.footer-column a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: white;
    padding-left: 20px;
}

.footer-column a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid #374151;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: #9ca3af;
    margin: 0;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .legal-content {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .content-section {
        padding: 60px 0;
    }
    
    .page-hero {
        padding: 60px 0;
    }
    
    .page-hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .values-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .legal-content {
        padding: 32px 24px;
        margin: 0 16px;
    }
    
    .legal-content h2 {
        font-size: 1.5rem;
    }
    
    .value-item,
    .team-member {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .logo-section {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .brand-name {
        font-size: 1.5rem;
    }
    
    .value-item,
    .team-member {
        padding: 24px;
    }
    
    .legal-content {
        font-size: 0.9rem;
        padding: 24px 16px;
        margin: 0 8px;
    }
    
    .contact-info {
        padding: 24px;
    }
    
    .footer-column a {
        font-size: 0.9rem;
    }
}

/* Loading and Animation States */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
a:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 4px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .value-item,
    .team-member,
    .legal-content {
        border-width: 2px;
    }
    
    .content-image-placeholder,
    .member-image-placeholder {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    .header,
    .footer {
        background: white !important;
        color: black !important;
    }
    
    .page-hero {
        background: white !important;
        color: black !important;
    }
    
    a {
        color: black !important;
    }
    
    .legal-content {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
}

/* Enhanced Hover Effects */
.value-item:hover,
.team-member:hover {
    animation: gentle-bounce 0.6s ease;
}

@keyframes gentle-bounce {
    0%, 100% { transform: translateY(-12px); }
    50% { transform: translateY(-16px); }
}

/* Gradient Text Effects */
.content-section h2,
.legal-content h2 {
    position: relative;
    display: inline-block;
}

/* Enhanced Visual Hierarchy */
.legal-content p:first-of-type {
    font-size: 1.1rem;
    font-weight: 500;
    color: #374151;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #1e40af;
    margin-bottom: 24px;
}

/* Interactive Elements */
.legal-content ul:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-info:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(30, 64, 175, 0.15);
}