/* Import base styles */
@import url('index.css');

/* Page Banner */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--light-color);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -150px;
    right: -50px;
}

.page-banner::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    bottom: -100px;
    left: -50px;
}

.page-banner h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.page-banner h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--gold);
}

.page-banner p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 20px auto 0;
    opacity: 0.9;
}

/* About Mission Section */
.about-mission {
    padding: 100px 0;
    background-color: var(--light-color);
}

.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.mission-text h2 {
    color: var(--secondary-color);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.mission-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.mission-text p {
    color: var(--gray-dark);
    margin-bottom: 30px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.mission-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.mission-stats .stat-item {
    display: flex;
    flex-direction: column;
}

.mission-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.mission-stats .stat-text {
    font-size: 0.9rem;
    color: var(--gray-dark);
    margin-top: 5px;
}

.mission-video {
    position: relative;
}

.video-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    height: 350px;
}

.video-placeholder {
    background-color: var(--secondary-color);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    cursor: pointer;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.video-placeholder:hover {
    background-color: var(--secondary-dark);
}

.play-button {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(193, 39, 45, 0.3);
}

.play-button i {
    color: var(--light-color);
    font-size: 20px;
    margin-left: 5px;
}

.video-placeholder:hover .play-button {
    transform: scale(1.1);
    background-color: var(--primary-dark);
}

/* About History Section */
.about-history {
    padding: 100px 0;
    background-color: var(--gray-light);
    position: relative;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(5deg);
    transition: transform 0.5s ease;
}

.image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.moroccan-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    opacity: 0.9;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C1272D' fill-opacity='0.2'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    transition: opacity 0.3s ease;
}

.image-wrapper:hover .moroccan-pattern {
    opacity: 0.8;
}

.about-text h2 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--gray-dark);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Timeline */
.timeline {
    position: relative;
    margin-top: 40px;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.timeline-dot {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid var(--light-color);
    z-index: 1;
}

.timeline-content h3 {
    margin-bottom: 5px;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.timeline-content p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* Values Section */
.values-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.value-card {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 3px solid transparent;
    text-align: center;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--primary-color);
}

.value-card:nth-child(even):hover {
    border-bottom: 3px solid var(--secondary-color);
}

.value-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(193, 39, 45, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.1);
}

.value-icon i {
    font-size: 28px;
    color: var(--primary-color);
}

.value-card:nth-child(even) .value-icon {
    background-color: rgba(0, 98, 51, 0.1);
}

.value-card:nth-child(even) .value-icon i {
    color: var(--secondary-color);
}

.value-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
    transition: color 0.3s ease;
}

.value-card:hover h3 {
    color: var(--primary-color);
}

.value-card:nth-child(even):hover h3 {
    color: var(--secondary-color);
}

.value-card p {
    color: var(--gray-dark);
}

/* Team Section */
.team-section {
    padding: 100px 0;
    background-color: var(--gray-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-member {
    background-color: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.member-image {
    height: 250px;
    background-color: var(--gray-color);
    position: relative;
    overflow: hidden;
    background-image: url('https://placehold.co/400x250/cccccc/666666?text=Photo');
    background-size: cover;
    background-position: center;
}

.member-info {
    padding: 25px;
    text-align: center;
}

.member-info h3 {
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.member-role {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.member-bio {
    color: var(--gray-dark);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.member-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--gray-color);
    color: var(--gray-dark);
    transition: all 0.3s ease;
}

.member-social a:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-3px);
}

.team-cta {
    text-align: center;
    margin-top: 50px;
}

.team-cta p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--secondary-dark);
}

/* Technologies Section */
.technologies-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.tech-category {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.tech-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.tech-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(193, 39, 45, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}

.tech-category:hover .tech-icon {
    transform: scale(1.1);
}

.tech-icon i {
    font-size: 28px;
    color: var(--primary-color);
}

.tech-category h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.tech-list {
    list-style: none;
    text-align: center;
}

.tech-list li {
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.tech-list li span {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--gray-light);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tech-list li span:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-3px);
}

/* Achievements Section */
.achievements-section {
    padding: 100px 0;
    background-color: var(--gray-light);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.achievement-card {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.achievement-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plus {
    font-size: 2rem;
    margin-left: 5px;
}

.achievement-card h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.achievement-card p {
    color: var(--gray-dark);
    font-size: 0.95rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--light-color);
}

.testimonials-slider {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonial-item {
    background-color: var(--gray-light);
    border-radius: 10px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
}

.testimonial-content p {
    font-style: italic;
    color: var(--gray-dark);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content p::before {
    content: '\201C';
    font-size: 60px;
    color: rgba(193, 39, 45, 0.1);
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.author-info h4 {
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.author-info span {
    font-size: 0.9rem;
    color: var(--gray-dark);
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.prev-btn,
.next-btn {
    background-color: var(--light-color);
    border: none;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.prev-btn:hover,
.next-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin: 0 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(193, 39, 45, 0.2);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: var(--light-color);
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalOpen 0.3s ease forwards;
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--light-color);
    z-index: 10;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.video-container {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .mission-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .timeline {
        padding-left: 0;
        margin-top: 30px;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-dot {
        display: none;
    }
    
    .timeline-item {
        text-align: center;
        background-color: var(--light-color);
        border-radius: 8px;
        padding: 15px;
        margin-bottom: 15px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    }
    
    .page-banner h1 {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 768px) {
    .page-banner {
        padding: 60px 0;
    }
    
    .page-banner h1 {
        font-size: 2rem;
    }
    
    .mission-stats {
        flex-wrap: wrap;
        justify-content: space-around;
    }
    
    .mission-stats .stat-item {
        flex: 0 0 45%;
        margin-bottom: 20px;
    }
    
    .value-card, 
    .tech-category {
        padding: 20px;
    }
}

@media screen and (max-width: 576px) {
    .page-banner h1 {
        font-size: 1.8rem;
    }
    
    .mission-stats .stat-item {
        flex: 0 0 100%;
    }
    
    .value-icon,
    .tech-icon {
        width: 60px;
        height: 60px;
    }
    
    .value-icon i,
    .tech-icon i {
        font-size: 24px;
    }
    
    .achievement-number {
        font-size: 2.5rem;
    }
}
