/* About Section Styles */
.about-section {
    padding: 7rem 0;
    background-color: var(--dark);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.section-gradient-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    background-size: 300% 100%;
    animation: gradientBorder 6s ease infinite;
    z-index: 1;
}

@keyframes gradientBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.about-content {
    display: flex;
    gap: 4rem;
    margin-top: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.about-text {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--light);
    opacity: 0.9;
    text-align: justify;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 350px; /* Ensures minimum height on all devices */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(99, 102, 241, 0.1);
    transition: box-shadow 0.5s ease, transform 0.5s ease;
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
    z-index: -1;
    border-radius: 14px;
    opacity: 0.6;
    transition: opacity 0.5s ease;
}

.about-image:hover::before {
    opacity: 0.8;
}

.about-image:hover {
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.3), 0 0 0 2px rgba(99, 102, 241, 0.2);
    transform: translateY(-5px) scale(1.01);
}

.about-image img {
    max-width: 100%;
    width: 100%; /* Force full width */
    height: auto;
    min-height: 350px; /* Minimum height to maintain aspect */
    transform: translateY(0);
    transition: transform 0.5s ease, filter 0.5s ease;
    object-fit: contain; /* Ensures the entire SVG is visible */
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.about-image:hover img {
    transform: translateY(-5px);
    filter: drop-shadow(0 8px 20px rgba(99, 102, 241, 0.2));
}

.about-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.1));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.2);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.counter-value {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 4rem;
    font-weight: 800;
    filter: drop-shadow(0 0 3px rgba(99, 102, 241, 0.5));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.stat-item:hover .counter-value {
    transform: scale(1.05);
    filter: drop-shadow(0 0 5px rgba(99, 102, 241, 0.8));
}

.stat-number img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.stat-item:hover .stat-number img {
    transform: scale(1.05);
}

.stat-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--light);
    opacity: 0.8;
    margin-top: 0.75rem;
}

/* Responsive styles */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
        gap: 3rem;
    }
    
    .about-image {
        order: -1;
        width: 100%;
        max-width: 600px; /* Control max width on tablets */
        margin: 0 auto;
    }
    
    .about-stats {
        flex-wrap: wrap;
    }
    
    .stat-item {
        flex: 1 0 calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 5rem 0;
    }
    
    .about-image {
        max-width: 100%;
        min-height: 300px;
    }
    
    .about-image img {
        min-height: 300px;
    }
    
    .counter-value {
        font-size: 3.5rem;
    }
}

@media (max-width: 576px) {
    .about-section {
        padding: 5rem 0;
    }
    
    .about-image {
        min-height: 250px;
    }
    
    .about-image img {
        min-height: 250px;
    }
    
    .stat-item {
        flex: 1 0 100%;
    }
    
    .counter-value {
        font-size: 3rem;
    }
    
    .stat-number img {
        max-width: 90%;
        margin: 0 auto;
    }
} 