/* story.css */

/* Story Page Specific Styles */

/* Main Story Container */
.story-main {
    margin-top: 76px; /* Same as navbar height */
    min-height: calc(100vh - 200px);
}

/* Hero/Banner Section */
.story-hero {
    background: linear-gradient(135deg, rgba(244, 162, 97, 0.3), rgba(231, 111, 81, 0.3)),
                url("images/hybrid.jpg") center/cover no-repeat;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    padding: 0 20px;
}

.story-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.story-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.story-hero h1 {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.story-hero p {
    font-size: 24px;
    font-weight: 400;
    opacity: 0.95;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s backwards;
}

/* Story Content Container */
.story-content {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #fff5eb 100%);
}

.story-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Story Sections */
.story-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 100px;
}

.story-section.reverse {
    direction: rtl;
}

.story-section.reverse .story-text {
    direction: ltr;
}

.story-section.reverse .story-image {
    direction: ltr;
}

.story-text {
    padding: 30px;
}

.story-text h2 {
    font-size: 42px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 15px;
}

.story-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #f4a261 0%, #e76f51 100%);
    border-radius: 2px;
}

.story-text p {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.process-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.process-list li {
    font-size: 18px;
    color: #555;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

.process-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #f4a261;
    font-weight: bold;
    font-size: 20px;
}

.story-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.story-image:hover {
    transform: translateY(-10px) scale(1.02);
}

.story-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Impact Section */
.impact-section {
    text-align: center;
    margin: 100px 0;
    padding: 60px 0;
    background: linear-gradient(135deg, #fff5eb 0%, #fff 100%);
    border-radius: 20px;
}

.impact-section h2 {
    font-size: 48px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 40px;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

.impact-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #f4a261 0%, #e76f51 100%);
    border-radius: 2px;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.impact-card {
    background: white;
    padding: 40px 20px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.impact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #f4a261 0%, #e76f51 100%);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.impact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(231, 111, 81, 0.2);
}

.impact-card:hover::before {
    transform: scaleX(1);
}

.impact-number {
    font-size: 48px;
    font-weight: 800;
    color: #f4a261;
    margin-bottom: 10px;
    line-height: 1;
}

.impact-title {
    font-size: 20px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 10px;
}

.impact-card p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Team Section */
.team-section {
    text-align: center;
    margin: 100px 0;
    padding: 60px 0;
}

.team-section h2 {
    font-size: 48px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 20px;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

.team-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #f4a261 0%, #e76f51 100%);
    border-radius: 2px;
}

.team-description {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.team-member {
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(231, 111, 81, 0.2);
}

.team-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff5eb;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-member h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 8px;
}

.team-role {
    font-size: 18px;
    color: #f4a261;
    font-weight: 600;
    margin-bottom: 15px;
}

.team-member p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Gallery Section (NEW) */
.gallery-section {
    text-align: center;
    margin: 100px 0;
    padding: 60px 0;
    background: linear-gradient(135deg, #fff5eb 0%, #fff 100%);
    border-radius: 20px;
}

.gallery-section h2 {
    font-size: 48px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 20px;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

.gallery-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #f4a261 0%, #e76f51 100%);
    border-radius: 2px;
}

.gallery-description {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 12px 35px rgba(231, 111, 81, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.3));
    color: white;
    padding: 40px 15px 15px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

/* CTA Section */
.story-cta {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, #f4a261 0%, #e76f51 100%);
    border-radius: 20px;
    color: white;
    margin: 100px 0;
}

.story-cta h2 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.story-cta p {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.95;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #e76f51;
    border: none;
    padding: 18px 48px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    background: #fff;
}

/* Responsive Design */
@media (max-width: 992px) {
    .story-hero h1 {
        font-size: 56px;
    }
    
    .story-hero p {
        font-size: 22px;
    }
    
    .story-container {
        padding: 0 40px;
    }
    
    .story-section {
        gap: 40px;
        margin-bottom: 80px;
    }
    
    .story-text h2 {
        font-size: 36px;
    }
    
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .story-hero {
        height: 350px;
    }
    
    .story-hero h1 {
        font-size: 44px;
    }
    
    .story-hero p {
        font-size: 20px;
    }
    
    .story-section {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 60px;
    }
    
    .story-section.reverse {
        direction: ltr;
    }
    
    .story-text {
        padding: 0;
        text-align: center;
    }
    
    .story-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .story-image {
        order: -1;
    }
    
    .story-image img {
        height: 300px;
    }
    
    .impact-section h2,
    .team-section h2,
    .gallery-section h2,
    .story-cta h2 {
        font-size: 36px;
    }
    
    .impact-number {
        font-size: 40px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .story-cta {
        padding: 60px 30px;
    }
    
    .story-cta h2 {
        font-size: 36px;
    }
    
    .story-cta p {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .story-hero {
        height: 300px;
    }
    
    .story-hero h1 {
        font-size: 36px;
    }
    
    .story-hero p {
        font-size: 18px;
    }
    
    .story-container {
        padding: 0 20px;
    }
    
    .story-text h2 {
        font-size: 30px;
    }
    
    .story-text p {
        font-size: 16px;
    }
    
    .process-list li {
        font-size: 16px;
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .impact-section h2,
    .team-section h2,
    .gallery-section h2,
    .story-cta h2 {
        font-size: 30px;
    }
    
    .team-description,
    .gallery-description {
        font-size: 16px;
    }
    
    .story-cta {
        padding: 50px 20px;
        margin: 60px 0;
    }
    
    .story-cta h2 {
        font-size: 30px;
    }
    
    .story-cta p {
        font-size: 16px;
    }
    
    .cta-button {
        padding: 16px 40px;
        font-size: 16px;
    }
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}