/**
 * About Page Styles
 *
 * Berisi styling untuk halaman tentang Lazismu UM Bengkulu termasuk:
 * - Background gradients dengan primary color scheme
 * - Animated background orbs dengan blur effects
 * - Gradient animations untuk dynamic backgrounds
 * - Dark mode support dengan proper contrasts
 * - Primary color: #f68f28 dengan variations
 *
 * @author LazisMU Team
 * @version 1.0
 * @since 2025
 */

/* ===============================================
   COLOR VARIABLES
   =============================================== */

:root {
    /* Primary color (#f68f28) variations */
    --about-primary-color: #f68f28;
    --about-primary-hover: #e5731c;
    --about-primary-light: #f89d4a;
    --about-primary-lighter: #fbb570;
    --about-primary-lightest: #fdcd96;

    /* Dark mode primary variations */
    --about-primary-dark: #d16815;
    --about-primary-dark-hover: #b85a12;

    /* Background variations */
    --about-bg-light-start: #fef7f0;
    --about-bg-light-middle: #ffffff;
    --about-bg-light-end: #fafafa;

    --about-bg-dark-start: #1f1f1f;
    --about-bg-dark-middle: #2a2a2a;
    --about-bg-dark-end: #1a1a1a;
}

/* ===============================================
   BACKGROUND & LAYOUT
   =============================================== */

/**
 * Main about page background dengan gradient primary colors
 * Light mode menggunakan warm orange tones
 */
.about-page-background {
    background: linear-gradient(
        to bottom,
        var(--about-bg-light-start) 0%,
        var(--about-bg-light-middle) 50%,
        var(--about-bg-light-end) 100%
    );
    position: relative;
    overflow: hidden;
}

/**
 * Dark mode background dengan subtle primary color hints
 */
.dark .about-page-background {
    background: linear-gradient(
        to bottom,
        var(--about-bg-dark-start) 0%,
        var(--about-bg-dark-middle) 50%,
        var(--about-bg-dark-end) 100%
    );
}

/* ===============================================
   ANIMATED BACKGROUND ORBS
   =============================================== */

/**
 * Background orb pertama (kiri atas)
 * Menggunakan primary color dengan opacity rendah
 */
.about-orb-primary {
    position: absolute;
    top: 0;
    left: 0;
    width: 18rem; /* 72 * 0.25rem */
    height: 18rem;
    background: radial-gradient(
        circle,
        rgba(246, 143, 40, 0.25) 0%,
        rgba(246, 143, 40, 0.15) 50%,
        rgba(246, 143, 40, 0.05) 100%
    );
    border-radius: 50%;
    filter: blur(3rem);
    animation: pulse 4s ease-in-out infinite;
}

/**
 * Background orb kedua (kanan bawah)
 * Menggunakan primary color variation dengan opacity lebih rendah
 */
.about-orb-secondary {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24rem; /* 96 * 0.25rem */
    height: 24rem;
    background: radial-gradient(
        circle,
        rgba(248, 157, 74, 0.2) 0%,
        rgba(248, 157, 74, 0.1) 50%,
        rgba(248, 157, 74, 0.03) 100%
    );
    border-radius: 50%;
    filter: blur(3rem);
    animation: pulse-slow 6s ease-in-out infinite;
}

/**
 * Dark mode adjustments untuk orbs
 * Menggunakan opacity lebih tinggi untuk visibility yang lebih baik
 */
.dark .about-orb-primary {
    background: radial-gradient(
        circle,
        rgba(246, 143, 40, 0.15) 0%,
        rgba(246, 143, 40, 0.08) 50%,
        rgba(246, 143, 40, 0.03) 100%
    );
}

.dark .about-orb-secondary {
    background: radial-gradient(
        circle,
        rgba(248, 157, 74, 0.12) 0%,
        rgba(248, 157, 74, 0.06) 50%,
        rgba(248, 157, 74, 0.02) 100%
    );
}

/* ===============================================
   ANIMATIONS
   =============================================== */

/**
 * Gradient animation untuk dynamic backgrounds
 * Horizontal movement untuk creating flow effect
 */
@keyframes animate-gradient-x {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/**
 * Standard pulse animation untuk orb pertama
 * 4 detik cycle untuk subtle breathing effect
 */
@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/**
 * Slow pulse animation untuk orb kedua
 * 6 detik cycle untuk variation dalam rhythm
 */
@keyframes pulse-slow {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.03);
    }
}

/* ===============================================
   UTILITY CLASSES
   =============================================== */

/**
 * Gradient animation utility class
 * Dapat diterapkan pada elemen yang membutuhkan animated gradient
 */
.animate-gradient-x {
    background-size: 200% auto;
    animation: animate-gradient-x 6s ease infinite;
}

/**
 * Slow pulse utility class
 * Alternative pulse animation dengan timing berbeda
 */
.animate-pulse-slow {
    animation: pulse-slow 6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/**
 * Main content container styling
 * Ensures proper z-index dan spacing
 */
.about-content-container {
    position: relative;
    z-index: 10;
    max-width: 72rem; /* 6xl */
    margin: 0 auto;
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */

/**
 * Mobile optimizations untuk orbs
 * Smaller sizes pada screen kecil
 */
@media (max-width: 768px) {
    .about-orb-primary {
        width: 12rem;
        height: 12rem;
        filter: blur(2rem);
    }

    .about-orb-secondary {
        width: 16rem;
        height: 16rem;
        filter: blur(2rem);
    }
}

/**
 * Large screen enhancements
 * Bigger orbs untuk dramatic effect
 */
@media (min-width: 1024px) {
    .about-orb-primary {
        width: 20rem;
        height: 20rem;
    }

    .about-orb-secondary {
        width: 28rem;
        height: 28rem;
    }
}

/* ===============================================
   ACCESSIBILITY & PERFORMANCE
   =============================================== */

/**
 * Respect user's motion preferences
 * Disable animations untuk users yang prefer reduced motion
 */
@media (prefers-reduced-motion: reduce) {
    .about-orb-primary,
    .about-orb-secondary,
    .animate-gradient-x,
    .animate-pulse-slow {
        animation: none;
    }
}

/**
 * High contrast mode adjustments
 * Ensure visibility dalam high contrast settings
 */
@media (prefers-contrast: high) {
    .about-orb-primary,
    .about-orb-secondary {
        filter: blur(1rem);
        opacity: 0.3;
    }
}

/* ===============================================
   THEME TRANSITIONS
   =============================================== */

/**
 * Smooth transitions untuk dark mode switching
 * Applies to background dan color changes
 */
.about-page-background,
.about-orb-primary,
.about-orb-secondary {
    transition: background 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}
