/* =====================================================
   CSS Variables - Design System
   ===================================================== */
:root {
    /* Colors - Philippine Blue, Red, and Yellow */
    --primary: hsl(215, 100%, 33%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(351, 87%, 45%);
    --secondary-foreground: hsl(0, 0%, 100%);
    --accent: hsl(48, 100%, 50%);
    --accent-foreground: hsl(215, 100%, 20%);
    
    /* Base Colors */
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(215, 100%, 20%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(215, 100%, 20%);
    
    /* Muted Colors */
    --muted: hsl(210, 40%, 96.1%);
    --muted-foreground: hsl(215.4, 16.3%, 46.9%);
    
    /* Destructive */
    --destructive: hsl(351, 87%, 45%);
    --destructive-foreground: hsl(0, 0%, 100%);
    
    /* Borders */
    --border: hsl(214.3, 31.8%, 91.4%);
    --input: hsl(214.3, 31.8%, 91.4%);
    --ring: hsl(215, 100%, 33%);
    
    /* Radius */
    --radius: 0.75rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-strong: 0 20px 50px -10px hsla(215, 100%, 33%, 0.3);
    --shadow-glow: 0 0 40px hsla(48, 100%, 50%, 0.3);
}

/* =====================================================
   Base Styles
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =====================================================
   Animations & Keyframes
   ===================================================== */
@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in-left {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slide-in-right {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scale-in {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes glow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fade-in 0.8s ease-out;
}

.animate-fade-in-up {
    animation: fade-in-up 1s ease-out;
}

.animate-slide-in-left {
    animation: slide-in-left 0.8s ease-out;
}

.animate-slide-in-right {
    animation: slide-in-right 0.8s ease-out;
}

.animate-scale-in {
    animation: scale-in 0.6s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-bounce {
    animation: bounce 1.5s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('../src/assets/ph-flag-hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        hsla(215, 100%, 33%, 0.9),
        hsla(215, 100%, 33%, 0.85),
        hsla(351, 87%, 45%, 0.8)
    );
}

.decorative-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.2;
    z-index: 1;
}

.decorative-blob-1 {
    top: 5rem;
    left: 2.5rem;
    width: 18rem;
    height: 18rem;
    background-color: var(--accent);
    animation: float 3s ease-in-out infinite;
}

.decorative-blob-2 {
    bottom: 5rem;
    right: 2.5rem;
    width: 24rem;
    height: 24rem;
    background-color: var(--secondary);
    animation: float 3s ease-in-out infinite;
    animation-delay: 1s;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 0 1rem;
    text-align: center;
}

.hero-inner {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.hero-title-wrapper {
    animation: fade-in-up 1s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 900;
    color: var(--primary-foreground);
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-dividers {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.divider {
    height: 0.5rem;
    width: 8rem;
    border-radius: 9999px;
}

.divider-1 {
    background-color: var(--accent);
    animation: slide-in-left 0.8s ease-out;
}

.divider-2 {
    background-color: var(--primary-foreground);
    animation: scale-in 0.6s ease-out;
}

.divider-3 {
    background-color: var(--accent);
    animation: slide-in-right 0.8s ease-out;
}

.hero-subtitle-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fade-in 0.8s ease-out 0.3s backwards;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--primary-foreground);
    font-weight: 700;
    letter-spacing: 0.025em;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 300;
}

.hero-badge-wrapper {
    padding-top: 2rem;
    animation: fade-in 0.8s ease-out 0.6s backwards;
}

.hero-badge {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 9999px;
    border: 2px solid rgba(255, 215, 0, 0.5);
}

.hero-badge-text {
    color: var(--primary-foreground);
    font-size: 1.125rem;
    font-weight: 600;
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: glow 2s ease-in-out infinite;
}

.scroll-indicator-border {
    width: 1.5rem;
    height: 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 9999px;
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
}

.scroll-indicator-dot {
    width: 0.375rem;
    height: 0.75rem;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 9999px;
    animation: bounce 1.5s ease-in-out infinite;
}

/* =====================================================
   Mission Section
   ===================================================== */
.mission-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom,
        var(--background),
        hsla(210, 40%, 96.1%, 0.3),
        var(--background)
    );
    overflow: hidden;
}

.mission-header {
    text-align: center;
    margin-bottom: 5rem;
    animation: fade-in-up 1s ease-out;
}

.mission-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 2rem;
    color: var(--foreground);
    letter-spacing: -0.02em;
}

.mission-dividers {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.mission-divider {
    width: 5rem;
    height: 0.375rem;
    border-radius: 9999px;
}

.mission-divider-1 {
    background-color: var(--primary);
}

.mission-divider-2 {
    background-color: var(--accent);
}

.mission-divider-3 {
    background-color: var(--secondary);
}

.mission-description {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--muted-foreground);
    max-width: 64rem;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 300;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.value-card {
    padding: 2.5rem;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.5s ease;
    animation: scale-in 0.6s ease-out;
}

.value-card:hover {
    transform: translateY(-0.75rem);
    box-shadow: var(--shadow-2xl);
    border-color: hsla(215, 100%, 33%, 0.5);
}

.value-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.value-icon-wrapper {
    position: relative;
}

.value-icon-bg {
    position: absolute;
    inset: 0;
    background-color: hsla(215, 100%, 33%, 0.2);
    border-radius: 50%;
    filter: blur(40px);
    transition: all 0.3s ease;
}

.value-card:hover .value-icon-bg {
    background-color: hsla(215, 100%, 33%, 0.3);
}

.value-icon-container {
    position: relative;
    padding: 1.25rem;
    border-radius: 50%;
    background: linear-gradient(to bottom right,
        hsla(215, 100%, 33%, 0.1),
        hsla(48, 100%, 50%, 0.1)
    );
    transition: transform 0.5s ease;
}

.value-card:hover .value-icon-container {
    transform: scale(1.1);
}

.value-icon {
    width: 3.5rem;
    height: 3.5rem;
    stroke-width: 2;
    transition: transform 0.5s ease;
}

.value-card:hover .value-icon {
    transform: rotate(12deg);
}

.icon-primary {
    color: var(--primary);
}

.icon-secondary {
    color: var(--secondary);
}

.icon-accent {
    color: var(--accent);
}

.icon-destructive {
    color: var(--destructive);
}

.value-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    transition: color 0.3s ease;
}

.value-card:hover .value-title {
    color: var(--primary);
}

.value-description {
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* Unity Image */
.unity-image-wrapper {
    max-width: 96rem;
    margin: 0 auto 5rem;
}

.unity-image-container {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    animation: fade-in 0.8s ease-out 0.4s backwards;
}

.unity-image {
    width: 100%;
    height: 24rem;
    object-fit: cover;
}

.unity-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        hsla(215, 100%, 33%, 0.9),
        hsla(215, 100%, 33%, 0.5),
        transparent
    );
}

.unity-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    text-align: center;
    color: var(--primary-foreground);
}

