/* ================================================
   TAPG About Page - Premium Gold & Black Design
   with South African Flag Accent Colors
   ================================================ */

:root {
    /* Primary Colors */
    --gold: #DAA520;
    --gold-dark: #B8860B;
    --black: #000000;
    --white: #FFFFFF;

    /* South African Flag Colors */
    --sa-green: #007749;
    --sa-red: #DE3831;
    --sa-blue: #002395;
    --sa-yellow: #FFB81C;

    /* Neutral Colors */
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --bg-light: #f8f9fa;

    /* Gradients */
    --sa-gradient: linear-gradient(90deg, var(--sa-green), var(--sa-yellow), var(--sa-red), var(--sa-blue), var(--black));
    --gold-gradient: linear-gradient(135deg, var(--gold-dark), var(--gold));

    /* Effects */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
    --shadow-gold: 0 10px 30px -5px rgba(218, 165, 32, 0.3);
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
    background: var(--white);
}

.about-container {
    background: var(--white);
}

/* ================================================
   HERO SECTION
   ================================================ */
.hero-section {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    background-image: url('/img/About-bg.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(218, 165, 32, 0.3));
}

/* SA Flag Accent Border */
.hero-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--sa-gradient);
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-content h2 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--gold);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto;
}

/* ================================================
   STATS SECTION - Floating Cards
   ================================================ */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: -80px auto 6rem;
    padding: 0 2rem;
    position: relative;
    z-index: 3;
}

.stat-item {
    background: var(--white);
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* SA Color Accents on Stats */
.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.stat-item:nth-child(1)::before {
    background: var(--sa-green);
}

.stat-item:nth-child(2)::before {
    background: var(--sa-red);
}

.stat-item:nth-child(3)::before {
    background: var(--sa-blue);
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-gold);
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--black);
    margin-bottom: 0.5rem;
    display: block;
    line-height: 1;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* ================================================
   MAIN CONTENT
   ================================================ */
.main-content {
    max-width: 1200px;
    margin: 0 auto 6rem;
    padding: 0 2rem;
}

/* Our Story Section */
.story-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-bottom: 6rem;
}

.story-text h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--black);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 800;
}

.story-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gold);
}

.story-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.highlight-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gold);
    border-left: 4px solid var(--gold);
    padding-left: 1.5rem;
    margin: 2.5rem 0;
    font-style: italic;
}

.story-image-container {
    position: relative;
}

.story-image-container::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--gold);
    border-radius: 12px;
    z-index: 0;
}

.story-image-container img {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

/* ================================================
   VISION & MISSION SPLIT
   ================================================ */
.vision-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
    margin-top: 6rem;
}

.vision-block {
    padding: 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.vision-dark {
    background: var(--black);
    color: white;
}

.vision-light {
    background: var(--bg-light);
    color: var(--text-primary);
}

/* SA Gradient Accent */
.vision-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--sa-gradient);
}

.vision-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold);
}

.vision-block h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.vision-dark h2 {
    color: var(--gold);
}

.vision-light h2 {
    color: var(--black);
}

.vision-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.95;
}

/* ================================================
   VALUES SECTION
   ================================================ */
.values-container {
    background: var(--white);
    padding: 6rem 2rem;
    position: relative;
}

.values-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--sa-gradient);
}

.values-content {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--black);
    margin-bottom: 1rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gold);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.value-card {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    text-align: left;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

/* SA Colors on Different Cards */
.value-card:nth-child(1)::before {
    background: var(--sa-green);
}

.value-card:nth-child(2)::before {
    background: var(--sa-red);
}

.value-card:nth-child(3)::before {
    background: var(--sa-blue);
}

.value-card:nth-child(4)::before {
    background: var(--gold);
}

.value-card:nth-child(5)::before {
    background: var(--sa-green);
}

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

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-gold);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: rgba(218, 165, 32, 0.1);
    border-radius: 12px;
    transition: var(--transition);
}

.value-card:hover .value-icon {
    transform: scale(1.1);
    background: rgba(218, 165, 32, 0.2);
}

.value-card h3 {
    font-size: 1.5rem;
    color: var(--black);
    margin-bottom: 1rem;
    font-weight: 700;
}

.value-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    font-size: 1.05rem;
}

/* ================================================
   ANIMATIONS
   ================================================ */
.animate-slide-up,
.animate-slide-left,
.animate-slide-right {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.animate-slide-up {
    transform: translateY(30px);
}

.animate-slide-left {
    transform: translateX(-30px);
}

.animate-slide-right {
    transform: translateX(30px);
}

.visible {
    opacity: 1 !important;
    transform: translate(0) !important;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */
@media (max-width: 1024px) {
    .story-section {
        gap: 3rem;
    }

    .vision-block {
        padding: 4rem 3rem;
    }
}

@media (max-width: 900px) {
    .stats-container {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-top: 2rem;
        gap: 2rem;
    }

    .story-section {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .story-image-container {
        order: -1;
    }

    .vision-split {
        grid-template-columns: 1fr;
    }

    .vision-block {
        padding: 4rem 2rem;
        min-height: 400px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
        min-height: 500px;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .values-container {
        padding: 4rem 1.5rem;
    }

    .vision-block {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 3rem;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}