/* Global Styles */
:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #d1fae5;
    --secondary: #3b82f6;
    --secondary-dark: #2563eb;
    --dark: #111827;
    --darker: #0f172a;
    --light: #f9fafb;
    --lighter: #ffffff;
    --gray: #6b7280;
    --light-gray: #f3f4f6;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
    --header-height: 80px;
}

/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

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

/* Utility Classes */
.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Global Page Transitions */
.page-enter-active, .page-leave-active {
    transition: opacity 0.3s, transform 0.3s;
}
.page-enter, .page-leave-to {
    opacity: 0;
    transform: translateY(10px);
}

/* Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    padding-top: 80px;
    background-color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    box-sizing: border-box;
}

/* Ensure all direct children of container have proper spacing */
.container > * {
    width: 100%;
    box-sizing: border-box;
}

/* Prevent horizontal overflow */
img, video, iframe, object, embed {
    max-width: 100%;
    height: auto;
}

/* Responsive typography */
@media (max-width: 1024px) {
    html {
        font-size: 95%;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 90%;
    }
    
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 87.5%;
    }
    
    .container {
        padding: 0 1.25rem;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1400px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    line-height: 1.2;
    color: #111827;
}

p {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

a {
    color: #10b981;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #059669;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2rem;
    border-radius: 0.6rem;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.5;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.btn:hover::before {
    transform: translateX(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
}

/* Sections */
section {
    padding: 7rem 0;
    position: relative;
    overflow: hidden;
}

section:nth-child(odd) {
    background-color: #f8fafc;
}

.section-inner {
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
    position: relative;
    padding: 0 1rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #111827;
}

.section-header p {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 0;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    /* Ensure proper spacing for sections */
    section {
        padding: 5rem 0;
    }
    
    section {
        padding: 5rem 0;
    }
    
    .section-header h2 {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 60px;
    }
    
    .container {
        padding: 0 1.25rem;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .btn {
        width: 100%;
    }
}

/* About Section Styles */
.about-section {
    position: relative;
    padding: 8rem 0;
    background-color: #ffffff;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #f0fdf4 100%);
}

/* About Hero Section - Enhanced */
.about-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
    margin-bottom: 8rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    backdrop-filter: blur(10px);
}

.about-hero-content {
    padding-right: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.hero-badge i {
    font-size: 1rem;
}

.about-hero h3 {
    font-size: 3rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 2rem;
    line-height: 1.2;
    background: linear-gradient(135deg, #0f172a 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 0;
    font-weight: 400;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: translateY(-5px);
}

.floating-stats {
    position: absolute;
    bottom: -3rem;
    left: -2rem;
    right: -2rem;
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    z-index: 10;
}

.stat-badge {
    background: white;
    padding: 1.5rem 1.5rem;
    border-radius: 1.25rem;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    min-width: 140px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.stat-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.15);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #10b981;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mission Statement - Enhanced */
.mission-section {
    margin-bottom: 6rem;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.mission-content {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}

.mission-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.mission-text h3 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.mission-text p {
    font-size: 1.2rem;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.mission-visuals {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.mission-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 1rem;
    border-left: 4px solid #10b981;
    transition: transform 0.3s ease;
}

.mission-feature:hover {
    transform: translateX(5px);
}

.mission-feature i {
    font-size: 1.5rem;
    color: #10b981;
    width: 40px;
    text-align: center;
}

.mission-feature span {
    font-weight: 600;
    color: #0f172a;
}

/* Core Focus Section - Enhanced */
.focus-section {
    margin-bottom: 8rem;
    text-align: center;
}

.focus-header {
    margin-bottom: 4rem;
}

.focus-header h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.focus-highlight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-radius: 1rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.focus-highlight i {
    font-size: 2rem;
    color: #10b981;
}

.focus-highlight p {
    font-size: 1.2rem;
    color: #0f172a;
    font-weight: 600;
    margin: 0;
}

.focus-visuals {
    margin-top: 4rem;
}

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

.focus-item {
    padding: 2.5rem;
    background: white;
    border-radius: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.focus-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.focus-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.focus-item h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.5rem;
}

.focus-item p {
    color: #4b5563;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    filter: blur(40px);
    animation: float 15s infinite linear;
}

.floating-element.el-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -100px;
    animation-duration: 20s;
}

.floating-element.el-2 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    right: -50px;
    animation-duration: 25s;
    animation-delay: -5s;
    background: rgba(59, 130, 246, 0.1);
}

.floating-element.el-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 20%;
    animation-duration: 30s;
    animation-delay: -10s;
    background: rgba(139, 92, 246, 0.1);
}

/* Animations */
@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, 20px) rotate(5deg);
    }
    50% {
        transform: translate(0, 40px) rotate(0deg);
    }
    75% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Responsive Styles for Enhanced About Section */
@media (max-width: 1024px) {
    .about-section {
        padding: 6rem 0;
    }

    .about-hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2rem;
    }

    .about-hero-content {
        padding-right: 0;
        text-align: center;
    }

    .about-hero h3 {
        font-size: 2.5rem;
    }

    .floating-stats {
        position: static;
        margin-top: 3rem;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .stat-badge {
        min-width: 200px;
    }

    .mission-content {
        flex-direction: column;
        text-align: center;
    }

    .mission-icon {
        margin: 0 auto;
    }

    .mission-visuals {
        flex-direction: column;
        gap: 2rem;
    }

    .focus-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 4rem 0;
    }

    .about-hero {
        padding: 1.5rem;
        margin-bottom: 4rem;
    }

    .about-hero h3 {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-badge {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

    .mission-section {
        padding: 2rem;
    }

    .mission-text h3 {
        font-size: 1.8rem;
    }

    .mission-text p {
        font-size: 1rem;
    }

    .focus-header h3 {
        font-size: 2rem;
    }

    .focus-highlight {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-badge {
        padding: 1rem;
        min-width: 160px;
    }
}

@media (max-width: 480px) {
    .about-hero h3 {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .mission-text h3 {
        font-size: 1.5rem;
    }

    .focus-header h3 {
        font-size: 1.75rem;
    }

    .focus-item {
        padding: 1.5rem;
    }

    .stat-badge {
        min-width: 140px;
        padding: 0.8rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }
}

/* Resize animation stopper */
.resize-animation-stopper * {
    animation: none !important;
    transition: none !important;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #0d9e6e;
    border-color: #0d9e6e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}