/* Optimized about.css - Performance focused */

/* CSS Custom Properties for better maintainability and performance */
:root {
    --primary-color: #0078D4;
    --primary-dark: #106ebe;
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #ccc;
    --bg-light: #f8f9fa;
    --white: #fff;
    --shadow-light: 0 2px 20px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 40px rgba(0, 120, 212, 0.15);
    --border-radius: 20px;
    --border-radius-small: 15px;
    --transition: all 0.3s ease;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', serif;
    --container-max-width: 1200px;
    --container-padding: 20px;
}

/* Reset and Base Styles - Optimized */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container utility */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Improved focus styles for accessibility */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* Screen reader only content */
.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;
}

/* Header Styles - Optimized */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    will-change: transform;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-svg {
    transition: transform 0.3s ease;
    will-change: transform;
}

.logo-svg:hover {
    transform: scale(1.1);
}

.company-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
    font-family: var(--font-display);
}

.navigation {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: rgba(0, 120, 212, 0.1);
}

/* Mobile Menu Button - Optimized */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
    flex-direction: column;
    width: 30px;
    height: 25px;
    justify-content: space-around;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
    will-change: transform;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section - Optimized */
.hero-section {
    height: 60vh;
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 0 20px;
    width: 100%;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: var(--font-display);
    animation: fadeInUp 1s ease-out;
}

.hero-text p {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* About Content Section - Optimized */
.about-content {
    padding: 100px 0;
    background: var(--white);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.content-text h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 30px;
    font-family: var(--font-display);
}

.content-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
    padding-right: 20px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    border-radius: var(--border-radius-small);
    background: var(--bg-light);
    border: 2px solid transparent;
    transition: var(--transition);
    will-change: transform, border-color;
}

.stat-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: var(--font-display);
}

.stat-item p {
    color: var(--text-light);
    font-weight: 500;
    margin: 0;
}

.content-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    will-change: transform;
}

.content-image:hover img {
    transform: scale(1.05);
}

/* Video container styles - Optimized */
.video-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: #f0f0f0;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

#fallback-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: none;
    z-index: 1;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 120, 212, 0.8);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    display: none;
    will-change: transform;
}

.video-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--primary-color);
}

.video-play-button.show {
    display: block;
}

/* Loading spinner for video */
.video-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 5;
    display: none;
}

.video-container.loading::before {
    display: block;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Mission & Vision Section - Optimized */
.mission-vision {
    padding: 100px 0;
    background: var(--bg-light);
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mission-card,
.vision-card {
    background: var(--white);
    padding: 50px 40px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    will-change: transform;
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.card-icon {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.mission-card h3,
.vision-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    font-family: var(--font-display);
}

.mission-card p,
.vision-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Values Section - Optimized */
.values-section {
    padding: 100px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 60px;
    position: relative;
    font-family: var(--font-display);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.value-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    background: var(--bg-light);
    border: 2px solid transparent;
    transition: var(--transition);
    will-change: transform, border-color, background-color;
}

.value-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: var(--shadow-heavy);
}

.value-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.value-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
    font-family: var(--font-display);
}

.value-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Global Reach Section - Optimized */
.global-reach-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.global-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.global-stat {
    text-align: center;
    padding: 30px 20px;
    background: var(--white);
    border-radius: var(--border-radius-small);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    will-change: transform;
}

.global-stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.global-stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-family: var(--font-display);
}

.global-stat p {
    color: var(--text-light);
    font-weight: 500;
    margin: 0;
}

/* Interactive Map Styles - Optimized */
#interactive-map {
    height: 550px;
    width: 100%;
    background-color: #f0f0f0;
    border-radius: var(--border-radius-small);
    box-shadow: var(--shadow-medium);
    z-index: 1;
    position: relative;
}

#interactive-map .leaflet-container {
    height: 100%;
    width: 100%;
    border-radius: var(--border-radius-small);
}

/* Custom marker styles - Optimized */
.partner-marker,
.headoffice-marker {
    border-radius: 50%;
    border: 2px solid var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.partner-marker {
    background-color: var(--primary-color);
    animation: pulse 2s infinite;
}

.headoffice-marker {
    background-color: #e74c3c;
    animation: pulse-major 1.5s infinite;
}

.leaflet-marker-icon.partner-marker {
    width: 12px !important;
    height: 12px !important;
}

.leaflet-marker-icon.headoffice-marker {
    width: 16px !important;
    height: 16px !important;
}

/* Optimized animations using transform and opacity only */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 120, 212, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 120, 212, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 120, 212, 0);
    }
}

@keyframes pulse-major {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

/* CTA Section - Optimized */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
    font-family: var(--font-display);
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Styles - Optimized */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    min-width: 160px;
    will-change: transform, background-color, color;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.btn-primary:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Footer - Optimized */
.footer {
    background: var(--text-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-section h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
    font-family: var(--font-display);
    
}
.footer-section1 h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
    font-family: var(--font-display);
    padding-left: 70px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo .company-name {
    color: var(--white);
    font-family: var(--font-display);
}

.footer-section p {
    color: var(--text-lighter);
    line-height: 1.6;
    text-align: justify;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
    padding-left: 70px;
}

.footer-links a {
    color: var(--text-lighter);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 10px;
    color: var(--text-lighter);
}

.contact-info a {
    color: var(--text-lighter);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    color: var(--text-lighter);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 5px;
}

.social-link:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    color: var(--text-lighter);
}

/* Animations - Optimized for performance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design - Mobile First Approach */
@media (max-width: 1024px) {
    .content-grid {
        gap: 40px;
    }

    .stats {
        gap: 20px;
    }

    .mission-vision-grid {
        gap: 30px;
    }

    .global-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 15px;
    }

    .navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-medium);
        border-radius: 0 0 15px 15px;
    }

    .navigation.active {
        display: flex;
    }

    .navigation .nav-link {
        color: var(--text-color);
        padding: 12px 16px;
        border-radius: 8px;
        text-align: center;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .content-text {
        order: 2;
    }

    .content-image {
        order: 1;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .global-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn {
        min-width: 200px;
    }

    .about-content,
    .mission-vision,
    .values-section,
    .global-reach-section,
    .cta-section {
        padding: 60px 0;
    }

    .video-container {
        height: 250px;
    }
    
    .video-play-button {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 300px;
        height: 40vh;
    }

    .mission-card,
    .vision-card {
        padding: 30px 20px;
    }

    .value-card {
        padding: 30px 20px;
    }

    .global-stats {
        grid-template-columns: 1fr;
    }

    #interactive-map {
        height: 400px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 14px;
        min-width: 180px;
    }

    .video-container {
        height: 200px;
    }
}

/* Performance optimizations */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* GPU acceleration for frequently animated elements */
.logo-svg,
.btn,
.stat-item,
.mission-card,
.vision-card,
.value-card,
.global-stat,
.video-play-button {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Optimize font loading */
.font-face {
    font-family: 'Inter';
    font-display: swap;
}

.font-face {
    font-family: 'Playfair Display';
    font-display: swap;
}

/* Critical path optimization */
.hero-section {
    contain: layout style paint;
}

/* Lazy loading optimization for below-the-fold content */
.mission-vision,
.values-section,
.global-reach-section {
    content-visibility: auto;
    contain-intrinsic-size: 600px;
}

/* Print styles */
@media print {
    .header,
    .mobile-menu-btn,
    .video-play-button,
    .cta-section {
        display: none;
    }
    
    .hero-section {
        margin-top: 0;
    }
    
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
    }
}