/* About Us Section Styles */
.about-section {
    position: relative;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 50%, #f0fdf4 100%);
    padding: 120px 0;
    overflow: hidden;
}

/* Animation Classes */
.about-section.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

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

.about-text.animate-fade-in {
    animation: fadeInLeft 1s ease-out 0.2s both;
}

[dir="ltr"] .about-text.animate-fade-in {
    animation: fadeInRight 1s ease-out 0.2s both;
}

.about-visual.animate-fade-in {
    animation: fadeInRight 1s ease-out 0.4s both;
}

[dir="ltr"] .about-visual.animate-fade-in {
    animation: fadeInLeft 1s ease-out 0.4s both;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section-label.animate-fade-in {
    animation: fadeInDown 0.6s ease-out 0.3s both;
}

.section-title.animate-fade-in {
    animation: fadeInDown 0.8s ease-out 0.4s both;
}

.section-description.animate-fade-in {
    animation: fadeInDown 0.8s ease-out 0.5s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-item {
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInSlide 0.6s ease-out both;
}

[dir="ltr"] .service-item {
    transform: translateX(30px);
}

.service-item:nth-child(1) {
    animation-delay: 0.6s;
}

.service-item:nth-child(2) {
    animation-delay: 0.7s;
}

.service-item:nth-child(3) {
    animation-delay: 0.8s;
}

@keyframes fadeInSlide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-button.animate-fade-in {
    animation: fadeInUp 0.8s ease-out 0.9s both;
}

.about-image {
    opacity: 0;
    animation: fadeInScale 1s ease-out both;
}

.about-image-1 {
    animation-delay: 0.5s;
}

.about-image-2 {
    animation-delay: 0.7s;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.about-stat-box {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInBounce 1s ease-out 0.9s both;
}

@keyframes fadeInBounce {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8);
    }
    60% {
        opacity: 1;
        transform: translateY(-10px) scale(1.05);
    }
    80% {
        transform: translateY(5px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.decoration-cube {
    animation: rotateFloat 8s ease-in-out infinite;
}

@keyframes rotateFloat {
    0%, 100% {
        transform: rotate(45deg) translateY(0px) translateX(0px);
    }
    25% {
        transform: rotate(50deg) translateY(-15px) translateX(10px);
    }
    50% {
        transform: rotate(40deg) translateY(-10px) translateX(-8px);
    }
    75% {
        transform: rotate(48deg) translateY(-20px) translateX(12px);
    }
}

.decoration-circle {
    animation: pulseRotate 6s ease-in-out infinite;
}

@keyframes pulseRotate {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1) rotate(180deg);
        opacity: 0.4;
    }
}

.decoration-wave {
    animation: waveMove 4s ease-in-out infinite;
}

@keyframes waveMove {
    0%, 100% {
        transform: rotate(-5deg) translateX(0px);
        opacity: 0.4;
    }
    50% {
        transform: rotate(-8deg) translateX(20px);
        opacity: 0.6;
    }
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

[dir="rtl"] .about-content {
    direction: rtl;
}

[dir="ltr"] .about-content {
    direction: ltr;
}

/* Section Header */
.about-text {
    max-width: 100%;
}

.section-header {
    margin-bottom: 40px;
}

.section-label-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

[dir="rtl"] .section-label-wrapper {
    flex-direction: row;
}

[dir="ltr"] .section-label-wrapper {
    flex-direction: row;
}

.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-color);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.section-label-line {
    flex: 1;
    height: 2px;
    background: repeating-linear-gradient(
        to right,
        var(--border-color) 0px,
        var(--border-color) 8px,
        transparent 8px,
        transparent 16px
    );
    max-width: 100px;
}

[dir="ltr"] .section-label-line {
    background: repeating-linear-gradient(
        to left,
        var(--border-color) 0px,
        var(--border-color) 8px,
        transparent 8px,
        transparent 16px
    );
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.section-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 95%;
    margin-bottom: 0;
}

[dir="ltr"] .section-description {
    max-width: 90%;
}

/* About Services List */
.about-services {
    margin: 35px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.6;
}

.service-item i {
    color: var(--primary-color);
    font-size: 18px;
    flex-shrink: 0;
}

[dir="rtl"] .service-item {
    flex-direction: row;
}

[dir="ltr"] .service-item {
    flex-direction: row;
}

/* About Button */
.about-button {
    margin-top: 40px;
}

.about-button .btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[dir="rtl"] .about-button .btn i {
    transform: rotate(180deg);
}

/* About Visual */
.about-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* About Images Wrapper */
.about-images-wrapper {
    position: relative;
    width: 100%;
    max-width: 550px;
    height: 500px;
}

.about-image {
    position: absolute;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-image-1 {
    width: 400px;
    height: 300px;
    top: 0;
    right: 0;
    z-index: 2;
}

[dir="ltr"] .about-image-1 {
    right: auto;
    left: 0;
}

.about-image-2 {
    width: 380px;
    height: 280px;
    bottom: 0;
    left: 0;
    z-index: 1;
}

[dir="ltr"] .about-image-2 {
    left: auto;
    right: 0;
}

/* Statistics Box */
.about-stat-box {
    position: absolute;
    bottom: 60px;
    right: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(11, 106, 50, 0.3);
    z-index: 3;
    min-width: 200px;
    text-align: center;
}

[dir="ltr"] .about-stat-box {
    right: auto;
    left: 40px;
}

.stat-box-number {
    font-size: 56px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-box-label {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: capitalize;
}

/* Decorative Elements */
.about-decorations {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

[dir="ltr"] .about-decorations {
    right: auto;
    left: 0;
}

.decoration-cube {
    position: absolute;
    top: -20px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transform: rotate(45deg);
    opacity: 0.15;
    border-radius: 8px;
}

[dir="ltr"] .decoration-cube {
    right: auto;
    left: -30px;
}

.decoration-circle {
    position: absolute;
    top: 20px;
    right: -80px;
    width: 200px;
    height: 200px;
    border: 3px dashed var(--primary-light);
    border-radius: 50%;
    opacity: 0.3;
}

[dir="ltr"] .decoration-circle {
    right: auto;
    left: -80px;
}

.decoration-wave {
    position: absolute;
    bottom: 80px;
    right: 20px;
    width: 150px;
    height: 4px;
    background: repeating-linear-gradient(
        to right,
        var(--primary-light) 0px,
        var(--primary-light) 20px,
        transparent 20px,
        transparent 40px
    );
    opacity: 0.4;
    transform: rotate(-5deg);
}

[dir="ltr"] .decoration-wave {
    right: auto;
    left: 20px;
    background: repeating-linear-gradient(
        to left,
        var(--primary-light) 0px,
        var(--primary-light) 20px,
        transparent 20px,
        transparent 40px
    );
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-section {
        padding: 100px 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-text {
        order: 1;
    }

    .about-visual {
        order: 2;
    }

    .section-title {
        font-size: 36px;
    }

    .about-images-wrapper {
        max-width: 100%;
        height: 450px;
    }

    .about-image-1 {
        width: 350px;
        height: 260px;
    }

    .about-image-2 {
        width: 330px;
        height: 240px;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 80px 0;
    }

    .about-content {
        gap: 50px;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .section-description {
        font-size: 16px;
    }

    .about-services {
        margin: 30px 0;
    }

    .service-item {
        font-size: 15px;
    }

    .about-images-wrapper {
        height: 400px;
    }

    .about-image-1 {
        width: 300px;
        height: 220px;
    }

    .about-image-2 {
        width: 280px;
        height: 200px;
    }

    .about-stat-box {
        bottom: 40px;
        right: 20px;
        padding: 24px 32px;
        min-width: 180px;
    }

    [dir="ltr"] .about-stat-box {
        right: auto;
        left: 20px;
    }

    .stat-box-number {
        font-size: 42px;
    }

    .stat-box-label {
        font-size: 14px;
    }

    .decoration-cube {
        width: 80px;
        height: 80px;
    }

    .decoration-circle {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 60px 0;
    }

    .about-content {
        gap: 40px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-description {
        font-size: 15px;
    }

    .about-services {
        margin: 25px 0;
        gap: 14px;
    }

    .service-item {
        font-size: 14px;
    }

    .about-images-wrapper {
        height: 350px;
    }

    .about-image-1 {
        width: 260px;
        height: 190px;
    }

    .about-image-2 {
        width: 240px;
        height: 170px;
    }

    .about-stat-box {
        bottom: 30px;
        right: 15px;
        padding: 20px 24px;
        min-width: 150px;
    }

    [dir="ltr"] .about-stat-box {
        right: auto;
        left: 15px;
    }

    .stat-box-number {
        font-size: 36px;
    }

    .stat-box-label {
        font-size: 13px;
    }

    .decoration-cube {
        width: 60px;
        height: 60px;
        top: -10px;
    }

    .decoration-circle {
        width: 120px;
        height: 120px;
    }

    .decoration-wave {
        width: 100px;
        bottom: 60px;
    }
}
