/* About Us Page Specific Styles */

/* Story Section - moved from header.php */
.story-section {
    padding: 8rem 2rem;
    background: linear-gradient(180deg, var(--dark-navy) 0%, var(--deep-blue) 100%);
}

.story-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: left;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Hero Section */
.about-hero {
    height: 60vh;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--deep-blue) 100%);
}

.about-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: 1;
}

.about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(1, 44, 78, 0.8) 0%,
        rgba(1, 44, 78, 0.6) 50%,
        rgba(212, 175, 55, 0.2) 100%
    );
    z-index: 2;
}

.about-hero-content {
    position: relative;
    z-index: 3;
    text-align: left;
    padding: 0 2rem;
    max-width: 1000px;
    animation: fadeIn 1s ease-out;
}

.about-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.375rem, 5.7vw, 3.8rem);
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.about-hero-subtitle {
    font-size: clamp(1.1875rem, 2.85vw, 1.6625rem);
    font-weight: 300;
    color: var(--white);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* About Content Section */
.about-content-section {
    padding: 8rem 2rem;
    background: var(--dark-navy);
}

.about-content-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image-container {
    position: relative;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border: 3px solid var(--gold);
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.about-text {
    color: var(--white);
}

.about-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 4.75vw, 2.85rem);
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 2rem;
}

.about-text p {
    font-size: var(--font-size-body-lg);
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: justify;
}

.about-text ul {
    list-style-type: none;
    padding: 0;
    margin: 2rem 0;
}

.about-text li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1rem;
    font-size: var(--font-size-body);
    line-height: 1.6;
}

.about-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
}

/* History Timeline Section */
.history-section {
    padding: 8rem 2rem;
    background: linear-gradient(180deg, var(--dark-navy) 0%, var(--deep-blue) 50%, var(--dark-navy) 100%);
}

.history-container {
    max-width: 1200px;
    margin: 0 auto;
}

.history-title {
    font-family: var(--font-heading);
    font-size: clamp(2.375rem, 4.75vw, 3.325rem);
    font-weight: 700;
    color: var(--gold);
    text-align: left;
    margin-bottom: 5rem;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--gold);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 6rem;
    width: 100%;
    display: flex;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
}

.timeline-content {
    width: calc(50% - 50px);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.3);
    position: relative;
    transition: all 0.4s ease;
}

.timeline-content:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
    border-color: var(--gold);
}

.timeline-year {
    position: absolute;
    top: 0;
    width: 100px;
    height: 40px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--dark-navy);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 1.14rem;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.timeline-item:nth-child(odd) .timeline-year {
    right: -120px;
}

.timeline-item:nth-child(even) .timeline-year {
    left: -120px;
}

.timeline-marker {
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--gold);
    border-radius: 50%;
    border: 4px solid var(--dark-navy);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.3);
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -60px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -60px;
}

.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.425rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 1rem;
}

.timeline-description {
    font-size: var(--font-size-body);
    line-height: 1.6;
    color: var(--white);
    text-align: justify;
}

/* Team Section */
.team-section {
    padding: 8rem 2rem;
    background: var(--dark-navy);
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
}

.team-title {
    font-family: var(--font-heading);
    font-size: clamp(2.375rem, 4.75vw, 3.325rem);
    font-weight: 700;
    color: var(--gold);
    text-align: left;
    margin-bottom: 5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem;
}

.team-member {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3);
    border-color: var(--gold);
}

.team-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-info {
    padding: 2rem;
    text-align: left;
}

.team-name {
    font-family: var(--font-heading);
    font-size: 1.425rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.team-position {
    font-size: 0.95rem;
    color: var(--silver);
    margin-bottom: 1rem;
    font-style: italic;
}

.team-bio {
    font-size: var(--font-size-body);
    line-height: 1.6;
    color: var(--white);
    text-align: justify;
    margin-bottom: 1.5rem;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--gold);
    color: var(--dark-navy);
    transform: translateY(-3px);
}

/* Values Section */
.values-section {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, var(--deep-blue) 0%, var(--dark-navy) 100%);
}

.values-container {
    max-width: 1200px;
    margin: 0 auto;
}

.values-title {
    font-family: var(--font-heading);
    font-size: clamp(2.375rem, 4.75vw, 3.325rem);
    font-weight: 700;
    color: var(--gold);
    text-align: left;
    margin-bottom: 5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.value-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.4s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3);
    border-color: var(--gold);
}

