/* Modern Story Section - Complete Redesign */

/* Hero Section */
.hero {
    min-height: 120vh; /* Increased from 100vh for larger desktop display */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding-top: 80px;
    padding-bottom: 60px; /* Increased from 40px */
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 120vh; /* Updated to match hero height */
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
}

.hero-fallback-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        rgba(250, 248, 245, 0.85) 0%,
        rgba(250, 248, 245, 0.65) 55%,
        rgba(255, 107, 53, 0.15) 100%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: heroEntry 1.2s cubic-bezier(0.25, 0.8, 0.25, 1) 0.3s forwards;
    opacity: 0;
    padding-top: clamp(3rem, 8vh, 6rem); /* Increased padding */
    max-width: 1200px; /* Increased from 900px */
    margin-left: auto;
    margin-right: auto;
}

@keyframes heroEntry {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3.5vw, 2rem); /* Increased from 1.7rem max */
    font-weight: 400;
    color: var(--text-dark);
    margin: 2rem 0 3.5rem; /* Increased margins */
    letter-spacing: 0.015em;
    max-width: 70ch; /* Increased from 60ch */
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: clamp(2rem, 5vw, 4rem); /* Increased gap */
    margin-top: 4rem; /* Increased from 3rem */
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    animation: statPulse 3.5s ease-in-out infinite alternate;
    padding: 0.8rem; /* Reduced padding */
    min-width: 130px; /* Reduced min-width */
}

.stat-item:nth-child(2) { animation-delay: 0.25s; }
.stat-item:nth-child(3) { animation-delay: 0.5s; }

@keyframes statPulse {
    from { transform: scale(1); }
    to { transform: scale(1.03); }
}

.stat-number {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem); /* Much smaller for better proportion */
    font-weight: 700;
    color: var(--secondary);
    display: block;
    line-height: 1.15;
}

.hero-stats .stat-label {
    font-size: clamp(0.8rem, 1.8vw, 1rem); /* Reduced to match smaller numbers */
    color: #1a1a1a !important;
    margin-top: 0.5rem; /* Increased from 0.3rem */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Desktop-specific hero enhancements */
@media (min-width: 992px) {
    .hero h1 {
        font-size: clamp(4rem, 8vw, 6rem); /* Slightly reduced max from 7rem */
        margin-bottom: 2rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: clamp(1.6rem, 4vw, 2.2rem); /* Slightly reduced max from 2.4rem */
        margin: 2.5rem 0 3.5rem; /* Reduced bottom margin */
    }
    
    .hero-stats {
        gap: clamp(3rem, 6vw, 5rem);
        margin-top: 4rem; /* Reduced from 5rem */
    }
    
    .stat-item {
        min-width: 170px; /* Reduced from 200px */
        padding: 1.2rem; /* Reduced from 1.5rem */
    }
    
    .stat-number {
        font-size: clamp(2.2rem, 5vw, 3.2rem); /* Much smaller for better proportion */
    }
    
    .hero-stats .stat-label {
        font-size: clamp(0.95rem, 2vw, 1.1rem); /* Reduced to match smaller numbers */
        margin-top: 0.8rem;
    }
}

/* Tablet adjustments */
@media (max-width: 991px) and (min-width: 768px) {
    .hero {
        min-height: 110vh; /* Slightly smaller on tablet */
    }
    
    .hero-video {
        height: 110vh;
    }
}

/* Modern Story Section */
.story {
    background: linear-gradient(135deg, var(--primary) 0%, #1a2f45 50%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    padding: clamp(4rem, 8vw, 6rem) 0;
}

/* Floating Background Elements */
.story-background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.floating-element {
    position: absolute;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 107, 53, 0.2);
    animation: floatUpDown 6s ease-in-out infinite;
}

.floating-element.element-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.floating-element.element-2 {
    width: 80px;
    height: 80px;
    top: 20%;
    right: 10%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.floating-element.element-3 {
    width: 150px;
    height: 150px;
    bottom: 15%;
    left: 15%;
    animation-delay: 4s;
    animation-duration: 12s;
}

.floating-element.element-4 {
    width: 100px;
    height: 100px;
    bottom: 30%;
    right: 5%;
    animation-delay: 6s;
    animation-duration: 9s;
}

@keyframes floatUpDown {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    25% { transform: translateY(-20px) rotate(90deg) scale(1.1); }
    50% { transform: translateY(-40px) rotate(180deg) scale(0.9); }
    75% { transform: translateY(-20px) rotate(270deg) scale(1.05); }
}

/* Story Header */
.story-header {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.story h2 {
    color: var(--white);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
}

.story h2::after {
    background: linear-gradient(90deg, var(--secondary) 0%, var(--accent) 100%);
    width: 80px;
    height: 4px;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.4);
}

.story-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 300;
    max-width: 70ch;
    margin: 0 auto;
    line-height: 1.6;
    letter-spacing: 0.02em;
}

/* Timeline Container */
.story-timeline {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.8) 20%, 
        rgba(255, 255, 255, 0.8) 80%, 
        transparent 100%);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Main Story Content */
