/* css/pages/vision-mission.css */

:root {
    --bg-deep: #0f172a;
    --accent-primary: #3b82f6;
    --accent-secondary: #0ea5e9;
    --accent-glow: #60a5fa;
    --text-light: #f8fafc;
    --font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --radius-md: 20px;
    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.5);
}

body {
    background-color: #f8fafc;
    color: #1e293b;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
}

/* --- Hero Section: Animated Gradient --- */
.vm-hero {
    position: relative;
    padding: 160px 20px 100px;
    background: linear-gradient(-45deg, #0f172a, #1e293b, #0f172a, #090a57);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
    color: white;
    text-align: center;
    overflow: hidden;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* --- Animated Hero Shapes --- */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    border-radius: 50%;
    animation: floatingShape 20s infinite linear;
}

/* Specific Shapes */
.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent);
    animation-duration: 25s;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: 10%;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2), transparent);
    animation-duration: 30s;
    animation-delay: -5s;
    animation-direction: reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    left: 20%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15), transparent);
    animation-duration: 20s;
    animation-delay: -10s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 30%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.15), transparent);
    animation-duration: 15s;
    animation-delay: -2s;
}

.shape-5 {
    width: 250px;
    height: 250px;
    bottom: -50px;
    left: 30%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2), transparent);
    animation-duration: 28s;
    animation-delay: -15s;
    animation-direction: reverse;
}

@keyframes floatingShape {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    25% {
        transform: translate(50px, 50px) rotate(90deg) scale(1.1);
    }

    50% {
        transform: translate(0, 100px) rotate(180deg) scale(1);
    }

    75% {
        transform: translate(-50px, 50px) rotate(270deg) scale(0.9);
    }

    100% {
        transform: translate(0, 0) rotate(360deg) scale(1);
    }
}

.vm-hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

.vm-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff 20%, #60a5fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.3));
    letter-spacing: -2px;
}

.vm-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* --- Sections --- */
.vm-section {
    padding: 100px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Glass Card Style 2.0: Premium & 3D */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    padding: 60px;
    box-shadow:
        0 20px 50px -10px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.6),
            transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 30px 60px -12px rgba(59, 130, 246, 0.25);
}

.glass-card:hover::before {
    left: 150%;
    transition: 0.7s;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.text-content {
    position: relative;
    z-index: 2;
}

.text-content h2 {
    font-size: 2.5rem;
    color: var(--bg-deep);
    margin-bottom: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #0f172a 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #475569;
}

.icon-box {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 6rem;
    color: white;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    width: 220px;
    height: 220px;
    border-radius: 40px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4);
    transform: rotate(-5deg);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
}

/* Vision Card Theme (Future/Galaxy) */
.vision-card .icon-box {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    /* Purple to Blue */
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.4);
}

.vision-card .bg-letter {
    color: #8b5cf6;
    right: -20px;
    bottom: -40px;
    font-size: 20rem;
    /* Massive V */
}

/* Mission Card Theme (Action/Energy) */
.mission-card .icon-box {
    background: linear-gradient(135deg, #f97316, #ef4444);
    /* Orange to Red */
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.4);
}

.mission-card .bg-letter {
    color: #f97316;
    left: -20px;
    /* On left since layout is RTL */
    right: auto;
    bottom: -40px;
    font-size: 20rem;
    /* Massive M */
}

.glass-card:hover .icon-box {
    transform: rotate(0deg) scale(1.05);
}

/* Core Values */
.core-values-section {
    background: linear-gradient(to bottom, #f1f5f9, #e2e8f0);
    position: relative;
    overflow: hidden;
}

/* Decorative background circle */
.core-values-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

/* Watermark styles setup */
.section-header::before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 900;
    color: rgba(59, 130, 246, 0.05);
    /* Faint blue tint */
    z-index: -1;
    font-family: var(--font-heading);
    letter-spacing: -5px;
    pointer-events: none;
    white-space: nowrap;
}

/* Specific Watermarks */
.core-values-section .section-header::before {
    content: '3T';
    font-size: 15rem;
}

.philosophy-section .section-header::before {
    content: 'HNPEI';
    font-size: 15rem;
    /* Larger size since HNPEI is shorter and needs to feel premium and spacious */
    letter-spacing: -5px;
    opacity: 0.04;
    width: 100%;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--bg-deep);
    margin-bottom: 16px;
    font-weight: 800;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 2;
}

.value-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    padding: 50px 30px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: 0.4s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Specific T Styles */
.card-tam {
    border-top: 5px solid #ef4444;
}

