/* style/about.css */

/* Variables for colors */
:root {
    --page-about-primary-color: #0A192F; /* Deep Blue */
    --page-about-accent-color: #FFD700; /* Gold */
    --page-about-text-light: #F0F0F0; /* Light text for dark backgrounds */
    --page-about-text-dark: #333333; /* Dark text for light backgrounds */
    --page-about-background-light: #FFFFFF; /* White background */
    --page-about-background-dark: #1A2B42; /* Slightly lighter blue for sections */
    --page-about-border-color: #3C4B64; /* Border color */
}

.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--page-about-text-light); /* Default text color for the main section */
    background-color: var(--page-about-primary-color);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-about__container--content {
    padding: 40px 20px;
    background-color: var(--page-about-background-dark);
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.page-about__hero {
    position: relative;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--page-about-primary-color) 0%, #0A192F 50%, #1A2B42 100%);
    color: var(--page-about-text-light);
}

.page-about__hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('[GALLERY:bg:abstract,geometric,dark_blue,gold_accents,digital_pattern]'); /* Placeholder for a subtle background pattern */
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.page-about__hero > .page-about__container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.page-about__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--page-about-accent-color);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__hero-image-wrapper {
    position: absolute;
    bottom: -50px; /* Adjust as needed */
    right: -50px; /* Adjust as needed */
    width: 300px; /* Adjust size */
    height: 300px; /* Adjust size */
    opacity: 0.2;
    z-index: 0;
}

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* General Sections */
.page-about__section-title {
    font-size: 2.5em;
    color: var(--page-about-accent-color);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
    border-bottom: 3px solid var(--page-about-accent-color);
    display: inline-block;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-about__text {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--page-about-text-light);
    text-align: justify;
}

.page-about__list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: var(--page-about-text-light);
}

.page-about__list-item {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-about__list-item::marker {
    color: var(--page-about-accent-color);
}

/* Buttons */
.page-about__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.page-about__btn--primary {
    background-color: var(--page-about-accent-color);
    color: var(--page-about-primary-color);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-about__btn--primary:hover {
    background-color: #E6C200; /* Slightly darker gold */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-about__btn--secondary {
    background-color: transparent;
    color: var(--page-about-accent-color);
    border: 2px solid var(--page-about-accent-color);
    margin-left: 20px;
}

.page-about__btn--secondary:hover {
    background-color: var(--page-about-accent-color);
    color: var(--page-about-primary-color);
    transform: translateY(-3px);
}

/* Links within text */
.page-about__text a,
.page-about__list-item a,
.page-about__link {
    color: var(--page-about-accent-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-about__text a:hover,
.page-about__list-item a:hover,
.page-about__link:hover {
    color: #E6C200; /* Slightly darker gold */
}

/* Why Us Section */
.page-about__features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__feature-item {
    background-color: var(--page-about-primary-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-about__feature-title {
    font-size: 1.8em;
    color: var(--page-about-accent-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-about__feature-item .page-about__text {
    color: var(--page-about-text-light);
    text-align: center;
    flex-grow: 1;
}

.page-about__feature-image {
    max-width: 100%;
    height: 200px;
    object-fit: contain;
    margin-top: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Team Section */
.page-about__team {
    padding: 60px 0;
    background-color: var(--page-about-primary-color);
}

.page-about__team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-about__member-card {
    background-color: var(--page-about-background-dark);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.page-about__member-card:hover {
    transform: translateY(-5px);
}

.page-about__member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--page-about-accent-color);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.page-about__member-name {
    font-size: 1.6em;
    color: var(--page-about-accent-color);
    margin-bottom: 10px;
}

.page-about__member-role {
    font-size: 1.1em;
    color: #CCCCCC;
    margin-bottom: 15px;
}

.page-about__member-bio {
    font-size: 0.95em;
    color: var(--page-about-text-light);
    line-height: 1.5;
}

/* Happyluke Partner Section */
.page-about__happyluke-partner .page-about__platform-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Responsible Gambling Section */
.page-about__responsible-gambling .page-about__responsible-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* CTA Section */
.page-about__cta {
    background-color: var(--page-about-background-dark);
    padding: 80px 0;
    text-align: center;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: inset 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-about__cta-title {
    font-size: 3em;
    color: var(--page-about-accent-color);
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-about__cta-description {
    font-size: 1.2em;
    color: var(--page-about-text-light);
    margin-bottom: 40px;
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between buttons */
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Fade-in animation for sections */
.page-about .fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.page-about .fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-about__hero-title {
        font-size: 3em;
    }
    .page-about__section-title {
        font-size: 2em;
    }
    .page-about__cta-title {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .page-about__hero {
        padding: 80px 0 50px;
    }
    .page-about__hero-title {
        font-size: 2.5em;
    }
    .page-about__hero-description {
        font-size: 1.1em;
    }
    .page-about__section-title {
        font-size: 1.8em;
    }
    .page-about__feature-item {
        padding: 20px;
    }
    .page-about__feature-title {
        font-size: 1.5em;
    }
    .page-about__member-card {
        padding: 20px;
    }
    .page-about__member-name {
        font-size: 1.4em;
    }
    .page-about__cta {
        padding: 60px 0;
    }
    .page-about__cta-title {
        font-size: 2em;
    }
    .page-about__btn {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-about__btn--secondary {
        margin-left: 0;
        margin-top: 15px; /* Add space for stacked buttons */
    }
    .page-about__cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .page-about__hero-title {
        font-size: 2em;
    }
    .page-about__hero-description {
        font-size: 1em;
    }
    .page-about__section-title {
        font-size: 1.5em;
    }
    .page-about__cta-title {
        font-size: 1.8em;
    }
    .page-about__btn {
        width: 100%;
        max-width: 280px;
    }
    .page-about__container--content {
        padding: 20px 15px;
    }
}