/**
 * VC Don Bosco - Design System
 * Modern Sports Club Website
 * Couleurs basées sur le logo officiel
 */

/* ========================================
   CSS VARIABLES - Design Tokens
   ======================================== */
:root {
    /* Couleurs principales du logo Vision Don Bosco */
    --primary: #0066CC;           /* Bleu vif principal du logo */
    --primary-light: #1E90FF;     /* Bleu clair */
    --primary-dark: #003399;      /* Bleu foncé - contours logo */
    --secondary: #0047AB;         /* Bleu royal */
    --secondary-light: #4DA6FF;   /* Bleu ciel */
    --accent: #ffc107;            /* Or/Jaune pour accents */
    --accent-light: #ffecb3;
    
    /* Couleurs neutres */
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    --black: #000000;
    
    /* Couleurs sémantiques */
    --success: #4caf50;
    --warning: #ff9800;
    --error: #f44336;
    --info: #2196f3;
    
    /* Typographie */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Poppins', sans-serif;
    
    /* Tailles de police */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    /* Espacements */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Bordures et ombres */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    --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);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    
    /* Largeurs max */
    --max-width-sm: 640px;
    --max-width-md: 768px;
    --max-width-lg: 1024px;
    --max-width-xl: 1280px;
    --max-width-2xl: 1400px;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ========================================
   LAYOUT - Container
   ======================================== */
.container {
    width: 100%;
    max-width: var(--max-width-xl);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-sm {
    max-width: var(--max-width-md);
}

.container-lg {
    max-width: var(--max-width-2xl);
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.header.scrolled {
    background: var(--primary-dark);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3) 0;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--white);
    z-index: 1001;
}

.logo img {
    height: 55px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: transform var(--transition-base);
}

.logo:hover img {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-title {
    font-size: var(--text-xl);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-slogan {
    font-size: var(--text-xs);
    opacity: 0.85;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.nav-list a {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-4);
    color: var(--white);
    font-size: var(--text-sm);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-list a:hover,
.nav-list a.active {
    background: rgba(255, 255, 255, 0.15);
}

.nav-list a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--accent);
    border-radius: var(--radius-full);
}

/* CTA Button in Nav */
.nav-list .btn-nav {
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 600;
    margin-left: var(--space-2);
    padding: var(--space-2) var(--space-5);
}

.nav-list .btn-nav:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--accent);
    color: var(--primary-dark);
}

.btn-secondary:hover {
    background: #ffca28;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-outline-primary {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/hero/background.jpg') center/cover no-repeat;
    opacity: 0.15;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(21, 101, 192, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(66, 165, 245, 0.2) 0%, transparent 50%);
}

/* Animated shapes */
.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 20s infinite ease-in-out;
}

.hero-shapes .shape:nth-child(1) {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-shapes .shape:nth-child(2) {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

.hero-shapes .shape:nth-child(3) {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 20%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -20px) scale(1.05); }
    50% { transform: translate(-10px, 10px) scale(0.95); }
    75% { transform: translate(15px, 15px) scale(1.02); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: var(--space-8);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    margin-bottom: var(--space-6);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.hero h1 {
    font-size: clamp(var(--text-4xl), 8vw, var(--text-6xl));
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-4);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-slogan {
    font-size: clamp(var(--text-xl), 4vw, var(--text-2xl));
    font-weight: 300;
    color: var(--accent);
    margin-bottom: var(--space-6);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero p {
    font-size: var(--text-lg);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto var(--space-8);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-12);
    margin-top: var(--space-12);
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.hero-stat-label {
    font-size: var(--text-sm);
    opacity: 0.8;
    margin-top: var(--space-1);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 30px;
    height: 30px;
    color: var(--white);
    opacity: 0.7;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    padding: var(--space-20) 0;
}

.section-alt {
    background: var(--gray-50);
}

.section-dark {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-title h2 {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: var(--space-4);
    position: relative;
    display: inline-block;
}

.section-dark .section-title h2 {
    color: var(--white);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: var(--radius-full);
}

.section-title p {
    font-size: var(--text-lg);
    color: var(--gray-600);
    max-width: 600px;
    margin: var(--space-6) auto 0;
}

.section-dark .section-title p {
    color: rgba(255, 255, 255, 0.8);
}

/* ========================================
   DEVISE / MOTTO SECTION
   ======================================== */
.devise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.devise-item {
    text-align: center;
    padding: var(--space-8);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.devise-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
}

.devise-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.devise-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-4xl);
}

.devise-item h3 {
    font-size: var(--text-2xl);
    color: var(--primary);
    margin-bottom: var(--space-4);
}

.devise-item p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* ========================================
   VALUES GRID
   ======================================== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.value-card {
    background: var(--white);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    transition: all var(--transition-base);
    border: 1px solid var(--gray-100);
    position: relative;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary-light);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-5);
    color: var(--white);
}

.value-icon svg {
    width: 28px;
    height: 28px;
}

.value-card h3 {
    font-size: var(--text-xl);
    color: var(--primary);
    margin-bottom: var(--space-3);
}

