/* CSS from: base.html */
/* Premium Design System */
:root {
    /* Color System */
    --primary: #2F5BEA;
    --primary-dark: #1E40AF;
    --primary-light: #E0E7FF;
    --primary-extra-light: #F5F8FF;
    --text-dark: #111827;
    --text-medium: #374151;
    --text-light: #6B7280;
    --bg-light: #e5f3f0;
    --bg-white: #cce7f3;
    --border: #E5E7EB;
    --success: #10B981;
    --card-bg: var(--bg-white);

    /* Spacing System */
    --section-spacing: 160px;
    --card-radius: 24px;

    /* Effects */
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --apple-ease: cubic-bezier(0.42, 0, 0.58, 1);
    --apple-timing: 0.8s;
}

[data-theme="dark"] {
    --text-dark: #F3F4F6;
    --text-medium: #D1D5DB;
    --text-light: #9CA3AF;
    --bg-light: #111827;
    --bg-white: #1F2937;
    --border: #374151;
    --card-bg: var(--bg-white);
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.25);
    --card-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: var(--bg-white);
    line-height: 1.6;
    margin: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

[data-theme="dark"] .header {
    background: rgba(17, 24, 39, 0.98);
}

.header.transparent {
    background: transparent !important;
    backdrop-filter: none !important;
    border-bottom: none !important;
}

.header.transparent .nav-links a,
.header.transparent .logo span,
.header.transparent .btn-outline {
    color: white !important;
}

.header.transparent .btn-primary {
    background: white !important;
    color: var(--primary) !important;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 80px;
    width: auto;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 2rem;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-medium);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.theme-toggle:hover {
    color: var(--primary);
    background: var(--primary-light);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-medium);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    z-index: 999;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 1px solid var(--border);
}

.mobile-menu.open {
    transform: translateY(0);
}

.mobile-menu-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu-links a {
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    font-size: 1.1rem;
    transition: var(--transition);
}

.mobile-menu-links a:hover {
    color: var(--primary);
}

.mobile-menu-links a.active {
    color: var(--primary);
    font-weight: 600;
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

/* Main Content */
main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    background: var(--bg-white);
    transition: background-color 0.3s ease;
}

/* Section Styles */
.section {
    padding: var(--section-spacing) 0;
    position: relative;
    overflow: hidden;
}

.bg-light {
    background: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    opacity: 0;
    transform: translateY(80px) translateZ(0);
    transition: all 1s var(--apple-ease);
}

.section-title.animate-in {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

.section-subtitle {
    font-size: 1.8rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    color: var(--text-medium);
    font-weight: 300;
    opacity: 0;
    transform: translateY(80px) translateZ(0);
    transition: all 1s var(--apple-ease) 0.2s;
}

.section-subtitle.animate-in {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

/* Card Styles */
.card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    transition: var(--transition-slow);
    transform-style: preserve-3d;
}

.card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-5px);
}

/* Premium Card Variations */
.feature-card,
.mission-card,
.testimonial-card,
.tech-item {
    padding: 3rem;
    transform: translateY(120px) rotateX(20deg) translateZ(0);
    opacity: 0;
    transition: all 0.8s var(--apple-ease);
}

.feature-card.animate-in,
.mission-card.animate-in,
.testimonial-card.animate-in,
.tech-item.animate-in {
    opacity: 1;
    transform: translateY(0) rotateX(0) translateZ(0);
}

.feature-card:hover,
.mission-card:hover {
    transform: translateY(-15px) scale(1.03) translateZ(0) !important;
}

/* Grid Systems */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
    perspective: 1200px;
}

.features-grid,
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 3rem;
    margin-top: 5rem;
    perspective: 1200px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
    perspective: 1200px;
}

.tech-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 5rem;
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(47, 91, 234, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(47, 91, 234, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    box-shadow: 0 4px 12px rgba(47, 91, 234, 0.1);
}

.btn-outline:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(47, 91, 234, 0.2);
}

[data-theme="dark"] .btn-outline {
    background: var(--bg-white);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Hero Sections */
.video-hero,
.about-hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-hero {
    margin-bottom: 0;
}

.about-hero {
    background: linear-gradient(135deg, #0F2027 0%, #000000 50%, #2C5364 100%);
}

.video-hero::before,
.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-hero::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 50%);
}

.about-hero::before {
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
}

.video-hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transform: scale(1.15) translateZ(0);
    transition: transform 2s var(--apple-ease);
}

.scrolled .video-hero video {
    transform: scale(1) translateZ(0);
}

.video-hero-content,
.about-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1100px;
    padding: 0 30px;
    opacity: 0;
    transform: translateY(80px) translateZ(0);
    transition: all 1.2s var(--apple-ease) 0.4s;
}

.page-loaded .video-hero-content,
.page-loaded .about-hero-content {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

.video-hero-content h1,
.about-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.8rem;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.video-hero-content .subtitle,
.about-subtitle {
    font-size: 2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: 0.01em;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    transform: translateY(40px) translateZ(0);
    transition: all 1s var(--apple-ease) 0.8s;
}

.page-loaded .hero-actions {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

/* Stats & Features */
.stat-item {
    text-align: center;
    padding: 3rem 2.5rem;
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    transform-style: preserve-3d;
    transform: translateY(120px) rotateX(20deg) translateZ(0);
    opacity: 0;
    transition: all 0.8s var(--apple-ease);
    border: 1px solid var(--border);
}

.stat-item.animate-in {
    opacity: 1;
    transform: translateY(0) rotateX(0) translateZ(0);
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.8rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.25rem;
    color: var(--text-medium);
    font-weight: 500;
}

.feature-icon,
.mission-icon,
.tech-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    display: inline-block;
    transition: all 0.8s var(--apple-ease);
}

.feature-card:hover .feature-icon,
.mission-card:hover .mission-icon {
    transform: scale(1.15) translateZ(0);
}

/* Process Timeline */
.process-timeline {
    position: relative;
    max-width: 900px;
    margin: 6rem auto 0;
    padding: 0;
    list-style: none;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--primary);
    transform: translateX(-50%);
    z-index: 1;
}

