/* AboutUs.css - Redesigned with progress bar and improved flow */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #E31837;
    --primary-blue: #1E3A8A;
    --gradient-start: #1E3A8A;
    --gradient-end: #E31837;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--gradient-start) 0%, #4338CA 50%, var(--gradient-end) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    /* Performance optimization */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
header {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

nav {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo img {
    width: 120px;
    height: auto;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.hamburger::before,
.hamburger::after,
.hamburger span {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Profile Container */
.profile-container {
    position: relative;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red), #FF6B6B);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.profile-initials {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.profile-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 8px;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown a,
.profile-dropdown button {
    display: block;
    width: 100%;
    padding: 10px 16px;
    text-align: left;
    border: none;
    background: none;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}

.profile-dropdown a:hover,
.profile-dropdown button:hover {
    background: #f5f5f5;
}

/* Sections */
.about-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 40px;
    position: relative;
}

.section-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    text-align: center;
    color: #fff;
}

.hero-section .tagline {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 30px;
}

.hero-section h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-section h1 span {
    background: linear-gradient(135deg, #FF6B6B, #FFD93D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section .description {
    font-size: 20px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
    margin: 0 auto 40px;
}

.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    animation: bounce 2s infinite;
}

.scroll-hint span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.scroll-hint i {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.6);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Story Section - Optimized for performance */
.story-section {
    background: rgba(255, 255, 255, 0.05);
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story-text {
    color: #fff;
}

.story-text h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.story-text h2 i {
    color: #FF6B6B;
}

.story-poem {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    border-left: 4px solid #FF6B6B;
}

.story-poem p {
    font-size: 16px;
    line-height: 2;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    margin: 0;
}

.story-poem p strong {
    color: #fff;
    font-style: normal;
}

.story-image {
    position: relative;
}

.story-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.story-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    z-index: -1;
}

/* Who Section */
.who-section .who-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.who-text {
    color: #fff;
}

.who-text h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.who-text h2 i {
    color: #FF6B6B;
}

.who-text p {
    font-size: 17px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.who-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.stat-item .number {
    font-size: 36px;
    font-weight: 800;
    color: #FF6B6B;
    display: block;
}

.stat-item .label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.who-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.who-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.who-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.who-card i {
    font-size: 40px;
    color: #FF6B6B;
    margin-bottom: 16px;
}

.who-card h3 {
    font-size: 18px;
    color: #fff;
    margin-bottom: 10px;
}

.who-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* Values Section - Dark themed to match site */
.values-section {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.values-section .section-container {
    text-align: center;
}

.values-section h2 {
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.values-section .section-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.value-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.value-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.value-card .icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-red), #FF6B6B);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.value-card .icon i {
    font-size: 32px;
    color: #fff;
}

.value-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.value-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    text-align: center;
    color: #fff;
}

.cta-section h2 {
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.cta-btn {
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-btn.primary {
    background: #fff;
    color: var(--primary-red);
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
}

.cta-btn.secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* Footer adjustments */
footer {
    background: rgba(0, 0, 0, 0.2) !important;
    margin-top: 0 !important;
}

/* Animations - GPU accelerated for smooth performance */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    will-change: opacity, transform;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .story-content,
    .who-section .who-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .story-image {
        order: -1;
    }

    .who-visual {
        max-width: 400px;
        margin: 0 auto;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 80px 20px;
    }

    .hero-section h1 {
        font-size: 36px;
    }

    .hero-section .description {
        font-size: 16px;
    }

    .story-text h2,
    .who-text h2,
    .values-section h2,
    .cta-section h2 {
        font-size: 28px;
    }

    .who-stats {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(30, 58, 138, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links a {
        display: block;
        padding: 12px 20px;
        text-align: center;
    }
}