.story-content-main {
    position: relative;
    z-index: 3;
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.story-intro {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: var(--radius-large);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.story-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(247, 147, 30, 0.05) 100%);
    z-index: -1;
}

.story-intro h3 {
    color: var(--white);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.story-intro p {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.7;
    margin: 0;
    max-width: none;
}

/* Timeline Cards */
.timeline-cards {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 4vw, 3rem);
    position: relative;
    z-index: 3;
}

.timeline-card {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.timeline-card:nth-child(even) {
    margin-left: auto;
    margin-right: 0;
}

.timeline-card:nth-child(odd) {
    margin-left: 0;
    margin-right: auto;
}

.card-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-large);
    transition: all 0.4s ease;
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    padding: clamp(1.2rem, 2.5vw, 2rem);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}

.card-icon {
    width: 55px;
    height: 55px;
    background: rgba(255, 107, 53, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
}

.card-icon svg {
    color: var(--white);
    transition: all 0.3s ease;
}

.card-number {
    font-size: 2rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1;
    transition: all 0.3s ease;
}

.timeline-card h4 {
    color: var(--white);
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.timeline-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Card Expand Section */
.card-expand {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.expand-content {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.expand-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.expand-content li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.expand-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Card Hover Effects */
.timeline-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.timeline-card:hover .card-background {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 107, 53, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.timeline-card:hover .card-icon {
    background: rgba(255, 107, 53, 0.3);
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4);
}

.timeline-card:hover .card-number {
    color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

.timeline-card:hover .card-expand {
    max-height: 200px;
    opacity: 1;
}

/* Card Specific Colors */
.card-discovery:hover .card-background {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2) 0%, rgba(247, 147, 30, 0.2) 100%);
}

.card-connection:hover .card-background {
    background: linear-gradient(135deg, rgba(247, 147, 30, 0.2) 0%, rgba(255, 107, 53, 0.2) 100%);
}

.card-transformation:hover .card-background {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2) 0%, rgba(10, 22, 40, 0.2) 100%);
}

.card-innovation:hover .card-background {
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.2) 0%, rgba(247, 147, 30, 0.2) 100%);
}

/* Story Vision Section */
.story-vision {
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    position: relative;
    z-index: 3;
}

.vision-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: var(--radius-large);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.vision-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 0%, rgba(255, 107, 53, 0.05) 50%, transparent 100%);
    animation: shimmer 3s infinite;
    z-index: -1;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.vision-content h3 {
    color: var(--white);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vision-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: none;
}

.vision-stats {
    display: flex;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    flex-wrap: wrap;
}

.vision-stat {
    text-align: center;
    padding: 0.8rem;
}

.stat-value {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.4rem;
    text-shadow: 0 0 15px rgba(255, 107, 53, 0.5);
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Desktop Layout Improvements */
@media (min-width: 992px) {
    .timeline-cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: clamp(2rem, 4vw, 3rem);
        align-items: start;
        max-width: 1200px;
        margin: 0 auto;
    }

    .timeline-card {
        max-width: none;
        margin: 0;
    }

    .timeline-card:nth-child(odd) {
        justify-self: end;
        margin-right: 1.5rem;
    }

    .timeline-card:nth-child(even) {
        justify-self: start;
        margin-left: 1.5rem;
    }

    .timeline-line {
        height: calc(100% - 3rem);
        top: 1.5rem;
    }
}

/* Impact Section */
.impact {
    background: var(--bg-cream);
}

