/**
 * Our Story Page Styles
 * Beautiful and engaging design for company story
 */

/* Variables */
:root {
    --story-primary: #ffc107;
    --story-primary-dark: #e0a800;
    --story-dark: #000000;
    --story-white: #ffffff;
    --story-gray-100: #f8f9fa;
    --story-gray-200: #e9ecef;
    --story-gray-300: #dee2e6;
    --story-gray-500: #6c757d;
    --story-gray-700: #495057;
    --story-gray-800: #343a40;
    --story-text: #333333;
    --story-text-light: #666666;
    --story-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --story-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --story-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --story-transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
body {
    font-family: 'Lato', 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--story-text);
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--story-gray-100) 0%, var(--story-white) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23ffc107" opacity="0.1"/><circle cx="80" cy="60" r="1.5" fill="%23ffc107" opacity="0.1"/><circle cx="40" cy="80" r="1" fill="%23ffc107" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.welcome-text {
    position: relative;
    display: inline-block;
}

.welcome-super {
    display: block;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--story-gray-300);
    font-family: sans-serif;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    position: relative;
}

.brand-name {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--story-dark);
    margin: 0;
    position: relative;
    z-index: 3;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--story-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--story-primary);
    border-radius: 2px;
}

/* Founders Section */
.founders-section {
    padding: 80px 0;
    background: var(--story-white);
}

.founders-wrapper {
    margin-bottom: 3rem;
}

.founders-interactive {
    height: 300px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--story-shadow);
    overflow: hidden;
}

.founder-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--story-primary);
    transition: var(--story-transition-slow);
    position: relative;
    z-index: 2;
    box-shadow: var(--story-shadow);
}

.left-image {
    transform: translateX(0) rotate(0deg);
}

.right-image {
    transform: translateX(0) rotate(0deg);
}

.founders-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    transition: var(--story-transition-slow);
    z-index: 1;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.founder-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--story-dark);
    margin-bottom: 0.5rem;
}

.founders-interactive.active .left-image,
.founders-interactive:hover .left-image {
    transform: translateX(-100px) rotate(-10deg);
}

.founders-interactive.active .right-image,
.founders-interactive:hover .right-image {
    transform: translateX(100px) rotate(10deg);
}

.founders-interactive.active .founders-overlay,
.founders-interactive:hover .founders-overlay {
    opacity: 1;
}

.founders-description {
    max-width: 900px;
    margin: 0 auto;
}

.founders-description p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--story-text-light);
    text-align: justify;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.founders-description p:nth-child(2) {
    animation-delay: 0.2s;
}

.founders-description p:nth-child(3) {
    animation-delay: 0.4s;
}

/* Mission Section */
.mission-section {
    padding: 80px 0;
    background: var(--story-gray-100);
}

.mission-card {
    background: var(--story-dark);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--story-shadow-lg);
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="%23ffc107" opacity="0.1"/><circle cx="90" cy="30" r="1.5" fill="%23ffc107" opacity="0.1"/><circle cx="30" cy="90" r="1" fill="%23ffc107" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.mission-content {
    position: relative;
    z-index: 2;
}

.mission-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--story-white);
    margin-bottom: 1rem;
}

.mission-quote {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--story-primary);
    margin-bottom: 2rem;
    font-style: italic;
}

.mission-description {
    font-size: 1.1rem;
    color: var(--story-white);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Team Section */
.team-section {
    padding: 80px 0 60px;
    background: var(--story-white);
}

.team-hero {
    background: var(--story-primary);
    background-image: url('{{ asset("frontend/assets/images/banners/our-storybg1.jpg") }}');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 3rem;
    position: relative;
}

.team-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 193, 7, 0.1);
}

.team-image-container {
    position: relative;
    z-index: 2;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.team-hero-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.team-description {
    max-width: 900px;
    margin: 0 auto;
}

.team-description p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--story-text-light);
    text-align: justify;
}

/* Production Section */
.production-section {
    padding: 80px 0;
    background: var(--story-gray-100);
}

.production-image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
}

.production-image {
    width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: 20px 15px 0px 8px var(--story-primary);
    transition: var(--story-transition);
}

.production-image:hover {
    transform: scale(1.02);
}

.production-content {
    padding-left: 2rem;
}

