/* About section styles extracted from landing.css */
.about-us-section {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: var(--color-bg);
    min-height: 500px;
}

.about-wrapper {
    width: 100%;
    max-width: 1200px;
}

.about-frame {
    width: 100%;
    min-height: 500px;
    display: grid;
    grid-template-columns: 0.75fr 1fr;
    gap: 3rem;
    background: var(--color-black-secondary);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.founder-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.founder-image-landing {
    width: 50px;
    height: 50px;
    background-image: url('../images/Founder_IMG.avif');
    background-size: cover;
    background-position: center;
    border: 1px solid var(--color-border);
    border-radius: 10px;
}

.founder-info {
    display: flex;
    flex-direction: column;
}

.founder-info h3 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 140%;
    color: #FFFFFF;
    margin: -2px 0;
}

.founder-info p {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 140%;
    color: #FFFFFF;
    opacity: 0.8;
    margin: 0;
}

.about-content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding-left: 40px;
    padding-top: 40px;
    padding-bottom: 40px;
    position: relative; /* Ensure proper positioning for absolute children */
    justify-content: space-between;
}

.about-heading {
    position: relative;
    font-family: 'Trap', sans-serif;
    font-weight: 600;
    font-size: 1.8rem;
    line-height: 120%;
    color: #D1EE51;
    min-height: 2.5rem; 
    max-width: 25ch;
}


.about-heading.shadow {
    position: absolute;
    top: 72px;
    left: 0;
    padding: inherit;
    opacity: 0.3;
    width: 100%;
}

.about-actions {
    position: relative;
    margin: 20px 0 20px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    /* Ensures actions take the full width and are aligned horizontally */
}


.about-video {
    height: 100%;
    position: relative;
    min-height: 400px; /* Increased minimum height for better visibility */
    background: url('../../images/img_about.avif') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.about-video::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3); /* Dark overlay for better text readability */
    z-index: 1;
}

.about-video .video-btn {
    visibility: hidden;
    position: relative;
    z-index: 2;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.about-video .video-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: translateY(-2px);
}

/* Keeping the old selector for backward compatibility */
.about-video .watch-video-btn {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 10;
}

@media (min-width: 1024px) {
    .about-actions {
        margin: 0;
        display: block;
    }
}

@media (max-width: 990px) {
    .about-frame {
        grid-template-columns: 1fr;
        min-height: auto;
        height: auto;
        gap: 2rem;
    }
    .about-video {
        order: 1;
    }
    .about-content-wrapper {
        order: 2;
    }
    .about-video {
        height: 350px;
        width: 100%;
        display: flex;
        justify-content: flex-end;
        align-items: flex-end;
        padding: 2.5rem;
    }
    .about-video .watch-video-btn {
        position: static;
        
    }
    .about-heading {
        font-size: 1.5rem;
        max-width: 55ch;
        
    }
    
    .founder-profile {
        position: relative;
        left: 0;
        top: 0;
    }

    .about-content-wrapper {
        padding: 20px;
    }
}

@media (max-width: 768px) {
        .about-heading {
        font-size: 1.3rem;
    }
    .about-actions {
        
        width: 100%;
        
    }
    .book-call-btn,
    .watch-video-btn {
        width: 100%;
    }
    .about-video {
        height: 200px;
    }

    .about-video .video-btn {
        position: absolute;
        right: 20px;
        bottom: 20px;
        font-weight: 400;
    }
}

@media (max-width: 400px) {
    
    .about-video .video-btn {
        position: absolute;
        right: 10px;
        bottom: 10px;
        font-weight: 400;
    }
        
    .about-frame {
        gap: 1rem;
    }

    .about-content-wrapper {
        padding: 14px;
    }
}