.process-step {
    position: relative;
    margin-bottom: 5rem;
    width: 50%;
    padding: 2rem 3rem;
    background: var(--card-bg);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    opacity: 0;
    transform: translateY(80px) translateZ(0);
    transition: all 0.8s var(--apple-ease);
}

.process-step.animate-in {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

.process-step:nth-child(odd) {
    left: 0;
    text-align: right;
}

.process-step:nth-child(even) {
    left: 50%;
    text-align: left;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    transform: translateY(-50%);
}

.process-step:nth-child(odd)::after {
    right: -12px;
}

.process-step:nth-child(even)::after {
    left: -12px;
}

.step-number {
    position: absolute;
    top: -15px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
}

.process-step:nth-child(odd) .step-number {
    right: -10px;
}

.process-step:nth-child(even) .step-number {
    left: -10px;
}

/* CTA Sections */
.cta-section,
.about-cta {
    padding: calc(var(--section-spacing) * 1.2) 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 1.5s var(--apple-ease);
}

.cta-bg.animate-in {
    opacity: 1;
}

.cta-bg-pattern,
.about-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
}

.cta-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 3.5rem;
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.cta-subtitle {
    font-size: 1.8rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer Styles */
.footer {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 60px 0 0;
    transition: background-color 0.3s ease;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.footer-col p {
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    text-decoration: none;
    color: var(--text-medium);
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    color: var(--text-medium);
}

[data-theme="dark"] .footer-bottom {
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: var(--text-medium);
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--primary);
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 100px;
    left: 0;
    right: 0;
    z-index: 1100;
    padding: 0 20px;
    pointer-events: none;
}

.flash {
    max-width: 1200px;
    margin: 0 auto 1rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out forwards;
    pointer-events: auto;
}

.flash-success {
    background: #D1FAE5;
    color: #065F46;
    border-left: 4px solid #10B981;
}

.flash-error {
    background: #FEE2E2;
    color: #991B1B;
    border-left: 4px solid #EF4444;
}

.flash-warning {
    background: #FEF3C7;
    color: #92400E;
    border-left: 4px solid #F59E0B;
}

.flash-info {
    background: #DBEAFE;
    color: #1E40AF;
    border-left: 4px solid #3B82F6;
}

@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px) translateZ(0); }
    50% { transform: translateY(-20px) translateZ(0); }
    100% { transform: translateY(0px) translateZ(0); }
}

.floating {
    animation: float 8s var(--apple-ease) infinite;
    will-change: transform;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    :root {
        --section-spacing: 140px;
    }

    .video-hero-content h1,
    .about-title {
        font-size: 4rem;
    }

    .section-title {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    :root {
        --section-spacing: 120px;
    }

    .video-hero,
    .about-hero {
        min-height: 600px;
    }

    .process-timeline::before {
        left: 40px;
    }

    .process-step {
        width: 100%;
        padding-left: 70px;
        padding-right: 30px;
        text-align: left;
    }

    .process-step:nth-child(even) {
        left: 0;
    }

    .process-step::after,
    .process-step:nth-child(odd)::after,
    .process-step:nth-child(even)::after {
        left: 30px;
    }

    .process-step:nth-child(odd) .step-number,
    .process-step:nth-child(even) .step-number {
        left: 30px;
        right: auto;
    }

    /* Mobile menu trigger */
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .header-actions .btn {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 100px;
        --card-radius: 20px;
    }

    .video-hero-content h1,
    .about-title {
        font-size: 3rem;
    }

    .video-hero-content .subtitle,
    .about-subtitle {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section-subtitle {
        font-size: 1.4rem;
    }

    .features-grid,
    .mission-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .cta-title,
    .about-cta .cta-title {
        font-size: 2.5rem;
    }

    .cta-subtitle,
    .about-cta .cta-subtitle {
        font-size: 1.4rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        max-width: 320px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    :root {
        --section-spacing: 80px;
    }

    .video-hero,
    .about-hero {
        height: 80vh;
        min-height: 500px;
    }

    .video-hero-content h1,
    .about-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .process-step {
        padding: 1.5rem 1.5rem 1.5rem 60px;
    }

    .stat-number {
        font-size: 3rem;
    }

    .header {
        padding: 0 20px;
    }

    .logo span {
        font-size: 1.2rem;
    }

    .mobile-menu {
        padding: 1.5rem;
    }

    .flash-messages {
        top: 80px;
    }
}

@media (max-width: 400px) {
    .video-hero-content h1,
    .about-title {
        font-size: 2rem;
    }

    .video-hero-content .subtitle,
    .about-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }

    .feature-card,
    .mission-card,
    .testimonial-card,
    .tech-item {
        padding: 2rem;
    }
}

/* CSS from: about.html */
/* Ultra-Premium Design System */
:root {
    --apple-ease: cubic-bezier(0.42, 0, 0.58, 1);
    --apple-timing: 0.8s;
    --section-spacing: 200px;
    --card-radius: 30px;
}

/* About Hero - Cinematic Intro */
.about-hero {
    position: relative;
    height: 80vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0F2027 0%, #203A43 50%, #2C5364 100%);
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.about-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 30px;
    opacity: 0;
    transform: translateY(80px) translateZ(0);
    transition: all 1.2s var(--apple-ease) 0.4s;
}

.page-loaded .about-hero-content {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

.about-title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    line-height: 1.08;
    letter-spacing: -0.03em;
    position: relative;
}

.about-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.about-subtitle {
    font-size: 2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 3rem;
    font-weight: 300;
    line-height: 1.4;
}

/* Premium Section Styling */
.about-section {
    padding: var(--section-spacing) 0;
    position: relative;
    overflow: hidden;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* .section-title is already defined in base.html, but with slightly different font-size.
   Keeping the one from base.html as it's likely the global style.
   Media queries in base.html also adjust this.
   If specific about page title styling is needed, a more specific selector or overriding in about.html's specific block is better.
*/
/*
.section-title {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    opacity: 0;
    transform: translateY(80px) translateZ(0);
    transition: all 1s var(--apple-ease);
}

.section-title.animate-in {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}
*/

/* .section-subtitle is already defined in base.html.
   Keeping the one from base.html.
*/
/*
.section-subtitle {
    font-size: 1.8rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    color: var(--text-medium);
    font-weight: 300;
    opacity: 0;
    transform: translateY(80px) translateZ(0);
    transition: all 1s var(--apple-ease) 0.2s;
}

.section-subtitle.animate-in {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}
*/

/* Mission Section - Premium Cards */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 5rem;
    perspective: 1200px;
}

.mission-card {
    background: var(--card-bg);
    border-radius: var(--card-radius);
    padding: 4rem 3rem;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.15);
    transition: all 0.8s var(--apple-ease);
    transform-style: preserve-3d;
    transform: translateY(120px) rotateX(20deg) translateZ(0);
    opacity: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
    will-change: transform, opacity;
}

[data-theme="dark"] .mission-card {
    background: var(--bg-light); /* Potentially needs to be var(--bg-white) or specific dark card bg */
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mission-card.animate-in {
    opacity: 1;
    transform: translateY(0) rotateX(0) translateZ(0);
}

.mission-card:hover {
    transform: translateY(-15px) scale(1.03) translateZ(0) !important; /* Overrides base.html card hover */
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.25);
}

.mission-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    display: inline-block;
    transition: all 0.8s var(--apple-ease);
}