.production-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--story-dark);
    margin-bottom: 1.5rem;
}

.production-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--story-text-light);
    line-height: 1.7;
}

/* Innovation Section */
.innovation-section {
    padding: 80px 0;
    background: var(--story-primary);
    background-image: url('{{ asset("frontend/assets/images/banners/our-storybg2.jpg") }}');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

.innovation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 193, 7, 0.1);
}

.innovation-hero {
    position: relative;
    z-index: 2;
}

.innovation-image-container {
    text-align: center;
}

.innovation-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: var(--story-shadow-lg);
}

/* Research Section */
.research-section {
    padding: 80px 0;
    background: var(--story-white);
}

.research-content {
    max-width: 1000px;
    margin: 0 auto;
}

.research-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--story-dark);
    text-align: center;
    margin-bottom: 3rem;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.research-item {
    background: var(--story-gray-100);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--story-transition);
    border: 2px solid transparent;
}

.research-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--story-shadow);
    border-color: var(--story-primary);
}

.research-icon {
    width: 80px;
    height: 80px;
    background: var(--story-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: var(--story-transition);
}

.research-icon i {
    font-size: 2rem;
    color: var(--story-dark);
}

.research-item:hover .research-icon {
    transform: scale(1.1);
}

.research-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--story-dark);
    margin-bottom: 1rem;
}

.research-item p {
    color: var(--story-text-light);
    line-height: 1.6;
}

.sustainability-section {
    background: var(--story-gray-100);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid var(--story-primary);
}

.sustainability-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--story-dark);
    margin-bottom: 1rem;
}

.sustainability-section p {
    color: var(--story-text-light);
    line-height: 1.7;
    margin: 0;
}

/* Call to Action Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--story-dark) 0%, var(--story-gray-800) 100%);
    color: var(--story-white);
    text-align: center;
}

.cta-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.btn {
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--story-transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--story-primary);
    color: var(--story-dark);
    border: 2px solid var(--story-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--story-primary);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--story-white);
    border: 2px solid var(--story-white);
}

.btn-outline:hover {
    background: var(--story-white);
    color: var(--story-dark);
    transform: translateY(-2px);
}

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

.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .production-content {
        padding-left: 1rem;
    }
}

@media (max-width: 992px) {
    .founders-interactive {
        height: 250px;
        padding: 1rem;
    }

    .founder-image {
        width: 150px;
        height: 150px;
    }

    .production-content {
        padding-left: 0;
        margin-top: 2rem;
    }

    .research-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .welcome-super {
        font-size: 2.5rem;
    }

    .brand-name {
        font-size: 1.8rem;
    }

    .team-hero {
        height: 250px;
    }

    .founders-interactive {
        height: 200px;
        flex-direction: column;
        gap: 1rem;
    }

    .founder-image {
        width: 120px;
        height: 120px;
    }

    .founders-interactive.active .left-image,
    .founders-interactive:hover .left-image,
    .founders-interactive.active .right-image,
    .founders-interactive:hover .right-image {
        transform: scale(0.8);
    }

    .mission-card {
        padding: 2rem 1rem;
    }

    .production-image {
        box-shadow: 15px 10px 0px 5px var(--story-primary);
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-section,
    .founders-section,
    .mission-section,
    .team-section,
    .production-section,
    .innovation-section,
    .research-section,
    .cta-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .founders-interactive {
        height: auto;
        padding: 1rem;
    }

    .founders-overlay {
        position: static;
        transform: none;
        opacity: 1;
        background: transparent;
        padding: 1rem 0;
    }

    .founder-name {
        font-size: 1.2rem;
    }

    .research-icon {
        width: 60px;
        height: 60px;
    }

    .research-icon i {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .hero-section,
    .cta-section {
        background: white !important;
        color: black !important;
    }

    .mission-card {
        background: white !important;
        color: black !important;
        border: 1px solid #000;
    }

    .btn {
        display: none;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .founders-interactive.active .left-image,
    .founders-interactive:hover .left-image,
    .founders-interactive.active .right-image,
    .founders-interactive:hover .right-image {
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --story-primary: #000000;
        --story-dark: #000000;
        --story-white: #ffffff;
        --story-gray-100: #ffffff;
    }

    .section-title::after {
        background: #000000;
    }
}
