/* About/Story Section Styles - BEM Methodology */

.about-story {
    width: 100%;
    padding: 120px 20px;
    background-color: #ffffff;
    direction: ltr;
    position: relative;
    overflow: hidden;
}

.about-story::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
}

.about-story__container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.about-story__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.about-story__wrapper.about-story__wrapper--visible {
    opacity: 1;
    transform: translateY(0);
}

.about-story__wrapper--image-right {
    direction: rtl;
}

.about-story__wrapper--image-right .about-story__content-wrapper {
    direction: ltr;
}

.about-story__image-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s, 
                transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
    will-change: opacity, transform;
}

.about-story__wrapper--visible .about-story__image-wrapper {
    opacity: 1;
    transform: scale(1);
}

.about-story__image-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.about-story__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.about-story__wrapper:hover .about-story__image {
    transform: scale(1.05);
}

.about-story__image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.about-story__wrapper:hover .about-story__image-overlay {
    opacity: 1;
}

.about-story__content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-story__content {
    max-width: 500px;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s, 
                transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s;
    will-change: opacity, transform;
}

.about-story__wrapper--visible .about-story__content {
    opacity: 1;
    transform: translateY(0);
}

.about-story__subtitle {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #808080;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s, 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s;
    will-change: opacity, transform;
}

.about-story__wrapper--visible .about-story__subtitle {
    opacity: 1;
    transform: translateY(0);
}

.about-story__title {
    font-size: 42px;
    font-weight: 700;
    color: #000000;
    line-height: 1.2;
    margin: 0 0 30px 0;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s, 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s;
    will-change: opacity, transform;
}

.about-story__wrapper--visible .about-story__title {
    opacity: 1;
    transform: translateY(0);
}

.about-story__text {
    font-size: 16px;
    font-weight: 400;
    color: #666666;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s, 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s;
    will-change: opacity, transform;
}

.about-story__wrapper--visible .about-story__text {
    opacity: 1;
    transform: translateY(0);
}

.about-story__text p {
    margin: 0 0 20px 0;
}

.about-story__text p:last-child {
    margin-bottom: 0;
}

.about-story__button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1s, 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1s,
                all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.about-story__wrapper--visible .about-story__button {
    opacity: 1;
    transform: translateY(0);
}

.about-story__button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.about-story__button:hover::before {
    width: 300px;
    height: 300px;
}

.about-story__button:hover {
    background-color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-story__button:active {
    transform: translateY(0);
}

.about-story__button svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.about-story__button:hover svg {
    transform: translateX(5px);
}

.about-story__button span {
    position: relative;
    z-index: 1;
}

/* ============================================
   RESPONSIVE STYLES - Complete & Enhanced
   ============================================ */

/* Large Devices (Desktops, 1200px to 1399px) */
@media (max-width: 1399.98px) {
    .about-story__container {
        max-width: 1200px !important;
    }

    .about-story__wrapper {
        gap: 70px !important;
    }

    .about-story__title {
        font-size: 38px !important;
    }
}

/* Medium-Large Devices (Small Desktops, 992px to 1199px) */
@media (max-width: 1199.98px) {
    .about-story {
        padding: 100px 20px !important;
    }

    .about-story__container {
        max-width: 100% !important;
    }

    .about-story__wrapper {
        gap: 60px !important;
    }

    .about-story__title {
        font-size: 36px !important;
    }

    .about-story__text {
        font-size: 15px !important;
    }
}

/* Medium Devices (Tablets, 768px to 991px) */
@media (max-width: 991.98px) {
    .about-story {
        padding: 80px 20px !important;
    }

    .about-story__container {
        max-width: 100% !important;
    }

    .about-story__wrapper {
        grid-template-columns: 1fr !important;
        gap: 50px !important;
        justify-items: center !important;
        text-align: center !important;
    }

    .about-story__wrapper--image-right {
        direction: ltr !important;
    }

    .about-story__image-wrapper {
        width: 100% !important;
        max-width: 600px !important;
        padding-bottom: 70% !important;
        margin: 0 auto !important;
    }

    .about-story__content-wrapper {
        width: 100% !important;
        justify-content: center !important;
    }

    .about-story__content {
        max-width: 100% !important;
        text-align: center !important;
        width: 100% !important;
    }

    .about-story__subtitle {
        text-align: center !important;
        margin-bottom: 12px !important;
    }

    .about-story__title {
        font-size: 32px !important;
        text-align: center !important;
        margin-bottom: 25px !important;
    }

    .about-story__text {
        font-size: 15px !important;
        text-align: center !important;
        margin-bottom: 35px !important;
    }

    .about-story__button {
        margin: 0 auto !important;
        display: inline-flex !important;
    }
}

/* Small Devices (Landscape Phones, 576px to 767px) */
@media (max-width: 767.98px) {
    .about-story {
        padding: 60px 15px !important;
    }

    .about-story__container {
        max-width: 100% !important;
    }

    .about-story__wrapper {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
        justify-items: center !important;
        text-align: center !important;
    }

    .about-story__wrapper--image-right {
        direction: ltr !important;
    }

    .about-story__image-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding-bottom: 80% !important;
        margin: 0 auto !important;
    }

    .about-story__content-wrapper {
        width: 100% !important;
        justify-content: center !important;
    }

    .about-story__content {
        max-width: 100% !important;
        text-align: center !important;
        width: 100% !important;
    }

    .about-story__subtitle {
        font-size: 11px !important;
        text-align: center !important;
        margin-bottom: 10px !important;
        letter-spacing: 1.5px !important;
    }

    .about-story__title {
        font-size: 28px !important;
        text-align: center !important;
        margin-bottom: 20px !important;
        line-height: 1.3 !important;
    }

    .about-story__text {
        font-size: 14px !important;
        line-height: 1.7 !important;
        margin-bottom: 30px !important;
        text-align: center !important;
    }

    .about-story__button {
        padding: 12px 28px !important;
        font-size: 12px !important;
        letter-spacing: 1.2px !important;
        margin: 0 auto !important;
        display: inline-flex !important;
    }

    .about-story__button svg {
        width: 14px !important;
        height: 14px !important;
    }
}

