/* About Us Section - Enhanced with Advanced Animations */

.AboutUsSection {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 30px 0;
    position: relative;
    overflow: hidden;
}

.AboutUsSection::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e9ecef" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>'); */
    opacity: 0.3;
    z-index: 0;
}

.about-text p {
    font-size: 13px !important;
    line-height: 1.7;
    color: #5a6c7d;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}


/* Text Content with Enhanced Animations */

.about-text {
    padding-right: 30px;
    position: relative;
}

/*.about-text::before {*/
/*    content: '';*/
/*    position: absolute;*/
/*    left: -20px;*/
/*    top: 0;*/
/*    bottom: 0;*/
/*    width: 4px;*/
/*    background: linear-gradient(180deg, #012B3D 0%, #007bff 100%);*/
/*    border-radius: 2px;*/
/*    transform: scaleY(0);*/
/*    animation: slideInLeft 1.2s ease-out 0.5s forwards;*/
/*}*/

@keyframes slideInLeft {
    to {
        transform: scaleY(1);
    }
}

.about-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #012B3D;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    background: linear-gradient(135deg, #012B3D 0%, #007bff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(30px);
    opacity: 0;
    animation: slideInUp 1s ease-out 0.8s forwards;
}

@keyframes slideInUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.about-description {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
    line-height: 23px;
    /* text-align: justify; */
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards;
    font-weight: 700;
    overflow: hidden;
    min-height: 120px;
    /* Ensure consistent height during typing */
}

.about-description::after {
    content: '|';
    position: absolute;
    right: 0;
    top: 0;
    color: #014e60;
    font-weight: bold;
    animation: blink 1s infinite;
    opacity: 0;
    font-size: 1.2em;
    text-shadow: 0 0 5px rgba(1, 78, 96, 0.5);
}

.about-description.typing::after {
    opacity: 1;
    animation: blink 0.8s infinite;
}

.about-description.typing {
    border-right: 2px solid transparent;
    animation: typingBorder 0.1s infinite;
}

@keyframes typingBorder {
    0%,
    50% {
        border-right-color: #014e60;
    }
    51%,
    100% {
        border-right-color: transparent;
    }
}

@keyframes blink {
    0%,
    50% {
        opacity: 1;
    }
    51%,
    100% {
        opacity: 0;
    }
}

.typewriter-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #014e60;
    animation: typing 4s steps(120, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100%;
        opacity: 1;
    }
}

@keyframes blink-caret {
    from,
    to {
        border-color: transparent;
    }
    50% {
        border-color: #014e60;
    }
}

@keyframes fadeInUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


/* Enhanced Features Grid */

.features-grid {
    margin-top: 5px;
    display: grid;
    gap: 3px;
}

.feature-box {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 15px;
    border: 1px solid #e9ecef;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: featureBoxSlideIn 0.8s ease-out forwards;
}

.feature-box:nth-child(1) {
    animation-delay: 2.5s;
}

.feature-box:nth-child(2) {
    animation-delay: 2.8s;
}

.feature-box:nth-child(3) {
    animation-delay: 3.1s;
}

@keyframes featureBoxSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(1, 43, 61, 0.1), transparent);
    transition: left 0.6s ease;
}

.feature-box:hover::before {
    left: 100%;
}

.feature-box:hover {
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
    box-shadow: 0 10px 30px rgba(1, 43, 61, 0.15);
    transform: translateY(-5px) scale(1.02);
    border-color: #192f3b;
}

.feature-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #012B3D 0%, #192f3b 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.feature-box:hover .feature-icon::before {
    width: 100%;
    height: 100%;
}

.feature-icon i {
    font-size: 1.3rem;
    color: #ffffff;
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
}

.feature-box:hover .feature-icon i {
    transform: scale(1.1) rotate(5deg);
}

.feature-content h3 {
    font-size: 15px;
    font-weight: 700;
    color: #012B3D;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.feature-box:hover .feature-content h3 {
    color: #e3f2fd;
}

.feature-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    transition: color 0.3s ease;
}

.feature-box:hover .feature-content p {
    color: #fff;
}


/* Enhanced Image Section */

.about-image {
    position: relative;
}

.image-container {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    transform: perspective(1000px) rotateY(0deg);
    opacity: 0;
    transform: translateX(50px) scale(0.8);
    animation: imageSlideIn 1.2s ease-out 1.8s forwards;
}

