/* ---------------- About Hero ---------------- */
.about-hero {
    background: url('https://cdn.pixabay.com/photo/2017/08/10/07/00/electricity-2611745_1280.jpg') center/cover no-repeat;
    padding: 120px 8%;
    text-align: center;
    color: #fff;
    position: relative;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.about-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: auto;
    animation: fadeInUp 1s ease forwards;
}

.about-hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.about-hero p {
    font-size: 18px;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* ---------------- Section Padding ---------------- */
.section-padding {
    padding: 80px 8%;
}

/* ---------------- Brand Story / Timeline ---------------- */
.brand-story .section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
}

.timeline {
    position: relative;
    margin-top: 50px;
}

/* Vertical line in the middle (desktop) */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--french-blue);
}

/* Timeline items */
.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

/* Odd items on left */
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

/* Even items on right */
.timeline-item:nth-child(even) {
    left: 50%;
}

/* Timeline dots */
.timeline-item::after {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--pumpkin);
    border-radius: 50%;
    border: 4px solid var(--white);
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -12px;
}

.timeline-item:nth-child(even)::after {
    left: -12px;
}

.timeline-year {
    font-size: 20px;
    font-weight: bold;
    color: var(--french-blue);
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.timeline-content p {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}


/* ---------------- Mission & Vision ---------------- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.mission,
.vision {
    background: var(--linen);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.mission:hover,
.vision:hover {
    transform: translateY(-6px);
}

.mission h2,
.vision h2 {
    margin-bottom: 12px;
    color: var(--french-blue);
}

/* ---------------- Why Choose Us ---------------- */
.why-choose .section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
}

.choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    justify-items: center;
}

.choose-card {
    background: var(--ivory);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.choose-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.choose-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.choose-card:hover .choose-icon {
    transform: scale(1.2);
}

.choose-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--french-blue);
}

.choose-card p {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

/* ---------------- Company Values ---------------- */
.company-values .section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    justify-items: center;
}

.value-card {
    background: var(--ivory);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.value-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.value-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.value-card p {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

/* ---------------- Animations ---------------- */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 768px) {
    .timeline::before {
        left: 10px;
        /* Move the line to the left for vertical stacking */
        transform: none;
        height: 100%;
    }

    .timeline-item {
        width: 100%;
        padding: 20px 20px 20px 50px;
        /* space for the line */
        text-align: left !important;
        left: 0 !important;
    }

    .timeline-item::after {
        left: 0 !important;
        /* dot aligns with line */
        right: auto !important;
        top: 20px;
    }
}
