﻿/*=============== ABOUT PAGE STYLES ===============*/

/* General styles for the about page hero section */
.about-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(239, 193, 169, 0.05) 0%, transparent 100%);
}

/* About page specific orbe styling */
#about-hero .home__orbe {
    background: linear-gradient(180deg,
            rgba(239, 193, 169, 0.8) 0%,
            rgba(239, 193, 169, 0.4) 50%,
            rgba(239, 193, 169, 0.1) 100%);
    border-radius: 135px 135px 0 0;
}

/* About page hero background enhancement */
#about-hero {
    background: linear-gradient(135deg,
            rgba(239, 193, 169, 0.08) 0%,
            rgba(255, 255, 255, 0.02) 50%,
            transparent 100%),
        var(--body-color);
}

/* Dark theme adjustments for about hero */
body.dark-theme #about-hero {
    background: linear-gradient(135deg,
            rgba(239, 193, 169, 0.05) 0%,
            rgba(239, 193, 169, 0.02) 50%,
            transparent 100%),
        var(--body-color);
}

body.dark-theme #about-hero .home__orbe {
    background: linear-gradient(180deg,
            rgba(239, 193, 169, 0.6) 0%,
            rgba(239, 193, 169, 0.3) 50%,
            rgba(239, 193, 169, 0.1) 100%);
}

/* Styles for the decorative circles in the hero, if they were used */
/* .hero-bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.1;
} */

/*=============== HERO SECTION ===============*/
.about-hero-subtitle {
    display: inline-block;
    color: var(--second-color);
    font-weight: 600;
    font-size: var(--small-font-size);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    padding: 0.5rem 1.5rem;
    background: rgba(239, 193, 169, 0.1);
    border-radius: 2rem;
    border: 2px solid rgba(239, 193, 169, 0.3);
}

/* About page specific home section styling */
#about-hero.home.section {
    background: bottom;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Ensure about hero image container has proper styling */
#about-hero .home__img {
    background: var(--body-color);
    box-shadow: 0 16px 32px rgba(239, 193, 169, 0.15);
}

/* About page image styling */
#about-hero .home__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 125px 125px 12px 12px;
}

.about-hero-title-main {
    display: block;
    font-size: var(--biggest-font-size);
    color: var(--title-color);
    font-weight: 700;
    line-height: 1.2;
}

.about-hero-title-sub {
    display: block;
    font-size: var(--h2-font-size);
    color: var(--text-color);
    font-weight: 500;
    margin-top: 1rem;
}

.about-hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.button-secondary {
    background: transparent;
    border: 2px solid #efc1a9;
    color: var(--title-color);
}

.button-secondary:hover {
    background: #efc1a9;
    color: #fff;
}

/*=============== STORY TIMELINE ===============*/
.story-section {
    background: var(--container-color);
    position: relative;
}

.story-header {
    text-align: center;
    margin-bottom: 4rem;
}

.story-timeline-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 3rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(1) {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.3s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.5s;
}

.timeline-item:nth-child(4) {
    animation-delay: 0.7s;
}

.timeline-item:nth-child(5) {
    animation-delay: 0.9s;
}

.timeline-line {
    width: 4px;
    height: 120px;
    background: linear-gradient(180deg, #efc1a9 0%, rgba(239, 193, 169, 0.3) 100%);
    position: relative;
    border-radius: 2px;
}

.timeline-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #efc1a9, #f5d4c1);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 6px rgba(239, 193, 169, 0.2);
    border: 3px solid var(--container-color);
}

