/* =============================
   About Page Specific Styles
   =============================*/

/* Override body font for About page content while keeping Cinzel for headings */
body {
    font-family: 'Poppins', sans-serif;
    background: #000 url('images/stars-bg.gif') repeat;
    color: #fff;
    scroll-behavior: smooth;
}

/* Keep Cinzel for main headings, use Poppins for body text */
h1, h2, .navbar-right a {
    font-family: 'Cinzel', serif;
}

p, li, .stat p {
    font-family: 'Poppins', sans-serif;
}

/* Enhanced navbar for About page */
.navbar {
    transition: all 0.3s ease;
}

.navbar.shrink {
    padding: 0.3rem 0;
    backdrop-filter: blur(10px);
}

.logo-gif {
    height: 80px;
    transition: height 0.3s ease;
}

.navbar.shrink .logo-gif {
    height: 60px;
}

/* Active navigation state */
.nav-links li a.active {
    font-weight: bold;
    color: var(--color-accent);
    position: relative;
}

.nav-links li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

/* About section styling */
.about {
    padding: calc(var(--nav-height) + 3rem) 1rem 4rem;
    background: linear-gradient(to bottom, #0a0a0a, #111);
    min-height: 100vh;
}

.about-title {
    text-align: center;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
    animation: float3d 8s ease-in-out infinite alternate;
    transform-style: preserve-3d;
}

@keyframes float3d {
    from {
        transform: perspective(800px) translateZ(0) rotateX(0deg) rotateY(0deg);
    }
    to {
        transform: perspective(800px) translateZ(40px) rotateX(10deg) rotateY(-8deg);
    }
}

/* Enhanced tagline with better responsive design */
.tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin: 0 auto 3rem;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid var(--color-accent);
    animation: typing 4s steps(30,end), blink 0.8s step-end infinite;
    width: fit-content;
    text-align: center;
    display: block;
    max-width: 90%;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* Enhanced stats section */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto 4rem;
    padding: 0 1rem;
}

.stat {
    perspective: 800px;
    cursor: pointer;
}

.stat-inner {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat:hover .stat-inner {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 
      0 15px 40px rgba(0, 0, 0, 0.3),
      0 0 20px rgba(212, 175, 55, 0.1);
}

.stat h3 {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.stat p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
    font-weight: 500;
}

/* Content sections with better spacing and typography */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.7;
}

.content-section {
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.content-section h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
}

.content-section p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    line-height: 1.8;
}

/* ✅ Fixed Enhanced values list */
.values-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: block !important;
    position: relative;
    z-index: 10;
}

.values-list li {
    color: #FFD700 !important; /* Gold text */
    background-color: rgba(40, 40, 40, 0.9) !important; /* Dark gray background */
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    border-left: 4px solid var(--color-accent);
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
    font-size: 1.05rem;
    line-height: 1.6;
    display: block;
}

.values-list li:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.values-list li strong {
    color: var(--color-accent);
    font-weight: 600;
}

/* Responsive design improvements */
@media (max-width: 768px) {
    .about {
        padding: calc(var(--nav-height) + 2rem) 0.5rem 3rem;
    }
    
    .tagline {
        white-space: normal;
        border-right: none;
        animation: none;
        text-align: center;
        width: auto;
        max-width: 100%;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 300px;
    }
    
    .stat-inner {
        padding: 1.2rem;
    }
    
    .content-section {
        padding: 0 0.5rem;
        margin-bottom: 2.5rem;
    }
    
    .values-list li {
        padding: 0.8rem 1rem;
        margin: 0.8rem 0;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .about-title {
        margin-bottom: 0.5rem;
    }
    
    .tagline {
        margin-bottom: 2rem;
        font-size: 1.1rem;
    }
    
    .stat h3 {
        font-size: 1.8rem;
    }
    
    .stat p {
        font-size: 0.9rem;
    }
    
    .content-section p {
        font-size: 1rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .about-title {
        animation: none;
    }
    
    .tagline {
        animation: none;
        border-right: none;
    }
    
    .stat-inner {
        transition: none;
    }
    
    .values-list li {
        transition: none;
    }
    
    .values-list li:hover {
        transform: none;
    }
}

/* Enhanced focus states for accessibility */
.stat:focus-within .stat-inner {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.values-list li:focus-within {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

    /* Prevent grey highlight on click/tap */
.values-list li {
    -webkit-tap-highlight-color: transparent; /* Remove mobile tap overlay */
}

/* Keep text visible on active/click */
.values-list li:active {
    background-color: rgba(255, 215, 0, 0.15) !important; /* Goldish active state */
    color: #FFD700 !important; /* Keep gold text */
}