.mission-card:hover .mission-icon {
    transform: scale(1.15) translateZ(0);
}

/* Process Section - Timeline */
/* .process-timeline and .process-step are already defined in base.html.
   The styles here are very similar, ensuring consistency.
   Any specific overrides should be handled carefully.
   The main difference is box-shadow and some minor padding/positioning which could be harmonized.
   For simplicity, let's assume base.html styles are preferred for these elements unless specified.
*/

/* Technology Showcase */
/* .tech-showcase is defined in base.html with similar grid properties.
   The .tech-item here has specific animations and hover effects.
*/
.tech-showcase { /* This duplicates a selector from base.html */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 5rem;
}

.tech-item { /* This duplicates a selector from base.html but adds specific transforms */
    background: var(--card-bg);
    border-radius: var(--card-radius);
    padding: 3rem;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.8s var(--apple-ease);
    transform-style: preserve-3d;
    transform: translateY(120px) rotateX(20deg) translateZ(0);
    opacity: 0;
    will-change: transform, opacity;
}

.tech-item.animate-in { /* This duplicates a selector from base.html */
    opacity: 1;
    transform: translateY(0) rotateX(0) translateZ(0);
}

.tech-icon { /* This duplicates a selector from base.html */
    font-size: 3rem; /* base.html uses 3.5rem for .feature-icon, .mission-icon, .tech-icon */
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* CTA Section */
.about-cta { /* This duplicates a selector from base.html but with slightly different padding calc */
    padding: calc(var(--section-spacing) * 1.2) 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.about-cta::before { /* This duplicates a selector from base.html */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
}

/* .cta-title and .cta-subtitle are already defined in base.html.
   The font sizes might differ slightly.
   Using base.html versions for consistency.
*/

/* Responsive Adjustments for about.html */
@media (max-width: 1200px) {
    /* :root { --section-spacing: 160px; } */ /* Already in base.html */
    .about-title { /* Overrides base.html responsive for .about-title */
        font-size: 4.2rem;
    }
    /* .section-title { font-size: 3.5rem; } */ /* Already in base.html responsive */
}

@media (max-width: 992px) {
    /* :root { --section-spacing: 140px; } */ /* Already in base.html */
    .about-hero {
        min-height: 600px; /* Consistent with base.html */
    }
    /* Timeline adjustments in base.html cover .process-timeline and .process-step */
}

@media (max-width: 768px) {
    /* :root { --section-spacing: 120px; --card-radius: 25px; } */ /* base.html has 100px and 20px */
    /* The card-radius here is 25px, base.html is 20px. Let's stick to one. */
    .about-title { /* Overrides base.html responsive */
        font-size: 3.5rem;
    }
    .about-subtitle { /* Overrides base.html responsive */
        font-size: 1.6rem;
    }
    /* .section-title { font-size: 3rem; } */ /* base.html has 2.5rem */
    /* .section-subtitle { font-size: 1.5rem; } */ /* base.html has 1.4rem */
    /* .mission-grid { grid-template-columns: 1fr; } */ /* Consistent with base.html .features-grid */
    /* .cta-title { font-size: 2.8rem; } */ /* base.html has 2.5rem */
    /* .cta-subtitle { font-size: 1.5rem; } */ /* base.html has 1.4rem */
}

@media (max-width: 576px) {
    /* :root { --section-spacing: 100px; } */ /* base.html has 80px */
    .about-hero {
        height: 70vh; /* Consistent with base.html */
        min-height: 500px; /* Consistent with base.html */
    }
    .about-title { /* Overrides base.html responsive */
        font-size: 2.8rem;
    }
    /* .section-title { font-size: 2.5rem; } */ /* base.html has 2.2rem */
    /* .process-step { padding: 1.5rem 1.5rem 1.5rem 60px; } */ /* Consistent with base.html */
}

/* CSS from: contact.html */
.contact-section {
    padding: var(--section-padding); /* Custom variable, use --section-spacing or define it */
    /* Assuming --section-padding maps to var(--section-spacing) or a fixed value like 80px 0 */
    /* For now, let's use a common value, it can be adjusted */
    padding: 120px 0; /* Example value if --section-padding is not globally defined */
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
    color: var(--primary);
}

.contact-header p {
    font-size: 20px;
    color: var(--text-light); /* Should be --text-medium or --text-dark for better contrast on light bg */
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
}

.contact-form {
    background-color: var(--white); /* Should be var(--card-bg) for theme consistency */
    padding: 40px;
    border-radius: 12px; /* Consider var(--card-radius) */
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 8px; /* Consistent with .btn */
    font-size: 16px;
    background-color: var(--white); /* Should be var(--card-bg) or var(--bg-light) */
    color: var(--text-dark);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-light);
}

/* .btn-primary is already defined in base.html */
/*
.btn-primary {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}
*/

.contact-info h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--primary);
}

