/* About Page Specific Styles */

.about-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.about-content {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.about-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.about-card h2 {
    color: #1f2937;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #8b5cf6;
}

.about-card h3 {
    color: #374151;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.about-card p {
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.about-card ul {
    color: #6b7280;
    line-height: 1.7;
    padding-left: 1.5rem;
}

.about-card li {
    margin-bottom: 0.5rem;
}

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

.feature {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature:hover {
    transform: translateY(-2px);
    background: #f1f5f9;
}

.feature h3 {
    color: #1f2937;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Values List */
.values-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.value {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid #8b5cf6;
    transition: transform 0.3s ease;
}

.value:hover {
    transform: translateY(-2px);
}

.value h3 {
    color: #1f2937;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.value p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Contact Info */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
    overflow: hidden;
}

.contact-item {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, background 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-item:hover {
    transform: translateY(-2px);
    background: #f1f5f9;
}

.contact-item h3 {
    color: #1f2937;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    word-break: break-word;
}

.contact-item p {
    color: #8b5cf6;
    font-weight: 600;
    margin: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 100%;
    overflow: hidden;
}

/* Game Info Styles (for games.php) */
.game-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.game-category,
.game-difficulty {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.game-category {
    background: #dbeafe;
    color: #1e40af;
}

.game-difficulty {
    background: #fef3c7;
    color: #92400e;
}

/* Active Navigation */
.nav-menu a.active {
    color: #8b5cf6;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-section {
        padding: 1rem;
    }
    
    .about-card {
        padding: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .values-list {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .about-card h2 {
        font-size: clamp(1.5rem, 3vw, 1.8rem);
        line-height: 1.3;
    }
    
    .about-card h3 {
        font-size: clamp(1.2rem, 2.5vw, 1.3rem);
        line-height: 1.4;
    }
    
    .about-card p {
        font-size: clamp(0.9rem, 2vw, 1rem);
        line-height: 1.6;
    }
    
    .about-card ul {
        font-size: clamp(0.9rem, 2vw, 1rem);
    }
    
    .about-card li {
        font-size: clamp(0.9rem, 2vw, 1rem);
        line-height: 1.6;
    }
    
    .section-title {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }
    
    .section-subtitle {
        font-size: clamp(1rem, 2vw, 1.1rem);
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 0.5rem;
    }
    
    .about-card {
        padding: 1rem;
    }
    
    .feature,
    .value,
    .contact-item {
        padding: 1rem;
    }
    
    .game-info {
        justify-content: center;
    }
    
    .about-card h2 {
        font-size: clamp(1.3rem, 3vw, 1.5rem);
        margin-bottom: 0.75rem;
        padding-bottom: 0.25rem;
    }
    
    .about-card h3 {
        font-size: clamp(1rem, 2.5vw, 1.1rem);
        margin-bottom: 0.5rem;
    }
    
    .about-card p {
        font-size: clamp(0.85rem, 2vw, 0.95rem);
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }
    
    .about-card ul {
        font-size: clamp(0.85rem, 2vw, 0.95rem);
        padding-left: 1.25rem;
    }
    
    .about-card li {
        font-size: clamp(0.85rem, 2vw, 0.95rem);
        line-height: 1.5;
        margin-bottom: 0.5rem;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 3.5vw, 2rem);
        line-height: 1.2;
    }
    
    .section-subtitle {
        font-size: clamp(0.9rem, 2vw, 1rem);
        line-height: 1.4;
    }
    
    .feature h3,
    .value h3,
    .contact-item h3 {
        font-size: 1rem;
    }
    
    .feature p,
    .value p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
     .contact-item {
         min-height: 100px;
         padding: 1rem;
     }
     
     .contact-item h3 {
         font-size: 0.95rem;
         margin-bottom: 0.4rem;
     }
     
     .contact-item p {
         font-size: 0.8rem;
         line-height: 1.3;
     }
}

@media (max-width: 320px) {
    .about-section {
        padding: 0.25rem;
    }
    
    .about-card {
        padding: 0.75rem;
    }
    
    .feature,
    .value,
    .contact-item {
        padding: 0.75rem;
    }
    
    .about-card h2 {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }
    
    .about-card h3 {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }
    
    .about-card p {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 0.6rem;
    }
    
    .about-card ul {
        font-size: 0.8rem;
        padding-left: 1rem;
        margin: 0.6rem 0;
    }
    
    .about-card li {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 0.4rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
    }
    
    .feature h3,
    .value h3,
    .contact-item h3 {
        font-size: 0.9rem;
    }
    
    .feature p,
    .value p,
    .contact-item p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
     .feature-icon {
         font-size: 2rem;
     }
     
     .contact-item {
         min-height: 80px;
         padding: 0.75rem;
     }
     
     .contact-item h3 {
         font-size: 0.85rem;
         margin-bottom: 0.3rem;
     }
     
     .contact-item p {
         font-size: 0.75rem;
         line-height: 1.2;
     }
}

/* Landscape orientation for mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .about-section {
        padding: 1rem;
    }
    
    .about-card {
        padding: 1rem;
    }
    
    .about-card h2 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .about-card h3 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .about-card p {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
     .section-subtitle {
         font-size: 0.9rem;
         margin-bottom: 1rem;
     }
     
     .contact-item {
         min-height: 90px;
         padding: 1rem;
     }
     
     .contact-item h3 {
         font-size: 0.9rem;
         margin-bottom: 0.3rem;
     }
     
     .contact-item p {
         font-size: 0.8rem;
         line-height: 1.3;
     }
}

/* Print optimization */
@media print {
    .about-section {
        background: white;
        box-shadow: none;
    }
    
    .about-card {
        background: white;
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .about-card h2 {
        page-break-after: avoid;
    }
    
    .about-card h3 {
        page-break-after: avoid;
    }
    
    .features-grid,
    .values-list,
    .contact-info {
        display: block;
    }
    
    .feature,
    .value,
    .contact-item {
        background: white;
        border: 1px solid #ddd;
        margin-bottom: 1rem;
        page-break-inside: avoid;
    }
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-card {
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Hover effects for interactive elements */
.about-card a {
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.about-card a:hover {
    color: #7c3aed;
    text-decoration: underline;
}

/* Special styling for mission card */
.about-card:first-child {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 2px solid #8b5cf6;
}

/* Enhanced visual hierarchy */
.about-card h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    margin-right: 0.75rem;
    vertical-align: middle;
}
