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

:root {
    /* Color Palette - befree.fit inspired */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-accent: #f3f4f6;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    z-index: 1000;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-logo i {
    font-size: var(--font-size-2xl);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    margin-right: var(--spacing-sm);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-xl);
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.circle-3 {
    width: 80px;
    height: 80px;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

.floating-heart {
    position: absolute;
    font-size: 2rem;
    animation: float 4s ease-in-out infinite;
}

.heart-1 {
    top: 30%;
    right: 20%;
    animation-delay: 1s;
}

.heart-2 {
    top: 70%;
    left: 15%;
    animation-delay: 3s;
}

.heart-3 {
    top: 50%;
    right: 5%;
    animation-delay: 5s;
}

/* Additional floating circles with different animations */
.circle-4 {
    width: 80px;
    height: 80px;
    top: 10%;
    right: 30%;
    animation-delay: 1s;
    animation: floatReverse 8s ease-in-out infinite;
}

.circle-5 {
    width: 70px;
    height: 70px;
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
    animation: floatSpiral 10s linear infinite;
}

.circle-6 {
    width: 90px;
    height: 90px;
    top: 40%;
    left: 5%;
    animation-delay: 5s;
    animation: floatBounce 7s ease-in-out infinite;
}

.circle-7 {
    width: 50px;
    height: 50px;
    top: 80%;
    left: 50%;
    animation-delay: 2.5s;
    animation: floatPulse 9s ease-in-out infinite;
}

.circle-8 {
    width: 110px;
    height: 110px;
    top: 5%;
    left: 70%;
    animation-delay: 4.5s;
    animation: floatOrbit 12s linear infinite;
}

/* Rotating rings */
.rotating-ring {
    position: absolute;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0.05;
    animation: rotateRing 15s linear infinite;
}

.ring-1 {
    width: 150px;
    height: 150px;
    top: 15%;
    right: 5%;
    animation-delay: 0s;
}

.ring-2 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    left: 5%;
    animation-delay: 7s;
}

.ring-3 {
    width: 120px;
    height: 120px;
    top: 60%;
    left: 80%;
    animation-delay: 3.5s;
    border-color: var(--secondary-color);
}

/* Pulsing dots */
.pulsing-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulseDot 4s ease-in-out infinite;
}

.dot-1 {
    top: 25%;
    left: 15%;
    animation-delay: 0s;
}

.dot-2 {
    top: 75%;
    right: 25%;
    animation-delay: 2s;
}

.dot-3 {
    bottom: 40%;
    left: 30%;
    animation-delay: 4s;
}

.dot-4 {
    top: 50%;
    right: 40%;
    animation-delay: 1s;
}

.dot-5 {
    top: 15%;
    left: 60%;
    animation-delay: 3s;
}

/* Wave lines */
.wave-line {
    position: absolute;
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.1;
    animation: waveMove 6s ease-in-out infinite;
}

.wave-1 {
    top: 30%;
    left: 0%;
    animation-delay: 0s;
}

.wave-2 {
    bottom: 30%;
    right: 0%;
    animation-delay: 3s;
    transform: rotate(180deg);
}

.wave-3 {
    top: 70%;
    left: 20%;
    animation-delay: 1.5s;
    transform: rotate(45deg);
}

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

@keyframes floatReverse {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
    50% {
        transform: translateY(20px) rotate(-180deg) scale(1.1);
    }
}

@keyframes floatSpiral {
    0% {
        transform: translateY(0px) rotate(0deg) translateX(0px);
    }
    25% {
        transform: translateY(-15px) rotate(90deg) translateX(10px);
    }
    50% {
        transform: translateY(-30px) rotate(180deg) translateX(0px);
    }
    75% {
        transform: translateY(-15px) rotate(270deg) translateX(-10px);
    }
    100% {
        transform: translateY(0px) rotate(360deg) translateX(0px);
    }
}

@keyframes floatBounce {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    25% {
        transform: translateY(-10px) scale(1.05);
    }
    50% {
        transform: translateY(-25px) scale(1.1);
    }
    75% {
        transform: translateY(-10px) scale(1.05);
    }
}

@keyframes floatPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.3) rotate(180deg);
        opacity: 0.2;
    }
}

