/**
 * Founders Page Styles
 *
 * @package RevBridge
 * @since 1.0.0
 */

/* ========================================
   Base Styles
======================================== */
.founders-page {
    background-color: var(--founders-darker-bg);
    color: var(--founders-text-primary);
}

.founders-main {
    overflow-x: hidden;
}

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

/* ========================================
   Hero Section
======================================== */
.founders-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    background: var(--founders-darker-bg);
    overflow: hidden;
}

.founders-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.founders-hero .hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.founders-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    background: var(--founders-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.founders-hero .subheadline {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--founders-text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================
   Section Styles
======================================== */
section {
    padding: 100px 20px;
    position: relative;
}

.section-dark {
    background-color: var(--founders-dark-bg);
}

.section-darker {
    background-color: var(--founders-darker-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--founders-gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--founders-text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ========================================
   Story Section
======================================== */
.founders-story .story-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--founders-card-bg);
    padding: 60px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.founders-story .story-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--founders-accent);
}

.founders-story .story-content p {
    font-size: 1.125rem;
    color: var(--founders-text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.founders-story .story-highlight {
    background: var(--founders-gradient-1);
    padding: 30px;
    border-radius: 16px;
    margin-top: 2rem;
}

.founders-story .story-highlight strong {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: white;
}

.founders-story .story-highlight p {
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
}

/* ========================================
   Founders Grid
======================================== */
.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.founder-card {
    background: var(--founders-card-bg);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.founder-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
}

.founder-photo {
    width: 100%;
    height: 400px;
    background: var(--founders-gradient-1);
    position: relative;
    overflow: hidden;
}

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

.founder-photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--founders-card-bg), transparent);
}

.founder-content {
    padding: 40px;
}

.founder-name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--founders-text-primary);
}

.founder-title {
    font-size: 1.125rem;
    color: var(--founders-accent);
    font-weight: 600;
    margin-bottom: 2rem;
    display: block;
}

.founder-bio {
    color: var(--founders-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.founder-bio p {
    margin-bottom: 1rem;
}

.founder-bio p:last-child {
    margin-bottom: 0;
}

/* Founder Expertise */
.founder-expertise {
    margin-bottom: 2rem;
}

.founder-expertise h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--founders-text-primary);
}

.founder-expertise ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.founder-expertise li {
    padding: 8px 0;
    color: var(--founders-text-secondary);
    position: relative;
    padding-left: 24px;
}

.founder-expertise li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--founders-accent);
    font-weight: bold;
}

/* Founder Achievements */
.founder-achievements {
    margin-bottom: 2rem;
}

.founder-achievements h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--founders-text-primary);
}

.achievement-item {
    background: rgba(99, 102, 241, 0.1);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid var(--founders-primary);
    color: var(--founders-text-secondary);
    font-size: 0.95rem;
}

.achievement-item:last-child {
    margin-bottom: 0;
}

/* Founder Quote */
.founder-quote {
    background: rgba(34, 211, 238, 0.05);
    border-left: 4px solid var(--founders-accent);
    padding: 20px;
    margin-bottom: 2rem;
    border-radius: 8px;
    font-style: italic;
    color: var(--founders-text-secondary);
}

.founder-quote p {
    margin: 0;
}

/* Founder Social */
.founder-social {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    color: var(--founders-accent);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-link:hover {
    background: var(--founders-gradient-1);
    color: white;
    transform: translateY(-2px);
    border-color: var(--founders-primary);
}

/* ========================================
   Why This Team Section
======================================== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.why-item {
    text-align: center;
    padding: 40px 30px;
    background: var(--founders-card-bg);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.why-item:hover {
    transform: translateY(-5px);
    border-color: var(--founders-primary);
}

.why-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: block;
}

.why-item p {
    color: var(--founders-text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   Values Section
======================================== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    background: var(--founders-card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    border-color: var(--founders-primary);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--founders-text-primary);
}

.value-card p {
    color: var(--founders-text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   CTA Section
======================================== */
.founders-cta {
    text-align: center;
    padding: 120px 20px;
    background: var(--founders-gradient-1);
    position: relative;
    overflow: hidden;
}

.founders-cta .cta-background {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.founders-cta .cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.founders-cta h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
}

.founders-cta p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 18px 40px;
    background: white;
    color: var(--founders-primary);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background: white;
    color: var(--founders-primary);
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 768px) {
    .founders-hero {
        padding: 80px 20px 60px;
        min-height: 80vh;
    }

    section {
        padding: 60px 20px;
    }

    .founders-story .story-content {
        padding: 40px 30px;
    }

    .founder-content {
        padding: 30px 20px;
    }

    .founders-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .founders-cta {
        padding: 80px 20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-button {
        width: 100%;
    }

    .why-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .founder-photo {
        height: 300px;
    }

    .value-card,
    .why-item {
        padding: 30px 20px;
    }

    .founder-name {
        font-size: 1.75rem;
    }

    .founder-title {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .founders-hero h1 {
        font-size: 2rem;
    }
}

/* ========================================
   Print Styles
======================================== */
@media print {
    .founders-hero,
    .founders-cta {
        background: white !important;
        color: black !important;
    }

    .founder-card,
    .value-card,
    .why-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .cta-button,
    .social-link {
        display: none;
    }
}
