/* ==========================================================================
   Team Founders Section - Luxury Styling with Light/Dark Mode
   Ken & Dominique Key - Long Island Web Design
   ========================================================================== */

/* Section Base - Light Mode */
.team-founders-section {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    overflow: hidden;
}

/* Dark Mode */
html.dark .team-founders-section {
    background: linear-gradient(180deg, var(--secondary-dark) 0%, #0a1628 100%);
}

.team-founders-section .container {
    position: relative;
    z-index: 2;
}

/* Section Header */
.team-founders-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.team-founders-section .section-label {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(249, 115, 22, 0.05) 100%);
    border: 1px solid rgba(249, 115, 22, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.team-founders-section .section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

html.dark .team-founders-section .section-title {
    color: white;
    background: linear-gradient(135deg, #ffffff 0%, #a0c4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.team-founders-section .section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

html.dark .team-founders-section .section-subtitle {
    color: var(--gray-400);
}

/* Founders Showcase - Main Layout */
.founders-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch; /* Match column heights */
    margin-bottom: 4rem;
}

@media (max-width: 968px) {
    .founders-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Main Photo Card */
.founders-main-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    height: 100%; /* Fill available height */
}

.founders-main-card .card-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary) 0%, #3b82f6 50%, var(--primary-light) 100%);
    border-radius: 26px;
    opacity: 0.6;
    filter: blur(8px);
    z-index: -1;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.02); }
}

.founders-image-wrapper {
    position: relative;
    flex: 1; /* Grow to fill available space */
    min-height: 400px;
    overflow: hidden;
}

.founders-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center; /* Keep heads visible */
    transition: transform 0.6s ease;
}

.founders-main-card:hover .founders-image {
    transform: scale(1.05);
}

.founders-image-wrapper .image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(255, 255, 255, 0.95) 100%);
    pointer-events: none;
}

html.dark .founders-image-wrapper .image-overlay {
    background: linear-gradient(180deg, transparent 40%, rgba(10, 22, 40, 0.95) 100%);
}

/* Badge on Main Card */
.founders-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

html.dark .founders-badge {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Badge Logo - Light/Dark Switching */
.founders-badge .badge-logo {
    height: 32px;
    width: auto;
    flex-shrink: 0;
}

.founders-badge .badge-logo-light {
    display: block;
}

.founders-badge .badge-logo-dark {
    display: none;
}

html.dark .founders-badge .badge-logo-light {
    display: none;
}

html.dark .founders-badge .badge-logo-dark {
    display: block;
}

.founders-badge .badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 10px;
    flex-shrink: 0;
}

.founders-badge .badge-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.founders-badge .badge-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
}

html.dark .founders-badge .badge-text {
    color: white;
}

/* Founders Info Panel */
.founders-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center; /* Center content vertically */
    height: 100%;
}

/* Individual Founder Cards */
.founder-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.founder-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

html.dark .founder-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.founder-card:hover {
    border-color: rgba(249, 115, 22, 0.3);
    transform: translateX(8px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

html.dark .founder-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    box-shadow: none;
}

/* Founder Photo */
.founder-photo-wrapper {
    position: relative;
    flex-shrink: 0;
}

.founder-photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    object-position: top center; /* Keep heads visible */
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.photo-ring {
    position: absolute;
    inset: -4px;
    border: 2px solid var(--primary);
    border-radius: 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.founder-card:hover .photo-ring {
    opacity: 1;
    animation: ringPulse 2s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 1; }
}

/* Founder Details */
.founder-details {
    flex: 1;
}

.founder-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

html.dark .founder-name {
    color: white;
}

.founder-title {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.founder-bio {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

html.dark .founder-bio {
    color: var(--gray-400);
}

/* Quote */
.founders-quote {
    position: relative;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(249, 115, 22, 0.02) 100%);
    border-left: 4px solid var(--primary);
    border-radius: 0 16px 16px 0;
    margin: 0;
}

.founders-quote .quote-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    color: var(--primary);
    opacity: 0.3;
}

.founders-quote p {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 1rem;
}

html.dark .founders-quote p {
    color: white;
}

.founders-quote cite {
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 600;
    color: var(--primary);
}

/* Stats Bar */
.founders-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 2.5rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

html.dark .founders-stats {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

@media (max-width: 768px) {
    .founders-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .founders-stats {
        grid-template-columns: 1fr 1fr;
    }
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, #ea580c 100%);
    border-radius: 14px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
}

html.dark .stat-number {
    color: white;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* CTA */
.founders-cta {
    text-align: center;
}

.founders-cta p {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

html.dark .founders-cta p {
    color: var(--gray-400);
}

.founders-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.founders-cta .btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.founders-cta .btn:hover svg {
    transform: translateX(4px);
}

/* Background Elements */
.section-bg-elements {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.bg-gradient-1 {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 60%);
    filter: blur(60px);
}

.bg-gradient-2 {
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
    filter: blur(60px);
}

.bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* ==========================================================================
   Compact Style (for footer or sidebar)
   ========================================================================== */
.team-founders-section.compact {
    padding: 3rem 0;
}

.team-founders-section.compact .founders-showcase {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.team-founders-section.compact .founders-main-card {
    display: none;
}

.team-founders-section.compact .founder-cards {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.team-founders-section.compact .founder-card {
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

.team-founders-section.compact .founders-quote {
    max-width: 600px;
    margin: 0 auto;
}

.team-founders-section.compact .founders-stats {
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* ==========================================================================
   About Page Style (more detailed)
   ========================================================================== */
.team-founders-section.about .founders-showcase {
    gap: 4rem;
}

.team-founders-section.about .founder-card {
    padding: 2rem;
}

.team-founders-section.about .founder-photo {
    width: 100px;
    height: 100px;
    object-position: top center;
}

.team-founders-section.about .founder-bio {
    font-size: 1rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
    .founder-card {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.6s ease forwards;
    }

    .founder-card:nth-child(1) { animation-delay: 0.1s; }
    .founder-card:nth-child(2) { animation-delay: 0.2s; }

    .stat-item {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.6s ease forwards;
    }

    .stat-item:nth-child(1) { animation-delay: 0.1s; }
    .stat-item:nth-child(2) { animation-delay: 0.2s; }
    .stat-item:nth-child(3) { animation-delay: 0.3s; }
    .stat-item:nth-child(4) { animation-delay: 0.4s; }

    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
