/* ==========================================================================
   about.css — Hometech About Page Dedicated Styles
   ========================================================================== */

/* 1. Brand Story - Interactive Timeline */
.about-timeline-section {
    position: relative;
    padding: 100px 0;
    background-color: #161B25 !important;
}

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

/* Vertical center line */
.about-timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: rgba(197, 160, 89, 0.25);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    z-index: 2;
}

/* Left & Right positioning */
.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

/* Dot on center line */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    top: 28px;
    background-color: var(--color-primary);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    z-index: 10;
    transition: var(--transition-smooth);
}

.timeline-item.right::after {
    left: -8px;
    right: auto;
}

.timeline-item:hover::after {
    background-color: var(--color-accent);
    box-shadow: 0 0 12px var(--color-accent);
    transform: scale(1.25);
}

/* Timeline content box */
.timeline-content {
    background-color: #1F2531;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-content {
    border-color: rgba(197, 160, 89, 0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.timeline-year {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 10px;
    display: block;
    font-family: 'Montserrat', sans-serif;
}

.timeline-title {
    font-size: 18px;
    color: var(--color-white);
    margin-bottom: 12px;
}

.timeline-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 0;
}

/* 2. Japanese Heritage - Editorial Layout */
.about-editorial-section {
    padding: 120px 0;
    background-color: #1E2530 !important;
}

.editorial-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    display: block;
    margin-bottom: 15px;
}

.editorial-heading {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    line-height: 1.25;
    color: var(--color-white);
    margin-bottom: 30px;
}

.editorial-text {
    font-size: 15.5px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 25px;
}

/* Asymmetric Image Frame */
.editorial-image-frame {
    position: relative;
    padding-bottom: 10px;
    padding-right: 10px;
}

.editorial-image-frame::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80%;
    height: 80%;
    border: 2px solid var(--color-accent);
    z-index: 1;
    pointer-events: none;
}

.editorial-img {
    position: relative;
    width: 100%;
    z-index: 2;
    filter: brightness(0.9) contrast(1.05);
    transition: var(--transition-smooth);
}

.editorial-image-frame:hover .editorial-img {
    transform: translate(-5px, -5px);
    filter: brightness(1);
}

/* 3. Certifications Grid */
.about-cert-section {
    padding: 100px 0;
    background-color: #161B25 !important;
}

.cert-card {
    background-color: #1F2531;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px;
    text-align: center;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.cert-card:hover {
    border-color: rgba(197, 160, 89, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    transform: translateY(-8px);
}

.cert-img-wrapper {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    padding: 20px;
    margin-bottom: 20px;
    aspect-ratio: 1 / 1.414; /* Document standard A4 aspect ratio */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.cert-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.3);
}

.cert-placeholder i {
    font-size: 48px;
    margin-bottom: 12px;
    color: var(--color-accent);
    opacity: 0.8;
}

.cert-placeholder span {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cert-title {
    font-size: 15px;
    color: var(--color-white);
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
}

.cert-issuer {
    font-size: 12px;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0;
}

/* Lightbox Modal */
.cert-lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    inset: 0;
    background-color: rgba(18, 22, 30, 0.95);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cert-lightbox-modal.show {
    display: flex;
    opacity: 1;
}

.lightbox-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.cert-lightbox-modal.show .lightbox-content-wrapper {
    transform: scale(1);
}

.lightbox-img-placeholder {
    width: 600px;
    max-width: 100%;
    height: 80vh;
    max-height: 800px;
    background-color: #1F2531;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 40px;
    border: 8px solid #272e38;
}

.lightbox-img-placeholder i {
    font-size: 72px;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.lightbox-img-placeholder h3 {
    font-size: 20px;
    color: var(--color-white);
    margin-bottom: 10px;
}

.btn-close-lightbox {
    position: absolute;
    top: -45px;
    right: -10px;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 28px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-close-lightbox:hover {
    color: var(--color-accent);
}

/* 4. Company Profile Section */
.about-profile-section {
    padding: 120px 0;
    background-color: #1E2530 !important;
    position: relative;
    overflow: hidden;
}

.profile-card-gold {
    background: linear-gradient(145deg, #1F2531 0%, #161B25 100%);
    border: 1px solid rgba(197, 160, 89, 0.35);
    padding: 60px;
    position: relative;
    z-index: 2;
}

.profile-card-gold::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--color-accent);
}

.btn-luxury-download {
    padding: 16px 32px;
    border: 1px solid var(--color-accent);
    background-color: transparent;
    color: var(--color-white);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-luxury-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--color-accent);
    transition: var(--transition-smooth);
    z-index: -1;
}

.btn-luxury-download:hover {
    color: var(--color-primary);
    border-color: var(--color-accent);
}

.btn-luxury-download:hover::before {
    left: 0;
}

/* 5. Responsive Styles */
@media (max-width: 576px) {
    .about-timeline-section,
    .about-editorial-section,
    .about-cert-section,
    .about-profile-section {
        padding: 64px 0;
    }

    .about-timeline-section .row.mb-5,
    .about-cert-section .row.mb-5 {
        margin-bottom: 32px !important;
    }

    .about-timeline {
        padding: 16px 0;
    }

    .about-timeline::after {
        display: none;
    }
    
    .timeline-item {
        width: 100%;
        padding: 10px 0;
    }
    
    .timeline-item.left, 
    .timeline-item.right {
        left: 0;
        text-align: left;
    }
    
    .timeline-item::after {
        display: none;
    }
    
    .timeline-item.left::after {
        display: none;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-year {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .timeline-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .timeline-desc {
        font-size: 13px;
        line-height: 1.55;
    }

    .about-editorial-section .row.mb-5.pb-5 {
        margin-bottom: 40px !important;
        padding-bottom: 0 !important;
    }

    .about-editorial-section .row.mt-5 {
        margin-top: 40px !important;
    }

    .editorial-tag {
        font-size: 10px;
        margin-bottom: 10px;
    }

    .editorial-heading {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 18px;
    }

    .editorial-text {
        font-size: 14px;
        line-height: 1.65;
        margin-bottom: 16px;
    }
    
    .editorial-image-frame {
        margin-top: 24px;
    }

    .about-cert-section .col-md-4 {
        margin-bottom: 16px !important;
    }

    .about-cert-section .col-md-4:last-child {
        margin-bottom: 0 !important;
    }

    .cert-card {
        max-width: 280px;
        margin: 0 auto;
        padding: 16px;
    }

    .cert-img-wrapper {
        padding: 12px;
        margin-bottom: 14px;
        aspect-ratio: 1 ;
    }

    .cert-placeholder i {
        font-size: 38px;
        margin-bottom: 8px;
    }

    .cert-title {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .cert-issuer {
        font-size: 11px;
    }
    
    .profile-card-gold {
        padding: 28px 20px;
    }

    .profile-card-gold .col-lg-8 {
        margin-bottom: 20px !important;
    }

    .btn-luxury-download {
        min-height: 44px;
        max-width: 100%;
        padding: 11px 16px;
        gap: 8px;
        font-size: 10px;
        letter-spacing: 0.1em;
    }
}
