* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.light {
    --lightbg: #f5f7fa;
    --fontColor: black;
    --bgStone: #f8f8f8;
    --smallTitle: #494949;
    --text: #555;
    --primary-color: #206330;
}

.dark {
    --lightbg: #1b1b1b;
    --fontColor: #ffffff;
    --bgStone: #383838;
    --smallTitle: #9f9f9f;
    --text: #e1e1e1;
    --primary-color: #3cdc61;
}

:root {
    --secondary-color: #3c8c4f;
    --light-bg: #f5f5f5;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--lightbg);
    color: var(--fontColor);
    line-height: 1.8;
}

main {
    background-color: var(--lightbg) !important;
}

main::after {
    position: fixed;
    top: 0;
    right: 50px;
    content: '';
    width: 2px;
    height: 100%;
    background-color: #3a2400;
    z-index: 0;
}

.h11 {
    text-align: center;
    font-family: 'Amiri', serif;
    font-size: 5vw;
}

.smallTitle {
    font-size: 18px;
    color: var(--smallTitle);
    text-align: center;
    font-family: 'Amiri', serif;
}

.opera-frame {
    max-width: 800px;
    margin: 4rem auto 3rem;
    position: relative;
    padding: 25px;
    border-radius: 8px;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.opera-frame img {
    border-radius: 20px;
}

.opera-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
    transition: all 0.5s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.opera-image:hover {
    transform: scale(1.02) translateZ(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.details {
    padding: 2rem 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
    background: transparent;
    margin: 4rem 2rem 2rem;
}

.detail-card {
    background: var(--bgStone);
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.15),
        inset 0 0 0 1px rgba(139, 69, 19, 0.1);
    transition: all 0.4s ease;
    border-top: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.detail-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px rgba(139, 69, 19, 0.2);
}

.detail-card h2 {
    font-family: 'Amiri', serif;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid var(--lightbg);
    padding-bottom: 0.8rem;
}

.detail-card h2 i {
    color: var(--primary-color);
}

.detail-card p {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.8;
}

.back-section {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(to bottom, transparent, rgba(139, 69, 19, 0.05));
    margin: 2rem 0 0;
    position: relative;
}

.back-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgb(255, 239, 2);
    color: black;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Reem Kufi', sans-serif;
    font-size: 1.3rem;
    transition: all 0.4s ease;
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.3);
    margin-bottom: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.back-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        8px 8px 16px rgba(0, 0, 0, 0.25),
        -8px -8px 16px rgba(255, 255, 255, 0.15);
}

.back-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.back-btn:hover i {
    transform: translateX(-5px);
}


@media (max-width: 992px) {
    main::after {
        display: none;
    }

    .details {
        grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
        padding: 1.5rem;
        margin: 3rem 1rem 1rem;
    }
    
    .opera-frame {
        margin: 3rem 1.5rem 2rem;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .opera-frame {
        margin: 2rem 1rem;
        padding: 15px;
    }
    
    .details {
        grid-template-columns: 1fr;
        margin: 2rem 0.5rem 1rem;
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .detail-card {
        padding: 1.5rem;
    }
}

@media (max-width: 600px) {
    .h11 {
        font-size: 12vw;
    }   
}

@media (max-width: 480px) {
    .page-wrapper {
        border-radius: 0;
    }
    
    .back-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}