/* style/about-xn88-development-history.css */

/* Variables for colors */
:root {
    --xn88-primary-color: #0A192F; /* Deep Blue */
    --xn88-accent-color: #FFD700; /* Gold */
    --xn88-text-light: #F0F2F5; /* Light grey for text on dark backgrounds */
    --xn88-text-dark: #2C3E50; /* Dark grey for text on light backgrounds */
    --xn88-background-light: #FFFFFF; /* White background */
    --xn88-background-dark: #071220; /* Even darker blue for subtle contrast */
    --xn88-link-color: #4CAF50; /* Green for links/interactive elements */
}

.page-about-xn88-development-history {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--xn88-text-light); /* Default text color for dark backgrounds */
    background-color: var(--xn88-primary-color);
}

.page-about-xn88-development-history-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero Section */
.page-about-xn88-development-history-hero {
    background: linear-gradient(135deg, var(--xn88-primary-color) 0%, #1A2F4A 100%);
    padding: 100px 0;
    text-align: center;
    color: var(--xn88-text-light);
    position: relative;
    overflow: hidden;
}

.page-about-xn88-development-history-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: page-about-xn88-development-history-float 10s ease-in-out infinite;
    z-index: 0;
}

.page-about-xn88-development-history-hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: page-about-xn88-development-history-float 12s reverse ease-in-out infinite;
    z-index: 0;
}

