@import '../variables.css';

.about-section {
    background: linear-gradient(135deg, var(--neutral-50) 0%, rgba(var(--neutral-100-rgb), 0.5) 100%);
    position: relative;
    overflow: hidden;
    padding: 3rem 0;
}
.about-section .row {
    min-height: 200px; /* Adjust this value as needed */
}

/* Video container styles */
.video-wrapper {
    position: relative;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.ratio-custom {
    --bs-aspect-ratio: 75%; /* Adjust this value to match left side height */
}


/* Play button container */
.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(var(--primary-rgb), 0.9);
    border-radius: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

/* Play icon */
.video-play-button::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 26px;
    border-color: transparent transparent transparent white;
    margin-left: 7px;
    transition: all 0.3s ease;
}

/* Hover effects */
.video-play-button:hover {
    background: var(--primary);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Outer ring animation */
.video-play-button::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(var(--primary-rgb), 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Hide play button when video is playing */
.video-wrapper.playing .video-play-button {
    opacity: 0;
    visibility: hidden;
}

.about-content {
    padding: 1.5rem;
    background: var(--neutral-100);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.section-title {
    color: var(--primary);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    background: var(--section-light);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid var(--neutral-200);
    color: var(--text-primary);
}

.highlight-item:hover {
    background: #000000;
    color: #ffffff;
    transform: translateX(5px);
}

.highlight-item:hover .highlight-title {
    color: #fafcff;
}

.high-contrast .highlight-title,
body.tcl-high-contrast .highlight-title {
    color: #111010 !important;
}


.high-contrast .highlight-title,
body.tcl-high-contrast .highlight-title:hover {
    color: #fffcfc !important;
}

ß
.highlight-item i {
    font-size: 1.125rem;
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.highlight-item:hover i {
    color: var(--neutral-100);
}

.about-text {
    color: var(--text-primary);
    line-height: var(--leading-relaxed);
    margin: 1.25rem 0;
}


.expandable-content {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease-out;
}

.expandable-content.show {
    height: auto;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 500;
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s ease;
}

.read-more-btn:hover {
    color: var(--primary-dark);
}

@media (max-width: 991.98px) {
    .about-section {
        padding: 2rem 0;
    }

    .row {
        flex-direction: column-reverse;
    }
}

/* Decorative element */
.about-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 20px;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.video-wrapper {
    position: relative;
    cursor: pointer;
}

.video-container {
    height: 100%;
    display: flex;
    align-items: center;
}

/* Remove height: 100% from these classes */
.about-content {
    height: auto;
}

.ratio {
    width: 100%;
}

/* Video play button overlay */
.video-wrapper::before {
    /* content: ''; */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(var(--primary-rgb), 0.9);
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    border-left: 20px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    z-index: 3;
}

.video-wrapper:hover::before {
    background: rgba(var(--primary-rgb), 1);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Fade-in animation */
.about-content, .video-wrapper {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.video-wrapper {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Decorative element */
.about-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 20px;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Ensure iframe has proper dimensions */
#videoPlayer {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.video-wrapper .ratio {
    flex: 1;
    min-height: 400px; /* Minimum height for the video */
}

/* High Contrast Mode Support */
@media (prefers-contrast: more) {
    .highlight-item {
        background: #ffffff !important;
        border: 2px solid #000000 !important;
        color: #000000 !important;
    }
    
    .highlight-item:hover {
        background: #000000 !important;
        color: #ffffff !important;
        border-color: #ffffff !important;
        transform: translateX(5px) !important;
    }
    
    .highlight-item i {
        color: #000000 !important;
    }
    
    .highlight-item:hover i {
        color: #ffffff !important;
    }
    
    .highlight-title {
        color: #000000 !important;
    }
    
    .highlight-item:hover .highlight-title {
        color: #ffffff !important;
    }
}



