/* Custom styles for About Page */

.about-hero-banner {
    /* Ensure height fits content if needed, but inheriting 60vh is likely fine. */
    /* Let's keep it consistent with other pages */
    
    /* Create a concave cut at the top "as if a circle ate part of the image" */
    -webkit-mask-image: radial-gradient(circle at 50% var(--mask-distance), transparent var(--mask-radius), black calc(var(--mask-radius) + 1px));
    mask-image: radial-gradient(circle at 50% var(--mask-distance), transparent var(--mask-radius), black calc(var(--mask-radius) + 1px));
}

/* Flex layout for this specific banner */
.about-content-wrapper {
    /* Override or extend the default flex behavior */
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Separate text and logo */
    width: 90%;
    max-width: 1200px;
    /* Allow a bit more width */
    gap: 40px;
}

/* Ensure the background image behaves as expected */
.about-hero-banner .banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    /* Below content */
}

/* Override the global image style for the logo */
.about-hero-banner .quality-seal {
    width: auto !important;
    /* Override 100% width */
    height: auto !important;
    /* Override 100% height */
    max-width: 100%;
    max-height: 300px;
    /* Reasonable max height */
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
    /* Add shadow for depth */
}

.banner-logo-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.banner-card {
    flex: 2;
    /* 2/3 width */
    z-index: 10;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-content-wrapper {
        flex-direction: column-reverse;
        /* Logo on top or bottom? usually Text top, Logo bottom. 
        But if reverse, Logo is top. Let's stick to column for text top. */
        flex-direction: column;
    }

    .banner-logo-container {
        width: 150px;
        /* Smaller logo on mobile */
        margin-top: 20px; 
    }

    /* Make banner taller on mobile */
    .about-hero-banner {
        height: 90vh;
        min-height: 600px;
    }

    /* Add top offset for content to prevent overlap with menu */
    .about-text-section {
        padding-top: 120px;
    }

    /* Shift image view to the right on mobile without exposing background */
    .future-banner .banner-bg {
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        object-position: 35% center; /* Show right side of image */
    }
}

/* About Text Section */
.about-text-section {
    background: rgba(255, 255, 255, 0.02);
    /* Glass tint */
    backdrop-filter: blur(10px);
    /* "Como difuminado" */
    color: #e0e0e0;
    width: 100%;
    position: relative;
    z-index: 5;
    padding: 80px 0;
    /* More breathing room */
    transition: background 0.3s ease, color 0.3s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle separation */
}

/* SVG Container */
.connection-line-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Behind content but in front of background */
    pointer-events: none;
}

