/* about.css - Optimized Version */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-width: 150px;
    height: auto;
}

/* ===== NAVIGATION ===== */
.nav-tabs {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-tabs li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-tabs li a:hover {
    background-color: #e8f4ff;
    color: #4a90e2;
}

.nav-tabs li a.active {
    background-color: #4a90e2;
    color: white;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.5rem;
    color: #4a90e2;
    z-index: 1001;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    z-index: 999;
    display: none;
}

.nav-overlay.active {
    display: block;
}

@media (max-width: 1024px) {
    body, html {
        overflow-x: hidden;
        width: 100%;
    }
    
    header .container {
        position: relative;
        padding: 0.8rem 60px 0.8rem 20px;
    }
    
    .nav-toggle {
        display: block !important;
    }
    
    .nav-tabs {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 5rem 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
        gap: 0;
    }
    
    .nav-tabs.active {
        right: 0;
    }
    
    .nav-tabs li a {
        display: block;
        padding: 1rem;
        margin-bottom: 0.5rem;
        border-left: 3px solid transparent;
    }
    
    .nav-tabs li a:hover,
    .nav-tabs li a.active {
        border-left: 3px solid #4a90e2;
        background-color: #e8f4ff;
    }
}

@media (max-width: 768px) {
    .nav-tabs { width: 80%; }
    .logo img { max-width: 120px; }
    header .container { padding: 0.8rem 50px 0.8rem 15px; }
}

@media (max-width: 480px) {
    .nav-tabs { width: 85%; }
    header .container { padding: 0.8rem 45px 0.8rem 10px; }
}

@media (min-width: 1025px) {
    .nav-toggle,
    .nav-overlay {
        display: none !important;
    }
    .nav-tabs {
        display: flex !important;
    }
}

/* ===== HERO SECTION ===== */
.about-hero {
    position: relative;
    height: 80vh;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: 80px;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74,144,226,0.8) 0%, rgba(135,206,235,0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ===== SECTION TITLES ===== */
.section-title,
.structure-title {
    text-align: center;
    color: #4a90e2;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after,
.structure-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #4a90e2;
    border-radius: 2px;
}

/* ===== FOUNDERS SECTION ===== */
.founders-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #fff 0%, #f8fbff 50%, #fff 100%);
    position: relative;
}

.founders-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #4a90e2, transparent);
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.founder-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(74,144,226,0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s ease;
    position: relative;
    border: 1px solid rgba(74,144,226,0.08);
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.founder-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(74,144,226,0.2);
}

.founder-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2));
    z-index: 2;
}

.founder-card:nth-child(1) { --gradient-1: #4a90e2; --gradient-2: #5aa0e8; animation-delay: 0.1s; }
.founder-card:nth-child(2) { --gradient-1: #00b894; --gradient-2: #00cec9; animation-delay: 0.2s; }
.founder-card:nth-child(3) { --gradient-1: #fd79a8; --gradient-2: #e84393; animation-delay: 0.3s; }
.founder-card:nth-child(4) { --gradient-1: #fdcb6e; --gradient-2: #e17055; animation-delay: 0.4s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.founder-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: #f5f9ff;
}

.founder-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    transition: transform 0.6s ease;
}

.founder-card:hover .founder-image img {
    transform: scale(1.08);
}

.founder-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.7));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding-bottom: 1.5rem;
}