@keyframes page-about-xn88-development-history-float {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(20px, 20px) rotate(5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.page-about-xn88-development-history-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--xn88-accent-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.page-about-xn88-development-history-subtitle {
    font-size: 1.5em;
    margin-bottom: 40px;
    color: var(--xn88-text-light);
    position: relative;
    z-index: 1;
}

.page-about-xn88-development-history-btn-primary {
    display: inline-block;
    background-color: var(--xn88-accent-color);
    color: var(--xn88-primary-color); /* Dark text on gold button */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 1;
    border: none;
    cursor: pointer;
}

.page-about-xn88-development-history-btn-primary:hover {
    background-color: #E6C200; /* Slightly darker gold */
    transform: translateY(-3px);
}

/* General Section Styling */
.page-about-xn88-development-history-intro,
.page-about-xn88-development-history-milestones,
.page-about-xn88-development-history-values,
.page-about-xn88-development-history-future,
.page-about-xn88-development-history-cta {
    padding: 80px 0;
    position: relative;
}

.page-about-xn88-development-history-intro {
    background-color: var(--xn88-background-dark);
}

.page-about-xn88-development-history-milestones {
    background-color: var(--xn88-primary-color);
}

.page-about-xn88-development-history-values {
    background-color: var(--xn88-background-dark);
}

.page-about-xn88-development-history-future {
    background-color: var(--xn88-primary-color);
}

.page-about-xn88-development-history-cta {
    background-color: var(--xn88-accent-color);
    color: var(--xn88-primary-color); /* Dark text on gold background */
    text-align: center;
    padding: 80px 0;
}

.page-about-xn88-development-history-section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 60px;
    color: var(--xn88-accent-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-about-xn88-development-history-intro .page-about-xn88-development-history-section-title,
.page-about-xn88-development-history-values .page-about-xn88-development-history-section-title {
    color: var(--xn88-accent-color);
}

.page-about-xn88-development-history-cta .page-about-xn88-development-history-section-title {
    color: var(--xn88-primary-color);
}

.page-about-xn88-development-history-content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-about-xn88-development-history-content-wrapper-reverse {
    flex-direction: row-reverse;
}

.page-about-xn88-development-history-text-content {
    flex: 1;
    font-size: 1.1em;
    color: var(--xn88-text-light);
}

.page-about-xn88-development-history-text-content p {
    margin-bottom: 15px;
}

.page-about-xn88-development-history-text-content strong {
    color: var(--xn88-accent-color);
}

.page-about-xn88-development-history-image-container {
    flex: 1;
    text-align: center;
}

.page-about-xn88-development-history-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Timeline Specific Styles */
.page-about-xn88-development-history-timeline {
    position: relative;
    padding: 20px 0;
}

.page-about-xn88-development-history-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: var(--xn88-accent-color);
    transform: translateX(-50%);
}

.page-about-xn88-development-history-timeline-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    position: relative;
}

.page-about-xn88-development-history-timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.page-about-xn88-development-history-timeline-item:nth-child(odd) .page-about-xn88-development-history-timeline-year {
    text-align: right;
}

.page-about-xn88-development-history-timeline-item:nth-child(odd) .page-about-xn88-development-history-image-small {
    margin-left: 0;
    margin-right: 20px;
}


.page-about-xn88-development-history-timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: var(--xn88-accent-color);
    border: 3px solid var(--xn88-primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.page-about-xn88-development-history-timeline-year {
    flex: 0 0 45%;
    font-size: 1.8em;
    font-weight: bold;
    color: var(--xn88-accent-color);
    text-align: left;
    padding-right: 30px;
    box-sizing: border-box;
}

.page-about-xn88-development-history-timeline-item p {
    flex: 0 0 45%;
    font-size: 1.05em;
    color: var(--xn88-text-light);
    padding-left: 30px;
    box-sizing: border-box;
}

.page-about-xn88-development-history-image-small {
    max-width: 150px;
    height: auto;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
    margin-left: 20px; /* Adjust for positioning */
}

/* Values Grid Specific Styles */
.page-about-xn88-development-history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.page-about-xn88-development-history-value-item {
    background-color: #1A2F4A; /* Slightly lighter dark blue */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-about-xn88-development-history-value-item:hover {
    transform: translateY(-5px);
}

.page-about-xn88-development-history-value-title {
    font-size: 1.5em;
    color: var(--xn88-accent-color);
    margin-bottom: 15px;
}

.page-about-xn88-development-history-value-item p {
    color: var(--xn88-text-light);
    font-size: 1em;
}

/* Call to Action Section */
.page-about-xn88-development-history-cta p {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: var(--xn88-primary-color);
}

.page-about-xn88-development-history-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-about-xn88-development-history-btn-secondary {
    display: inline-block;
    background-color: var(--xn88-primary-color);
    color: var(--xn88-accent-color);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid var(--xn88-accent-color);
    cursor: pointer;
}

.page-about-xn88-development-history-btn-secondary:hover {
    background-color: #071220; /* Even darker blue */
    transform: translateY(-3px);
}

/* Animations for elements appearing on scroll */
.page-about-xn88-development-history-section-title,
.page-about-xn88-development-history-content-wrapper,
.page-about-xn88-development-history-timeline-item,
.page-about-xn88-development-history-value-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.page-about-xn88-development-history-section-title.is-visible,
.page-about-xn88-development-history-content-wrapper.is-visible,
.page-about-xn88-development-history-timeline-item.is-visible,
.page-about-xn88-development-history-value-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-about-xn88-development-history-title {
        font-size: 2.8em;
    }
    .page-about-xn88-development-history-subtitle {
        font-size: 1.3em;
    }
    .page-about-xn88-development-history-section-title {
        font-size: 2em;
    }
    .page-about-xn88-development-history-content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .page-about-xn88-development-history-content-wrapper-reverse {
        flex-direction: column;
    }
    .page-about-xn88-development-history-image-container {
        order: -1; /* Image first on small screens for reverse layout */
    }
    .page-about-xn88-development-history-timeline::before {
        left: 20px;
        transform: translateX(0);
    }
    .page-about-xn88-development-history-timeline-item {
        flex-direction: column;
        align-items: flex-start;
        margin-left: 50px; /* Offset for timeline line */
    }
    .page-about-xn88-development-history-timeline-item:nth-child(odd) {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-about-xn88-development-history-timeline-item::before {
        left: -30px;
        top: 10px;
        transform: translateX(0);
    }
    .page-about-xn88-development-history-timeline-year,
    .page-about-xn88-development-history-timeline-item p {
        flex: 0 0 100%;
        padding: 0;
        text-align: left;
    }
    .page-about-xn88-development-history-timeline-year {
        margin-bottom: 10px;
    }
    .page-about-xn88-development-history-timeline-item:nth-child(odd) .page-about-xn88-development-history-timeline-year {
        text-align: left;
    }
    .page-about-xn88-development-history-image-small {
        margin-left: 0;
        margin-right: 0;
        max-width: 100px;
    }
    .page-about-xn88-development-history-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-about-xn88-development-history-btn-primary,
    .page-about-xn88-development-history-btn-secondary {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .page-about-xn88-development-history-hero {
        padding: 80px 0;
    }
    .page-about-xn88-development-history-title {
        font-size: 2.2em;
    }
    .page-about-xn88-development-history-subtitle {
        font-size: 1.1em;
    }
    .page-about-xn88-development-history-section-title {
        font-size: 1.8em;
    }
    .page-about-xn88-development-history-intro,
    .page-about-xn88-development-history-milestones,
    .page-about-xn88-development-history-values,
    .page-about-xn88-development-history-future,
    .page-about-xn88-development-history-cta {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .page-about-xn88-development-history-title {
        font-size: 1.8em;
    }
    .page-about-xn88-development-history-subtitle {
        font-size: 1em;
    }
    .page-about-xn88-development-history-btn-primary {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-about-xn88-development-history-section-title {
        font-size: 1.5em;
    }
    .page-about-xn88-development-history-timeline-year {
        font-size: 1.5em;
    }
    .page-about-xn88-development-history-value-title {
        font-size: 1.3em;
    }
    .page-about-xn88-development-history-cta p {
        font-size: 1.1em;
    }
}