:root {
    --primary-color: #007bff;
    --secondary-color: #2d3748;
    --gray: #4a5568;
    --light-bg: #f8f9fa;
    --white: #ffffff;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
                url('../images/hero-bg.webp');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 140px 0 100px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0,123,255,0.1) 0%, transparent 70%);
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.about-extended {margin-top: 43px;}
.hero-section p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.hero-section .btn {
    display: inline-block;
    padding: 15px 30px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.hero-section .btn:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
}

/* ==== FIXED Our Story Section ==== */
.our-story {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--light-bg) 0%, white 100%);
    position: relative;
    overflow: hidden;
}

.story-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.section-subtitle {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0,123,255,0.1);
    color: var(--primary-color);
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.story-content h2 {
    color: var(--secondary-color);
    font-size: 2.8em;
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
}

.story-content h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.story-intro {
    font-size: 1.2em;
    color: var(--gray);
    margin: 0 auto 60px;
    line-height: 1.8;
    max-width: 720px;
    padding: 0 20px;
}

/* Timeline */
.our-story .timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 0;
}

.our-story .timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(0,123,255,.35) 15%, rgba(0,123,255,.35) 85%, transparent);
}

.our-story .timeline-item {
  position: relative;
  width: 50%;
  padding: 0 60px;
  margin: 60px 0;
  box-sizing: border-box;
}

.our-story .timeline-item:nth-child(odd) { left: 0; }
.our-story .timeline-item:nth-child(even) { left: 50%; }

.our-story .timeline-item::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: #fff;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  z-index: 2;
}

.our-story .year {
  position: absolute;
  top: 6px;
  white-space: nowrap;
  padding: 6px 12px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
}

.our-story .timeline-item:nth-child(odd) .year {
  right: -10px;
  transform: translateX(100%);
}
.our-story .timeline-item:nth-child(even) .year {
  left: -10px;
  transform: translateX(-100%);
}

.our-story .event {
  position: relative;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  padding: 28px 30px;
  text-align: left;
  max-width: 520px;
}

.our-story .event h3 {
  color: var(--secondary-color);
  margin: 0 0 12px;
  font-size: 1.35em;
}

.our-story .event p {
  color: var(--gray);
  margin: 0 0 16px;
  line-height: 1.6;
}

.our-story .event-highlights {
  list-style: none;
  padding: 14px 0 0;
  margin: 0;
  border-top: 1px solid rgba(0,0,0,.08);
}
.our-story .event-highlights li {
  padding: 8px 0 8px 22px;
  position: relative;
  color: var(--gray);
}
.our-story .event-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--primary-color);
  border-radius: 50%;
}

.our-story .event::after {
  content: "";
  position: absolute;
  top: 28px;
  width: 0; height: 0;
  border-style: solid;
}
.our-story .timeline-item:nth-child(odd) .event::after {
  right: -14px;
  border-width: 10px 0 10px 14px;
  border-color: transparent transparent transparent #fff;
}
.our-story .timeline-item:nth-child(even) .event::after {
  left: -14px;
  border-width: 10px 14px 10px 0;
  border-color: transparent #fff transparent transparent;
}

/* Mobile fix */
@media (max-width: 768px) {
  .our-story .timeline::before { left: 24px; }
  .our-story .timeline-item {
    left: 0 !important;
    width: 100%;
    padding: 0 0 0 60px;
    margin: 36px 0;
  }
  .our-story .timeline-item::before { left: 24px; }
  .our-story .year {
    left: 60px !important;
    right: auto !important;
    top: -16px;
    transform: none;
  }
  .our-story .event { max-width: none; }
  .our-story .timeline-item .event::after {
    left: 46px;
    border-width: 10px 10px 10px 0;
    border-color: transparent #fff transparent transparent;
  }
}

/* Team Section */
.our-team {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-member {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-photo {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
}

.member-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-member:hover .member-photo img {
    transform: scale(1.1);
}

.member-social {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,123,255,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.team-member:hover .member-social {
    opacity: 1;
}

.member-social a {
    color: white;
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.member-social a:hover {
    transform: scale(1.2);
}

.team-member h3 {
    margin: 20px 20px 10px;
    color: var(--secondary-color);
    font-size: 1.3em;
}

.team-member .position {
    color: var(--primary-color);
    font-weight: 500;
    margin: 0 20px 10px;
}

.team-member .bio {
    color: var(--gray);
    margin: 0 20px;
    font-size: 0.9em;
    line-height: 1.6;
}

.member-stats {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    margin-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    display: block;
    font-size: 0.8em;
    color: var(--gray);
    margin-top: 5px;
}

/* Section Headers */
section h2 {
    text-align: center;
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 50px;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

/* Values Section */
.our-values {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--light-bg), white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-card:hover {
    transform: translateY(-5px);
}

.value-card i {
    font-size: 2.5em;
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: rgba(0,123,255,0.1);
    color: var(--primary-color);
    border-radius: 50%;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.value-card:hover i {
    background: var(--primary-color);
    color: white;
    transform: rotateY(360deg);
}

.value-card h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.3em;
    position: relative;
    padding-bottom: 15px;
}

.value-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.value-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* Base Section Styles */
section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

section:nth-child(even) {
    background: var(--light-bg);
}

.container {
    position: relative;
    z-index: 2;
}

/* Section Spacing */
section + section {
    margin-top: 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    section h2 {
        font-size: 2em;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 40px 0;
    }

    section h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline::before {
        left: 50px;
    }

    .timeline-item {
        width: calc(100% - 100px);
        margin-left: 100px;
        float: none;
        clear: both;
        padding: 0;
    }

    .timeline-item::before {
        left: -60px !important;
        right: auto !important;
    }

    .year {
        left: -100px !important;
        right: auto !important;
    }

    .timeline-content::after {
        left: -15px !important;
        border-width: 10px 15px 10px 0 !important;
        border-color: transparent white transparent transparent !important;
    }
}

@media (max-width: 480px) {
    .about-hero h1 {
        font-size: 2.5em;
    }

    .value-card {
        padding: 20px;
    }
}

/* Base AOS Animation Styles */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

[data-aos][data-aos][data-aos-duration="400"],
body[data-aos-duration="400"] [data-aos] {
    transition-duration: 400ms;
}

[data-aos][data-aos][data-aos-delay="100"],
body[data-aos-delay="100"] [data-aos] {
    transition-delay: 0;
}

[data-aos][data-aos][data-aos-delay="100"].aos-animate,
body[data-aos-delay="100"] [data-aos].aos-animate {
    transition-delay: 100ms;
}

/* Ensure content is visible if JS fails to load */
.no-js [data-aos] {
    opacity: 1;
    transform: none;
}