/* Red */
.card-luc {
    border-top: 5px solid #eab308;
}

/* Yellow */
.card-tuy {
    border-top: 5px solid #3b82f6;
}

/* Blue */

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.value-card h3 {
    font-size: 1.75rem;
    margin: 25px 0 15px;
    color: var(--bg-deep);
    font-weight: 800;
    position: relative;
    z-index: 2;
}

.value-card p {
    position: relative;
    z-index: 2;
    color: #475569;
}

.value-icon {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: 0.4s;
    position: relative;
    z-index: 2;
}

.card-tam .value-icon {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.3);
}

.card-luc .value-icon {
    background: linear-gradient(135deg, #eab308, #ca8a04);
    box-shadow: 0 10px 20px rgba(234, 179, 8, 0.3);
}

.card-tuy .value-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

/* Background Letter T */
.bg-letter {
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-size: 12rem;
    font-weight: 900;
    line-height: 1;
    opacity: 0.07;
    z-index: 0;
    font-family: var(--font-heading);
    color: currentColor;
    /* Inherits from parent, but we'll override */
    pointer-events: none;
    transition: 0.5s;
}

.card-tam .bg-letter {
    color: #ef4444;
}

.card-luc .bg-letter {
    color: #eab308;
}

.card-tuy .bg-letter {
    color: #3b82f6;
}

.value-card:hover .bg-letter {
    transform: scale(1.1) rotate(-10deg);
    opacity: 0.15;
}

.value-card:hover .value-icon {
    transform: scale(1.1) rotate(10deg);
}

/* Philosophy Section */
.philosophy-section {
    background: white;
    position: relative;
}

.philosophy-quote {
    font-size: 1.75rem;
    font-weight: 600;
    font-style: italic;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 80px;
    color: #334155;
    position: relative;
    padding: 40px;
    background: #f8fafc;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.philosophy-quote i {
    color: var(--accent-primary);
    opacity: 0.2;
    font-size: 3rem;
    position: absolute;
}

.philosophy-quote i.fa-quote-left {
    top: 20px;
    left: 20px;
}

.philosophy-quote i.fa-quote-right {
    bottom: 20px;
    right: 20px;
}


/* --- New Philosophy Section Design (Typography) --- */
.acronym-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    /* Increased gap for vertical separation */
    max-width: 800px;
    margin: 0 auto;
}

.acronym-item-art {
    position: relative;
    padding: 20px;
    text-align: center;
    width: 100%;
    /* Full width */
}

/* The faint background letter */
.art-big-letter {
    position: absolute;
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%);
    font-size: 10rem;
    font-weight: 900;
    color: var(--accent-primary);
    opacity: 0.2;
    z-index: 0;
    line-height: 1;
    pointer-events: none;
}

/* The Vietnamese meaning (Cursive, Top) */
.art-vn-meaning {
    display: block;
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: #1e293b;
    /* Dark grey/black */
    position: relative;
    z-index: 2;
    margin-bottom: -15px;
    /* Overlap effect */
    transform: rotate(-5deg);
    text-shadow: 0 2px 5px rgba(255, 255, 255, 0.8);
}

/* The English Word (Bold, Blue, Bottom) */
.art-en-word {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-primary);
    /* Blue */
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.1;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.5);
}

/* Hover effects */
.acronym-item-art:hover .art-big-letter {
    opacity: 0.15;
    transform: translate(-50%, -50%) scale(1.1);
    transition: 0.4s;
}

.acronym-item-art:hover .art-vn-meaning {
    transform: rotate(0deg) scale(1.1);
    color: var(--accent-secondary);
    transition: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .acronym-list {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .art-en-word {
        font-size: 2.5rem;
    }

    .art-vn-meaning {
        font-size: 1.5rem;
    }
}

.art-description {
    font-size: 1.1rem;
    color: #475569;
    max-width: 700px;
    /* Increased from 600px to allow more text per line */
    margin: 15px auto 0;
    line-height: 1.6;
    font-weight: 500;
    position: relative;
    z-index: 2;
    text-wrap: balance;
    /* Prevents single words on new lines */
}


/* Message Section */
.message-section {
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.message-box {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 60px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

.message-text {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.5;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- ANIMATION CLASSES (To be triggered by JS) --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .section-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .icon-box {
        margin-bottom: 20px;
    }

    .vm-title {
        font-size: 2.5rem;
    }

    .glass-card {
        padding: 30px;
    }
}