@keyframes floatOrbit {
    0% {
        transform: rotate(0deg) translateX(50px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(50px) rotate(-360deg);
    }
}

@keyframes rotateRing {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes pulseDot {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(2);
        opacity: 0.6;
    }
}

@keyframes waveMove {
    0%, 100% {
        transform: translateX(-100px);
        opacity: 0.1;
    }
    50% {
        transform: translateX(100px);
        opacity: 0.2;
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.hero-text {
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-lg);
}

.title-line {
    display: block;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-lg);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease-out;
}

.image-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.senior-illustration {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.senior-figure {
    position: relative;
    width: 200px;
    height: 300px;
    animation: bounce 2s ease-in-out infinite;
}

.senior-figure .head {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    margin: 0 auto 10px;
    position: relative;
}

.senior-figure .head::after {
    content: '👴';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
}

.senior-figure .body {
    width: 100px;
    height: 120px;
    background: var(--gradient-secondary);
    border-radius: var(--radius-lg);
    margin: 0 auto 10px;
}

.senior-figure .arms {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 20px;
    background: var(--gradient-accent);
    border-radius: 10px;
    animation: wave 3s ease-in-out infinite;
}

.senior-figure .legs {
    width: 60px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    margin: 0 auto;
}

.care-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.care-icon {
    position: absolute;
    font-size: 2rem;
    animation: orbit 8s linear infinite;
}

.icon-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.icon-2 {
    top: 20%;
    right: 20%;
    animation-delay: 2s;
}

.icon-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.icon-4 {
    bottom: 20%;
    right: 20%;
    animation-delay: 6s;
}

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

@keyframes wave {
    0%, 100% { transform: translateX(-50%) rotate(0deg); }
    50% { transform: translateX(-50%) rotate(10deg); }
}

@keyframes orbit {
    0% { transform: rotate(0deg) translateX(100px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(100px) rotate(-360deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-color);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(10px); }
}

/* Section Styles */
section {
    padding: var(--spacing-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: titleGlow 3s ease-in-out infinite;
}

.services .section-title {
    animation: titleSlideIn 1s ease-out forwards, titleGlow 3s ease-in-out infinite 1s;
    opacity: 0;
    transform: translateY(-30px);
}

@keyframes titleSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.6)) drop-shadow(0 0 30px rgba(168, 85, 247, 0.3));
    }
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    animation: backgroundShift 8s ease-in-out infinite;
    z-index: 0;
}

.services .container {
    position: relative;
    z-index: 1;
}

.services-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.service-decoration {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: decorationFloat 6s ease-in-out infinite;
}

.service-decoration-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.service-decoration-2 {
    top: 20%;
    right: 10%;
    animation-delay: 1.5s;
}

.service-decoration-3 {
    bottom: 30%;
    left: 8%;
    animation-delay: 3s;
}

.service-decoration-4 {
    bottom: 15%;
    right: 5%;
    animation-delay: 4.5s;
}

@keyframes decorationFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-20px) rotate(90deg) scale(1.1);
        opacity: 0.2;
    }
    50% {
        transform: translateY(-10px) rotate(180deg) scale(0.9);
        opacity: 0.15;
    }
    75% {
        transform: translateY(-25px) rotate(270deg) scale(1.05);
        opacity: 0.25;
    }
}

@keyframes backgroundShift {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.service-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(50px);
}

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

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

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Staggered animation delays for service cards */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-2xl);
    color: white;
    position: relative;
    animation: iconFloat 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    opacity: 0.3;
    animation: iconPulse 2s ease-in-out infinite;
    z-index: -1;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    animation-play-state: paused;
}

.service-card:hover .service-icon::before {
    animation-play-state: paused;
    opacity: 0.6;
}

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

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
}

.service-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.feature-tag {
    background: var(--bg-accent);
    color: var(--primary-color);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    transition: all 0.3s ease;
    animation: tagSlideIn 0.6s ease-out forwards;
    opacity: 0;
    transform: translateX(-20px);
}

.feature-tag:nth-child(1) { animation-delay: 0.8s; }
.feature-tag:nth-child(2) { animation-delay: 1.0s; }
.feature-tag:nth-child(3) { animation-delay: 1.2s; }

.service-card:hover .feature-tag {
    transform: translateX(0) scale(1.05);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@keyframes tagSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mission Section */
.mission {
    background: var(--gradient-primary);
    color: white;
}

.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.mission-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.mission-subtitle {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.9);
}

.mission-description {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-2xl);
    color: rgba(255, 255, 255, 0.8);
}

.mission-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

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

.stat-number {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: white;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.8);
}

.mission-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mission-circles {
    position: relative;
    width: 300px;
    height: 300px;
}

.mission-circle {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: pulse 2s ease-in-out infinite;
}

.mission-circle i {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-xs);
}

.mission-circle span {
    font-size: var(--font-size-xs);
    font-weight: 500;
}

.circle-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.circle-2 {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    animation-delay: 0.5s;
}