.timeline-dot.alt {
    background: linear-gradient(135deg, #f5d4c1, #efc1a9);
}

.timeline-content {
    background: var(--body-color);
    padding: 2rem;
    border-radius: 1rem;
    border: 2px solid rgba(239, 193, 169, 0.2);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: #efc1a9;
    box-shadow: 0 8px 24px rgba(239, 193, 169, 0.15);
}

.timeline-content.left {
    text-align: right;
}

.timeline-title {
    font-size: var(--h3-font-size);
    color: var(--title-color);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.timeline-text {
    color: var(--text-color);
    line-height: 1.6;
}

@media screen and (max-width: 768px) {
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .timeline-line {
        width: 100%;
        height: 4px;
    }

    .timeline-content.left {
        text-align: left;
    }
}

/* Styles for the split section, if used */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

@media (max-width: 968px) {
    .split-section {
        grid-template-columns: 1fr;
    }
}

/*=============== MISSION & VISION SECTION ===============*/
.purpose-section {
    background: var(--body-color);
    position: relative;
    overflow: hidden;
}

.purpose-header {
    text-align: center;
    margin-bottom: 4rem;
}

.purpose-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.purpose-item {
    background: var(--container-color);
    padding: 2.5rem;
    border-radius: 1.5rem;
    text-align: center;
    border: 2px solid rgba(239, 193, 169, 0.2);
    transition: all 0.4s ease;
}

.purpose-item:hover {
    border-color: #efc1a9;
    box-shadow: 0 12px 32px rgba(239, 193, 169, 0.2);
    transform: translateY(-10px);
}

.purpose-circle {
    width: 250px;
    height: 250px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #efc1a9, #f5d4c1);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(239, 193, 169, 0.3);
}

.purpose-circle__decoration-1 {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.purpose-circle__decoration-2 {
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.purpose-circle__decoration-1--alt {
    top: -30px;
    left: -30px;
    right: auto;
}

.purpose-circle__decoration-2--alt {
    bottom: -40px;
    right: -40px;
    left: auto;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.purpose-text {
    color: var(--text-color);
    line-height: 1.7;
    font-size: var(--normal-font-size);
}

@media screen and (max-width: 768px) {
    .purpose-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .purpose-circle {
        width: 200px;
        height: 200px;
    }
}

/*=============== STATISTICS SECTION ===============*/
.stats-section {
    position: relative;
    overflow: hidden;
    background: var(--container-color);
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(239, 193, 169, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.stats-section__header {
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stats-card {
    background: var(--container-color);
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.stats-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stats-card:nth-child(2) {
    animation-delay: 0.3s;
}

.stats-card:nth-child(3) {
    animation-delay: 0.5s;
}

.stats-card:nth-child(4) {
    animation-delay: 0.7s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-card__top-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(292deg, #efc1a9, hwb(0 100% 0%));
}

.stats-card__icon {
    font-size: 3rem;
    color: var(--second-color);
    /* Original was linear-gradient, using var for consistency */
    margin-bottom: 1rem;
    display: block;
}

.stats-card__number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stats-card__number span {
    color: var(--second-color);
    /* Original was linear-gradient */
    font-size: 2rem;
}

.stats-card__unit {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.stats-card__bottom-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(292deg, #efc1a9, hwb(0 100% 0%));
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* Media queries for stats section */
@media screen and (max-width: 968px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media screen and (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Values Section (using project-card structure) */
.values-section {
    background-color: var(--container-color);
}

.values-section__description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.value-card__image--innovation {
    background: linear-gradient(135deg, #efc1a9, #f5d4c1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.value-card__image--innovation .bx {
    font-size: 5rem;
    color: #fff;
}

.value-card__image--sustainability {
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.value-card__image--sustainability .bx {
    font-size: 5rem;
    color: #fff;
}

.value-card__image--luxury {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.value-card__image--luxury .bx {
    font-size: 5rem;
    color: #fff;
}

/* Services Section (using project-card structure) */
.services-section__description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.service-card__image--ion {
    background-image: url('../img/ion-smart.jpg');
}

.service-card__image--midtower {
    background-image: url('../img/MidTower.jpg');
}

.service-card__image--harmont {
    background-image: url('../img/Harmont.jpg');
}

.service-card__icon-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.service-card__icon {
    font-size: 2rem;
    color: #efc1a9;
}

/* Founder Section */
.founder-section .value__img-caption {
    text-align: center;
    color: #efc1a9;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Outline Style */
.outline-style {
    border: 1px solid var(--border-color);
    box-shadow: 0 0 0 0px rgba(239, 193, 169, 0);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.outline-style:hover {
    border-color: var(--second-color);
    box-shadow: 0 0 0 3px rgba(239, 193, 169, 0.2);
}

/* =============== SCROLL UP BUTTON - ALWAYS VISIBLE =============== */
/* .scrollup {
    bottom: 2rem !important;
    opacity: 1 !important;
    visibility: visible !important;
} */

/* .show-scroll {
    bottom: 3rem !important;
} */

/*=============== FOUNDER SECTION STYLES ===============*/

/* Founder Section */
.founder-section-wrapper {
    background-color: var(--container-color);
    padding: 5rem 0;
}

/* Section Header */
.founder-header {
    text-align: center;
    margin-bottom: 4rem;
}

.founder-header__description {
    max-width: 700px;
    margin: 1rem auto 0;
    text-align: center;
}

/* Founder Profile Card */
.founder-profile-card {
    background: var(--body-color);
    border-radius: 1.5rem;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 12px 32px hsla(228, 66%, 45%, .1);
}

.founder-profile-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

/* Left Side - Image & Info */
.founder-image-section {
    text-align: center;
}

.founder-image-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.founder-image-wrapper .value__orbe {
    width: 265px;
    height: 316px;
}

.founder-image-container {
    position: relative;
    z-index: 1;
}

.founder-image {
    width: 250px;
    height: 300px;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 12px 24px hsla(228, 66%, 45%, .2);
}

/* Founder Orbe with Image Background */
.founder-orbe {
    /* background-image: url('../img/Mr_ishak.jpg'); */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
}

.founder-name {
    font-size: 1.75rem;
    color: var(--title-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.founder-title {
    color: hsl(25, 83%, 53%);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.founder-title i {
    margin-right: 0.5rem;
}

/* Social Media */
.founder-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 2px solid var(--first-color-lighten);
}

.founder-social__link {
    width: 45px;
    height: 45px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--first-color-lighten);
    color: hsl(25, 83%, 53%);
    transition: all 0.3s;
    text-decoration: none;
}

.founder-social__link:hover {
    background: var(--first-color);
    color: #fff;
    transform: translateY(-3px);
}

.founder-social__link i {
    font-size: 1.5rem;
}

/* Right Side - Biography */
.founder-bio__name {
    font-size: 2rem;
    color: var(--title-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-align: center;
}

.founder-bio__position {
    color: hsl(25, 83%, 53%);
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.founder-bio__position i {
    font-size: 1.3rem;
}

.founder-bio__text {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.founder-bio__text:last-of-type {
    margin-bottom: 2rem;
}

.founder-bio__text strong {
    color: var(--first-color);
}

/* Companies Founded */
.founder-companies-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.founder-company-card {
    background: hsla(228, 66%, 45%, .2);
    padding: 1.25rem;
    border-radius: 0.75rem;
    border-left: 4px solid hsl(25, 83%, 53%);
}

.founder-company-card__icon {
    font-size: 2rem;
    color: #efc1a9;
    margin-bottom: 0.5rem;
    display: block;
}

.founder-company-card__name {
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.founder-company-card__location {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.founder-company-card__description {
    font-size: 0.85rem;
    color: #000;
}



/* Founder Responsive Design */
@media screen and (max-width: 1023px) {
    .founder-profile-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .founder-companies-grid {
        grid-template-columns: 1fr;
    }

    .founder-bio {
        text-align: center;
    }

    /* Hide redundant name/title in bio on mobile, use the one with socials */
    .founder-bio__name,
    .founder-bio__position {
        display: none !important;
    }
}

@media screen and (max-width: 767px) {
    .founder-section-wrapper {
        padding: 3rem 0;
    }

    .founder-profile-card {
        padding: 2rem 1rem !important;
        /* Reduced side padding */
    }

    .founder-header {
        margin-bottom: 2.5rem;
    }

    .founder-image-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .founder-image-wrapper {
        margin-bottom: 2rem;
    }

    .founder-image {
        width: 250px !important;
        height: 300px !important;
        max-width: 100%;
        border-radius: 1rem;
    }

    .founder-name {
        font-size: 1.6rem !important;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .founder-title {
        font-size: 1.1rem !important;
        margin-bottom: 1.5rem;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .founder-title i {
        margin: 0;
        /* Use gap instead */
    }

    .founder-social {
        width: 100%;
        justify-content: center;
        flex-wrap: nowrap;
        /* Keep them in one line on mobile unless very small */
        gap: 0.75rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(239, 193, 169, 0.2);
    }

    .founder-social__link {
        width: 45px !important;
        height: 45px !important;
    }

    .founder-bio__text {
        font-size: 0.95rem;
        text-align: center !important;
    }
}

/* RTL Specifics */
body.rtl .founder-title i {
    margin: 0;
}

/* Dark Mode Styles for About Page */
body.dark-theme .founder-company-card__description {
    color: #fff;
}