.value-card p {
    color: var(--gray-600);
    font-size: var(--text-sm);
    line-height: 1.7;
}

/* ========================================
   STATS SECTION
   ======================================== */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: var(--space-16) 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-number {
    font-size: var(--text-5xl);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

/* ========================================
   ACTIVITIES / EVENTS
   ======================================== */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-8);
}

.activity-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    border: 1px solid var(--gray-100);
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.activity-image {
    height: 200px;
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-image svg {
    width: 80px;
    height: 80px;
    color: var(--white);
    opacity: 0.8;
}

.activity-content {
    padding: var(--space-6);
}

.activity-type {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: var(--accent-light);
    color: var(--primary);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-3);
}

.activity-card h3 {
    font-size: var(--text-xl);
    color: var(--primary);
    margin-bottom: var(--space-3);
}

.activity-card p {
    color: var(--gray-600);
    font-size: var(--text-sm);
    line-height: 1.7;
}

/* Events list */
.events-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.event-item {
    display: flex;
    gap: var(--space-6);
    padding: var(--space-6);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    transition: all var(--transition-base);
    border: 1px solid var(--gray-100);
}

.event-item:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-light);
}

.event-date {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    padding: var(--space-4);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-lg);
    color: var(--white);
}

.event-date-day {
    font-size: var(--text-3xl);
    font-weight: 700;
    line-height: 1;
}

.event-date-month {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--space-1);
}

.event-info h3 {
    font-size: var(--text-lg);
    color: var(--primary);
    margin-bottom: var(--space-2);
}

.event-info p {
    color: var(--gray-600);
    font-size: var(--text-sm);
}

.event-meta {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-3);
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.event-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

/* ========================================
   GALLERY
   ======================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-4);
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 35, 126, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-6);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    color: var(--white);
    font-size: var(--text-lg);
    margin-bottom: var(--space-1);
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-sm);
}

/* ========================================
   MEMBERS
   ======================================== */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-6);
}

.member-card {
    text-align: center;
    padding: var(--space-6);
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    transition: all var(--transition-base);
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.member-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-4);
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--secondary-light);
    box-shadow: var(--shadow-md);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-card h3 {
    font-size: var(--text-lg);
    color: var(--primary);
    margin-bottom: var(--space-1);
}

.member-function {
    font-size: var(--text-sm);
    color: var(--secondary);
    font-weight: 500;
}

/* ========================================
   FORMS
   ======================================== */
.form-group {
    margin-bottom: var(--space-5);
}

.form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    transition: all var(--transition-fast);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-12);
}

.contact-info {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: var(--space-10);
    border-radius: var(--radius-2xl);
    color: var(--white);
}

.contact-info h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-6);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-item h4 {
    font-size: var(--text-sm);
    opacity: 0.8;
    margin-bottom: var(--space-1);
}

.contact-item p {
    font-size: var(--text-base);
}

.contact-social {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.contact-social a:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
}

.contact-form {
    background: var(--white);
    padding: var(--space-10);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

/* ========================================
   PAGE HEADER
   ======================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: var(--space-24) 0 var(--space-16);
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.page-header h1 {
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    position: relative;
}

.page-header p {
    font-size: var(--text-lg);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    font-size: var(--text-sm);
    opacity: 0.8;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    opacity: 0.6;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--accent) 0%, #ffa000 100%);
    padding: var(--space-16) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: var(--text-3xl);
    color: var(--primary-dark);
    margin-bottom: var(--space-4);
}

.cta-section p {
    font-size: var(--text-lg);
    color: var(--primary);
    max-width: 600px;
    margin: 0 auto var(--space-8);
}

.cta-section .btn {
    background: var(--primary);
    color: var(--white);
}

.cta-section .btn:hover {
    background: var(--primary-dark);
}

/* ========================================
   ALERTS
   ======================================== */
.alert {
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.alert-warning {
    background: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffcc80;
}

.alert-info {
    background: #e3f2fd;
    color: #0066CC;
    border: 1px solid #90caf9;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: var(--space-16) 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-12);
    padding-bottom: var(--space-12);
    border-bottom: 1px solid var(--gray-800);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.footer-logo img {
    height: 50px;
}

.footer-logo span {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--white);
}

.footer-brand p {
    font-size: var(--text-sm);
    line-height: 1.8;
    margin-bottom: var(--space-5);
}

.footer-slogan {
    color: var(--accent);
    font-weight: 600;
    font-size: var(--text-sm);
}

.footer-section h4 {
    color: var(--white);
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-5);
    position: relative;
    padding-bottom: var(--space-3);
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-links a {
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--text-sm);
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-social {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    padding: var(--space-6) 0;
    text-align: center;
    font-size: var(--text-sm);
    color: var(--gray-500);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--primary-dark);
        padding: var(--space-20) var(--space-6);
        transition: right var(--transition-slow);
        box-shadow: var(--shadow-2xl);
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-2);
    }
    
    .nav-list a {
        padding: var(--space-4);
        border-radius: var(--radius-lg);
    }
    
    .nav-list .btn-nav {
        margin-left: 0;
        margin-top: var(--space-4);
        text-align: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-6);
    }
    
    .devise-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: var(--space-12) 0;
    }
    
    .page-header {
        padding: var(--space-20) 0 var(--space-12);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-4);
    }
    
    .hero h1 {
        font-size: var(--text-3xl);
    }
    
    .section-title h2 {
        font-size: var(--text-2xl);
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   UTILITIES
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-4 { gap: var(--space-4); }
.gap-8 { gap: var(--space-8); }

.w-full { width: 100%; }
.max-w-md { max-width: var(--max-width-md); }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Animation classes */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   HERO SLIDER / CAROUSEL
   ======================================== */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slider-nav {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-3);
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: var(--transition-base);
}

