/* ===============================
   ABOUT PAGE STYLING
   =============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9fafb;
}

section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    scroll-margin-top: 90px; /* height of header + some spacing */
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #1a202c;
}

/* Header and Navigation */
header {
    background-color: #1a202c;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links li a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #3b82f6;
}

.btn-primary {
    background-color: #3b82f6;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #2563eb;
}

/* =========================
   Navbar Auth Button
   ========================= */
#auth-button {
    position: relative; /* for dropdown positioning */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================
   User Initials Circle
   ========================= */
.user-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.user-initials:hover {
    background-color: #0056b3;
}

/* =========================
   Dropdown Menu
   ========================= */
.user-dropdown {
    display: none;
    position: absolute;
    top: 100%; /* directly below the circle */
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 0.5rem; /* nice rounded corners */
    min-width: 140px;
    text-align: center;
    z-index: 1000;
    pointer-events: auto;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Show dropdown when hovering over the circle or the dropdown itself */
#auth-button:hover .user-dropdown,
.user-dropdown:hover {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* =========================
   Dropdown Links
   ========================= */
.user-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: #1a202c;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0.5rem; /* rounded corners for links too */
    transition: background-color 0.2s;
}

.user-dropdown a:hover {
    background-color: #f1f5f9;
}

/* =========================
   Login Icon Style
   ========================= */
.login-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    font-size: 1.4rem;
    text-decoration: none;
    margin-left: 1rem;
    transition: color 0.3s;
}

.login-icon:hover {
    color: #3b82f6;
}

/* Blur effect */
.blur {
    filter: blur(5px);
    pointer-events: none; /* prevent clicks on blurred content */
}


/* ============================================================
   HERO — full-width, dark gradient (match Services/View Bots)
============================================================ */
.about-hero {
    position: relative;
    text-align: center;
    padding: 4.5rem 1.5rem 4rem;
    margin-top: 0;
    color: #fff;
    overflow: hidden;
    border-radius: 0 0 28px 28px;
    background: linear-gradient(165deg, #0c1222 0%, #1a1f3a 35%, #1e293b 70%, #0f172a 100%);
}

.about-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 50% at 50% -20%, rgba(99, 102, 241, 0.2), transparent 55%),
        radial-gradient(ellipse 70% 40% at 20% 70%, rgba(59, 130, 246, 0.12), transparent 50%);
    pointer-events: none;
}

.about-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.about-hero-eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #a5b4fc;
    margin: 0 0 0.75rem;
}

.about-hero-title {
    font-size: clamp(2.25rem, 5.5vw, 3.25rem);
    font-weight: 700;
    margin: 0 0 1rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #fff;
}

.about-hero-intro {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.65;
    color: #cbd5e1;
    margin: 0 0 1.5rem;
}

.about-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.about-btn-primary {
    display: inline-block;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    color: #fff;
    padding: 0.8rem 1.75rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.about-btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
    color: #fff;
}

.about-btn-secondary {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    color: #e2e8f0;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.about-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

/* ============================================================
   SECTIONS — Mission, Founders (shared layout)
============================================================ */
.about-section {
    padding: 4rem 1.5rem;
    scroll-margin-top: 5rem;
}

.about-section-inner {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.about-section-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6366f1;
    margin: 0 0 0.5rem;
}

.about-section-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1rem;
}

#about-mission {
    background-color: #fff;
}

.about-mission-lead {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.mission-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    justify-items: center;
    max-width: 920px;
    margin: 0 auto;
}

.highlight-card {
    background: #fff;
    padding: 1.75rem;
    border-radius: 14px;
    width: 100%;
    max-width: 280px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.highlight-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(99, 102, 241, 0.12));
    color: #3b82f6;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.highlight-card h3 {
    font-size: 1.15rem;
    color: #0f172a;
    margin: 0 0 0.5rem;
}

.highlight-card p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

/* Founders */
.about-section-alt {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

#founders .about-section-title {
    margin-bottom: 1rem;
}

.founders-intro {
    max-width: 680px;
    margin: 0 auto 2.5rem;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.65;
}

.learn-more-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.learn-more-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.founders-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.founder-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 340px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

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

.founder-card-img-wrap {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f1f5f9;
}

.founder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.founder-info {
    padding: 1.5rem;
}

.founder-info h3 {
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.founder-info .role {
    color: #6366f1;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0 0 0.75rem;
}

.founder-info p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0 0 1rem;
}

.btn-connect {
    display: inline-block;
    color: #2563eb;
    border: 1.5px solid #2563eb;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-connect:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* ============================================================
   STATS — full-width dark strip
============================================================ */
.about-stats {
    position: relative;
    padding: 4.5rem 1.5rem;
    margin-bottom: 0;
    color: #fff;
    text-align: center;
    overflow: hidden;
    border-radius: 28px 28px 0 0;
    background: linear-gradient(165deg, #0f172a 0%, #1e293b 50%, #1a1f3a 100%);
}

.about-stats-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(99, 102, 241, 0.15), transparent 55%);
    pointer-events: none;
}

.about-stats-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.about-stats-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #93c5fd;
    margin: 0 0 0.5rem;
}

.about-stats-title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 2.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat {
    background: rgba(255, 255, 255, 0.06);
    padding: 1.75rem 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.25s ease, background 0.25s ease;
}

.stat:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
}

.stat-number {
    display: block;
    color: #93c5fd;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.stat-label {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin: 0;
}

/* Fade-in Animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .founders-grid {
        flex-direction: column;
        align-items: center;
    }

    .founder-card {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .about-hero-cta {
        flex-wrap: nowrap;
        justify-content: center;
    }

    .about-hero-cta .about-btn-primary,
    .about-hero-cta .about-btn-secondary {
        flex-shrink: 0;
        padding: 0.65rem 1.1rem;
        font-size: 0.9rem;
    }
}


/* Footer */
footer {
    background-color: #1a202c;
    color: #e2e8f0;
    text-align: center;
    padding: 2rem 5%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-family: 'Inter', sans-serif;
}

.footer-tagline {
    font-style: italic;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #3b82f6;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0.5rem 0;
    padding: 0;
}

.social-links img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1); /* White icons on dark bg */
    transition: transform 0.3s;
}

.social-links img:hover {
    transform: scale(1.1);
}

/* Footer copyright */
footer p:last-child {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 600px) {
    .footer-links {
        flex-direction: column;
        gap: 0.8rem;
    }
}

@media (max-width: 768px) {
    .about-hero-title {
        font-size: 2rem;
    }
}