/* 
 * Graffiti Program - Main Stylesheet
 * https://www.graffitiprogram.com
 * A professional website for the Graffiti Program within Gorilla AG
 */

/* === BASE STYLES === */
:root {
    /* Primary Color Palette */
    --primary: #7289DA;  /* Discord-inspired color */
    --primary-dark: #4E5D94;
    --secondary: #2c2f33;
    --secondary-dark: #23272A;
    --accent: #99AAB5;
    --text-dark: #2f3640;
    --text-light: #f5f6fa;
    --bg-light: #f8f9fa;
    --bg-dark: #222831;
    --gray-light: #dfe4ea;
    --gray-dark: #a4b0be;
    
    /* Typography */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Poppins', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-round: 50%;
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Gradients and Animations */
    --gradient-primary: linear-gradient(135deg, #ff6b6b 0%, #ee5253 100%);
    --gradient-hero: linear-gradient(135deg, #ff00f7 0%, #7b00ff 100%);
    --animation-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: var(--body-font);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-light);
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var (--text-dark);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-md);
}

h2 span {
    color: var (--primary);
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: var (--spacing-sm);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-lg) 0;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    border: none;
    font-family: var(--body-font);
}

.primary-btn, .secondary-btn {
    position: relative;
    overflow: hidden;
}

.primary-btn::before, .secondary-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.primary-btn:hover::before, .secondary-btn:hover::before {
    width: 300px;
    height: 300px;
}

.primary-btn {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.primary-btn:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.secondary-btn {
    background-color: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.secondary-btn:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.text-btn {
    padding: 0;
    background: none;
    color: var(--primary);
    font-weight: 600;
    border-bottom: 2px solid transparent;
}

.text-btn:hover {
    border-bottom: 2px solid var(--primary);
    color: var (--primary-dark);
}

.text-btn i {
    margin-left: 5px;
    transition: transform var(--transition-fast);
}

.text-btn:hover i {
    transform: translateX(5px);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    justify-content: center;
}

/* === HEADER & NAVIGATION === */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    z-index: 1000;
    transition: all var(--transition-normal);
}

header.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    transition: height var(--transition-normal), transform var(--animation-speed) ease;
}

.logo img:hover {
    transform: scale(1.05) rotate(-5deg);
}

header.scrolled .logo img {
    height: 40px;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--transition-normal);
}

nav ul li a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

nav ul li a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a.active {
    color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all var(--transition-normal);
}

/* === HERO SECTION === */
.hero {
    background: var(--gradient-hero);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    opacity: 0.1;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to right bottom, transparent 49%, var(--bg-light) 50%);
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 700px;
    color: white;
    animation: slideUp 1s ease forwards;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-content h1 span {
    color: #00ffbb;
    text-shadow: 0 0 10px rgba(0, 255, 187, 0.5);
    display: block;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    max-width: 600px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === ABOUT PREVIEW SECTION === */
.about-preview .container {
    max-width: 1000px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-text p {
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transform: perspective(1000px) rotateY(-15deg);
    transition: transform var(--transition-normal);
}

.about-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* === FEATURED MEMBERS SECTION === */
.featured-members {
    background-color: var(--bg-dark);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.featured-members h2 {
    color: white;
    margin-bottom: var(--spacing-lg);
}

.featured-members::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/texture.png');
    opacity: 0.05;
    z-index: 1;
}

.featured-members .container {
    position: relative;
    z-index: 2;
}

.members-carousel {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-md);
    justify-items: center;
    margin: 0 auto;
    max-width: 1200px;
}

.member-card {
    width: 100%;
    max-width: 250px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.member-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.member-img {
    width: 150px;
    height: 150px;
    border-radius: var(--radius-round);
    overflow: hidden;
    margin: 0 auto var(--spacing-sm);
    border: 3px solid var(--primary);
}

.member-card h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.member-card p {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.member-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-normal);
}

.member-link:hover {
    background-color: var(--primary-dark);
    color: white;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-md);
    gap: var(--spacing-sm);
}