.info-card {
    background-color: var(--white); /* Should be var(--card-bg) */
    padding: 25px;
    border-radius: 12px; /* Consider var(--card-radius) */
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
}

.info-card i {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.info-card p {
    margin-bottom: 5px;
    color: var(--text-light); /* Should be --text-medium */
}


/* CSS from: homepage.html */
/* :root variables are already defined in base.html, some are redefined here.
   We should ensure consistency. Using base.html's root variables.
   --glass-effect, --glass-border, --glass-shadow are new.
*/
:root {
    /* These are already in base.html, ensure values are consistent or remove redundancy */
    /* --apple-ease: cubic-bezier(0.42, 0, 0.58, 1); */
    /* --apple-timing: 0.8s; */
    /* --section-spacing: 200px; */ /* base.html has 160px, about.html has 200px. Pick one or make page-specific */
    /* --primary: #2F5BEA; */
    /* ... other color vars ... */
    --glass-effect: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    --glass-border: 1px solid rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

[data-theme="dark"] {
    /* ... existing dark theme vars from base.html ... */
    --glass-effect: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
    --glass-border: 1px solid rgba(0, 0, 0, 0.18);
}

/* Accessibility Focus Styles */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

/* Button Styles - btn-hover-effect */
.btn-hover-effect {
    position: relative;
    overflow: hidden;
}

.btn-content {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.btn-hover-state {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1;
}

.btn-hover-effect:hover .btn-content {
    transform: translateY(-3px);
}

.btn-hover-effect:hover .btn-hover-state {
    transform: translateY(0);
}

/* Holographic Hero Section */
/* .video-hero is already in base.html. Homepage version has specific background and perspective. */
.video-hero {
    /* position: relative; */ /* from base */
    /* height: 100vh; */ /* from base */
    min-height: 900px; /* Homepage specific */
    /* overflow: hidden; */ /* from base */
    /* margin-bottom: 0; */ /* from base */
    /* display: flex; */ /* from base */
    /* align-items: center; */ /* from base */
    /* justify-content: center; */ /* from base */
    perspective: 2000px; /* Homepage specific */
    background: linear-gradient(135deg, #000428, #004e92); /* Homepage specific */
}

.video-hero::before { /* Overrides base.html .video-hero::before */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(47, 91, 234, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(16, 185, 129, 0.3) 0%, transparent 50%);
    z-index: 1;
    animation: holographicPulse 15s infinite alternate;
}

.video-hero video { /* Consistent with base.html, adding mask-image */
    /* ... styles from base.html ... */
    mask-image: linear-gradient(to bottom, black 60%, transparent 90%);
}

/* .scrolled .video-hero video is in base.html */

.video-hero-content { /* Consistent with base.html, text-shadow added */
    /* ... styles from base.html ... */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.video-hero-content h1 { /* Overrides base.html .video-hero-content h1 */
    font-size: 5.5rem;
    font-weight: 700;
    margin-bottom: 1.8rem;
    line-height: 1.08;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, #ffffff, #e0e7ff, #ffffff);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradientText 8s linear infinite;
}

.video-hero-content .subtitle { /* Overrides base.html .video-hero-content .subtitle */
    font-size: 2.2rem;
    /* ... other styles from base.html ... */
}

/* .hero-actions is in base.html */

/* Next-Gen Particle System */
.particle-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform, opacity;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(1px);
    mix-blend-mode: screen;
}

.particle.trail {
    background: linear-gradient(to right, rgba(255, 255, 255, 0.4), transparent);
    border-radius: 0;
    transform-origin: left center;
}

/* AI Assistant Styles */
.ai-assistant {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.ai-assistant.active {
    width: 350px;
    height: 500px;
    border-radius: 20px;
}

.ai-assistant-avatar {
    font-size: 2rem;
}

.ai-assistant.active .ai-assistant-avatar {
    display: none;
}

.ai-assistant-chat {
    display: none;
    width: 100%;
    height: 100%;
    padding: 20px;
    color: white;
    flex-direction: column;
    background: rgba(47, 91, 234, 0.95);
    border-radius: 20px;
}

.ai-assistant.active .ai-assistant-chat {
    display: flex;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
    line-height: 1.4;
    font-size: 0.9rem;
}

.user-message {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.ai-message {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    margin-right: auto;
    border-bottom-left-radius: 5px;
}

.message.ai-thinking {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-right: auto;
    border-bottom-left-radius: 5px;
}

.chat-input-container {
    display: flex;
    gap: 8px;
}

.chat-input {
    flex: 1;
    padding: 12px 15px;
    border-radius: 20px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.9rem;
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.send-button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.send-button:hover {
    transform: scale(1.05);
}
.send-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.quick-replies-container {
    padding-bottom: 10px;
}

.quick-reply-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 15px;
    padding: 6px 12px;
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-reply-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Glass Morphism Cards */
.glass-card {
    background: var(--glass-effect);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 30px; /* Overrides var(--card-radius) from base for these specific cards */
    padding: 3rem;
    transition: all 0.8s var(--apple-ease);
    will-change: transform, backdrop-filter;
}

/* Section Styles from homepage.html - .section, .bg-light, .section-title, .section-subtitle are in base.html.
   Homepage has slightly different font sizes for section titles/subtitles.
   It's better to use a more specific selector if these need to be different from the base.
   e.g., .homepage-section .section-title
   For now, assuming base.html styles are primary.
*/
/*
.section-title {
    font-size: 4.5rem; / * base.html is 3.5rem * /
    ...
}
.section-subtitle {
    font-size: 2rem; / * base.html is 1.8rem * /
    ...
}
*/

/* Advanced Grid Systems - .stats-grid, .features-grid, .testimonials-grid are in base.html */

/* 3D Feature Cards */
.feature-card { /* This selector is in base.html, homepage adds specific transforms and pseudo-elements */
    transform-style: preserve-3d;
    /* transform: translateY(120px) rotateX(20deg) translateZ(0); */ /* from base */
    /* transition: all 0.8s var(--apple-ease); */ /* from base */
    will-change: transform, box-shadow; /* Added */
    background: white; /* from base, but can be var(--card-bg) */
    border-radius: 30px; /* Overrides var(--card-radius) */
    padding: 4rem 3rem; /* Overrides base padding */
    text-align: center; /* Added */
    box-shadow: 0 30px 60px -20px rgba(94, 97, 120, 0.15); /* Overrides var(--card-shadow) */
    border: 1px solid rgba(0, 0, 0, 0.05); /* Overrides var(--border) opacity */
    position: relative; /* Added */
    overflow: hidden; /* Added */
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s var(--apple-ease);
    pointer-events: none;
}

/* .feature-card.animate-in is in base.html */

[data-theme="dark"] .feature-card { /* Extends base.html dark theme for feature-card */
    background: var(--bg-light); /* base.html uses var(--bg-white) for .mission-card, could be an inconsistency */
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card:hover { /* Overrides base.html .feature-card:hover */
    transform: translateY(-15px) scale(1.03) translateZ(50px) !important;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.25);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon { /* Consistent with base.html, but homepage version is 4rem */
    font-size: 4rem; /* base.html uses 3.5rem */
    /* ... other styles from base.html ... */
    will-change: transform; /* Added */
}

/* .feature-card:hover .feature-icon is in base.html */

/* Stats Items - .stat-item, .stat-number, .stat-label are in base.html.
   Homepage has specific border-radius and box-shadow.
*/
.stat-item { /* Extends base.html .stat-item */
    border-radius: 30px; /* Overrides var(--card-radius) */
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.15); /* Overrides var(--card-shadow) */
    border: 1px solid rgba(0, 0, 0, 0.05); /* Overrides var(--border) opacity */
    will-change: transform, opacity; /* Added */
}

/* .stat-item.animate-in, .stat-number, .stat-label are in base.html */

/* AI-Powered Interactive Elements */
.ai-interactive-element {
    position: relative;
    transition: all 0.5s var(--apple-ease);
}

.ai-interactive-element:hover {
    transform: translateY(-5px);
}

.ai-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 100;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.ai-interactive-element:hover .ai-tooltip {
    opacity: 1;
}

/* Dynamic Background Sections */
.dynamic-bg-section {
    position: relative;
    overflow: hidden;
}

.dynamic-bg-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    z-index: -1; /* Ensure it's behind content */
    opacity: 0;
    transition: opacity 1.5s var(--apple-ease);
}

.dynamic-bg-section.active::before {
    opacity: 0.1; /* Or desired opacity */
}

/* Next-Gen CTA Section */
.cta-section { /* This is in base.html, homepage adds specific padding and canvas */
    padding: calc(var(--section-spacing) * 1.5) 0; /* Overrides base.html padding */
    /* ... other styles from base.html ... */
}

/* .cta-content is in base.html */

#ctaCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Ensure it's behind .cta-content */
    opacity: 0.3; /* Adjust as needed */
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--primary);
    z-index: 9999; /* Ensure it's above header */
    transition: width 0.1s linear; /* Smooth transition */
}

/* Next-Gen Animations (Keyframes) */
@keyframes holographicPulse {
    0% { opacity: 0.5; }
    50% { opacity: 0.8; }
    100% { opacity: 0.5; }
}

@keyframes particleTrail { /* Not directly used by class, but for JS particle generation */
    0% { transform: translateX(0) scaleX(0); opacity: 1; }
    100% { transform: translateX(100px) scaleX(1); opacity: 0; }
}

@keyframes float3D { /* Example animation, not directly applied to a class here */
    0% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); }
    50% { transform: translateY(-20px) rotateX(5deg) rotateY(5deg); }
    100% { transform: translateY(0px) rotateX(0deg) rotateY(0deg); }
}

@keyframes gradientText {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Responsive Adjustments for homepage.html */
/* These media queries partially overlap with base.html.
   It's crucial to decide which styles take precedence or to use more specific selectors.
   For root variables like --section-spacing, changes should ideally be global or carefully scoped.
*/
@media (max-width: 1200px) {
    /* :root { --section-spacing: 160px; } */ /* In base.html */
    .video-hero-content h1 { font-size: 4.5rem; } /* Consistent with base.html */
    .video-hero-content .subtitle { font-size: 1.8rem; } /* Overrides base.html */
    /* .section-title { font-size: 3.75rem; } */ /* Overrides base.html */
    /* .section-subtitle { font-size: 1.75rem; } */ /* Overrides base.html */
}

@media (max-width: 992px) {
    /* :root { --section-spacing: 140px; } */ /* In base.html */
    .video-hero { min-height: 800px; } /* Overrides base.html */
    .video-hero-content h1 { font-size: 4rem; } /* Consistent with base.html */
    /* .section-title { font-size: 3.25rem; } */ /* Overrides base.html */
}

@media (max-width: 768px) {
    /* :root { --section-spacing: 120px; } */ /* In base.html, but value differs */
    .video-hero { min-height: 700px; } /* Overrides base.html */
    .video-hero-content h1 { font-size: 3.25rem; } /* Overrides base.html */
    .video-hero-content .subtitle { font-size: 1.5rem; } /* Overrides base.html */
    /* .hero-actions flex-direction already in base.html */
    /* .section-title { font-size: 2.75rem; } */ /* Overrides base.html */
    /* .section-subtitle { font-size: 1.5rem; margin-bottom: 3rem; } */ /* Overrides base.html */
    /* .features-grid, .testimonials-grid already 1fr in base.html */
    .feature-card, .testimonial-card { padding: 3rem 2rem; } /* Affects base.html definition */
    .ai-assistant {
        bottom: 20px;
        right: 20px;
        width: 50px; /* Smaller */
        height: 50px; /* Smaller */
    }
    .ai-assistant.active {
        width: calc(100% - 40px); /* Full width on small screens */
        height: 400px; /* Adjust height */
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    /* :root { --section-spacing: 100px; } */ /* In base.html, but value differs */
    .video-hero-content h1 { font-size: 2.75rem; } /* Overrides base.html */
    /* .section-title { font-size: 2.25rem; } */ /* Overrides base.html */
    /* .section-subtitle { font-size: 1.25rem; } */ /* Overrides base.html */
    /* .stat-number { font-size: 3.25rem; } */ /* Overrides base.html */
}

/* Accessibility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.keyboard-nav .btn:focus,
.keyboard-nav a:focus,
.keyboard-nav button:focus {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

/* CSS from: how_it_works.html */
/* :root variables are already defined in base.html. Ensure consistency. */
/*
:root {
    --primary: #2F5BEA;
    --primary-dark: #1E40AF;
    --primary-light: #E0E7FF;
    --primary-extra-light: #F5F8FF;
    --text-dark: #111827;
    --text-medium: #374151;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --border: #E5E7EB;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); / * Different from base.html * /
    --section-padding: 120px 0; / * Custom, maps to var(--section-spacing) or fixed * /
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
*/
/* For card shadow, decide if this specific shadow is needed or use global var(--card-shadow) */

.how-it-works {
    padding: var(--section-padding, 120px 0); /* Use var or fallback */
    background: linear-gradient(to bottom, #F9FAFB 0%, #FFFFFF 100%);
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(47, 91, 234, 0.08) 0%, rgba(47, 91, 234, 0) 70%);
    animation: float 15s infinite ease-in-out alternate; /* 'float' keyframes are in base.html */
    z-index: 0;
}

/* .container is in base.html */

.how-it-works h1 {
    font-size: 52px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 24px;
    color: var(--text-dark);
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out; /* Keyframes defined below */
}

.how-it-works .subtitle { /* Make selector more specific */
    text-align: center;
    font-size: 20px;
    color: var(--text-light); /* Or --text-medium */
    max-width: 700px;
    margin: 0 auto 80px;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.steps {
    display: grid;
    gap: 80px;
    max-width: 1000px;
    margin: 0 auto;
    counter-reset: step-counter;
}

.step { /* This is different from .process-step in base.html */
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.step:nth-child(1) { animation-delay: 0.3s; }
.step:nth-child(2) { animation-delay: 0.5s; }
.step:nth-child(3) { animation-delay: 0.7s; }

.step:before {
    counter-increment: step-counter;
    content: counter(step-counter);
    width: 80px;
    height: 80px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    z-index: 1;
    transition: var(--transition-slow);
}

.step:hover:before {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(47, 91, 234, 0.2);
}

.step:not(:last-child):after {
    content: '';
    position: absolute;
    left: 40px; /* Center with .step:before */
    top: 80px; /* Start below .step:before */
    bottom: -80px; /* Extend to next step */
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--primary-light));
    transform: scaleY(0);
    transform-origin: top;
    animation: lineGrow 1s ease-out forwards; /* Keyframes defined below */
    animation-delay: 1s; /* Delay until steps are visible */
}

.step-content {
    background: white; /* Or var(--card-bg) */
    border-radius: 16px; /* Or var(--card-radius) */
    padding: 50px;
    box-shadow: var(--card-shadow); /* Use global or specific */
    transition: var(--transition-slow);
}

.step-content:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(47, 91, 234, 0.15); /* Darker shadow on hover */
}

.step-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
    position: relative;
    display: inline-block; /* For underline */
}

.step-content h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    animation: underlineGrow 0.6s ease-out forwards; /* Keyframes defined below */
}

.step-content p {
    color: var(--text-medium);
    margin-bottom: 30px;
    line-height: 1.7;
}

.step-content img {
    width: 100%;
    border-radius: 12px; /* Or var(--card-radius) */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition-slow);
}