.founder-card:hover .founder-overlay {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 0.8rem;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.founder-card:hover .social-links {
    transform: translateY(0);
}

.social-links a {
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a90e2;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #4a90e2;
    color: white;
    transform: scale(1.1);
}

.founder-info {
    padding: 1.8rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.founder-header {
    margin-bottom: 1rem;
}

.founder-info h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.founder-role {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

.founder-card:nth-child(1) .founder-role { color: #4a90e2; }
.founder-card:nth-child(2) .founder-role { color: #00b894; }
.founder-card:nth-child(3) .founder-role { color: #fd79a8; }
.founder-card:nth-child(4) .founder-role { color: #fdcb6e; }

.founder-bio {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    flex-grow: 1;
}

.founder-quote {
    background: linear-gradient(135deg, #f8fbff, #e8f4ff);
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    border-left: 3px solid #4a90e2;
}

.founder-quote i {
    color: #4a90e2;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.founder-quote p {
    font-style: italic;
    color: #4a90e2;
    margin: 0;
    line-height: 1.4;
    font-size: 0.9rem;
    display: inline;
}

.founder-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.expertise-tag {
    background: rgba(74,144,226,0.08);
    color: #4a90e2;
    padding: 0.3rem 0.7rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.founder-card:nth-child(2) .expertise-tag {
    background: rgba(0,184,148,0.08);
    color: #00b894;
}

.founder-card:nth-child(3) .expertise-tag {
    background: rgba(253,121,168,0.08);
    color: #fd79a8;
}

.founder-card:nth-child(4) .expertise-tag {
    background: rgba(253,203,110,0.08);
    color: #fdcb6e;
}

.expertise-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ===== TIMELINE SECTION ===== */
.timeline-section {
    padding: 100px 0;
    background: #fff;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #4a90e2;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 2rem);
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 2rem);
}

.timeline-marker {
    position: absolute;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4a90e2;
    border: 4px solid white;
    box-shadow: 0 0 0 3px #4a90e2;
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: calc(50% - 10px);
}

.timeline-item:nth-child(even) .timeline-marker {
    left: calc(50% - 10px);
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #e8f4ff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(74,144,226,0.15);
}

.timeline-year {
    color: #4a90e2;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    color: #333;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.timeline-content p {
    color: #666;
    line-height: 1.5;
}

/* ===== VALUES SECTION ===== */
.values-section {
    padding: 100px 0;
    background-color: #f8fbff;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.value-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #4a90e2;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(74,144,226,0.15);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: #e8f4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #4a90e2;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    background: #4a90e2;
    color: white;
    transform: scale(1.1);
}

.value-card h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.value-card p {
    color: #666;
    line-height: 1.6;
}

/* ===== TEAM STRUCTURE SECTION ===== */
.team-structure-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #fff, #f8fbff);
    position: relative;
    overflow: hidden;
}

.team-structure-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(74,144,226,0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(74,144,226,0.03) 0%, transparent 50%);
}

.structure-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.org-chart {
    position: relative;
    width: 100%;
    height: 800px;
    margin: 0 auto;
}

.central-logo {
	position: absolute;
	top: 45%;
	left: 50%;
	width: 180px;
	height: 180px;
	background: white;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	transition: all 0.4s ease;
}

.central-logo img {
	width: 390px;
	height: 140px;
}

.dept-node {
    position: absolute;
    width: 330px;
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-top: 4px solid;
    z-index: 5;
    text-align: center;
}

.dept-node:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(74,144,226,0.15);
}

.dept-node h3 {
    color: #333;
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.dept-node p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.dept-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.dept-head img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e8f4ff;
}

.head-info {
    text-align: left;
}

.head-name {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.head-title {
    color: #4a90e2;
    font-size: 0.8rem;
}

.dept-volunteers {
    display: inline-block;
    background: rgba(74,144,226,0.1);
    color: #4a90e2;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Department colors */
.education-dept { border-color: #4a90e2; }
.tech-dept { border-color: #00b894; }
.partnerships-dept { border-color: #fd79a8; }
.operations-dept { border-color: #fdcb6e; }
.research-dept { border-color: #6c5ce7; }
.outreach-dept { border-color: #e17055; }

/* Department positions */
.dept-1 { top: -5%; left: 15%; }
.dept-2 { top: -5%; right: 15%; }
.dept-3 { top: 30%; left: 2%; }
.dept-4 { top: 30%; right: 2%; }
.dept-5 { top: 65%; left: 15%; }
.dept-6 { top: 65%; right: 15%; }

/* ===== FLOATING BUTTONS ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(74,144,226,0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    background-color: #357abd;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(74,144,226,0.4);
}

.heart-donation {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(231,76,60,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
    animation: heartbeat 3s infinite ease-in-out;
}

@keyframes heartbeat {
    0%, 20%, 100% { transform: scale(1); }
    5%, 15% { transform: scale(1.1); }
}

.donation-tooltip {
    position: absolute;
    right: 65px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.donation-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-left: 8px solid #333;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.heart-donation:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.heart-donation:hover .donation-tooltip {
    opacity: 1;
    visibility: visible;
    right: 70px;
}

/* ===== FOOTER ===== */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .founders-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
        margin: 0 auto;
    }
    
    .org-chart {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .central-logo,
    .dept-node {
        position: static;
        transform: none;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 1024px) {
    .hero-content h1 { font-size: 3rem; }
    .hero-stats { gap: 2rem; }
    .stat-number { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .about-hero {
        height: 70vh;
        margin-top: 70px;
    }
    
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.2rem; }
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .section-title,
    .structure-title {
        font-size: 2rem;
    }
    
    .founders-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .founder-image { height: 250px; }
    
    .timeline::before { left: 30px; }
    
    .timeline-item {
        padding-left: 70px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }
    
    .timeline-marker {
        left: 20px !important;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .heart-donation {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .donation-tooltip {
        font-size: 0.8rem;
        padding: 6px 10px;
        right: 55px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1.1rem; }
    .section-title { font-size: 1.8rem; }
    .founder-image { height: 240px; }
}