/* ========================================
   PAGE TEMPLATES STYLES
   Services, About, Contacts, etc.
   ======================================== */

/* Page Header */
.page-header {
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
    position: relative;
    overflow: hidden;
    padding: 140px 0 80px;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.page-header-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.page-header-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.page-header-shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(99, 102, 241, 0.2);
    top: -100px;
    right: -100px;
}

.page-header-shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(139, 92, 246, 0.15);
    bottom: -50px;
    left: 10%;
}

.page-header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.page-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.page-title-gradient {
    background: linear-gradient(135deg, #fff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-description {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
}

/* Page Content Section */
.page-section {
    background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
    padding: 4rem 0 6rem;
    position: relative;
}

.page-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
}

/* Intro Paragraph */
.intro-paragraph {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(238, 242, 255, 0.9);
    margin-bottom: 2.5rem;
    padding: 1.5rem 2rem;
    background: rgba(99, 102, 241, 0.08);
    border-left: 4px solid #6366f1;
    border-radius: 0 16px 16px 0;
}

/* Page Content Styles */
.page-content {
    color: rgba(238, 242, 255, 0.85);
    line-height: 1.8;
    font-size: 1.0625rem;
}

.page-content > * + * {
    margin-top: 1.5rem;
}

.page-content h2 {
    font-size: 2rem;
    color: white;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(99, 102, 241, 0.2);
    position: relative;
}

.page-content h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.page-content h3 {
    font-size: 1.5rem;
    color: #c7d2fe;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-content h4 {
    font-size: 1.25rem;
    color: #a5b4fc;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.page-content p {
    margin-bottom: 1.25rem;
}

.page-content strong {
    color: white;
    font-weight: 600;
}

.page-content ul,
.page-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.page-content li {
    margin-bottom: 0.75rem;
}

.page-content ul li::marker {
    color: #6366f1;
}

.page-content ol li::marker {
    color: #8b5cf6;
    font-weight: 600;
}

.page-content blockquote {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-left: 4px solid #6366f1;
    border-radius: 0 20px 20px 0;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    position: relative;
}

.page-content blockquote::before {
    content: '"';
    font-size: 4rem;
    color: rgba(99, 102, 241, 0.3);
    position: absolute;
    top: 0.5rem;
    left: 1rem;
    font-family: Georgia, serif;
    line-height: 1;
}

.page-content blockquote p {
    margin: 0;
    position: relative;
    z-index: 1;
    color: #c7d2fe;
    font-style: italic;
}

.page-content blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.9375rem;
    color: #818cf8;
    font-style: normal;
}

/* Tables */
.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.page-content th {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.2) 100%);
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 1.25rem 1.5rem;
}

.page-content td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    color: rgba(238, 242, 255, 0.9);
}

.page-content tr:last-child td {
    border-bottom: none;
}

.page-content tr:nth-child(even) {
    background: rgba(99, 102, 241, 0.05);
}

/* Info Boxes */
.info-box {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.info-box-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #22d3ee;
    margin-bottom: 0.75rem;
}

.warning-box {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.warning-box-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #fbbf24;
    margin-bottom: 0.75rem;
}

.success-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.success-box-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #34d399;
    margin-bottom: 0.75rem;
}

/* CTA Section */
.page-cta {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 24px;
    padding: 3rem;
    margin-top: 3rem;
    text-align: center;
}

.page-cta-title {
    font-size: 1.75rem;
    color: white;
    margin-bottom: 1rem;
}

.page-cta-text {
    color: rgba(238, 242, 255, 0.8);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.page-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.page-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-cta .btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.page-cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.page-cta .btn-secondary {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
}

.page-cta .btn-secondary:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.5);
    color: white;
}

/* Service Cards Grid */
.services-grid-page {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.service-card-page {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s ease;
}

.service-card-page:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.service-card-page h3 {
    color: white;
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(238, 242, 255, 0.7);
    font-size: 0.9375rem;
}

/* Contact Info */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-3px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 28px;
    height: 28px;
    color: #818cf8;
}

.contact-card h3 {
    color: white;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.contact-card p {
    color: rgba(238, 242, 255, 0.7);
    margin: 0;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .intro-paragraph {
        font-size: 1.125rem;
        padding: 1.25rem;
    }
    
    .page-content h2 {
        font-size: 1.5rem;
    }
    
    .page-content h3 {
        font-size: 1.25rem;
    }
    
    .page-cta {
        padding: 2rem 1.5rem;
    }
    
    .page-cta-buttons {
        flex-direction: column;
    }
    
    .page-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