.carousel-controls button {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-round);
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-controls button:hover {
    background-color: var(--primary);
}

.view-all {
    margin-top: var(--spacing-md);
    text-align: center;
}

/* === TESTIMONIALS SECTION === */
.testimonials {
    background-color: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.testimonial {
    background-color: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.testimonial-content {
    padding: var(--spacing-md);
    position: relative;
}

.testimonial-content i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: var(--spacing-md);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-round);
    margin-right: var(--spacing-sm);
}

.testimonial-author h4 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.testimonial-author p {
    font-size: 0.8rem;
    color: var(--gray-dark);
    margin: 0;
}

/* === JOIN US SECTION === */
.join-us {
    background: url('../images/join-bg.jpg') center/cover no-repeat;
    position: relative;
    color: white;
}

.join-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(106, 17, 203, 0.9) 0%, rgba(37, 117, 252, 0.9) 100%);
    z-index: 1;
}

.join-us .container {
    position: relative;
    z-index: 2;
}

.join-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.join-content h2 {
    color: white;
}

.join-content p {
    font-size: 1.2rem;
    margin-bottom: var (--spacing-md);
}

/* === SOCIAL CONNECT SECTION === */
.social-connect {
    background-color: var(--bg-light);
    text-align: center;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var (--spacing-md);
}

.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    border-radius: var(--radius-md);
    color: white;
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.social-btn:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-md);
}

.social-btn i {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
}

.social-btn span {
    font-weight: 600;
}