.impact h2 {
    text-align: center;
}

.impact h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.impact-subtitle {
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-light);
    margin-top: -1.5rem;
    margin-bottom: 3rem;
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.impact-visual {
    margin-top: 3rem;
    margin-bottom: 4rem;
}

.before-after {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16/9.5;
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.before-image,
.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.after-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 100%;
    background: var(--white);
    cursor: ew-resize;
    z-index: 10;
    display: flex;
    align-items: center;
    opacity: 0.9;
    transition: opacity 0.25s ease;
}

.slider-handle:hover {
    opacity: 1;
}

.slider-button {
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.slider-handle:hover .slider-button {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: var(--shadow-hover);
}

.comparison-labels {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 5;
}

.before-label,
.after-label {
    background: rgba(10, 22, 40, 0.85);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-small);
    font-weight: 600;
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    box-shadow: var(--shadow-soft);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    max-width: 900px;
    margin: 3rem auto 0;
}

.impact-stat {
    text-align: center;
    padding: 1.5rem 1.25rem;
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.impact-stat:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

.impact-number {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--secondary);
    display: block;
    margin-bottom: 0.3rem;
}

.impact-label {
    color: var(--text-light);
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    line-height: 1.4;
}

/* Process Section */
.process {
    background: var(--white);
}

.process h2 {
    text-align: center;
}

.process h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.process-timeline {
    margin-top: 4rem;
    position: relative;
}

.process-line {
    position: absolute;
    top: 40px;
    left: 5%;
    right: 5%;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary) 0%, var(--accent) 100%);
    z-index: 0;
    border-radius: 2px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
    position: relative;
    z-index: 1;
    list-style: none;
    padding: 0;
}

.process-step {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    padding: 1rem 0.5rem;
}

.process-step.visible {
    animation: stepReveal 0.6s ease-out forwards;
}

@keyframes stepReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--white);
    border: 3px solid var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
}

.process-step:hover .step-icon {
    transform: scale(1.15);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
    background: var(--light);
}

.step-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    transition: color 0.25s ease;
}

.process-step:hover .step-number {
    color: var(--accent);
}

.process-step h4 {
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.process-step p {
    font-size: clamp(0.85rem, 1.7vw, 0.9rem);
    color: var(--text-light);
    line-height: 1.5;
}

/* Team Section */
.team {
    background: var(--white);
}

.team h2 {
    text-align: center;
}

.team h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.team-mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: 4rem;
}

.team-member {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 1/1.2;
    cursor: pointer;
    background: var(--light);
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.team-member:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
}

.team-member img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(60%);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.team-member:hover img {
    filter: grayscale(0%);
    transform: scale(1.08);
}

.team-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: clamp(1rem, 2.8vw, 1.5rem);
    background: linear-gradient(to top, rgba(10, 22, 40, 0.95) 0%, rgba(10, 22, 40, 0.8) 60%, transparent 100%);
    color: var(--white);
    transform: translateY(65%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease;
}

.team-member:hover .team-info {
    transform: translateY(0);
    opacity: 1;
}

.team-info h4 {
    color: var(--white);
    font-size: clamp(1.1rem, 2.4vw, 1.35rem);
    margin-bottom: 0.3rem;
}

.team-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.team-info p:last-of-type {
    margin-bottom: 1rem;
}

.learn-more-btn {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-small);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease;
    margin-top: 0.5rem;
}

.learn-more-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.learn-more-btn:focus {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 1rem;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-large);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-hover);
    transform: scale(0.9) translateY(30px);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid var(--light);
}

.modal-header h3 {
    color: var(--primary);
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.25s ease, transform 0.25s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--secondary);
    transform: scale(1.1);
    background: var(--light);
}

.modal-close:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

.modal-body {
    padding: 1rem 2rem 2rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.modal-body h4 {
    color: var(--secondary);
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem;
    font-weight: 600;
}

.modal-body h4:first-child {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

.modal-body p:last-child {
    margin-bottom: 0;
}

/* Contact Section */
.contact {
    background: var(--primary);
    color: var(--white);
    padding-bottom: clamp(4.5rem, 12vw, 8rem);
}

.contact h2 {
    color: var(--white);
    text-align: center;
}

.contact h2::after {
    background: var(--accent);
    left: 50%;
    transform: translateX(-50%);
}

.contact-subtitle {
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    margin-top: -1.5rem;
    margin-bottom: 4rem;
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 4rem;
}

@media (min-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr 1.2fr;
        gap: 4rem;
        align-items: start;
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--white);
}

.contact-details h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-details p,
.contact-details a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.contact-details a {
    transition: color 0.25s ease;
}

.contact-details a:hover {
    color: var(--accent);
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-hover);
}