.value-icon {
    font-size: 2.85rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.value-title {
    font-family: var(--font-heading);
    font-size: 1.425rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 1rem;
}

.value-description {
    font-size: var(--font-size-body);
    line-height: 1.6;
    color: var(--white);
}

/* Responsive Styles */
@media (max-width: 767px) {
    .about-content-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image-container {
        height: 300px;
    }

    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        justify-content: flex-start !important;
    }

    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px;
    }

    .timeline-item:nth-child(odd) .timeline-year,
    .timeline-item:nth-child(even) .timeline-year {
        right: auto;
        left: -40px;
        top: -20px;
        width: 80px;
        height: 30px;
        font-size: 0.95rem;
    }

    .timeline-item:nth-child(odd) .timeline-marker,
    .timeline-item:nth-child(even) .timeline-marker {
        left: 20px;
        right: auto;
        transform: translateX(-50%);
    }

    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .team-photo {
        height: 250px;
    }
}

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

/* --- About Us page: align styles with current markup --- */

/* Story section wrapper and container (used by about-us.php) */
.story-section {
    padding: 8rem 2rem;
    background: linear-gradient(180deg, var(--dark-navy) 0%, var(--deep-blue) 100%);
}

.story-container {
    max-width: 1400px;
    margin: 0 auto;
}

.story-title {
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 3.8vw, 2.85rem);
    font-weight: 700;
    text-align: left;
    margin-bottom: clamp(3rem, 5vw, 5rem);
    color: var(--gold);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Two-column content area */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Mobile layout: gallery on top, text below */
@media (max-width: 767px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    /* Reorder: gallery first, then text */
    .about-content .about-slideshow {
        order: -1;
    }

    .about-content .about-text {
        order: 1;
    }
}

/* Text block refinements */
.about-text { color: var(--white); }
.about-paragraph {
    font-size: var(--font-size-body-lg);
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: justify;
}

/* Slideshow styles (shared naming with index, localized here) */
.about-slideshow {
    position: relative;
    width: 100%;
    height: clamp(400px, 65vh, 600px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.2);
    transition: all 0.4s ease;
}

.about-slideshow:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 60px rgba(212, 175, 55, 0.3);
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active { display: block; opacity: 1; }

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slideshow-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(212, 175, 55, 0.5);
}

.nav-dot.active,
.nav-dot:hover {
    background: var(--gold);
    border-color: var(--gold-light);
    transform: scale(1.2);
}

.slideshow-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.8);
    color: var(--dark-navy);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.14rem;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-arrows:hover {
    background: var(--gold);
    transform: translateY(-50%) scale(1.1);
}

.prev-arrow { left: 15px; }
.next-arrow { right: 15px; }

/* Optimex Technology Section */
.optimex-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--deep-blue) 0%, var(--dark-navy) 100%);
    position: relative;
}

.optimex-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.optimex-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 2.5rem;
    line-height: 1.3;
}

.optimex-content {
    max-width: 800px;
    margin: 0 auto;
}

.optimex-text {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    line-height: 1.8;
    color: var(--cream);
    text-align: justify;
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Capacity Section */
.capacity-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--deep-blue) 100%);
    position: relative;
}

.capacity-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.capacity-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 2.5rem;
    line-height: 1.3;
}

.capacity-content {
    max-width: 800px;
    margin: 0 auto;
}

.capacity-text {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    line-height: 1.8;
    color: var(--cream);
    text-align: justify;
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 767px) {
    .optimex-section,
    .capacity-section {
        padding: 4rem 1.5rem;
    }
    
    .optimex-text,
    .capacity-text {
        padding: 1.5rem;
        text-align: left;
    }
}

/* Quality Focus Section */
.quality-focus-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--deep-blue) 100%);
    position: relative;
    overflow: hidden;
}

.quality-focus-section::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="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(212,175,55,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(212,175,55,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(212,175,55,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(212,175,55,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(212,175,55,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.quality-focus-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.quality-focus-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--gold);
    text-align: left;
    margin-bottom: 3rem;
    line-height: 1.2;
    position: relative;
}

.quality-focus-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    border-radius: 2px;
}

.quality-focus-content {
    text-align: left;
}

.quality-focus-text {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    line-height: 1.8;
    color: var(--cream);
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
    position: relative;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.quality-focus-text::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    font-size: 4rem;
    color: var(--gold);
    font-family: var(--font-heading);
    opacity: 0.3;
}

.quality-focus-text::after {
    content: '"';
    position: absolute;
    bottom: -2rem;
    right: 1rem;
    font-size: 4rem;
    color: var(--gold);
    font-family: var(--font-heading);
    opacity: 0.3;
}

@media (max-width: 767px) {
    .quality-focus-section {
        padding: 4rem 1.5rem;
    }
    
    .quality-focus-text {
        padding: 1.5rem;
        text-align: left;
    }
    
    .quality-focus-text::before,
    .quality-focus-text::after {
        display: none;
    }
}