/* Neon Line */
.neon-path {
    fill: none;
    stroke: #4287f5;
    stroke-width: 3;
    opacity: 0.3;
    filter: drop-shadow(0 0 5px #4287f5) drop-shadow(0 0 10px #4287f5);
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Packets (Dots) */
.packet {
    fill: #00ffff;
    filter: drop-shadow(0 0 5px #00ffff) drop-shadow(0 0 10px #00ffff);
    opacity: 0;
    /* Hidden initially */
    transition: opacity 0.3s;
}

.packet.parked {
    opacity: 1;
    fill: #ffffff;
    filter: drop-shadow(0 0 8px #ffffff);
}

body.light-mode .packet.parked {
    fill: #0d47a1;
    filter: drop-shadow(0 0 5px #0d47a1);
}

.about-text-content {
    position: relative;
    z-index: 5;
    /* Ensure content is above line */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
}

.about-text-content h3 {
    font-family: 'GreycliffCF-Bold', sans-serif;
    font-size: 3rem;
    /* Larger title */
    margin-bottom: 60px;
    background: linear-gradient(45deg, #4287f5, #0d47a1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    /* Center title */
    position: relative;
    padding-bottom: 20px;
    align-self: center;
}

.about-text-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #4287f5;
    border-radius: 2px;
}

/* Glass Card Container */
.glass-card {
    width: 100%;
    max-width: 600px;
    padding: 30px;
    margin-bottom: 60px;

    /* Aesthetics */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

    /* Animation Prep */
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Maintain hover state compatibility with animation */
.glass-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.glass-card.visible:hover {
    transform: translateY(-5px) scale(1.02);
}

/* Inner Text Styling */
.glass-card p {
    font-family: 'Arial', sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    margin-bottom: 20px;
    /* Space between paragraphs inside card */
}

.glass-card p:last-child {
    margin-bottom: 0;
}

/* Zig-Zag Layout applied to cards */
.glass-card:nth-of-type(odd) {
    align-self: flex-start;
    text-align: left;
    border-left: 4px solid #4287f5;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.glass-card:nth-of-type(even) {
    align-self: flex-end;
    text-align: left;
    border-right: 4px solid #0d47a1;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* First paragraph highlight (Intro) inside first card */
.glass-card:first-of-type p:first-of-type {
    font-size: 1.3rem;
    color: #ffffff;
    font-weight: 400;
}

/* Light Mode for Cards */
body.light-mode .glass-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* More defined shadow */
}

body.light-mode .glass-card:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

body.light-mode .glass-card p {
    color: #333;
}

/* Ensure the colored borders remain visible by not overriding them */
body.light-mode .glass-card:nth-of-type(odd) {
    border-left-color: #4287f5;
}

body.light-mode .glass-card:nth-of-type(even) {
    border-right-color: #0d47a1;
}

/* Light Mode for Text Section */
/* Future Banner Styling */
.future-banner {
    position: relative;
    height: auto;
    /* Allow content to dictate height, min-height set by banner-section? */
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 100px 20px;
    z-index: 10;
    /* Above neon line */
    background: #000;
    /* Fallback */
    overflow: hidden;
    margin-top: -50px;
    /* Slight overlap to hide line end */
}

/* Ensure background image is dark enough for text */
.future-banner .banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
    z-index: 1;
    /* Behind content */
}

.future-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.future-content-wrapper h2 {
    font-family: 'GreycliffCF-Bold', sans-serif;
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #fff, #aabcd1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    /* Needed for width of underline */
    padding-bottom: 15px;
    /* Space for underline */
}

.future-content-wrapper h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    opacity: 0.8;
}

.future-content-wrapper .subtitle {
    font-family: 'GreycliffCF-Bold', sans-serif;
    /* Or Medium */
    font-size: 1.5rem;
    margin-bottom: 50px;
    color: #e0e0e0;
    line-height: 1.4;
}

.future-text-block p {
    font-family: 'Arial', sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}

/* Ensure neon line SVG container allows overflow or matches height?
   The neon SVG is inside .about-text-section. 
   We want the line to go DOWN and disappear BEHIND this banner.
   
   The .about-text-section has relative positioning.
   We just need to make sure the line draws past the last card.
*/

body.light-mode .about-text-content h3 {
    background: linear-gradient(45deg, #0d47a1, #1565c0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .about-text-content h3::after {
    background: #0d47a1;
}

/* Light Mode for Text Section */
body.light-mode .about-text-content p {
    background: transparent;
    border: none;
    box-shadow: none;
    color: #333;
}

body.light-mode .about-text-content p:hover {
    background: transparent;
    box-shadow: none;
}

body.light-mode .about-text-content p:first-of-type {
    color: #000;
}

/* Quote Styling */
.mission-quote {
    font-family: 'GreycliffCF-Bold', sans-serif;
    font-size: 1.8rem;
    line-height: 1.4;
    color: #ffffff;
    text-align: center;
    margin: 60px auto;
    padding: 40px;
    width: 100%;
    max-width: 900px;

    /* Remove Card Background for pure text focus or use a different style */
    background: transparent;
    border: none;
    box-shadow: none;

    /* Accentuation */
    border-left: none;
    border-right: none;
    position: relative;

    /* Animation Prep */
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mission-quote::before {
    content: '“';
    font-size: 5rem;
    color: #4287f5;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.5;
}

.mission-quote.visible {
    opacity: 1;
    transform: scale(1);
}

/* Animation Utilities */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in-up.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

/* Light Mode Quote */
body.light-mode .mission-quote {
    color: #0d47a1;
}

/* Founders Edition CTA Section */
.founders-cta-section {
    background: rgba(255, 255, 255, 0.02);
    /* Reverted to glass style */
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 0px 20px;
    width: 100%;
    text-align: center;
    position: relative;
    /* Removed heavy hack, now relies on HTML structure */
}

.founders-content {
    max-width: 1200px;
    /* Increased from 900px */
    margin: 0 auto;
}

/* ... existing styles ... */
/* RESTORED STYLES FOR TEXT */
.founders-content h3 {
    font-family: 'GreycliffCF-Bold', sans-serif;
    font-size: 3rem;
    margin-bottom: 60px;
    background: linear-gradient(45deg, #4287f5, #0d47a1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
    align-self: center;
}

.founders-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #4287f5;
    border-radius: 2px;
}

.founders-intro {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 50px;
    color: #ccc;
}

.founders-benefits {
    margin-bottom: 60px;
    text-align: left;
}

.founders-benefits h3 {
    font-family: 'GreycliffCF-Bold', sans-serif;
    font-size: 3rem;
    margin-bottom: 60px;
    background: linear-gradient(45deg, #4287f5, #0d47a1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
    align-self: center;
}

.founders-benefits h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #4287f5;
    border-radius: 2px;
}

/* ... end restored styles ... */

.founders-benefits ul {
    list-style: none;
    padding: 0;
    display: grid;
    /* Force 3 columns if space allows, effectively single row for 3 items */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 900px) {
    .founders-benefits ul {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.founders-benefits li {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: flex-start;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.founders-benefits li:hover {
    transform: translateY(-5px);
    border-color: #4287f5;
}

.founders-benefits i {
    font-size: 1.5rem;
    color: #4287f5;
    margin-right: 15px;
    margin-top: 2px;
}

.founders-benefits strong {
    color: #fff;
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.founders-highlight {
    background: linear-gradient(45deg, rgba(66, 135, 245, 0.1), rgba(13, 71, 161, 0.2));
    border: 1px solid rgba(66, 135, 245, 0.3);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 60px;
}

.founders-highlight p {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin: 0;
}

/* Premium CTA Wrapper */
.cta-wrapper {
    position: relative;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    margin-top: 80px;
    overflow: hidden;
    /* Subtle inner glow */
    box-shadow: inset 0 0 20px rgba(66, 135, 245, 0.05);
}

/* Decorative Gradient Border/Glow via pseudo-element */
.cta-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #4287f5, #00ffff, #0d47a1);
    z-index: -1;
    border-radius: 26px;
    opacity: 0.3;
    filter: blur(10px);
}

.cta-wrapper h4 {
    font-family: 'GreycliffCF-Bold', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #fff 0%, #b3e5fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(66, 135, 245, 0.4);
}

/* Premium Button Styling */
.btn-founders {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #4287f5, #00C6FF);
    color: white;
    padding: 20px 50px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px rgba(66, 135, 245, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    z-index: 1;
}

/* Shine Effect */
.btn-founders::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn-founders:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 50px rgba(66, 135, 245, 0.6);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-founders:hover::after {
    left: 100%;
}

/* Pulsing Ring Animation */
.btn-founders::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50px;
    border: 2px solid rgba(66, 135, 245, 0.5);
    opacity: 0;
    z-index: -2;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.5;
    }

    100% {
        width: 160%;
        height: 180%;
        opacity: 0;
    }
}

/* Light Mode Overrides */
body.light-mode .founders-cta-section {
    background: #f8f9fa;
    color: #333;
    background-image: none;
    /* Can add light pattern if desired */
}

body.light-mode .founders-content h2 {
    background: linear-gradient(90deg, #0d47a1, #4287f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .founders-intro {
    color: #555;
}

body.light-mode .founders-benefits li {
    background: #fff;
    border-color: #ddd;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

body.light-mode .founders-benefits strong {
    color: #0d47a1;
}

body.light-mode .founders-highlight {
    background: rgba(66, 135, 245, 0.1);
    border-color: rgba(66, 135, 245, 0.2);
}

body.light-mode .founders-highlight p {
    color: #333;
}

body.light-mode .cta-wrapper h4 {
    color: #000;
    background: none;
    -webkit-text-fill-color: initial;
    text-shadow: none;
}