.step-content:hover img {
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.how-it-works .cta-section { /* Make selector specific */
    text-align: center;
    margin-top: 120px;
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards; /* fadeIn keyframes needed */
}

.how-it-works .cta-section h2 { /* Make selector specific */
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.cta-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
}

/* .btn, .btn-primary, .btn-outline are in base.html */

/* Keyframe animations for how_it_works.html */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes underlineGrow {
    from { width: 0; }
    to { width: 60px; }
}

@keyframes lineGrow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

/* @keyframes float is already in base.html */

@keyframes fadeIn { /* Added for .cta-section */
    from { opacity: 0; }
    to { opacity: 1; }
}


/* Responsive Adjustments for how_it_works.html */
@media (max-width: 992px) {
    .steps { gap: 60px; }
    .step:before { width: 70px; height: 70px; font-size: 28px; }
    .step:not(:last-child):after { left: 35px; top: 70px; bottom: -60px; }
}

@media (max-width: 768px) {
    .how-it-works { padding: 80px 0; }
    .how-it-works h1 { font-size: 42px; }
    .how-it-works .subtitle { font-size: 18px; margin-bottom: 60px; }
    .step { grid-template-columns: 1fr; gap: 30px; }
    .step:before { margin: 0 auto; }
    .step:not(:last-child):after { display: none; } /* Hide connecting line on mobile */
    .step-content { padding: 40px 30px; text-align: center; }
    .step-content h2::after { left: 50%; transform: translateX(-50%); }
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-buttons .btn { width: 100%; max-width: 300px; justify-content: center; } /* Style .btn specifically if needed */
    .how-it-works .cta-section h2 { font-size: 32px; }
}

@media (max-width: 576px) {
    .how-it-works h1 { font-size: 36px; }
    .step-content h2 { font-size: 24px; }
    .how-it-works .cta-section h2 { font-size: 28px; }
}

/* CSS from: privacy.html */
.privacy-section {
    padding: 80px 20px;
    background: #fdfdfd; /* Consider var(--bg-light) or var(--bg-white) */
    font-family: 'Segoe UI', sans-serif; /* Base body font is Inter */
    color: #222; /* Consider var(--text-dark) */
}

.privacy-section h1 {
    font-size: 42px;
    margin-bottom: 10px;
    color: #005087; /* Consider var(--primary) or var(--text-dark) */
    text-align: center;
}

.last-updated {
    color: #777; /* Consider var(--text-light) */
    text-align: center;
    margin-bottom: 50px;
    font-size: 0.95rem;
}

.privacy-content {
    max-width: 900px;
    margin: 0 auto;
}

.privacy-content h2 {
    font-size: 26px;
    margin: 35px 0 15px;
    color: #00436e; /* Consider var(--primary-dark) or var(--text-dark) */
    transition: color 0.3s ease;
}

.privacy-content h3 {
    font-size: 20px;
    margin: 25px 0 10px;
    color: #036; /* Consider var(--primary-dark) */
}

.privacy-content p,
.privacy-content ul {
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 1.05rem;
}

.privacy-content ul {
    padding-left: 22px;
}

.privacy-content li {
    margin-bottom: 10px;
}

.privacy-content a {
    color: #007acc; /* Consider var(--primary) */
    text-decoration: none;
    font-weight: 500;
}

.privacy-content a:hover {
    text-decoration: underline;
}

/* CSS from: dashboard.html */
.admin-container { /* Specific to admin pages */
    max-width: 1400px;
    margin: 40px auto;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUpDashboard 0.6s ease-out forwards; /* Renamed to avoid conflict if needed */
}

@keyframes fadeInUpDashboard { /* Renamed from fadeInUp */
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-header {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.admin-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.admin-header h1:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.admin-header p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-medium);
}

/* .stats-grid is in base.html, dashboard has specific .stat-card styling */
.dashboard .stats-grid { /* Scope to dashboard if needed */
    /* display: grid; */ /* from base */
    /* grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); */ /* Dashboard specific */
    /* gap: 25px; */ /* Dashboard specific */
    margin-bottom: 50px;
}

.stat-card { /* This will conflict with any generic .stat-card. Consider .dashboard-stat-card */
    background-color: var(--card-bg);
    border-radius: 16px; /* var(--card-radius) is 24px/30px elsewhere */
    padding: 30px 25px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(47, 91, 234, 0.15); /* Specific hover shadow */
}

.stat-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.stat-card h3 { /* This is .stat-number in base.html */
    font-size: 2.8rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 700;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.stat-card p { /* This is .stat-label in base.html */
    color: var(--text-medium);
    font-size: 1rem;
    margin: 0;
}

.quick-actions {
    margin: 40px 0;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 16px; /* Or var(--card-radius) */
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
}

.quick-actions h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-buttons { /* This is similar to .hero-actions */
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.recent-activity {
    background-color: var(--card-bg);
    border-radius: 16px; /* Or var(--card-radius) */
    padding: 30px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.recent-activity:hover {
    box-shadow: 0 8px 30px rgba(47, 91, 234, 0.15);
}

.recent-activity h2 {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.activity-table {
    width: 100%;
    border-collapse: separate; /* Consider collapse for modern tables */
    border-spacing: 0;
}

.activity-table th {
    background-color: var(--primary-extra-light);
    color: var(--primary-dark);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    position: sticky; /* For scrollable tables */
    top: 0; /* For sticky header */
}

.activity-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    color: var(--text-medium);
    transition: background-color 0.2s ease;
}

.activity-table tr:hover td {
    background-color: var(--primary-extra-light);
}

.activity-table tr:last-child td {
    border-bottom: none;
}

.status-badge { /* General status badge, might conflict if used elsewhere */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-pending_review {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.status-verified {
    background-color: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.status-reunited {
    background-color: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
}

.status-rejected {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.progress {
    height: 8px;
    width: 100px;
    margin: 8px 0;
    background-color: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary);
    transition: width 0.6s ease;
}

.alert { /* General alert, might conflict */
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    border-color: rgba(23, 162, 184, 0.2);
    color: #17a2b8;
}

/* Responsive for dashboard.html */
@media (max-width: 992px) {
    .dashboard .stats-grid { /* Scoped */
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    .stat-card h3 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .admin-container { padding: 15px; }
    .dashboard .stats-grid { grid-template-columns: 1fr 1fr; } /* Scoped */
    .activity-table { display: block; overflow-x: auto; }
    .action-buttons { flex-direction: column; }
}

@media (max-width: 576px) {
    .dashboard .stats-grid { grid-template-columns: 1fr; } /* Scoped */
    .stat-card { padding: 25px 20px; }
}

/* CSS from: login.html */
.login-container {
    max-width: 500px;
    margin: 100px auto;
    padding: 40px;
    background-color: var(--bg-light); /* Use var(--card-bg) for consistency with other cards */
    border-radius: 8px; /* Or var(--card-radius) */
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Added transition */
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.login-header p {
    color: var(--text-medium);
}

.login-header img {
    height: 60px;
    margin-bottom: 20px;
}

.login-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(47, 91, 234, 0.3),
                0 8px 15px rgba(47, 91, 234, 0.2); /* Specific hover shadow */
}

/* .form-group, .form-group label, .form-control, .form-control:focus are similar to contact.html */
/* Ensure consistency or scope them e.g. .login-form .form-group */

.login-btn { /* This is a .btn with full width and specific margin */
    width: 100%;
    padding: 15px; /* Larger padding */
    font-size: 16px;
    margin-top: 20px;
    /* Inherits .btn styles from base.html, then adds these */
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-medium);
}

/* .flash-messages already in base.html, login page positions it specifically.
   The base.html .flash-messages is fixed. This one is not.
   If this needs to be static, it needs a different class or override.
*/
/*
.login-page .flash-messages { / * Example of scoping * /
    max-width: 500px;
    margin: 20px auto 0;
    position: static; / * Override fixed positioning * /
}
*/

/* CSS from: manage_reports.html */
.reports-container { /* Specific to admin reports page */
    padding: 2rem 5%;
    background-color: var(--bg-light); /* Use var(--bg-white) if main content area */
}

.reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.reports-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Softer shadow than var(--card-shadow) */
    background: white; /* Or var(--card-bg) */
    border-radius: 12px; /* Or var(--card-radius) */
    overflow: hidden; /* For border-radius on table */
    border: 1px solid var(--border);
}

[data-theme="dark"] .reports-table {
    background: #1e1e1e; /* Specific dark background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.reports-table th {
    background-color: var(--primary);
    color: white;
    padding: 1.25rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-right: 1px solid rgba(255,255,255,0.1); /* Divider for dark header */
}

.reports-table th:last-child {
    border-right: none;
}

.reports-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    font-size: 0.95rem;
    color: var(--text-medium);
}

/* .reports-table tr:not(:last-child) td { /* Already handled by td border-bottom */
    /* border-bottom: 1px solid var(--border); */
/* } */ */

.reports-table tr:hover td {
    background-color: rgba(47, 91, 234, 0.05); /* Light primary hover */
}

[data-theme="dark"] .reports-table tr:hover td {
    background-color: rgba(47, 91, 234, 0.1);
}

.person-image-container {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa; /* Light grey, consider var(--primary-extra-light) */
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

[data-theme="dark"] .person-image-container {
    background-color: #2a2a2a; /* Darker grey */
}

.person-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* .status-badge is defined in dashboard.html, manage_reports has different status names */
.status-pending { /* Renaming from dashboard's .status-pending_review */
    background-color: #FEF3C7; /* Tailwind Amber 100 */
    color: #92400E; /* Tailwind Amber 800 */
}

.status-approved { /* New status */
    background-color: #D1FAE5; /* Tailwind Green 100 */
    color: #065F46; /* Tailwind Green 800 */
}

/* .status-rejected is in dashboard.html */

.action-buttons { /* Also in dashboard.html, ensure consistency or scope */
    display: flex;
    gap: 0.5rem;
}

.btn-table { /* Specific button style for tables */
    padding: 0.5rem;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    /* Inherits .btn from base, then these are applied */
    /* Requires .btn class to be added to these buttons in HTML */
}

.btn-table:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.no-reports {
    text-align: center;
    padding: 3rem;
    background: white; /* or var(--card-bg) */
    border-radius: 12px; /* or var(--card-radius) */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .no-reports {
    background: #1e1e1e; /* Specific dark background */
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-info div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive Table for manage_reports.html */
@media (max-width: 1200px) {
    .reports-table { /* If this is the only table needing this, it's fine. Otherwise, a shared class. */
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .reports-table th,
    .reports-table td {
        padding: 0.75rem;
    }
    .person-image-container {
        width: 50px;
        height: 50px;
    }
    .reports-page .action-buttons { /* Scope if needed */
        flex-direction: column;
        gap: 0.25rem;
    }
    .btn-table {
        width: 30px;
        height: 30px;
    }
}

/* CSS from: matches.html */
/* .admin-container, .admin-header are in dashboard.html.
   matches.html has .admin-title which is similar to .admin-header h1.
*/
.admin-title { /* If this is meant to be the main H1 for admin pages */
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.filter-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    background: var(--card-bg);
    color: var(--text-medium);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn:focus {
    background: var(--primary-extra-light);
    border-color: var(--primary-light);
    color: var(--primary-dark);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.matches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.match-card {
    background: var(--card-bg);
    border-radius: 12px; /* Or var(--card-radius) */
    padding: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1); /* Specific hover shadow */
}

.match-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
}

.confidence-score {
    font-weight: 600;
    color: var(--primary);
}

.match-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.image-container { /* Generic image container */
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1; /* For square images */
    background: var(--bg-light); /* Placeholder background */
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 8px;
    font-size: 0.75rem;
    text-align: center;
}

.match-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
}

.detail-label {
    font-weight: 500;
    color: var(--text-medium);
}

.detail-value {
    color: var(--text-dark);
    text-align: right;
}

/* .status-badge is in dashboard.html. matches.html has specific colorings. */
/* Ensure one set of status badge styles is used or scope them. */
/* The status colors in matches.html use Tailwind-like names. */
/* .status-pending in matches.html is different from manage_reports.html */
.matches-page .status-pending { /* Scoped example */
    background: #FFEDD5; /* Tailwind Orange 100 */
    color: #9A3412; /* Tailwind Orange 700 */
}
/* .status-verified is in dashboard.html (green) */
.matches-page .status-verified { /* Scoped example */
    background: #DCFCE7; /* Tailwind Green 100 */
    color: #166534; /* Tailwind Green 700 */
}
/* .status-reunited is in dashboard.html (blue/cyan) */
.matches-page .status-reunited { /* Scoped example */
    background: #E0F2FE; /* Tailwind Sky 100 */
    color: #1E40AF; /* Tailwind Sky 800 */
}
/* .status-rejected is in dashboard.html (red) */
.matches-page .status-rejected { /* Scoped example */
    background: #FEE2E2; /* Tailwind Red 100 */
    color: #B91C1C; /* Tailwind Red 700 */
}


.match-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto; /* Pushes actions to bottom of card */
}

.status-select {
    width: 100%;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text-dark);
    margin-bottom: 8px; /* Spacing if used with other elements */
}

/* .btn is in base.html. matches.html defines specific button variants */
.update-btn {
    background: var(--primary);
    color: white;
    /* Inherits .btn */
}

.update-btn:hover {
    background: var(--primary-dark);
}

.delete-btn {
    background: #FEE2E2; /* Tailwind Red 100 */
    color: #B91C1C; /* Tailwind Red 700 */
    /* Inherits .btn */
}

.delete-btn:hover {
    background: #FECACA; /* Tailwind Red 200 */
}

.check-btn {
    background: var(--bg-light);
    color: var(--text-medium);
    border: 1px solid var(--border);
    /* Inherits .btn */
}

.check-btn:hover {
    background: var(--primary-extra-light);
    color: var(--primary-dark);
}

.empty-state {
    grid-column: 1 / -1; /* Span all columns in grid */
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

/* Dark Mode Adjustments for matches.html */
[data-theme="dark"] .match-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .match-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .image-container {
    background: #2a2a2a; /* Dark placeholder */
}

/* Responsive for matches.html */
@media (max-width: 768px) {
    .matches-grid {
        grid-template-columns: 1fr; /* Single column on small screens */
    }
    .matches-page .admin-header { /* Scoped if needed */
        flex-direction: column;
        align-items: flex-start;
    }
}