/* About Page Specific Styles */

/* About Hero Section */
.about-hero {
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 50px;
    background: linear-gradient(135deg, var(--primary-lighter), var(--secondary-lighter));
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.about-hero::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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.about-hero > * {
    position: relative;
    z-index: 2;
}

.about-hero h1 {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.about-hero .subtitle {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-weight: 500;
}

.about-hero > p {
    font-size: 1.2rem;
    color: var(--neutral-dark);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Statistics Section */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    background: var(--neutral-white);
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px var(--primary-lighter);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--secondary-lighter);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--primary-light);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--neutral-gray);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* About Content Sections */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-section {
    margin-bottom: 50px;
    padding: 40px;
    background: var(--neutral-white);
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--primary-lighter);
    border: 1px solid var(--secondary-lighter);
}

.about-section h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.about-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--neutral-dark);
    margin-bottom: 20px;
    text-align: justify;
}

.about-section ul {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.about-section li {
    position: relative;
    padding: 12px 0 12px 30px;
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--neutral-dark);
    border-left: 3px solid var(--secondary-lighter);
    padding-left: 20px;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.about-section li:hover {
    border-left-color: var(--primary-color);
    background-color: var(--primary-lighter);
    margin-left: 0;
    padding-left: 30px;
}

.about-section li strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.feature-card {
    background: var(--neutral-light);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--secondary-lighter);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--primary-light);
    background: var(--neutral-white);
}

.feature-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: var(--neutral-dark);
    line-height: 1.6;
    margin: 0;
}

/* Game Categories Showcase */
.game-categories-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.category-showcase {
    background: var(--neutral-white);
    padding: 30px;
    border-radius: 10px;
    border: 2px solid var(--secondary-lighter);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.category-showcase::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, var(--primary-lighter), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.category-showcase:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.category-showcase:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px var(--primary-light);
}

.category-showcase h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.category-showcase p {
    color: var(--neutral-dark);
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Call to Action Section */
.cta-section {
    text-align: center;
    padding: 50px 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    color: var(--neutral-white);
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.cta-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"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"><animate attributeName="opacity" values="0.1;0.3;0.1" dur="2s" repeatCount="indefinite"/></circle><circle cx="80" cy="40" r="1.5" fill="white" opacity="0.1"><animate attributeName="opacity" values="0.1;0.4;0.1" dur="3s" repeatCount="indefinite"/></circle><circle cx="40" cy="80" r="1" fill="white" opacity="0.1"><animate attributeName="opacity" values="0.1;0.5;0.1" dur="2.5s" repeatCount="indefinite"/></circle></svg>');
    z-index: 1;
}

.cta-section > * {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    color: var(--neutral-white);
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: var(--neutral-white);
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 2px solid transparent;
}

.cta-button:hover {
    background: transparent;
    color: var(--neutral-white);
    border-color: var(--neutral-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-hero {
        padding: 40px 15px;
        margin-bottom: 30px;
    }
    
    .about-hero h1 {
        font-size: 2.2rem;
        margin-bottom: 12px;
    }
    
    .about-hero .subtitle {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .about-hero > p {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
        margin-top: 30px;
    }
    
    .stat-item {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .about-section {
        margin-bottom: 30px;
        padding: 25px;
    }
    
    .about-section h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .about-section p {
        font-size: 1rem;
        text-align: left;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .game-categories-showcase {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-showcase {
        padding: 20px;
    }
    
    .cta-section {
        padding: 30px 20px;
        margin-top: 30px;
    }
    
    .cta-section h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .cta-section p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .about-hero h1 {
        font-size: 1.8rem;
    }
    
    .stats {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .stat-item {
        padding: 15px 10px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .about-section {
        padding: 20px;
    }
    
    .about-section h2 {
        font-size: 1.6rem;
    }
    
    .feature-card,
    .category-showcase {
        padding: 15px;
    }
    
    .cta-section {
        padding: 25px 15px;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }
}
/* Additi
onal Visual Enhancements */

/* Smooth transitions for all interactive elements */
* {
    transition: all 0.3s ease;
}

/* Enhanced hover effects for links */
.about-section a {
    position: relative;
    display: inline-block;
}

.about-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.about-section a:hover::after {
    width: 100%;
}

/* Loading animation for sections */
.about-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.about-section:nth-child(1) { animation-delay: 0.1s; }
.about-section:nth-child(2) { animation-delay: 0.2s; }
.about-section:nth-child(3) { animation-delay: 0.3s; }
.about-section:nth-child(4) { animation-delay: 0.4s; }
.about-section:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced focus states for accessibility */
.feature-card:focus-within,
.category-showcase:focus-within,
.stat-item:focus-within {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Improved text selection */
::selection {
    background-color: var(--primary-color);
    color: var(--neutral-white);
}

::-moz-selection {
    background-color: var(--primary-color);
    color: var(--neutral-white);
}

/* Enhanced scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Print styles */
@media print {
    .about-hero,
    .cta-section {
        background: none !important;
        color: black !important;
    }
    
    .feature-card,
    .category-showcase,
    .about-section {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .about-hero,
    .cta-section {
        background: var(--neutral-white) !important;
        color: var(--neutral-black) !important;
        border: 2px solid var(--neutral-black) !important;
    }
    
    .feature-card,
    .category-showcase {
        border: 2px solid var(--neutral-black) !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .about-section {
        opacity: 1;
        transform: none;
    }
}