/* ==========================================================================
   Fonte Da Vida - About Page Styles
   Description: Specific styles for the About Us page including the 
   mission grid, timeline, team cards, and CTA banner.
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. Page Header & Breadcrumbs
   -------------------------------------------------------------------------- */
.page-header.animated-header {
    position: relative;
    overflow: hidden;
    padding: 200px 24px 140px;
    z-index: 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.ph-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -99;
    transform: scale(1.0);
    animation: slowPan 25s linear infinite alternate;
}

@keyframes slowPan {
    from { transform: scale(1.05) translate(0, 0); }
    to { transform: scale(1.15) translate(-1%, 1%); }
}

.ph-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: -98;
}

.ph-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ph-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
    font-family: 'JetBrains Mono', monospace;
}

.ph-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.ph-breadcrumb a:hover {
    color: #fff;
}

.ph-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 100px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.ph-title {
    font-size: clamp(38px, 5vw, 56px);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.ph-desc {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto;
}

.gradient-text {
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 60%, #1E40AF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Force white text and white logo when navbar is transparent at top, in BOTH modes */
.navbar:not(.scrolled) .logo-light { display: none !important; }
.navbar:not(.scrolled) .logo-dark { display: block !important; }
.navbar:not(.scrolled) .nav-links a,
.navbar:not(.scrolled) .btn-ghost,
.navbar:not(.scrolled) .theme-toggle,
.navbar:not(.scrolled) .lang-btn,
.navbar:not(.scrolled) .lang-btn .lang-text {
    color: #ffffff !important;
    transition: transform 0.2s ease, border-color 0.2s ease !important;
}

.navbar:not(.scrolled) .nav-links a { display: inline-block; }
.navbar:not(.scrolled) .lang-btn { background: transparent !important; border-color: rgba(255, 255, 255, 0.4) !important; }
.navbar:not(.scrolled) .theme-toggle { background: transparent !important; border-color: rgba(255, 255, 255, 0.4) !important; }
.navbar:not(.scrolled) .btn-ghost { background: transparent !important; }
.navbar:not(.scrolled) .nav-toggle span { background: #ffffff !important; }

.navbar:not(.scrolled) .nav-links a:hover,
.navbar:not(.scrolled) .btn-ghost:hover,
.navbar:not(.scrolled) .theme-toggle:hover,
.navbar:not(.scrolled) .lang-btn:hover {
    transform: translateY(-2px) !important;
    color: #ffffff !important;
    background: transparent !important;
}

/* --------------------------------------------------------------------------
   02. Mission Section
   -------------------------------------------------------------------------- */
.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.mission-content h3 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.mission-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.mission-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0,0,0,0.2);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mission-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.light-mode .mission-image {
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08);
}

/* --------------------------------------------------------------------------
   03. History Timeline Section
   -------------------------------------------------------------------------- */
.history-section {
    background: var(--surface-1);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    border-left: 2px solid var(--border-subtle);
    padding-left: 40px;
    margin-left: 20px;
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -49px; /* Centered on the border */
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: 4px solid var(--surface-1);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.timeline-year {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
}

.timeline-item h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.timeline-item p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   04. Team Grid Section
   -------------------------------------------------------------------------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.team-card {
    background: var(--surface-1);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.15);
}

.light-mode .team-card:hover {
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.team-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.team-card:hover .team-img { 
    filter: grayscale(0%); 
}

.team-info {
    padding: 20px;
    text-align: center;
}

.team-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.team-role {
    font-size: 13px;
    color: var(--accent-light);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

/* --------------------------------------------------------------------------
   05. Call to Action Banner (Premium)
   -------------------------------------------------------------------------- */
.cta-carousel-section {
    position: relative;
    overflow: hidden;
    padding: 140px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

.cta-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.cta-bg-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 1.5s ease-in-out, transform 10s ease-out;
}

.cta-overlay-premium {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.85) 100%);
    z-index: 10;
}

.cta-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

.cta-glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 80px 60px;
    max-width: 850px;
    text-align: center;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.cta-glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cta-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60A5FA;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 100px;
    margin-bottom: 24px;
}

.cta-premium-title {
    color: #fff;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.gradient-text-premium {
    background: linear-gradient(135deg, #60A5FA 0%, #fff 50%, #3B82F6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-premium-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.6;
    margin: 0 auto 48px;
    max-width: 600px;
}

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

.btn-glow {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: #fff;
    border: none;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    padding: 16px 36px;
    font-size: 16px;
    border-radius: 100px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-glow:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-arrow-right {
    transition: transform 0.3s ease;
}

.btn-glow:hover .btn-arrow-right {
    transform: translateX(4px);
}

.btn-glass-outline {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 16px 36px;
    font-size: 16px;
    border-radius: 100px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-glass-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   06. Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    .mission-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .page-header.animated-header { padding: 130px 24px 80px; min-height: 50vh; }
    .timeline { margin-left: 10px; padding-left: 30px; }
    .timeline-item::before { left: -39px; }
    .team-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
    
    .cta-glass-card {
        padding: 50px 30px;
        border-radius: 20px;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-actions a {
        width: 100%;
        justify-content: center;
    }
}