/* Extra Small Devices (Portrait Phones, up to 575px) */
@media (max-width: 575.98px) {
    .about-story {
        padding: 50px 12px !important;
    }

    .about-story__container {
        max-width: 100% !important;
    }

    .about-story__wrapper {
        grid-template-columns: 1fr !important;
        gap: 35px !important;
        justify-items: center !important;
        text-align: center !important;
    }

    .about-story__wrapper--image-right {
        direction: ltr !important;
    }

    .about-story__image-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding-bottom: 90% !important;
        margin: 0 auto !important;
    }

    .about-story__content-wrapper {
        width: 100% !important;
        justify-content: center !important;
    }

    .about-story__content {
        max-width: 100% !important;
        text-align: center !important;
        width: 100% !important;
    }

    .about-story__subtitle {
        font-size: 10px !important;
        text-align: center !important;
        margin-bottom: 8px !important;
        letter-spacing: 1px !important;
    }

    .about-story__title {
        font-size: 24px !important;
        text-align: center !important;
        letter-spacing: 0.5px !important;
        margin-bottom: 18px !important;
        line-height: 1.3 !important;
    }

    .about-story__text {
        font-size: 13px !important;
        line-height: 1.6 !important;
        margin-bottom: 25px !important;
        text-align: center !important;
    }

    .about-story__text p {
        margin-bottom: 15px !important;
    }

    .about-story__button {
        padding: 10px 24px !important;
        font-size: 11px !important;
        letter-spacing: 1px !important;
        margin: 0 auto !important;
        display: inline-flex !important;
        width: auto !important;
    }

    .about-story__button svg {
        width: 13px !important;
        height: 13px !important;
    }
}

/* Very Small Devices (Small Phones, up to 375px) */
@media (max-width: 374.98px) {
    .about-story {
        padding: 40px 10px !important;
    }

    .about-story__wrapper {
        gap: 30px !important;
    }

    .about-story__image-wrapper {
        padding-bottom: 100% !important;
    }

    .about-story__subtitle {
        font-size: 9px !important;
        letter-spacing: 0.8px !important;
    }

    .about-story__title {
        font-size: 20px !important;
        margin-bottom: 15px !important;
    }

    .about-story__text {
        font-size: 12px !important;
        margin-bottom: 20px !important;
    }

    .about-story__button {
        padding: 9px 20px !important;
        font-size: 10px !important;
        letter-spacing: 0.8px !important;
    }

    .about-story__button svg {
        width: 12px !important;
        height: 12px !important;
    }
}

/* Landscape Orientation (Mobile) */
@media (max-width: 991.98px) and (orientation: landscape) {
    .about-story {
        padding: 50px 15px !important;
    }

    .about-story__wrapper {
        gap: 35px !important;
    }

    .about-story__image-wrapper {
        padding-bottom: 60% !important;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .about-story__button {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1) !important;
        tap-highlight-color: rgba(0, 0, 0, 0.1) !important;
    }

    .about-story__button:active {
        transform: translateY(0) scale(0.98) !important;
    }

    .about-story__link:active {
        transform: scale(0.98) !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .about-story__wrapper,
    .about-story__image-wrapper,
    .about-story__content,
    .about-story__subtitle,
    .about-story__title,
    .about-story__text,
    .about-story__button,
    .about-story__image {
        transition: none;
        animation: none;
    }
}