.youtube {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.discord {
    background: linear-gradient(135deg, #7289DA, #4E5D94);
}

.twitter {
    background: linear-gradient(135deg, #1DA1F2, #0C85D0);
}

.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* === FOOTER === */
footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: var(--spacing-sm) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-sm);
    margin-bottom: var (--spacing-xs);
}

.footer-column h3 {
    color: white;
    margin-bottom: var(--spacing-xs);
    position: relative;
    padding-bottom: 5px;
}

.footer-column p {
    color: var(--gray-light);
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.footer-column ul li {
    margin-bottom: 5px;
}

.footer-column ul li a {
    font-size: 0.9rem;
}

.footer-logo {
    margin-top: var(--spacing-xs);
}

.footer-logo img {
    height: 35px;
    margin-top: var(--spacing-xs);
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 35px;
    height: 35px;
}

.footer-bottom {
    padding-top: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    html {
        font-size: 90%;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
        transform: none;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 85%;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    nav ul {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: 0;
        flex-direction: column;
        background-color: var(--bg-light);
        overflow: hidden;
        transition: height var(--transition-normal);
        box-shadow: var(--shadow-md);
        padding: 0;
        z-index: 999;
        gap: 0;
    }
    
    nav.active ul {
        height: 300px;
        padding: var(--spacing-sm) 0;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
        padding: var(--spacing-sm) 0;
    }
    
    nav ul li a {
        display: block;
        width: 100%;
    }
    
    nav ul li a::after {
        display: none;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .footer-social {
        margin: 0 auto;
    }
}

/* Update mobile breakpoints and adjustments */
@media (max-width: 768px) {
    /* Improve text readability on mobile */
    h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Adjust contact info cards for better mobile viewing */
    .info-card {
        padding: var(--spacing-md);
        height: auto;
        min-height: 200px;
    }

    .info-card p {
        word-break: break-word; /* Prevent long text from overflowing */
        font-size: 0.9rem;
    }

    /* Improve mobile navigation */
    nav.active ul {
        height: auto;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    /* Adjust padding for better spacing on mobile */
    section {
        padding: var(--spacing-md) 0;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    /* Make sure content doesn't stick under fixed header */
    .page-banner {
        padding-top: 100px;
    }

    /* Ensure video embeds are visible */
    .video-container {
        margin-bottom: var(--spacing-sm);
    }

    /* Improve member cards visibility */
    .member-card {
        padding: var(--spacing-sm);
        min-height: 150px;
    }

    .member-card h3 {
        font-size: 1.2rem;
        margin-bottom: var(--spacing-xs);
    }

    .member-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: var(--spacing-md) 0;
    }
    
    .hero {
        min-height: 80vh;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .social-btn {
        width: 120px;
        height: 120px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .member-card {
        padding: var(--spacing-sm);
    }
    
    .member-img {
        width: 100px;
        height: 100px;
    }
}

/* Additional small screen adjustments */
@media (max-width: 480px) {
    html {
        font-size: 14px; /* Slightly reduce base font size */
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Improve tap targets */
    .btn {
        padding: 0.8rem 1.5rem;
        min-width: 120px;
        margin: 5px;
    }

    /* Make footer more compact */
    .footer-grid {
        gap: var(--spacing-sm);
    }

    .footer-column {
        padding: var(--spacing-xs);
    }

    /* Ensure contact information is readable */
    .info-card {
        margin: 0 var(--spacing-xs);
    }

    .info-icon {
        width: 60px;
        height: 60px;
    }

    .info-icon i {
        font-size: 1.5rem;
    }

    /* Adjust spacing for dense content */
    .value-card {
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-sm);
    }

    /* Ensure process list is readable */
    .process-list li {
        margin-bottom: var(--spacing-md);
    }

    .process-detail h3 {
        font-size: 1.2rem;
    }

    /* Improve stats visibility */
    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }
}

/* Fix touch interactions on mobile */
@media (hover: none) {
    .btn:active {
        transform: translateY(0);
    }

    .info-card:active {
        transform: none;
    }

    /* Improve mobile tap targets */
    nav ul li a,
    .footer-column ul li a {
        padding: 12px 0;
    }

    .social-btn {
        padding: var(--spacing-md);
    }
}

/* Card hover effects */
.feature-card, .testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backface-visibility: hidden;
}

.feature-card:hover, .testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Team section enhancements */
.team-member {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: white;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.team-member img {
    transition: transform 0.5s ease;
}

.team-member:hover img {
    transform: scale(1.05);
}

.team-member .member-info {
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.team-member:hover .member-info {
    transform: translateY(0);
}

/* Page transitions */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Team Section Styles */
.team-section {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a2e 100%);
    color: var(--text-light);
    padding: var(--spacing-xl) 0;
}

.team-section h2 {
    color: white;
    margin-bottom: var(--spacing-lg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.team-member {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    background: var(--gradient-primary);
}

.team-img {
    width: 100%;
    height: 100%;
    position: relative;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.team-member:hover .team-img img {
    transform: scale(1.1);
}

.member-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.team-member:hover .member-info {
    transform: translateY(0);
}

.member-info h3 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.4s ease 0.2s;
}

.member-info .role {
    color: var(--primary);
    font-size: 1rem;
    margin-top: 0.5rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.3s;
}

.team-member:hover .member-info h3,
.team-member:hover .member-info .role {
    transform: translateY(0);
    opacity: 1;
}

/* Enhanced Story Section */
.about-preview {
    position: relative;
    overflow: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-text {
    position: relative;
}

.about-text::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.6s ease;
}

.about-text.visible::before {
    transform: scaleY(1);
}

.about-image {
    position: relative;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.about-image:hover::after {
    opacity: 0.2;
}

/* Enhanced Team Section Styles */
.about-team {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a2e 100%);
    color: var(--text-light);
}

.about-team h2 {
    color: white;
}

.staff-heading {
    margin-top: var(--spacing-xl);
}

.team-member.leadership {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.team-member.leadership:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.team-member.leadership .team-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--primary);
    overflow: hidden;
}

.team-member.leadership .team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.team-member.leadership:hover .team-img img {
    transform: scale(1.1);
}

.team-member.leadership h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.team-member.leadership .team-role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-member.leadership .team-bio {
    color: var(--gray-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.team-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.team-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* Staff Grid Styles */
.staff-grid {
    margin-top: 2rem;
}

.team-member.staff {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
    position: relative;
    cursor: pointer;
}

.team-member.staff .team-img {
    width: 100%;
    height: 100%;
}

.team-member.staff .team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.team-member.staff:hover .team-img img {
    transform: scale(1.1);
}

.team-member.staff h3,
.team-member.staff .team-role {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    padding: 0.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
}

.team-member.staff h3 {
    bottom: 2rem;
    color: white;
    font-size: 1.2rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.team-member.staff .team-role {
    bottom: 0;
    color: var(--primary);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease 0.1s;
}

.team-member.staff:hover h3,
.team-member.staff:hover .team-role {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .about-text::before {
        left: -1rem;
    }
    
    .team-member.leadership {
        padding: 1.5rem;
    }
    
    .team-member.leadership .team-img {
        width: 120px;
        height: 120px;
    }
    
    .staff-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

.members-preview {
    padding-bottom: 0; /* Reduce bottom padding */
}

.faq-section {
    padding-top: var(--spacing-md); /* Reduce top padding */
}

/* Discord Members Section */
.discord-members {
    background: var(--gradient-hero); /* Using the same gradient as hero section */
    color: white;
    padding: var(--spacing-lg) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.discord-members::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    opacity: 0.1;
    z-index: 1;
}

.member-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg) 0;
    position: relative;
    z-index: 2;
}

.count-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: var(--heading-font);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.count-number {
    font-size: 7rem; /* Increased from 5rem */
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                text-shadow 0.4s ease;
    transform-origin: center center;
    display: block;
    width: 100%;
}

.count-label {
    font-size: 3.5rem; /* Increased from 2.5rem */
    color: #00ffbb;
    text-shadow: 0 0 10px rgba(0, 255, 187, 0.5);
    transition: transform 0.4s ease;
    display: block;
    width: 100%;
}

/* Remove the animate-pop class styles since we're using inline styles now */
/* .animate-pop .count-number {
    transform: scale(1.1) rotate(1deg);
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.4);
} */

.discord-members .btn {
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
    font-size: 1.2rem; /* Slightly larger button text */
    padding: 1rem 2rem; /* Larger button padding */
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .count-number {
        font-size: 5rem;
    }
    
    .count-label {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .count-number {
        font-size: 4rem;
    }
    
    .count-label {
        font-size: 2rem;
    }
}

/* YouTube Videos Showcase */
.youtube-showcase {
    background-color: var(--bg-light);
    padding: var(--spacing-xl) 0;
}

.youtube-showcase h2 {
    margin-bottom: var(--spacing-lg);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.video-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.video-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.view-more-container {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .count-text {
        flex-direction: column;
        align-items: center;
    }
    
    .count-number {
        font-size: 3rem;
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .count-label {
        font-size: 1.5rem;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* Fix header blocking content issue */
.page-banner {
    padding-top: 180px; /* Increased from 150px to accommodate fixed header */
    padding-bottom: 80px;
}

/* Fix oversized images in about page */
.mission-image img,
.difference-image img,
.badge-image img,
.join-image img {
    max-width: 100%;
    height: auto;
    max-height: 300px; /* Limit the height to prevent overly large images */
    object-fit: contain;
    margin: 0 auto;
}

.team-member .team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 200px; /* Limit team member image height */
}

/* Additional spacing for about page sections */
.about-mission, 
.about-values, 
.about-difference, 
.badge-section, 
.join-section {
    padding: 60px 0;
}

/* Enhanced Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var (--spacing-md);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.value-card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.value-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.value-icon i {
    font-size: 2.5rem;
    color: white;
}

.value-card h3 {
    color: white;
    margin-bottom: var(--spacing-sm);
    font-size: 1.4rem;
}

.value-card p {
    color: var(--gray-light);
    line-height: 1.6;
    font-size: 1rem;
}

/* Badge Caption Centered */
.badge-caption {
    font-size: 0.9rem;
    color: var(--gray-light);
    font-style: italic;
    text-align: center;
    margin-top: 1rem;
    width: 100%;
}

/* Join Section Text Color Fix */
.join-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.join-section h2,
.join-section h3,
.join-section p {
    color: var(--text-dark);
}

.join-section h2 span {
    color: var(--primary);
}

/* Improved Process List */
.process-list {
    counter-reset: process;
    margin: var(--spacing-md) 0;
    padding-left: 0;
}

.process-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.process-list li:last-child {
    border-bottom: none;
}

.process-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: var(--spacing-md);
    flex-shrink: 0;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(114, 137, 218, 0.3);
}

.process-detail {
    flex: 1;
}

.process-detail h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 1.3rem;
}

.process-detail p {
    color: var(--text-dark);
    opacity: 0.8;
}

/* Fix About Page Content Alignment */
.about-content, 
.mission-content, 
.difference-content, 
.badge-content, 
.join-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-text, 
.mission-text, 
.difference-text, 
.badge-text, 
.join-text {
    padding: var(--spacing-md);
}

.about-image, 
.mission-image, 
.difference-image, 
.badge-image, 
.join-image {
    text-align: center;
    padding: var(--spacing-md);
}

.mission-image img, 
.difference-image img, 
.badge-image img, 
.join-image img {
    max-width: 90%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* Dark Section Text Enhancement */
.dark-section h2 {
    margin-bottom: var(--spacing-lg);
    color: white;
    text-align: center;
}

.dark-section .container > p {
    text-align: center;
    color: var(--gray-light);
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

/* Feature List Enhancement */
.feature-list {
    margin: var(--spacing-md) 0;
    padding-left: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
    padding: 0.5rem 0;
}

.feature-list li i {
    color: var(--primary);
    margin-right: 15px;
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.feature-list li strong {
    margin-right: 5px;
    color: var(--text-dark);
    font-weight: 600;
}

/* Fix Warning Box */
.warning-box {
    background-color: rgba(255, 87, 87, 0.1);
    border-left: 4px solid #ff5757;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    display: flex;
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0;
    align-items: flex-start;
}

.warning-icon {
    font-size: 2rem;
    color: #ff5757;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5px;
    flex-shrink: 0;
}

.warning-content h3 {
    color: #ff5757;
    margin-bottom: var(--spacing-xs);
}

.warning-content p,
.warning-content ul li {
    color: var(--text-dark) !important; /* Force black text color */
}

/* Override previous styles to ensure text is dark */
.badge-section .warning-content p,
.badge-section .warning-content ul li {
    color: #2f3640 !important;
}

/* Fix team section layout */
.about-team {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-lg) auto;
    max-width: 1200px;
}

.team-member.leadership {
    background: rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.staff-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
    .mission-content, 
    .difference-content, 
    .badge-content, 
    .join-content {
        grid-template-columns: 1fr;
    }

    .value-card {
        padding: var(--spacing-sm);
    }

    .value-icon {
        width: 60px;
        height: 60px;
        margin-bottom: var(--spacing-sm);
    }

    .value-icon i {
        font-size: 1.8rem;
    }

    .process-number {
        width: 40px;
        height: 40px;
        margin-right: var(--spacing-sm);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .warning-box {
        flex-direction: column;
        padding: var(--spacing-sm);
    }
}

/* Fix text color issues in About page */
.about-mission p,
.about-difference p,
.join-section p,
.about-difference .feature-list li,
.about-team .team-bio {
    color: var(--text-dark);
}

/* Fix dark sections text colors */
.dark-section {
    color: var(--text-light);
}

.dark-section p,
.dark-section li {
    color: rgba(255, 255, 255, 0.8);
}

.dark-section .feature-list li strong {
    color: white;
}

/* Ensure warning box has proper text color */
.warning-box {
    background-color: rgba(255, 87, 87, 0.1);
    border-left: 4px solid #ff5757;
}

.warning-content p,
.warning-content ul li {
    color: var(--text-dark) !important;
}

/* Badge caption fix */
.badge-caption {
    color: rgba(255, 255, 255, 0.8);
}

/* Team member text fixes */
.team-member.leadership h3,
.team-member.leadership .team-role,
.team-member.staff h3 {
    color: white;
}

.team-member.leadership .team-bio {
    color: rgba(255, 255, 255, 0.8);
}

/* Fix process list text color */
.process-detail h3,
.process-detail p {
    color: var(--text-dark);
}

/* FAQ items in dark sections */
.dark-section .faq-question h3 {
    color: white;
}

.dark-section .faq-answer p {
    color: rgba(255, 255, 255, 0.8);
}

/* CTA section text fix */
.cta-section p {
    color: rgba(255, 255, 255, 0.8);
}

/* Fix headers in light sections that might be inheriting dark colors */
.about-mission h2,
.about-difference h2,
.join-section h2 {
    color: var(--text-dark);
}

.about-mission h2 span,
.about-difference h2 span,
.join-section h2 span {
    color: var(--primary);
}

/* Fix for dark text color on dark background issues */
.about-values .value-card h3,
.about-values .value-card p,
.badge-section h2,
.badge-section h3,
.badge-section p,
.dark-section h2,
.dark-section h3,
.dark-section p {
    color: white !important;
}

/* Make sure process list items are properly centered on mobile */
.process-list {
    margin: var(--spacing-md) auto;
    padding-left: 0;
    max-width: 650px;
}

.process-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    text-align: left; /* Ensure text is aligned left */
}

/* Fix for badge section text */
.badge-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.badge-text {
    color: white;
}

.badge-text h3 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.badge-text p {
    color: white;
    margin-bottom: var(--spacing-md);
}

.badge-image {
    text-align: center;
}

.badge-image img {
    max-width: 90%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.badge-caption {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    text-align: center;
    margin-top: 1rem;
    width: 100%;
}

/* Fix value cards text colors and layout */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-md) auto;
    max-width: 1200px;
}

.value-card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.value-card h3 {
    color: white !important;
    margin-bottom: var(--spacing-sm);
    font-size: 1.4rem;
}

.value-card p {
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.6;
    font-size: 1rem;
}

/* Add responsive adjustments for mobile */
@media (max-width: 768px) {
    .badge-content,
    .mission-content, 
    .difference-content {
        grid-template-columns: 1fr;
    }
    
    .process-list li {
        flex-direction: column;
    }
    
    .process-number {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .process-detail {
        text-align: center;
    }
    
    .process-detail h3,
    .process-detail p {
        text-align: center;
    }
}

/* Fix core values section */
.about-values {
    background-color: var(--bg-dark);
    padding: var(--spacing-xl) 0;
    color: white;
}

.about-values h2,
.about-values h3 {
    color: white;
}

.value-card {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.value-card h3 {
    color: white;
}

.value-card p {
    color: rgba(255, 255, 255, 0.9);
}

/* Fix process list section */
.process-list {
    max-width: 800px;
    margin: 0 auto;
}

.process-list li {
    text-align: left;
}

.process-detail h3,
.process-detail p {
    color: var(--text-dark);
    text-align: left;
}

/* Fix badge section */
.badge-section {
    background-color: var(--bg-dark);
    color: white;
}

.badge-section h2,
.badge-section h3 {
    color: white;
}

.badge-section p {
    color: rgba(255, 255, 255, 0.9);
}

.badge-section .warning-box {
    background-color: rgba(255, 87, 87, 0.1);
}

.badge-section .warning-content h3 {
    color: #ff5757;
}

.badge-section .warning-content p,
.badge-section .warning-content ul li {
    color: var(--text-dark);
}

/* Fix join section */
.join-section {
    background-color: var(--bg-light);
}

.join-section h2,
.join-section h3,
.join-section p {
    color: var(--text-dark);
}

.join-section .process-list li {
    color: var(--text-dark);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Fix mission values text colors */
.mission-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var (--spacing-md);
    margin-top: var (--spacing-md);
}

.value-card {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: center;
    transition: transform var(--transition-normal);
}

.value-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.value-card h3 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.value-card p {
    color: var(--text-dark);
}

.mission-section .value-card {
    background: #ffffff;
    box-shadow: var(--shadow-md);
}

.mission-section .value-card h3 {
    color: var(--text-dark) !important;
}

.mission-section .value-card p {
    color: var(--text-dark) !important;
}

.story-section {
    background-color: var(--bg-light);
    padding: var(--spacing-xl) 0;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.story-text {
    margin-bottom: var(--spacing-lg);
}

.story-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.story-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.mission-section {
    background-color: white;
    padding: var(--spacing-xl) 0;
}

.mission-content {
    max-width: 1000px;
    margin: 0 auto;
}

.mission-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

.mission-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var (--spacing-sm);
    color: var(--text-dark);
}

.mission-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var (--spacing-lg);
    margin-top: var (--spacing-lg);
}

@media (max-width: 768px) {
    .story-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .mission-values {
        gap: var(--spacing-md);
    }
}

/* === CONTACT PAGE === */
.contact-info {
    padding: var(--spacing-xl) 0;
    min-height: 60vh;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.info-card {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.info-card:hover {
    transform: translateY(-10px);
}

.info-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-hero);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
}

.info-icon i {
    font-size: 2rem;
    color: white;
}

.info-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.info-card p {
    color: var(--primary);
    font-weight: 500;
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.info-card .text-btn {
    margin-top: var(--spacing-sm);
    text-align: center;
    margin: 0 auto;
    display: block;
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        padding: 0 var(--spacing-md);
    }
    
    .info-card {
        padding: var(--spacing-md);
    }
}

/* Members List Styles */
.members-list {
    padding: 80px 0 var(--spacing-xl);
    background-color: var(--bg-light);
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: 0;
}

/* Update member card animations */
.members-grid .member-card {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInCard 0.6s ease-out forwards;
}

@keyframes fadeInCard {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduce animation delay between cards */
.members-grid .member-card:nth-child(n) {
    animation-delay: calc(0.1s * var(--card-order, 0));
}

/* Only animate cards when they come into view */
.member-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.member-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    text-align: center;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.member-content h3 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    font-size: 1.3rem;
}

.member-social {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: var(--spacing-sm);
}

.member-social a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.member-social a:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Responsive adjustments for members page */
@media (max-width: 768px) {
    .members-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .member-card {
        padding: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .members-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .member-content h3 {
        font-size: 1.1rem;
    }
}

.member-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
    border: 3px solid var(--primary);
}

/* Enhanced Member Cards */
.fade-cards {
    animation: fadeIn 1s ease-out;
}

.member-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: 0.5s;
}

.member-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.member-card:hover::before {
    left: 100%;
}

.member-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    object-fit: cover;
    border: 4px solid var(--primary);
    transition: all 0.4s ease;
    transform-origin: center;
}

.member-card:hover .member-image {
    transform: scale(1.1);
    border-color: var(--primary-dark);
}

.member-social a {
    opacity: 0.8;
    transform: translateY(5px);
    transition: all 0.3s ease;
}

.member-card:hover .member-social a {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for cards */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.members-grid .member-card {
    animation: fadeInUp 0.6s ease-out backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add stagger delay to cards */
.members-grid .member-card:nth-child(1) { animation-delay: 0.1s; }
.members-grid .member-card:nth-child(2) { animation-delay: 0.2s; }
.members-grid .member-card:nth-child(3) { animation-delay: 0.3s; }
.members-grid .member-card:nth-child(4) { animation-delay: 0.4s; }
/* ...continue for more cards... */