.circle-3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1s;
}

.circle-4 {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    animation-delay: 1.5s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Team Section */
.team {
    background: var(--bg-primary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.team-card {
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
}

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

.team-image {
    position: relative;
    height: 250px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: var(--transition-normal);
    position: relative;
    z-index: 2;
}

.team-photo:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.image-placeholder {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-4xl);
    color: white;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 3;
}

/* Team photo loading states and fallbacks */
.team-photo {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.team-photo[src=""] {
    display: none;
}

.team-photo:not([src]) {
    display: none;
}

/* Ensure proper aspect ratio for all team photos */
.team-photo {
    aspect-ratio: 1 / 1;
    max-width: 180px;
    max-height: 180px;
    min-width: 180px;
    min-height: 180px;
    opacity: 0;
    animation: fadeInPhoto 0.5s ease-in-out forwards;
}

@keyframes fadeInPhoto {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading skeleton for team photos */
.team-photo:not([src]) {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 25%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-links a {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-normal);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.team-info {
    padding: var(--spacing-xl);
}

.team-name {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.team-role {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: var(--spacing-md);
}

.team-bio {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Communities Section */
.communities {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.communities::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
    animation: communityBackgroundShift 10s ease-in-out infinite;
    z-index: 0;
}

.communities .container {
    position: relative;
    z-index: 1;
}

@keyframes communityBackgroundShift {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1) rotate(0deg);
    }
    33% {
        opacity: 0.5;
        transform: scale(1.02) rotate(1deg);
    }
    66% {
        opacity: 0.4;
        transform: scale(0.98) rotate(-1deg);
    }
}

.communities-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.community-decoration {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.08;
    animation: communityDecorationFloat 8s ease-in-out infinite;
}

.community-decoration-1 {
    top: 15%;
    left: 8%;
    animation-delay: 0s;
}

.community-decoration-2 {
    top: 25%;
    right: 12%;
    animation-delay: 1.3s;
}

.community-decoration-3 {
    top: 60%;
    left: 5%;
    animation-delay: 2.6s;
}

.community-decoration-4 {
    bottom: 25%;
    right: 8%;
    animation-delay: 3.9s;
}

.community-decoration-5 {
    top: 45%;
    left: 50%;
    animation-delay: 5.2s;
}

.community-decoration-6 {
    bottom: 15%;
    left: 15%;
    animation-delay: 6.5s;
}

@keyframes communityDecorationFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.08;
    }
    25% {
        transform: translateY(-15px) rotate(90deg) scale(1.1);
        opacity: 0.15;
    }
    50% {
        transform: translateY(-8px) rotate(180deg) scale(0.9);
        opacity: 0.12;
    }
    75% {
        transform: translateY(-20px) rotate(270deg) scale(1.05);
        opacity: 0.18;
    }
}

.communities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.community-card {
    background: white;
    padding: var(--spacing-2xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: communityCardSlideIn 1s ease-out forwards;
    opacity: 0;
    transform: translateY(60px);
}

/* Unique animations for each community card */
.community-card.elders {
    animation: eldersSlideIn 1.2s ease-out forwards;
    animation-delay: 0.2s;
}

.community-card.volunteers {
    animation: volunteersSlideIn 1.2s ease-out forwards;
    animation-delay: 0.4s;
}

.community-card.partners {
    animation: partnersSlideIn 1.2s ease-out forwards;
    animation-delay: 0.6s;
}

@keyframes eldersSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-100px) rotate(-10deg);
    }
    50% {
        opacity: 0.7;
        transform: translateX(10px) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
}

@keyframes volunteersSlideIn {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0.8);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-10px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes partnersSlideIn {
    0% {
        opacity: 0;
        transform: translateX(100px) rotate(10deg);
    }
    50% {
        opacity: 0.7;
        transform: translateX(-10px) rotate(-2deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
}

.community-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transition: var(--transition-normal);
}

.community-card.elders::before {
    background: var(--gradient-primary);
}

.community-card.volunteers::before {
    background: var(--gradient-secondary);
}

.community-card.partners::before {
    background: var(--gradient-accent);
}

.community-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.community-card.elders:hover {
    transform: translateY(-15px) scale(1.02) rotate(1deg);
}

.community-card.volunteers:hover {
    transform: translateY(-15px) scale(1.05);
}

.community-card.partners:hover {
    transform: translateY(-15px) scale(1.02) rotate(-1deg);
}

.community-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-2xl);
    color: white;
    position: relative;
    animation: communityIconFloat 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

.community-icon::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: var(--radius-xl);
    opacity: 0.2;
    animation: communityIconPulse 3s ease-in-out infinite;
    z-index: -1;
}

.community-card.elders .community-icon::before {
    background: var(--gradient-primary);
}

.community-card.volunteers .community-icon::before {
    background: var(--gradient-secondary);
}

.community-card.partners .community-icon::before {
    background: var(--gradient-accent);
}

.community-card:hover .community-icon {
    transform: scale(1.15) rotate(10deg);
    animation-play-state: paused;
}

.community-card:hover .community-icon::before {
    animation-play-state: paused;
    opacity: 0.4;
    transform: scale(1.2);
}

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

@keyframes communityIconPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.2;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.1;
    }
}