.unity-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.unity-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
}

/* Why It Matters Card */
.matters-card-wrapper {
    max-width: 80rem;
    margin: 0 auto;
}

.matters-card {
    padding: 3rem 4rem;
    background: linear-gradient(to bottom right,
        var(--card),
        rgba(255, 255, 255, 0.5)
    );
    border: 2px solid hsla(215, 100%, 33%, 0.2);
    border-radius: var(--radius);
    box-shadow: var(--shadow-2xl);
    backdrop-filter: blur(10px);
    animation: fade-in-up 1s ease-out;
}

.matters-title {
    font-size: 2.25rem;
    font-weight: 900;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--foreground);
}

.matters-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 1.125rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

.matters-text {
    font-size: 1.25rem;
}

.matters-highlight {
    padding-top: 1.5rem;
    text-align: center;
}

.matters-highlight-text {
    font-weight: 900;
    color: var(--primary);
    font-size: 1.875rem;
}

/* =====================================================
   Call To Action Section
   ===================================================== */
.cta-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    inset: 0;
    background-image: url('../src/assets/progress.jpg');
    background-size: cover;
    background-position: center;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
        hsla(215, 100%, 33%, 0.95),
        hsla(351, 87%, 45%, 0.9),
        hsla(215, 100%, 33%, 0.95)
    );
}

