/* ===== ABOUT PAGE STYLES ===== */
.about-page {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #334155;
    line-height: 1.6;
    min-height: 100vh;
}

/* Hero Section */
.about-page .page-hero {
    background: linear-gradient(135deg, 
        rgba(106, 17, 203, 0.08) 0%, 
        rgba(239, 141, 11, 0.12) 100%);
    padding: 140px 0 60px;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.about-page .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-page .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #6a11cb 0%, #ef8d0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-page .hero-subtitle {
    font-size: 1.3rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-page .text-gradient {
    background: linear-gradient(135deg, #6a11cb 0%, #ef8d0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 20px;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, #6a11cb 0%, #ef8d0b 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(106, 17, 203, 0.2);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1e293b;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Mission Section */
.mission-section {
    padding: 4rem 0;
    background: white;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.mission-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

.mission-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #6a11cb 0%, #ef8d0b 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(106, 17, 203, 0.2);
}

.mission-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.mission-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Photo Frame Styles - IMPROVED FOR PROPER IMAGE DISPLAY */
.photo-frame {
    position: relative;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

/* Perfect image display - This is the key fix */
.photo-frame img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-frame:hover img {
    transform: scale(1.05);
}

.photo-frame:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
}

/* Frame Border */
.frame-border {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    pointer-events: none;
    z-index: 2;
}

/* Frame Matte */
.frame-matte {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Frame Corners */
.frame-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 3;
}

.corner {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(106, 17, 203, 0.3);
}

.corner-tl {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 8px;
}

.corner-tr {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
    border-top-right-radius: 8px;
}

.corner-bl {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
    border-bottom-left-radius: 8px;
}

.corner-br {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 8px;
}

/* Story Section */
.story-section {
    padding: 5rem 0;
    background: #f8fafc;
}

.story-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.story-image-frame {
    margin-bottom: 3rem;
}

.frame-container {
    max-width: 900px;
    margin: 0 auto;
}

.image-caption {
    margin-top: 1.5rem;
    text-align: center;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #64748b;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.image-caption i {
    color: #6a11cb;
    font-size: 1rem;
}

.story-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.story-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 1.5rem;
}

.story-text p:last-child {
    margin-bottom: 0;
}

/* Gallery Section */
.gallery-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-item {
    text-align: center;
}

/* Gallery Frame - Fixed height for consistent display */
.gallery-frame {
    height: 400px; /* Fixed height for gallery items */
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(106, 17, 203, 0.1) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.gallery-frame:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    color: white;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-frame:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.overlay-content p {
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gallery-caption {
    padding: 1rem;
}

.gallery-caption h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.gallery-caption p {
    color: #64748b;
    font-size: 0.95rem;
}

/* Impact Section */
.impact-section {
    padding: 5rem 0;
    background: white;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.impact-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

.impact-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6a11cb 0%, #ef8d0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.impact-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.impact-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Founder Section - CRITICAL FIX FOR IMAGE DISPLAY */
.founder-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.founder-profile {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: center;
}

.founder-image {
    position: relative;
    width: 100%;
}

/* FOUNDER FRAME - Fixed to show full image properly */
.founder-frame {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

/* Key fix: Ensure image covers the entire frame while maintaining aspect ratio */
.founder-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Founder Info */
.founder-info {
    position: relative;
}

.founder-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #6a11cb 0%, #ef8d0b 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.founder-badge i {
    font-size: 1rem;
}

.founder-info h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
    line-height: 1.2;
}

.founder-tagline {
    font-size: 1.1rem;
    color: #6a11cb;
    font-weight: 500;
    margin-bottom: 2rem;
}

.founder-quote {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #6a11cb;
}

.quote-icon {
    color: #6a11cb;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.founder-quote blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.founder-bio {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 2rem;
}

.founder-highlights {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.highlight-item i {
    color: #6a11cb;
    font-size: 1rem;
}

.highlight-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
}

.founder-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #6a11cb;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(106, 17, 203, 0.2);
}

.contact-link:hover {
    background: #5a0db5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 17, 203, 0.3);
}

.founder-social {
    display: flex;
    gap: 0.75rem;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: white;
    color: #6a11cb;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.social-btn:hover {
    background: #6a11cb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(106, 17, 203, 0.3);
}

/* CTA Section */
.about-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, #6a11cb 0%, #ef8d0b 100%);
    position: relative;
    overflow: hidden;
}

.about-cta .cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.about-cta .lead {
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: 1.2rem;
    color: white;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 200px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-600 { animation-delay: 0.6s; }

/* Responsive Design */
@media (max-width: 1200px) {
    .founder-profile {
        grid-template-columns: 350px 1fr;
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .about-page .hero-title {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .founder-profile {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .founder-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .founder-frame {
        height: 400px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .founder-highlights {
        justify-content: center;
    }
    
    .founder-contact {
        justify-content: center;
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .about-page .hero-title {
        font-size: 2rem;
    }
    
    .about-page .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .mission-grid,
    .gallery-grid,
    .impact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-item {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .gallery-frame {
        height: 350px;
    }
    
    .founder-info h3 {
        font-size: 2rem;
    }
    
    .founder-bio {
        font-size: 1rem;
    }
    
    .highlight-item {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .about-cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .about-page .hero-title {
        font-size: 1.75rem;
    }
    
    .section-tag {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
    
    .mission-card,
    .impact-card {
        padding: 1.5rem;
    }
    
    .founder-frame {
        height: 300px;
    }
    
    .founder-info h3 {
        font-size: 1.75rem;
    }
    
    .founder-quote blockquote {
        font-size: 1.1rem;
    }
    
    .image-caption {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    .gallery-frame {
        height: 250px;
    }
    
    .cta-buttons .btn {
        width: 100%;
        min-width: auto;
    }
}

/* Ensure images are properly loaded */
img {
    max-width: 100%;
    height: auto;
}

/* Container fix */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}