.elders .community-icon {
    background: var(--gradient-primary);
}

.volunteers .community-icon {
    background: var(--gradient-secondary);
}

.partners .community-icon {
    background: var(--gradient-accent);
}

.community-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.community-features {
    list-style: none;
}

.community-features li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    animation: featureSlideIn 0.8s ease-out forwards;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.3s ease;
}

/* Staggered animation delays for each community's features */
.elders .community-features li:nth-child(1) { animation-delay: 0.8s; }
.elders .community-features li:nth-child(2) { animation-delay: 1.0s; }
.elders .community-features li:nth-child(3) { animation-delay: 1.2s; }
.elders .community-features li:nth-child(4) { animation-delay: 1.4s; }
.elders .community-features li:nth-child(5) { animation-delay: 1.6s; }
.elders .community-features li:nth-child(6) { animation-delay: 1.8s; }

.volunteers .community-features li:nth-child(1) { animation-delay: 1.0s; }
.volunteers .community-features li:nth-child(2) { animation-delay: 1.2s; }
.volunteers .community-features li:nth-child(3) { animation-delay: 1.4s; }
.volunteers .community-features li:nth-child(4) { animation-delay: 1.6s; }
.volunteers .community-features li:nth-child(5) { animation-delay: 1.8s; }
.volunteers .community-features li:nth-child(6) { animation-delay: 2.0s; }

.partners .community-features li:nth-child(1) { animation-delay: 1.2s; }
.partners .community-features li:nth-child(2) { animation-delay: 1.4s; }
.partners .community-features li:nth-child(3) { animation-delay: 1.6s; }
.partners .community-features li:nth-child(4) { animation-delay: 1.8s; }
.partners .community-features li:nth-child(5) { animation-delay: 2.0s; }
.partners .community-features li:nth-child(6) { animation-delay: 2.2s; }

.community-features li:hover {
    transform: translateX(10px);
    color: var(--primary-color);
    font-weight: 500;
}

.community-card:hover .community-features li {
    animation-play-state: paused;
}

@keyframes featureSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    50% {
        opacity: 0.7;
        transform: translateX(5px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.community-features i {
    color: var(--secondary-color);
    font-size: var(--font-size-sm);
}

/* Contact Section */
.contact {
    background: var(--bg-primary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: start;
}

.contact-info h2 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.contact-info p {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    color: var(--text-secondary);
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--font-size-sm);
}

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

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--bg-accent);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    transition: var(--transition-normal);
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
}

.footer-logo i {
    font-size: var(--font-size-2xl);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo-img {
    height: 35px;
    width: auto;
    object-fit: contain;
    margin-right: var(--spacing-sm);
    filter: brightness(0) invert(1);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-section ul li a:hover {
    color: white;
}

.footer .social-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer .social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition-normal);
}

.footer .social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-bottom a:hover {
    color: white;
    text-decoration: underline;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: var(--transition-normal);
        box-shadow: var(--shadow-lg);
        padding: var(--spacing-xl) 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

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

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-2xl);
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .image-container {
        width: 300px;
        height: 300px;
    }

    .mission-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .mission-stats {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

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

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .service-card {
        padding: var(--spacing-lg);
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-photo {
        width: 150px;
        height: 150px;
        min-width: 150px;
        min-height: 150px;
        max-width: 150px;
        max-height: 150px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .service-card {
        padding: var(--spacing-md);
    }

    .hero-title {
        font-size: var(--font-size-2xl);
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }

    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--font-size-sm);
    }

    .service-card,
    .team-card,
    .community-card {
        padding: var(--spacing-lg);
    }
    
    .team-photo {
        width: 120px;
        height: 120px;
        min-width: 120px;
        min-height: 120px;
        max-width: 120px;
        max-height: 120px;
    }
    
    .team-image {
        height: 200px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .contact-form,
    .footer {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: var(--spacing-xl) 0;
    }
    
    section {
        padding: var(--spacing-lg) 0;
    }
}