.cta-container {
    position: relative;
    z-index: 10;
}

.cta-content {
    max-width: 80rem;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    animation: fade-in-up 1s ease-out;
}

.cta-title {
    font-size: clamp(2rem, 7vw, 5rem);
    font-weight: 900;
    color: var(--primary-foreground);
    letter-spacing: -0.02em;
}

.cta-dividers {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.cta-divider {
    height: 0.5rem;
    width: 6rem;
    border-radius: 9999px;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.cta-divider-1 {
    background-color: var(--accent);
}

.cta-divider-2 {
    background-color: var(--primary-foreground);
    animation-delay: 0.2s;
}

.cta-divider-3 {
    background-color: var(--accent);
    animation-delay: 0.4s;
}

.cta-description {
    font-size: clamp(1rem, 3vw, 1.875rem);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    font-weight: 300;
    max-width: 48rem;
    margin: 0 auto;
}

.cta-stats {
    padding-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    color: var(--primary-foreground);
}

.cta-stat {
    animation: scale-in 0.6s ease-out;
}

.cta-stat-number {
    font-size: 3.75rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 1rem;
    animation: glow 2s ease-in-out infinite;
}

.cta-stat-label {
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.025em;
}

.cta-footer {
    padding-top: 2rem;
    animation: fade-in 0.8s ease-out 0.8s backwards;
}

.cta-footer-text {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary-foreground);
}

/* =====================================================
   Footer Section
   ===================================================== */
.footer {
    background: linear-gradient(to bottom,
        var(--card),
        hsla(215, 100%, 33%, 0.05)
    );
    border-top: 1px solid var(--border);
    padding: 4rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col {
    animation: fade-in 0.8s ease-out;
}

.footer-col-main {
    grid-column: span 2;
}

.footer-title {
    font-size: 1.875rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    color: var(--muted-foreground);
    line-height: 1.6;
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

/* Footer Mission Section */
.footer-mission {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.footer-mission-text {
    color: var(--muted-foreground);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.value-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    transition: transform 0.2s ease;
}

.value-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.footer-col-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--muted-foreground);
}

.footer-contact-note {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    font-style: italic;
    margin-top: 0.5rem;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary);
}

.footer-link:hover .footer-link-icon {
    transform: scale(1.1);
}

.footer-link-icon {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.3s ease;
}

/* Footer Importance Section */
.footer-importance {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-importance-text {
    color: var(--muted-foreground);
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-importance-highlight {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, 
        hsla(215, 100%, 33%, 0.1), 
        hsla(351, 87%, 45%, 0.1)
    );
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    text-align: center;
    animation: fade-in 0.8s ease-out;
}

.footer-copyright {
    color: var(--muted-foreground);
}

.footer-tagline {
    font-size: 0.875rem;
    color: hsla(215.4, 16.3%, 46.9%, 0.6);
    margin-top: 0.5rem;
}

/* =====================================================
   Responsive Styles
   ===================================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .mission-title {
        font-size: 2rem;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .matters-card {
        padding: 2rem 1.5rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-stats {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-col-main {
        grid-column: span 1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-badge {
        padding: 0.75rem 1.5rem;
    }
    
    .hero-badge-text {
        font-size: 1rem;
    }
    
    .value-card {
        padding: 2rem 1.5rem;
    }
    
    .matters-title {
        font-size: 1.75rem;
    }
    
    .matters-text {
        font-size: 1rem;
    }
    
    .matters-highlight-text {
        font-size: 1.5rem;
    }
}

/* =====================================================
   404 Page Styles
   ===================================================== */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--background), var(--muted));
}

.error-content {
    text-align: center;
    padding: 2rem;
}

.error-code {
    font-size: 6rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 1rem;
    animation: scale-in 0.6s ease-out;
}

.error-message {
    font-size: 1.5rem;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.error-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

.error-link {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.3s ease;
}

.error-link:hover {
    background-color: hsl(215, 100%, 40%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

