/* Auxiliary Pages Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 40px 0;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-header .logo-container {
    justify-content: center;
}

/* Page Hero Section */
.page-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 80px 0;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.pexels.com/photos/1181244/pexels-photo-1181244.jpeg?auto=compress&cs=tinysrgb&w=1200') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #1e293b, #2563eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.last-updated {
    font-size: 0.95rem;
    color: #64748b;
    font-style: italic;
    margin: 0;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
}

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

.content-section.alt-bg {
    background: #f8fafc;
}

.content-section.alt-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.pexels.com/photos/590020/pexels-photo-590020.jpeg?auto=compress&cs=tinysrgb&w=1200') center/cover;
    opacity: 0.03;
    z-index: 0;
}

.content-section .container {
    position: relative;
    z-index: 1;
}

/* About Page Specific Styles */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: center;
    margin-top: 32px;
}

.content-text {
    font-size: 1.1rem;
    line-height: 1.7;
}

.content-text p {
    margin-bottom: 24px;
    color: #374151;
}

.content-text-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

.content-text-center p {
    margin-bottom: 24px;
    color: #374151;
}

.content-image-placeholder {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 16px;
    border: 2px dashed #cbd5e1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.content-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
}

/* Hero Images for Different Pages */
.page-hero-image {
    width: 100%;
    max-width: 600px;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    margin: 32px auto 0;
    display: block;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

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

.tech-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

.tech-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.tech-card-image {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.tech-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tech-card:hover .tech-card-img {
    transform: scale(1.05);
}

.tech-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
}

.tech-card h3 {
    color: #1e293b;
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.tech-card p {
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

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

.value-item {
    background: white;
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.value-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #059669, #047857);
}

.value-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.value-item-image {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.value-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.value-item:hover .value-item-img {
    transform: scale(1.05);
}

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

.value-item p {
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    text-align: center;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    padding: 60px 40px;
    border-radius: 20px;
    margin-top: 48px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.3);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.pexels.com/photos/1181298/pexels-photo-1181298.jpeg?auto=compress&cs=tinysrgb&w=800') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.cta-section > * {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: white;
    margin-bottom: 16px;
    font-size: 2.25rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta-section .btn-primary {
    background: white;
    color: #2563eb;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.cta-section .btn-primary:hover {
    background: #f8fafc;
    color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.3);
}

/* Legal Content Styles */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.7;
    background: white;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.legal-content h2 {
    color: #1e293b;
    font-size: 1.75rem;
    margin-top: 48px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.legal-content h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

.legal-content h2:first-child {
    margin-top: 0;
}

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

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

.legal-content p {
    color: #4b5563;
    margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}

.legal-content li {
    color: #4b5563;
    margin-bottom: 8px;
    line-height: 1.6;
    position: relative;
}

.legal-content ul li::before {
    content: '•';
    color: #2563eb;
    font-weight: bold;
    position: absolute;
    left: -16px;
}

.legal-content strong {
    color: #1e293b;
    font-weight: 600;
}

.contact-info {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    padding: 32px;
    border-radius: 16px;
    border-left: 4px solid #2563eb;
    margin-top: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: url('https://images.pexels.com/photos/7688336/pexels-photo-7688336.jpeg?auto=compress&cs=tinysrgb&w=200') center/cover;
    opacity: 0.1;
    border-radius: 50%;
}

.contact-info p {
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.contact-info a {
    color: #2563eb;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

/* Page-specific background images */
.about-page .content-section:nth-child(odd) {
    background-image: url('https://images.pexels.com/photos/3184465/pexels-photo-3184465.jpeg?auto=compress&cs=tinysrgb&w=1200');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.about-page .content-section:nth-child(odd)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 0;
}

.privacy-page .legal-content {
    background-image: url('https://images.pexels.com/photos/1181263/pexels-photo-1181263.jpeg?auto=compress&cs=tinysrgb&w=1200');
    background-size: cover;
    background-position: center;
    position: relative;
}

.privacy-page .legal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 16px;
    z-index: 0;
}

.privacy-page .legal-content > * {
    position: relative;
    z-index: 1;
}

/* Decorative Elements */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    border-radius: 2px;
}

/* Responsive Design for Pages */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .legal-content {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 60px 0;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1.1rem;
    }
    
    .content-section {
        padding: 60px 0;
    }
    
    .tech-grid,
    .values-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .tech-card,
    .value-item {
        padding: 24px;
    }
    
    .tech-card-image,
    .value-item-image {
        height: 160px;
    }
    
    .cta-section {
        padding: 40px 24px;
        margin-top: 32px;
        border-radius: 16px;
    }
    
    .cta-section h2 {
        font-size: 1.875rem;
    }
    
    .cta-section p {
        font-size: 1.1rem;
    }
    
    .legal-content {
        font-size: 0.95rem;
        padding: 24px;
        border-radius: 12px;
    }
    
    .legal-content h2 {
        font-size: 1.5rem;
        margin-top: 32px;
    }
    
    .legal-content h3 {
        font-size: 1.15rem;
        margin-top: 24px;
    }
    
    .contact-info {
        padding: 24px;
        border-radius: 12px;
    }
    
    .page-hero-image {
        height: 250px;
        margin-top: 24px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .content-section {
        padding: 40px 0;
    }
    
    .cta-section {
        padding: 32px 20px;
        border-radius: 12px;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .legal-content {
        padding: 20px;
    }
    
    .legal-content h2 {
        font-size: 1.375rem;
    }
    
    .tech-card,
    .value-item {
        padding: 20px;
    }
    
    .tech-card-image,
    .value-item-image {
        height: 140px;
    }
    
    .content-icon {
        width: 60px;
        height: 60px;
    }
    
    .tech-icon {
        width: 48px;
        height: 48px;
    }
    
    .page-hero-image {
        height: 200px;
        border-radius: 8px;
    }
    
    .last-updated {
        font-size: 0.875rem;
        padding: 6px 12px;
    }
}

/* Loading States and Animations */
.tech-card,
.value-item {
    animation: fadeInUp 0.6s ease-out;
}

.tech-card:nth-child(2) {
    animation-delay: 0.1s;
}

.tech-card:nth-child(3) {
    animation-delay: 0.2s;
}

.value-item:nth-child(2) {
    animation-delay: 0.1s;
}

.value-item:nth-child(3) {
    animation-delay: 0.2s;
}

.value-item:nth-child(4) {
    animation-delay: 0.3s;
}

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

/* Image Error Handling */
.tech-card-img,
.value-item-img,
.page-hero-image {
    background-color: #f1f5f9;
    background-image: linear-gradient(45deg, #e2e8f0 25%, transparent 25%), 
                      linear-gradient(-45deg, #e2e8f0 25%, transparent 25%), 
                      linear-gradient(45deg, transparent 75%, #e2e8f0 75%), 
                      linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* Accessibility Improvements */
.tech-card:focus-within,
.value-item:focus-within {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.cta-section .btn-primary:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .page-hero,
    .cta-section {
        background: white !important;
        color: black !important;
    }
    
    .tech-card,
    .value-item,
    .legal-content {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .tech-card-image,
    .value-item-image,
    .page-hero-image {
        display: none;
    }
}