.slider-dot.active,
.slider-dot:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

/* ========================================
   DONATE BUTTON
   ======================================== */
.btn-donate {
    background: linear-gradient(135deg, var(--error) 0%, #c62828 100%) !important;
    color: white !important;
    border: none !important;
    animation: pulse-donate 2s infinite;
}

.btn-donate:hover {
    background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%) !important;
    transform: translateY(-2px);
}

@keyframes pulse-donate {
    0%, 100% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(244, 67, 54, 0); }
}

/* ========================================
   WHY JOIN SECTION
   ======================================== */
.section-dark {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.section-dark .section-title h2,
.section-dark .section-title p {
    color: white;
}

.why-join-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.why-join-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-base);
}

.why-join-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.why-join-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-4);
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-join-icon svg {
    width: 30px;
    height: 30px;
    stroke: white;
}

.why-join-card h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
    color: white;
}

.why-join-card p {
    font-size: var(--text-sm);
    opacity: 0.9;
    line-height: 1.6;
}

/* ========================================
   PARTNERS SECTION
   ======================================== */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-6);
}

.partner-placeholder {
    background: var(--gray-100);
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    transition: var(--transition-base);
}

.partner-placeholder:hover {
    border-color: var(--primary);
    background: var(--gray-50);
}

.partner-placeholder svg {
    width: 60px;
    height: 60px;
    stroke: var(--gray-400);
}

.partner-placeholder span {
    color: var(--gray-500);
    font-size: var(--text-sm);
}

/* ========================================
   MISSION LIST
   ======================================== */
.mission-list {
    max-width: 900px;
    margin: 0 auto;
}

.mission-item {
    display: flex;
    gap: var(--space-6);
    padding: var(--space-6);
    background: white;
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.mission-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.mission-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mission-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
}

.mission-content h3 {
    color: var(--primary);
    margin-bottom: var(--space-2);
    font-size: var(--text-lg);
}

.mission-content p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* ========================================
   OBJECTIVES GRID
   ======================================== */
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.objective-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary);
    transition: var(--transition-base);
}

.objective-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.objective-icon {
    width: 50px;
    height: 50px;
    margin-bottom: var(--space-4);
}

.objective-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--primary);
}

.objective-card h3 {
    color: var(--primary);
    margin-bottom: var(--space-3);
    font-size: var(--text-lg);
}

.objective-card p {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: var(--text-sm);
}

/* ========================================
   FUNDING SECTION
   ======================================== */
.funding-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-8);
}

.funding-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
}

.funding-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
}

.funding-icon svg {
    width: 30px;
    height: 30px;
    stroke: white;
}

.funding-card h3 {
    color: var(--primary);
    margin-bottom: var(--space-4);
    font-size: var(--text-xl);
}

.funding-card p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.funding-list {
    list-style: none;
    padding: 0;
    margin: var(--space-4) 0;
}

.funding-list li {
    padding: var(--space-2) 0;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
}

.funding-list li:last-child {
    border-bottom: none;
}

.funding-note {
    font-size: var(--text-sm);
    color: var(--gray-500);
    font-style: italic;
    margin-top: var(--space-4);
}

/* ========================================
   CTA BUTTONS
   ======================================== */
.cta-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 768px) {
    .mission-item {
        flex-direction: column;
        text-align: center;
    }
    
    .mission-icon {
        margin: 0 auto;
    }
    
    .funding-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-slider-nav {
        bottom: 80px;
    }
}

/* ========================================
   LANGUAGE SWITCHER
   ======================================== */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    margin-left: var(--space-4);
    padding-left: var(--space-4);
    border-left: 1px solid var(--gray-300);
}

.lang-btn {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--gray-500);
    text-decoration: none;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.lang-btn:hover {
    color: var(--primary);
    background: var(--gray-100);
}

.lang-btn.active {
    color: var(--primary);
    font-weight: 600;
    background: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.lang-separator {
    color: var(--gray-300);
    font-size: var(--text-sm);
}

@media (max-width: 992px) {
    .lang-switcher {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        justify-content: center;
        padding-top: var(--space-4);
        margin-top: var(--space-4);
        border-top: 1px solid var(--gray-200);
    }
}