@keyframes imageSlideIn {
    0% {
        opacity: 0;
        transform: translateX(50px) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.image-container:hover {
    transform: perspective(1000px) rotateY(5deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}


/* Enhanced typewriter effect for about description */

.about-description.typing {
    background: linear-gradient(90deg, transparent, rgba(1, 78, 96, 0.02), transparent);
    background-size: 200% 100%;
    animation: textShine 2s ease-in-out infinite;
}

.about-description.completed {
    background: linear-gradient(90deg, transparent, rgba(1, 78, 96, 0.05), transparent);
    background-size: 200% 100%;
    animation: textShine 3s ease-in-out infinite;
}

@keyframes textShine {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(1, 43, 61, 0.1) 0%, rgba(0, 123, 255, 0.1) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container:hover::before {
    opacity: 1;
}

.image-container img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: all 0.4s ease;
}

.image-container:hover img {
    transform: scale(1.05);
}


/* Enhanced Stats Box */

.stats-box {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #012B3D 0%, #007bff 100%);
    color: #ffffff;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    min-width: 130px;
    box-shadow: 0 8px 25px rgba(1, 43, 61, 0.3);
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
    overflow: hidden;
}

.stats-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.stats-box:hover::before {
    left: 100%;
}

.stats-box:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(1, 43, 61, 0.4);
}

.stats-number {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #ffffff 0%, #e3f2fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.stats-box:hover .stats-number {
    transform: scale(1.1);
}

.stats-text {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* Floating Animation for Stats Box */

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.stats-box {
    animation: float 3s ease-in-out infinite;
}


/* Responsive Design with Enhanced Animations */

@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-text {
        padding-right: 0;
    }
    .about-title {
        font-size: 2rem;
    }
    .image-container img {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .AboutUsSection {
        padding: 60px 0;
    }
    .about-content {
        gap: 30px;
    }
    .about-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    .about-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    .feature-box {
        padding: 15px;
    }
    .feature-icon {
        width: 45px;
        height: 45px;
        margin-right: 12px;
    }
    .feature-icon i {
        font-size: 1.1rem;
    }
    .feature-content h3 {
        font-size: 1rem;
    }
    .feature-content p {
        font-size: 0.85rem;
    }
    .image-container img {
        height: 300px;
    }
    .stats-box {
        padding: 15px;
        min-width: 110px;
    }
    .stats-number {
        font-size: 1.8rem;
    }
    .stats-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .about-content {
        padding: 0 15px;
    }
    .about-title {
        font-size: 1.5rem;
    }
    .feature-box {
        flex-direction: column;
        text-align: center;
    }
    .feature-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    .image-container img {
        height: 250px;
    }
    .stats-box {
        bottom: 15px;
        left: 15px;
        padding: 12px;
    }
}


/* Additional Hover Effects */

.feature-box:hover .feature-icon {
    transform: rotate(360deg);
}

.image-container:hover .stats-box {
    animation-play-state: paused;
}


/* Smooth scrolling for better animation experience */

html {
    scroll-behavior: smooth;
}


/* Enhanced Text Effects */

.about-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #012B3D 0%, #007bff 100%);
    border-radius: 2px;
    transform: scaleX(0);
    animation: expandLine 1s ease-out 1.5s forwards;
}

@keyframes expandLine {
    to {
        transform: scaleX(1);
    }
}


/* Particle Effect Background */

.AboutUsSection::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(1, 43, 61, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(0, 123, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 40% 40%, rgba(1, 43, 61, 0.05) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes particleFloat {
    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(1deg);
    }
    66% {
        transform: translateY(10px) rotate(-1deg);
    }
}


/* Enhanced Feature Box Glow */

.feature-box::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #012B3D, #007bff, #012B3D);
    border-radius: 17px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-box:hover::after {
    opacity: 1;
}


/* Text Gradient Animation */

.about-title {
    background-size: 200% 200%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}


/* Enhanced Image Container */

.image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 20px;
    background: linear-gradient(45deg, #012B3D, #007bff) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-container:hover::after {
    opacity: 1;
}


/* Stats Box Pulse Effect */

.stats-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, #012B3D 0%, #007bff 100%);
    opacity: 0.7;
    z-index: -1;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}


/* Responsive Enhancements */

@media (max-width: 768px) {
    .about-title::after {
        width: 40px;
        height: 2px;
    }
    .feature-box::after {
        border-radius: 13px;
    }
    .image-container::after {
        border-radius: 15px;
    }
}


/* Performance Optimizations */

.AboutUsSection {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

.about-text,
.about-image,
.feature-box {
    will-change: transform, opacity;
}


/* Loading Animation */

.AboutUsSection.loaded {
    animation: sectionLoad 1s ease-out;
}

@keyframes sectionLoad {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* In-view animations */

.in-view .about-text {
    animation: slideInFromLeft 1s ease-out;
}

.in-view .about-image {
    animation: slideInFromRight 1s ease-out 0.2s both;
}

.in-view .feature-box {
    animation: zoomIn 0.8s ease-out;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* Reduced motion support */

@media (prefers-reduced-motion: reduce) {
    .AboutUsSection *,
    .AboutUsSection *::before,
    .AboutUsSection *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .stats-box {
        animation: none !important;
    }
    .feature-box:hover {
        transform: none !important;
    }
    .image-container:hover {
        transform: none !important;
    }
}


/* Company Logo Display in About Section */

.company-logo-display {
    text-align: center;
    margin-bottom: 2rem;
}

.about-logo {
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.about-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}


/* About Section Styles */