.contact-form h3 {
    color: var(--primary);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 2rem;
    text-align: center;
}

.contact-form-element {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid var(--light);
    border-radius: var(--radius-small);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--white);
    color: var(--text-dark);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
    opacity: 0.8;
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit-btn {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-small);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    box-shadow: var(--shadow-soft);
}

.form-submit-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.form-submit-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3);
}

.form-submit-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.25s ease;
}

.form-submit-btn:hover svg {
    transform: translateX(3px);
}

/* Mobile Responsive Adjustments */
@media (max-width: 991px) {
    .timeline-cards {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .timeline-card {
        max-width: 100%;
        margin: 0 auto;
    }

    .timeline-card:nth-child(even),
    .timeline-card:nth-child(odd) {
        margin: 0 auto;
    }

    .timeline-line {
        display: none;
    }

    .team-mosaic {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .modal-header {
        padding: 1.25rem 1.5rem 0.75rem;
    }

    .modal-body {
        padding: 0.75rem 1.5rem 1.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 767px) {
    /* Mobile hero adjustments */
    .hero {
        min-height: 100vh; /* Reset to normal height on mobile */
    }
    
    .hero-video {
        height: 100vh; /* Reset video height on mobile */
    }
    
    .hero-content {
        padding-top: clamp(4rem, 10vh, 6rem);
    }

    .hero-stats {
        gap: 1.2rem;
        flex-direction: column;
        align-items: center;
    }

    .stat-item {
        min-width: 180px;
    }

    .story {
        padding: clamp(3rem, 6vw, 4.5rem) 0;
    }

    .floating-element {
        display: none;
    }

    .timeline-card {
        max-width: 90%;
    }

    .process-steps {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.8rem;
    }

    .process-line {
        display: none;
    }

    .impact-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .team-mosaic {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .modal {
        padding: 0.5rem;
    }

    .modal-content {
        max-height: 90vh;
    }

    .modal-header {
        padding: 1rem 1.25rem 0.5rem;
    }

    .modal-header h3 {
        font-size: 1.3rem;
    }

    .modal-close {
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }

    .modal-body {
        padding: 0.5rem 1.25rem 1.25rem;
        font-size: 0.9rem;
    }

    .modal-body h4 {
        font-size: 1rem;
    }

    .modal-body p {
        font-size: 0.9rem;
    }

    .contact-content {
        gap: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .contact-form h3 {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-item {
        padding: 1.2rem;
    }

    .contact-icon {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .story-intro,
    .vision-content {
        padding: 1.5rem;
    }

    .timeline-card {
        max-width: 95%;
    }

    .card-content {
        padding: 1.5rem;
    }

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

    .process-step {
        padding: 1rem;
    }

    .team-mosaic {
        grid-template-columns: 1fr;
    }

    .comparison-labels {
        top: 10px;
        left: 10px;
        right: 10px;
    }

    .before-label,
    .after-label {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .modal {
        padding: 0.25rem;
    }

    .modal-header {
        padding: 0.75rem 1rem 0.25rem;
    }

    .modal-body {
        padding: 0.25rem 1rem 1rem;
    }

    .learn-more-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .contact-form {
        padding: 1.25rem;
    }

    .contact-form h3 {
        font-size: 1.3rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.9rem;
        font-size: 0.9rem;
    }

    .form-submit-btn {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
    }
}

/* Video optimizations for mobile */
@media (max-width: 767px) {
    .hero-video {
        width: 100%;
        height: 100%;
        object-position: center center;
    }

    .hero-video-container::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('images/hero-background.jpg');
        background-size: cover;
        background-position: center;
        z-index: -2;
    }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero-video {
        animation-play-state: paused;
    }

    .floating-element {
        animation: none;
    }

    .timeline-card {
        transition: none;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}